/* Pedia Directory v2 — الواجهة الرئيسية والبطاقة وصفحة النشاط (فوق dir.css وقالب danmarkpedia) */
.pdir{--pd-radius:16px;--pd-shadow:0 1px 2px rgba(24,44,53,.05),0 6px 18px rgba(24,44,53,.06)}
.pd-svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.pd-muted{color:var(--pd-muted)!important;font-size:14px}
.pd-h2{font-size:1.4rem;margin:0 0 16px}

/* ألوان التصنيفات */
.pd-ico{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;flex-shrink:0;overflow:hidden}
.pd-ico img{width:100%;height:100%;object-fit:cover}
.pd-ico.lg{width:88px;height:88px;border-radius:22px}.pd-ico.lg .pd-svg{width:40px;height:40px}
.tone-red{background:#fbe9ec;color:#a51b2f}.tone-teal{background:#e3f1f3;color:#1d6573}.tone-green{background:#e4f2e9;color:#23633e}
.tone-amber{background:#fbf0dc;color:#8a5600}.tone-blue{background:#e6eef8;color:#274f80}.tone-slate{background:#edf0f1;color:#3f4d55}

/* الواجهة الرئيسية */
.pd-hero{margin-top:22px;background:linear-gradient(135deg,#182c35 0%,#22414d 100%);color:#fff;border-radius:24px;padding:40px 40px 28px;position:relative;overflow:hidden}
.pd-hero:after{content:"";position:absolute;inset:auto -80px -120px auto;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(185,29,50,.35),transparent 70%);pointer-events:none}
.pd-hero h1{color:#fff;font-size:clamp(1.9rem,3.6vw,2.9rem);margin:0}
.pd-eyebrow{color:#f3b9c1!important;font-weight:700;font-size:13px;margin-bottom:8px}
.pd-lead{color:#d5e0e4!important;margin-top:10px;max-width:640px;font-size:17px}
.pd-hero .pdir-search{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);position:relative;z-index:1;backdrop-filter:blur(4px)}
.pd-hero .pdir-f>span,.pd-hero .pdir-check{color:#e7eef0}
.pd-hero .pdir-search input,.pd-hero .pdir-search select{border-color:transparent}
.pd-stats{list-style:none;display:flex;flex-wrap:wrap;gap:10px 28px;padding:0;margin:4px 0 0;color:#c9d6db;font-size:15px;position:relative;z-index:1}
.pd-stats b{color:#fff;font-size:1.25rem;margin-inline-end:4px}

.pd-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.pd-tile{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--pd-line);border-radius:var(--pd-radius);padding:14px;min-height:76px;transition:border-color .15s,box-shadow .15s,transform .15s}
.pd-tile:hover{border-color:#c7d0cc;box-shadow:var(--pd-shadow);transform:translateY(-1px)}
.pd-tile-name{font-weight:700;flex:1;line-height:1.5}
.pd-tile small{color:var(--pd-muted);background:var(--pd-soft);border-radius:99px;padding:1px 10px;font-weight:600}

.pd-cities{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.pd-cities a{display:flex;flex-direction:column;background:#fff;border:1px solid var(--pd-line);border-radius:var(--pd-radius);padding:14px 16px;transition:border-color .15s,box-shadow .15s}
.pd-cities a:hover{border-color:#c7d0cc;box-shadow:var(--pd-shadow)}
.pd-cities b{font-size:1.05rem}.pd-cities span{font-size:13px;color:var(--pd-muted)}.pd-cities small{margin-top:6px;color:var(--pd-red);font-weight:700}
.pd-allregions{margin-top:14px}
.pd-allregions summary{cursor:pointer;font-weight:700;min-height:44px;display:inline-flex;align-items:center;color:var(--pd-red)}
.pd-allregions .pdir-regions{margin-top:10px}

/* البطاقة */
.pd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pd-grid+.pdir-pager{margin-top:18px}
.pdir-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pd-card{position:relative;display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid var(--pd-line);border-radius:var(--pd-radius);padding:16px;transition:border-color .15s,box-shadow .15s}
.pd-card:hover{border-color:#c7d0cc;box-shadow:var(--pd-shadow)}
.pd-card.is-featured{border:2px solid var(--pd-gold);background:#fffbf2}
.pd-card-main{flex:1;min-width:0}
.pd-card h3{font-size:1.05rem;margin:0;line-height:1.5}
.pd-card h3 a{color:#1c2933}
.pd-stretch:after{content:"";position:absolute;inset:0;border-radius:var(--pd-radius)}
.pd-card-cat{font-size:14px;margin-top:2px}
.pd-card-addr{display:flex;align-items:center;gap:6px;font-size:13px;margin-top:6px;min-width:0}
.pd-card-addr .pd-svg{width:15px;height:15px}
.pd-card-addr bdi{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd-callbtn{position:relative;z-index:1;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fdf1f2;color:var(--pd-red);flex-shrink:0;transition:background .15s}
.pd-callbtn:hover{background:var(--pd-red);color:#fff}
.pdir-count{font-weight:600}

/* صفحة النشاط */
.pd-bhead{display:flex;gap:22px;align-items:flex-start;background:#fff;border:1px solid var(--pd-line);border-radius:22px;padding:26px;margin-top:14px;box-shadow:var(--pd-shadow)}
.pd-bhead.is-featured{border:2px solid var(--pd-gold)}
.pd-bhead-main{flex:1;min-width:0}
.pd-bhead h1{font-size:clamp(1.6rem,3vw,2.3rem);margin:4px 0 2px;overflow-wrap:anywhere}
.pd-bmeta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:15px}
.pd-bmeta a{color:var(--pd-red);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.pd-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.pd-actions .btn{gap:8px;padding-inline:16px}
.pd-actions .pd-svg{width:19px;height:19px}
.pdir .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.pdir .btn.ghost:hover{background:rgba(255,255,255,.1)}
.pd-open.is-open{background:#e4f2e9;color:#1c5a33}.pd-open.is-closed{background:#fbe3e5;color:#8a1f28}

.pd-bgrid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:18px;margin-top:18px;align-items:start}
.pd-box{background:#fff;border:1px solid var(--pd-line);border-radius:var(--pd-radius);padding:22px;margin-bottom:18px}
.pd-box h2{display:flex;align-items:center;gap:8px;font-size:1.15rem;margin:0 0 12px}
.pd-box h2 .pd-svg{color:var(--pd-red)}
.pd-box p{margin-bottom:10px}
.pd-hours{width:100%;border-collapse:collapse;font-size:15px}
.pd-hours th,.pd-hours td{padding:9px 6px;border-bottom:1px solid #eef2f0;text-align:start}
.pd-hours td{text-align:end;font-variant-numeric:tabular-nums}
.pd-hours tr.is-today{background:#fdf6f7;font-weight:700}.pd-hours tr.is-today th{color:var(--pd-red)}
.pd-closed{color:#8a1f28}
.pd-rawhours{background:var(--pd-soft);border-radius:10px;padding:10px 14px}
.pd-addr{font-weight:600;color:#1c2933!important}
.pd-map{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:280px;border-radius:14px;margin-bottom:12px;background:repeating-linear-gradient(45deg,#f3f5f4,#f3f5f4 12px,#eef1ef 12px,#eef1ef 24px);border:1px solid var(--pd-line)}
.pd-map.is-loaded{display:block;background:none;overflow:hidden}
.pd-map iframe{width:100%;height:100%;border:0}
.pd-facts{list-style:none;margin:0;padding:0}
.pd-facts li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eef2f0;min-width:0;overflow-wrap:anywhere}
.pd-facts li:last-child{border-bottom:0}
.pd-facts .pd-svg{color:var(--pd-muted);width:19px;height:19px}
.pd-facts a{color:#1c2933;text-decoration:underline;text-underline-offset:3px}
.pd-claim{background:#fbf7f0;border-color:#efe1c4}
.pd-source{line-height:1.9}

/* بطاقة الدعوة */
.pd-cta{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:36px;padding:28px 32px;border-radius:22px;background:linear-gradient(135deg,#b91d32,#8d1426);color:#fff}
.pd-cta h2{color:#fff;margin:0 0 6px;font-size:1.35rem}.pd-cta p{color:#f6d7dc!important;margin:0;max-width:620px}
.pd-cta-actions{display:flex;flex-wrap:wrap;gap:10px;flex-shrink:0}
.pd-cta .btn.primary{background:#fff;color:#8d1426;border-color:#fff}.pd-cta .btn.primary:hover{background:#fdecef}

@media(max-width:950px){.pd-bgrid{grid-template-columns:1fr}}
@media(max-width:800px){
  .pd-hero{padding:26px 18px 20px;border-radius:18px;margin-top:14px}
  .pd-grid,.pdir-list{grid-template-columns:1fr}
  .pd-bhead{flex-direction:column;padding:18px;gap:14px}.pd-ico.lg{width:64px;height:64px}
  .pd-actions .btn{flex:1 1 calc(50% - 8px);justify-content:center}
  .pd-cta{flex-direction:column;align-items:stretch;padding:22px 18px}.pd-cta-actions .btn{flex:1;justify-content:center}
  .pd-box{padding:16px}
  .pd-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.pd-tile{flex-direction:column;align-items:flex-start;gap:8px}
  .pd-cities{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.pd-listhead{padding:18px 0 4px}.pd-listhead h1{font-size:clamp(1.7rem,3.2vw,2.5rem);margin:0}
.pd-catchips{margin-top:-6px}
.pd-hours th{background:none!important;color:#1c2933;font-weight:600}
@media(max-width:800px){
  .pdir-search{grid-template-columns:1fr 1fr!important;gap:10px;padding:12px}
  .pdir-search .pdir-f-q{grid-column:1/-1}.pdir-search .pdir-f>span{font-size:12px;margin-bottom:4px}
  .pdir-search input,.pdir-search select{min-height:44px!important}
  .pdir-search .pdir-check{min-height:44px}.pdir-search button{min-height:44px}
  .pd-listhead{padding-top:10px}
}
