/* ICSCV Interactive Pages: Cities + Prophets */

/* ===================== Shared Variables ===================== */
:root{
  --iciv-bg:#f8f5ee;
  --iciv-green:#17352d;
  --iciv-gold:#d4af37;
  --iciv-gold-dark:#b99122;
  --iciv-cream:#fffdf6;
  --prop-pg:#c9a227;
  --prop-pg2:#e7c85b;
  --prop-green:#0b5a3c;
  --prop-green2:#06442f;
  --prop-text:#14382b;
  --prop-muted:rgba(20,56,43,.72);
}

/* ===================== Cities Map ===================== */
.iciv-page{background:var(--iciv-bg);color:#24342f}
.iciv-hero{position:relative;min-height:760px;overflow:hidden;border-bottom:1px solid rgba(212,175,55,.35);background:#07130f}
#icivMap{height:760px;width:100%;z-index:1;background:#07130f}
.iciv-hero .hero-card{z-index:3}
.iciv-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}
.iciv-stat{border:1px solid rgba(23,53,45,.12);border-radius:18px;background:#fff;padding:14px}
.iciv-stat strong{display:block;color:var(--iciv-green);font-size:20px;line-height:1.1}
.iciv-stat span{display:block;color:#6e7a75;font-size:12px;margin-top:5px}
.iciv-map-control{position:absolute;right:22px;bottom:22px;z-index:3;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.iciv-btn{border:0;border-radius:999px;padding:11px 16px;background:#fff;color:var(--iciv-green);font-weight:800;box-shadow:0 12px 30px rgba(0,0,0,.18);cursor:pointer}
.iciv-btn:hover{background:#f5ead0}

/* ===================== Cities Markers ===================== */
.iciv-icscv-marker{position:relative;width:86px;height:102px;display:grid;place-items:center}
.iciv-icscv-marker .logo-wrap{width:68px;height:68px;border-radius:50%;overflow:hidden;background:#fff;border:3px solid var(--iciv-gold);box-shadow:0 16px 34px rgba(0,0,0,.32)}
.iciv-icscv-marker .logo-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.iciv-icscv-marker .dot{position:absolute;bottom:14px;width:16px;height:16px;border-radius:50%;background:var(--iciv-gold);border:3px solid #fff;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.iciv-icscv-marker .label{position:absolute;bottom:-8px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.96);border:1px solid rgba(212,175,55,.55);font-size:11px;font-weight:900;color:var(--iciv-green);box-shadow:0 8px 22px rgba(0,0,0,.16)}
.iciv-marker{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#fff;border:3px solid var(--iciv-gold);box-shadow:0 12px 34px rgba(0,0,0,.28);font-size:26px}
.iciv-globe-marker{cursor:pointer}
.iciv-globe-marker.hidden,.iciv-distance-marker.hidden{display:none}
.iciv-distance-marker{pointer-events:none}
.iciv-city-marker{position:relative;width:96px;height:96px;display:grid;place-items:center;filter:drop-shadow(0 16px 26px rgba(0,0,0,.34));transition:transform .22s ease,filter .22s ease}
.iciv-city-marker img{width:96px;height:96px;object-fit:contain;display:block}
.iciv-globe-marker:hover .iciv-city-marker{transform:translateY(-4px) scale(1.08);filter:drop-shadow(0 22px 34px rgba(0,0,0,.42))}
.iciv-city-marker.makkah{width:112px;height:112px;filter:drop-shadow(0 0 14px rgba(212,175,55,.42)) drop-shadow(0 18px 30px rgba(0,0,0,.38))}
.iciv-city-marker.makkah img{width:112px;height:112px}
.iciv-city-marker.makkyah-icscv{width:120px;height:120px;filter:drop-shadow(0 0 14px rgba(212,175,55,.42)) drop-shadow(0 18px 30px rgba(0,0,0,.38))}
.iciv-city-marker.makkyah-icscv img{width:120px;height:120px}
.iciv-distance-pill{white-space:nowrap;padding:9px 14px;border-radius:999px;background:#fff8e4;border:1px solid rgba(212,175,55,.7);box-shadow:0 12px 28px rgba(0,0,0,.23);font-weight:900;color:var(--iciv-green);font-size:13px}
.iciv-distance-pill.small{padding:6px 10px;font-size:11px;background:rgba(255,255,255,.9);border-color:rgba(212,175,55,.45);box-shadow:0 8px 20px rgba(0,0,0,.16)}
.iciv-distance-pill.primary{background:#fff8e4;border-color:rgba(212,175,55,.85);font-size:13px}

/* ===================== Cities Popups / Utility ===================== */
.iciv-popup{width:245px}
.iciv-popup img{width:100%;height:132px;object-fit:cover;border-radius:14px;margin-bottom:10px}
.iciv-popup strong{display:block;font-size:18px;color:var(--iciv-green)}
.iciv-popup em{display:block;font-style:normal;color:var(--iciv-gold-dark);font-weight:800;margin-top:2px}
.iciv-popup p{margin:8px 0 0;color:#52625d;line-height:1.45}
.iciv-map-error{height:100%;display:grid;place-items:center;padding:30px;color:#fff;text-align:center;background:#07130f}
.iciv-map-error div{max-width:520px;padding:24px;border:1px solid rgba(212,175,55,.35);border-radius:24px;background:rgba(255,255,255,.08)}
.maplibregl-popup-content{border-radius:18px;padding:12px;box-shadow:0 18px 45px rgba(0,0,0,.25)}
.maplibregl-ctrl-bottom-right{bottom:80px}
.iciv-next{max-width:1180px;margin:0 auto;padding:56px 22px 80px}
.iciv-next h2{font-size:clamp(28px,4vw,46px);margin:0 0 14px;color:var(--iciv-green)}
.iciv-next p{font-size:18px;line-height:1.7;color:#59645f;max-width:820px}

/* ===================== Shared Carousel ===================== */
.iciv-stories{position:relative;overflow:hidden;background:var(--iciv-bg);padding:70px 0 90px}
.iciv-stories:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 10%,rgba(212,175,55,.16),transparent 28%),radial-gradient(circle at 90% 20%,rgba(23,53,45,.08),transparent 30%);pointer-events:none}
.iciv-story-shell{position:relative;max-width:1220px;margin:0 auto}
.iciv-story-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px;padding:0 22px}
.iciv-story-kicker{display:inline-flex;padding:8px 13px;border-radius:999px;background:rgba(212,175,55,.16);color:#6d5312;font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.iciv-story-head h2{margin:14px 0 0;color:var(--iciv-green);font-size:clamp(32px,4vw,54px);line-height:1;letter-spacing:-.04em}
.iciv-story-head p{margin:0;max-width:440px;color:#586761;font-size:17px;line-height:1.6}
.iciv-carousel-actions{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin:0 22px 18px}
.iciv-carousel-count{color:#6b7772;font-size:13px;font-weight:800}
.iciv-carousel-controls{display:flex;gap:10px}
.iciv-carousel-wrap{position:relative;max-width:1220px;margin:0 auto}
.iciv-carousel-btn{width:44px;height:44px;border-radius:999px;border:1px solid rgba(212,175,55,.48);background:linear-gradient(180deg,#fffdf6,#f5ead0);color:var(--iciv-green);font-size:27px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:0 12px 28px rgba(23,53,45,.12);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.iciv-carousel-btn:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(23,53,45,.18);background:#fff8e4}
.iciv-carousel-btn:active{transform:translateY(0)}
.iciv-carousel-side{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:52px;height:52px;background:linear-gradient(180deg,#fffdf6,#f5ead0);border:1px solid rgba(212,175,55,.65);box-shadow:0 16px 36px rgba(23,53,45,.22)}
.iciv-carousel-side:hover{transform:translateY(-50%) scale(1.06)}
.iciv-carousel-prev{left:6px}
.iciv-carousel-next{right:6px}
.iciv-story-carousel{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:4px 78px 22px}
.iciv-story-carousel::-webkit-scrollbar{height:10px}
.iciv-story-carousel::-webkit-scrollbar-track{background:#eee5d2;border-radius:999px;margin:0 22px}
.iciv-story-carousel::-webkit-scrollbar-thumb{background:linear-gradient(90deg,var(--iciv-gold-dark),var(--iciv-gold));border-radius:999px;border:2px solid #eee5d2}
.iciv-story-card{position:relative;overflow:hidden;flex:0 0 min(360px,82vw);scroll-snap-align:start;border:1px solid rgba(23,53,45,.12);border-radius:28px;background:#fff;box-shadow:0 18px 45px rgba(23,53,45,.08);cursor:pointer;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.iciv-story-card:hover{transform:translateY(-5px);box-shadow:0 26px 60px rgba(23,53,45,.15);border-color:rgba(212,175,55,.55)}
.iciv-story-card.is-makkah{border-color:rgba(212,175,55,.75);box-shadow:0 22px 60px rgba(212,175,55,.18)}
.iciv-story-img{height:205px;background:var(--iciv-green);overflow:hidden}
.iciv-story-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.iciv-story-card:hover .iciv-story-img img{transform:scale(1.05)}
.iciv-story-body{padding:20px}
.iciv-story-top{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:10px}
.iciv-story-title strong{display:block;color:var(--iciv-green);font-size:23px;line-height:1.1}
.iciv-story-title em{display:block;margin-top:8px;color:var(--iciv-gold-dark);font-style:normal;font-weight:900;font-size:34px;line-height:1.15}
.iciv-story-badge{flex:0 0 auto;padding:6px 10px;border-radius:999px;background:#fff8e4;border:1px solid rgba(212,175,55,.5);color:#6d5312;font-size:11px;font-weight:900;text-transform:uppercase}
.iciv-story-summary{margin:10px 0 16px;color:#52625d;line-height:1.6;font-size:15px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.iciv-story-meta{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.iciv-story-meta span{display:block;padding:10px;border-radius:16px;background:var(--iciv-bg);border:1px solid rgba(23,53,45,.08);color:#6b7772;font-size:12px;font-weight:800}
.iciv-story-meta strong{display:block;color:var(--iciv-green);font-size:16px;margin-bottom:3px}
.iciv-story-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid rgba(23,53,45,.08);color:var(--iciv-green);font-weight:900}
.iciv-story-action span:last-child{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--iciv-green);color:#fff}

/* ===================== Prophets Page ===================== */
.prop-page{background:linear-gradient(180deg,#fffdf6 0%,#f5f0df 45%,#ece4cc 100%);color:var(--prop-text);min-height:100vh;overflow:hidden}
.prop-shell{display:block;min-height:auto}
.prop-map-wrap{width:100%;max-width:none;margin:0;min-height:760px;border:0;border-radius:0;overflow:hidden;box-shadow:none;position:relative}
#prophetsMap{position:absolute;inset:0;z-index:1;background:#e8e1c7}
.prop-map-wrap .hero-card{z-index:900}
.prop-controls{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:12px;align-items:center;max-width:1180px;margin:0 auto;padding:16px 18px 12px}
.prop-search{width:100%;border:1px solid rgba(11,90,60,.22);background:#fff;color:var(--prop-text);border-radius:14px;padding:13px 14px;outline:none;margin:0;box-shadow:0 8px 20px rgba(6,53,37,.06)}
.prop-search::placeholder{color:rgba(20,56,43,.45)}
.prop-search:focus{border-color:var(--prop-pg);box-shadow:0 0 0 3px rgba(201,162,39,.18)}
.prop-show-all{width:100%;border:1px solid rgba(201,162,39,.44);background:linear-gradient(135deg,#0b5a3c,#063525);color:#fff7d6;border-radius:14px;padding:11px 14px;margin:0;cursor:pointer;font-weight:700;letter-spacing:.02em;white-space:nowrap;box-shadow:0 10px 22px rgba(6,53,37,.15)}
.prop-show-all:hover{background:linear-gradient(135deg,#0d6a46,#07412e);border-color:var(--prop-pg2)}
.leaflet-marker-icon.prophet-medallion-icon{background:transparent!important;border:none!important}
.prop-medallion-marker{display:flex;align-items:center;justify-content:center;pointer-events:auto}
.prop-medallion-marker img{object-fit:contain;display:block;filter:drop-shadow(0 7px 15px rgba(6,53,37,.35)) drop-shadow(0 0 9px rgba(201,162,39,.32));transition:.18s ease}
.prop-medallion-marker:hover img{transform:scale(1.1);filter:drop-shadow(0 10px 22px rgba(6,53,37,.42)) drop-shadow(0 0 16px rgba(201,162,39,.55))}
.prop-dot-marker{position:relative;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#fff2a8 0%,#d7ae35 55%,#8a671b 100%);box-shadow:0 0 0 5px rgba(201,162,39,.18),0 0 24px rgba(201,162,39,.38);border:2px solid #fff}
.prop-dot-marker span{width:7px;height:7px;border-radius:50%;background:var(--prop-green2);display:block}
.prop-dot-marker i{position:absolute;inset:-10px;border-radius:50%;border:1px solid rgba(201,162,39,.4);animation:propPulse 2.6s infinite}
@keyframes propPulse{0%{transform:scale(.8);opacity:.9}100%{transform:scale(1.35);opacity:0}}
.leaflet-popup-content-wrapper{border-radius:18px}
.leaflet-control-attribution{font-size:10px}
.prop-country-label{color:#06442f;font-weight:900;font-size:16px;letter-spacing:.03em;text-align:center;text-transform:none;text-shadow:0 1px 0 #fff,0 -1px 0 #fff,1px 0 0 #fff,-1px 0 0 #fff,0 3px 8px rgba(0,0,0,.22);pointer-events:none}
.prop-country-label.major{font-size:18px;color:#063525}
.prop-country-label.region{font-size:17px;color:#9a7327;letter-spacing:.05em}
.prop-country-label span{display:block;margin-top:1px;font-size:13px;font-weight:800;color:#9a7327}
.prop-empty{flex:0 0 min(360px,82vw);padding:18px;border:1px dashed rgba(201,162,39,.45);border-radius:18px;color:var(--prop-muted);line-height:1.6;background:#fffdf7}
.prop-stories{padding-top:34px}

/* ===================== Prophets Carousel Cards ===================== */
.prop-story-carousel .prop-card{position:relative;overflow:hidden;flex:0 0 min(360px,82vw);scroll-snap-align:start;border:1px solid rgba(23,53,45,.12);border-radius:28px;background:#fff;box-shadow:0 18px 45px rgba(23,53,45,.08);cursor:pointer;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;padding:0;min-height:0}
.prop-story-carousel .prop-card:hover{transform:translateY(-5px);box-shadow:0 26px 60px rgba(23,53,45,.15);border-color:rgba(212,175,55,.55)}
.prop-story-carousel .prop-card.active{border-color:rgba(212,175,55,.75);box-shadow:0 22px 60px rgba(212,175,55,.18)}
.prop-story-img{height:205px;background:var(--iciv-green);display:grid;place-items:center;overflow:hidden}
.prop-story-img img{width:190px;height:190px;object-fit:contain;display:block;filter:drop-shadow(0 16px 26px rgba(0,0,0,.28));transition:transform .35s ease}
.prop-story-carousel .prop-card:hover .prop-story-img img{transform:scale(1.06)}
.prop-story-body{padding:20px}
.prop-story-top{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:10px}
.prop-story-title strong{display:block;color:var(--iciv-green);font-size:23px;line-height:1.1}
.prop-story-title em{display:block;margin-top:8px;color:var(--iciv-gold-dark);font-style:normal;font-weight:900;font-size:34px;line-height:1.15}
.prop-story-badge{flex:0 0 auto;padding:6px 10px;border-radius:999px;background:#fff8e4;border:1px solid rgba(212,175,55,.5);color:#6d5312;font-size:11px;font-weight:900;text-transform:uppercase}
.prop-story-summary{margin:10px 0 16px;color:#52625d;line-height:1.6;font-size:15px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.prop-story-meta{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.prop-story-meta span{display:block;padding:10px;border-radius:16px;background:var(--iciv-bg);border:1px solid rgba(23,53,45,.08);color:#6b7772;font-size:12px;font-weight:800}
.prop-story-meta strong{display:block;color:var(--iciv-green);font-size:16px;margin-bottom:3px}
.prop-story-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid rgba(23,53,45,.08);color:var(--iciv-green);font-weight:900}
.prop-story-action span:last-child{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--iciv-green);color:#fff}

/* ===================== Shared Medallion Popup ===================== */
.interactive-medallion-popup{width:360px;height:360px;display:grid;place-items:center;padding:0;background:transparent}
.interactive-medallion-popup img{width:350px;height:350px;object-fit:contain;display:block;filter:drop-shadow(0 24px 38px rgba(0,0,0,.42))}
.interactive-medallion-popup-fallback{width:300px!important;height:300px!important;border-radius:50%;object-fit:cover!important;background:transparent;padding:0;border:0}
.leaflet-popup-content:has(.interactive-medallion-popup){margin:0}
.leaflet-popup-content-wrapper:has(.interactive-medallion-popup),.maplibregl-popup-content:has(.interactive-medallion-popup){padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.leaflet-popup-tip-container:has(.interactive-medallion-popup),.maplibregl-popup-tip{display:none}

/* ===================== Responsive ===================== */
@media(max-width:980px){
  .iciv-story-head{display:block}
  .iciv-story-head p{margin-top:16px}
}
@media(max-width:760px){
  .iciv-hero,#icivMap{height:860px}
  .iciv-card{left:14px;right:14px;top:18px;padding:20px;border-radius:22px}
  .iciv-stats{grid-template-columns:1fr}
  .iciv-map-control{left:14px;right:14px;bottom:14px}
  .iciv-btn{flex:1}
  .iciv-city-marker,.iciv-city-marker img{width:78px;height:78px}
  .iciv-city-marker.makkah,.iciv-city-marker.makkah img{width:92px;height:92px}
  .iciv-city-marker.makkyah-icscv,.iciv-city-marker.makkyah-icscv img{width:96px;height:96px}
  .prop-map-wrap{min-height:720px;margin:0;border-radius:0}
  .prop-controls{grid-template-columns:1fr;padding:14px 12px 10px}
}
@media(max-width:640px){
  .iciv-stories{padding:46px 0 70px}
  .iciv-story-head{padding:0 14px}
  .iciv-carousel-actions{margin-left:14px;margin-right:14px}
  .iciv-carousel-side{width:42px;height:42px;font-size:24px}
  .iciv-carousel-prev{left:4px}
  .iciv-carousel-next{right:4px}
  .iciv-story-carousel{padding-left:58px;padding-right:58px}
  .iciv-story-img,.prop-story-img{height:210px}
  .iciv-story-title em,.prop-story-title em{font-size:30px}
  .interactive-medallion-popup{width:285px;height:285px}
  .interactive-medallion-popup img{width:275px;height:275px}
  .interactive-medallion-popup-fallback{width:230px!important;height:230px!important}
}

/* =========================================================   PROPHETS PAGE   ========================================================= */
.prophets-page{background:radial-gradient(circle at top,rgba(218,177,83,.13),transparent 38%),linear-gradient(180deg,#f7f0df 0%,#fff9eb 48%,#f5ecd8 100%)}
.prophets-hero-card{min-height:440px;background-size:cover;background-position:center}

/* =========================================================   PROPHETS FAMILY TREE   ========================================================= */
.prophets-tree-section{padding:clamp(34px,5vw,72px) 18px}
.prophets-tree-shell{width:min(1440px,100%);margin:0 auto;border:1px solid rgba(176,131,45,.35);border-radius:30px;background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,248,231,.94)),radial-gradient(circle at 50% 0%,rgba(2,93,58,.10),transparent 40%);box-shadow:0 24px 70px rgba(20,35,25,.12);overflow:hidden;position:relative}
.prophets-tree-shell::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;background-image:linear-gradient(30deg,rgba(13,88,55,.45) 12%,transparent 12.5%,transparent 87%,rgba(13,88,55,.45) 87.5%,rgba(13,88,55,.45)),linear-gradient(150deg,rgba(13,88,55,.45) 12%,transparent 12.5%,transparent 87%,rgba(13,88,55,.45) 87.5%,rgba(13,88,55,.45));background-size:54px 94px}
.prophets-tree-head{position:relative;z-index:2;padding:34px 22px 18px;text-align:center;background:linear-gradient(135deg,#063f2b,#0a6b43);color:#fff8df;border-bottom:4px solid #c9a14c}
.prophets-tree-head span{display:inline-flex;align-items:center;gap:8px;color:#d7bd75;text-transform:uppercase;letter-spacing:.22em;font-weight:800;font-size:.78rem}
.prophets-tree-head h2{margin:8px 0;font-size:clamp(2rem,4vw,4.2rem);line-height:1;letter-spacing:.03em}
.prophets-tree-head p{width:min(760px,92%);margin:0 auto;color:rgba(255,248,223,.86);font-size:1rem;line-height:1.65}

.prophets-tree-tools{position:relative;z-index:3;display:flex;justify-content:center;flex-wrap:wrap;gap:10px;padding:18px 16px 0}
.pt-btn{border:1px solid rgba(11,92,58,.22);background:#fff9e8;color:#08462f;border-radius:999px;padding:10px 16px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.06)}
.pt-btn:hover,.pt-btn.active{background:#0b5c3a;color:#fff8df;border-color:#0b5c3a}

.prophets-tree-scroll{position:relative;z-index:2;width:100%;overflow-x:auto;padding:30px 18px 20px}
.prophets-tree{position:relative;min-width:1120px;height:800px;margin:0 auto}
.pt-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:1}

.pt-line{fill:none;stroke:var(--prop-pg);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 1px rgba(255,255,255,.7));}
.pt-line.branch{stroke-width:3;opacity:.9;}
.pt-line.dashed{stroke-dasharray:8 9;stroke-width:3;opacity:.8;}
.pt-line.hidden{display:none;}

/* Medallion only — no generated circle behind image */
.pt-node{position:absolute;width:96px;height:96px;transform:translate(-50%,-50%);z-index:4;border-radius:50%;cursor:pointer;border:0;padding:0;background:transparent}
.pt-node-inner{width:100%;height:100%;border-radius:50%;padding:0;background:transparent;box-shadow:none;transition:transform .2s ease,filter .2s ease;display:block}
.pt-node:hover .pt-node-inner{transform:scale(1.07);filter:drop-shadow(0 14px 22px rgba(0,0,0,.22))}
.pt-node img{width:100%;height:100%;object-fit:contain;border-radius:50%;display:block;background:transparent}

/* Fallback only if image is missing */
/* Text-only fallback when medallion image is missing */
.pt-node-fallback{width:auto;height:auto;border-radius:0;display:inline-block;background:transparent;border:0;padding:0;color:#063f2b;font-weight:900;font-size:.9rem;line-height:1.15;text-align:center;white-space:nowrap;text-shadow:0 1px 0 rgba(255,255,255,.9),0 3px 8px rgba(0,0,0,.16);}
.pt-node:has(.pt-node-fallback){width:auto;height:auto;min-width:72px;border-radius:0;}
.pt-node:has(.pt-node-fallback) .pt-node-inner{width:auto;height:auto;border-radius:0;background:transparent;box-shadow:none;}
.pt-node:has(.pt-node-fallback):hover .pt-node-inner{transform:scale(1.06);filter:none;}

/* Hide names under medallions */
.pt-label{display:none}
.prophets-legend{position:relative;z-index:3;display:flex;justify-content:center;flex-wrap:wrap;gap:22px;padding:18px 16px 28px;color:#063f2b;font-weight:800}
.prophets-legend span{display:inline-flex;align-items:center;gap:9px}
.prophets-legend .line{width:42px;height:0;border-top:4px solid var(--prop-pg);display:inline-block;}
.prophets-legend .line.branch{border-top-width:3px;opacity:.85}
.prophets-legend .line.dashed{border-top-style:dashed;opacity:.75}
.node-dot{width:20px;height:20px;border-radius:50%;background:radial-gradient(circle,#fff7dc 0%,#d7bd75 45%,#0b5c3a 48%,#063f2b 100%);display:inline-block}

/* Mobile */
@media(max-width:760px){
  .prophets-tree-section{padding:28px 10px}
  .prophets-tree-scroll{padding:24px 10px 18px}
  .prophets-tree{min-width:920px;height:1120px}
  .pt-node{width:82px;height:82px}
}

/* ========================================================= PROPHET AYAT REVEAL (family tree click) ========================================================= */
.pt-ayat-kicker{color:#b08a2e}
.pt-ayat-section .pt-ayat-head h2{color:#0A3B2A}
.pt-ayat-section .pt-ayat-head h2 em{color:#b08a2e}
.pt-ayat-section .pt-ayat-close{border-color:rgba(15,81,50,.25);background:#fff;color:#0f5132}
.pt-ayat-section .pt-ayat-close:hover{background:rgba(15,81,50,.08)}
.pt-ayat-section .pt-ayat-nav{border-color:rgba(212,175,55,.5);background:#fff;color:#b08a2e}
.pt-ayat-section .pt-ayat-nav:hover{background:rgba(212,175,55,.15)}
.pt-ayat-section .pt-aya-card{background:#fff;border:1px solid rgba(212,175,55,.4);box-shadow:0 14px 34px rgba(10,59,42,.1)}
.pt-ayat-section .pt-aya-theme{background:rgba(15,81,50,.07);border-color:rgba(212,175,55,.45);color:#0f5132}
.pt-ayat-section .pt-aya-arabic{color:#123c2a;text-shadow:none}
.pt-ayat-section .pt-aya-translation{color:#4a5a50}
.pt-ayat-section .pt-aya-ref{color:#b08a2e}
.pt-ayat-section .pt-aya-skel{background:linear-gradient(90deg,rgba(15,81,50,.06),rgba(15,81,50,.14),rgba(15,81,50,.06));background-size:200% 100%}
.pt-ayat-section .pt-ayat-medallion{border-color:rgba(212,175,55,.55);box-shadow:0 8px 20px rgba(10,59,42,.18)}
.pt-ayat-section .pt-aya-surah{margin:0 0 2px;color:#8a6d1d;font-family:"Cormorant Garamond",Georgia,serif;font-size:.92rem;font-weight:700;letter-spacing:.06em}
.pt-ayat-shell{width:min(1440px,100%);margin:0 auto}
/* header */
.pt-ayat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.pt-ayat-title{display:flex;align-items:center;gap:16px}
.pt-ayat-medallion{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid rgba(227,199,126,.6);box-shadow:0 8px 24px rgba(0,0,0,.3);background:#fff}
.pt-ayat-kicker{display:inline-block;margin-bottom:4px;font-size:.64rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#E3C77E}
.pt-ayat-head h2{margin:0;color:#FDFBF4;font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(1.4rem,2.4vw,2rem);font-weight:700;line-height:1.15}
.pt-ayat-head h2 em{font-family:"Amiri","Scheherazade New",serif;font-style:normal;color:#E3C77E;margin-right:8px}
.pt-ayat-close{flex:none;width:38px;height:38px;border-radius:50%;border:1px solid rgba(250,246,236,.3);background:rgba(250,246,236,.08);color:#FAF6EC;font-size:1.3rem;line-height:1;cursor:pointer;transition:background .25s,transform .25s}
.pt-ayat-close:hover{background:rgba(250,246,236,.18);transform:rotate(90deg)}

/* carousel */
.pt-ayat-carousel-wrap{position:relative;display:flex;align-items:center;gap:10px}
.pt-ayat-carousel{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 2px 14px;scrollbar-width:thin;scrollbar-color:rgba(227,199,126,.5) transparent}
.pt-ayat-carousel::-webkit-scrollbar{height:6px}
.pt-ayat-carousel::-webkit-scrollbar-thumb{background:rgba(227,199,126,.45);border-radius:99px}
.pt-ayat-nav{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid rgba(227,199,126,.4);background:rgba(250,246,236,.07);color:#E3C77E;font-size:1.5rem;line-height:1;cursor:pointer;transition:background .25s,transform .25s}
.pt-ayat-nav:hover{background:rgba(227,199,126,.2);transform:scale(1.08)}
/* ---- aya cards container: duplicates the tree shell treatment ---- */
.pt-ayat-carousel-wrap{position:relative;padding:clamp(16px,2vw,26px);border:1px solid rgba(176,131,45,.35);border-radius:30px;background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,248,231,.94)),radial-gradient(circle at 50% 0%,rgba(2,93,58,.10),transparent 40%);box-shadow:0 24px 70px rgba(20,35,25,.12);overflow:hidden}
.pt-ayat-carousel-wrap::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;background-image:linear-gradient(30deg,rgba(13,88,55,.45) 12%,transparent 12.5%,transparent 87%,rgba(13,88,55,.45) 87.5%,rgba(13,88,55,.45)),linear-gradient(150deg,rgba(13,88,55,.45) 12%,transparent 12.5%,transparent 87%,rgba(13,88,55,.45) 87.5%,rgba(13,88,55,.45));background-size:54px 94px}

/* keep cards and arrows above the lattice overlay */
.pt-ayat-carousel-wrap>*{position:relative;z-index:1}

/* cards: a bit more lift so they float over the lattice */
.pt-ayat-section .pt-aya-card{box-shadow:0 12px 30px rgba(10,59,42,.14);border-color:rgba(212,175,55,.5)}
/* aya cards — echoes the site's aya section language */
.pt-aya-card{flex:0 0 min(420px,86vw);scroll-snap-align:center;padding:26px 24px;border-radius:18px;background:rgba(250,246,236,.06);border:1px solid rgba(227,199,126,.35);backdrop-filter:blur(6px);text-align:center;opacity:0;transform:translateY(16px);animation:ptAyaIn .7s cubic-bezier(.22,.61,.36,1) forwards}
@keyframes ptAyaIn{to{opacity:1;transform:none}}
.pt-aya-theme{display:inline-block;margin-bottom:12px;padding:4px 12px;border-radius:999px;background:rgba(227,199,126,.14);border:1px solid rgba(227,199,126,.4);color:#E3C77E;font-size:.62rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.pt-aya-arabic{margin:0 0 4px;color:#FDFBF4;font-family:"Amiri","Scheherazade New","Noto Naskh Arabic",serif;font-size:clamp(1.2rem,1.8vw,1.55rem);line-height:2;font-weight:700;direction:rtl;text-shadow:0 2px 18px rgba(0,0,0,.25)}
.pt-aya-divider{width:52px;height:2px;margin:12px auto;border-radius:2px;background:linear-gradient(90deg,transparent,#E3C77E,transparent)}
.pt-aya-translation{margin:0 0 10px;color:rgba(250,246,236,.86);font-family:"Cormorant Garamond",Georgia,serif;font-style:italic;font-size:1.02rem;line-height:1.65}
.pt-aya-ref{margin:0;color:#E3C77E;font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.pt-aya-ref:before,.pt-aya-ref:after{content:" — ";color:#d4af37}
.pt-aya-empty{opacity:.85}

/* active tree medallion */
.pt-node.pt-node-active .pt-node-inner{box-shadow:0 0 0 3px #E3C77E,0 10px 28px rgba(0,0,0,.35);border-radius:50%}
.pt-node.pt-node-active .pt-label{color:#b08a2e;font-weight:800}

@media(max-width:700px){
  .pt-ayat-head{flex-wrap:wrap}
  .pt-ayat-medallion{width:52px;height:52px}
  .pt-aya-card{flex-basis:88vw;padding:20px 16px}
  .pt-ayat-nav{display:none}
}
@media(prefers-reduced-motion:reduce){
  .pt-aya-card{animation:none;opacity:1;transform:none}
  .pt-ayat-close,.pt-ayat-nav{transition:none}
}


/* =========================================================
   SEERAH PAGE
========================================================= */

:root {
  --seerah-green: #0f5132;
  --seerah-green-2: #0b3f2a;
  --seerah-gold: #c9a227;
  --seerah-gold-2: #e7c85b;
  --seerah-cream: #fff8df;
  --seerah-paper: #fffdf6;
  --seerah-sand: #f4ecd8;
  --seerah-ink: #17352d;
  --seerah-shadow: 0 24px 70px rgba(6,63,43,.16);
}

.seerah-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(201,162,39,.18), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(6,63,43,.12), transparent 34%),
    linear-gradient(180deg, #fff8e6 0%, #efe2bf 100%);
  color: var(--seerah-ink);
}

.seerah-kicker {
  margin: 0 0 8px;
  color: var(--seerah-gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 1000;
}

/* =========================================================
   HERO
========================================================= */

.seerah-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

.seerah-hero-card {
  position: relative;
  min-height: clamp(420px, 58vw, 720px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.seerah-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 44%, rgba(255,248,223,.14), transparent 24%),
    linear-gradient(90deg, rgba(5,38,28,.86) 0%, rgba(5,38,28,.58) 38%, rgba(5,38,28,.18) 70%, rgba(5,38,28,.42) 100%);
}

.seerah-hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin-left: max(18px, calc((100vw - 1440px) / 2 + 18px));
  padding: clamp(24px, 4vw, 44px);
  border-radius: 30px;
  color: var(--seerah-cream);
  background: linear-gradient(135deg, rgba(6,63,43,.86), rgba(7,23,53,.56));
  border: 1px solid rgba(231,200,91,.45);
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(3px);
}

.seerah-hero-content h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 82px);
  line-height: .95;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.seerah-hero-content p:last-child {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255,248,223,.88);
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 700;
  line-height: 1.55;
}

/* =========================================================
   MAP SECTION
========================================================= */

.seerah-map-section {
  padding: clamp(34px, 5vw, 76px) 18px;
}

.seerah-map-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  border-radius: 34px;
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 50% 0%, rgba(201,162,39,.16), transparent 42%),
    linear-gradient(180deg, rgba(255,253,246,.96), rgba(246,236,216,.96));
  border: 1px solid rgba(176,131,45,.35);
  box-shadow: var(--seerah-shadow);
}

.seerah-map-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 24px;
}

.seerah-map-head h2 {
  margin: 0;
  color: var(--seerah-green);
  font-size: clamp(34px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -.045em;
}

.seerah-map-head p:last-child {
  margin: 12px auto 0;
  color: rgba(23,53,45,.76);
  font-weight: 700;
  line-height: 1.65;
}

.seerah-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr);
  gap: 20px;
  align-items: stretch;
}

.seerah-map-wrap {
  position: relative;
  min-width: 0;
}

.seerah-map-canvas {
  min-height: 640px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(176,131,45,.38);
  background: #e7ddc4;
  box-shadow: 0 18px 44px rgba(6,63,43,.12);
}

.seerah-map-canvas .leaflet-control-attribution {
  font-size: 10px;
}

/* warm parchment tint on top of the map tiles */
.seerah-map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,248,223,.12), transparent 46%),
    linear-gradient(180deg, rgba(201,162,39,.07), rgba(15,81,50,.05));
  mix-blend-mode: multiply;
}

.seerah-map-panel {
  border-radius: 26px;
  padding: clamp(20px, 2.5vw, 28px);
  background:
    radial-gradient(circle at 50% 0%, rgba(201,162,39,.14), transparent 34%),
    linear-gradient(180deg, #fffdf8, #f6edd8);
  border: 1px solid rgba(176,131,45,.32);
  box-shadow: 0 18px 44px rgba(6,63,43,.10);
}

.seerah-panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 11px;
  color: #553c06;
  background: linear-gradient(180deg, var(--seerah-gold-2), var(--seerah-gold));
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .10em;
}

.seerah-map-panel h3 {
  margin: 16px 0 6px;
  color: var(--seerah-green);
  font-size: clamp(30px, 3vw, 46px);
  line-height: .95;
  letter-spacing: -.035em;
}

.seerah-panel-arabic {
  margin: 0 0 16px;
  color: #8b6b1e;
  font-size: 26px;
  font-weight: 900;
}

.seerah-panel-summary {
  margin: 0;
  color: rgba(23,53,45,.80);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.seerah-panel-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}

.seerah-panel-meta div {
  border-radius: 18px;
  padding: 14px;
  background: rgba(15,81,50,.07);
  border: 1px solid rgba(176,131,45,.22);
}

.seerah-panel-meta strong {
  display: block;
  color: var(--seerah-green);
  font-size: 15px;
  line-height: 1.2;
}

.seerah-panel-meta span {
  display: block;
  margin-top: 5px;
  color: rgba(23,53,45,.58);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.seerah-route-note {
  border-radius: 18px;
  padding: 15px;
  color: rgba(255,248,223,.92);
  background: linear-gradient(135deg, var(--seerah-green), var(--seerah-green-2));
  border: 1px solid rgba(231,200,91,.32);
  font-weight: 700;
  line-height: 1.55;
}

.seerah-map-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 450;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 10px;
  border-radius: 999px;
  background: rgba(255,253,246,.92);
  border: 1px solid rgba(176,131,45,.30);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  backdrop-filter: blur(4px);
}

.seerah-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--seerah-green);
  font-size: 12px;
  font-weight: 900;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-hijrah {
  background: var(--seerah-gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,.20);
}

.legend-secondary {
  background: #8c7a46;
}

.legend-place {
  background: var(--seerah-green);
}

/* =========================================================
   LEAFLET CUSTOM STYLING
========================================================= */

.seerah-marker {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #543b05;
  background: linear-gradient(180deg, var(--seerah-gold-2), var(--seerah-gold));
  border: 3px solid rgba(255,248,223,.95);
  box-shadow:
    0 0 0 4px rgba(201,162,39,.28),
    0 12px 24px rgba(0,0,0,.28);
  font-size: 15px;
  font-weight: 1000;
}

.seerah-marker.major {
  width: 42px;
  height: 42px;
  font-size: 18px;
  box-shadow:
    0 0 0 5px rgba(201,162,39,.30),
    0 0 22px rgba(231,200,91,.58),
    0 14px 30px rgba(0,0,0,.32);
}

.seerah-marker.revelation { background: linear-gradient(180deg, #fff2a5, #d6a83b); }
.seerah-marker.battle { background: linear-gradient(180deg, #e7c85b, #a66b22); color: #fff8df; }
.seerah-marker.hajj { background: linear-gradient(180deg, #fff8df, #d2b05a); }
.seerah-marker.treaty { background: linear-gradient(180deg, #d7eed8, #75a56a); color: #123d27; }
.seerah-marker.oasis { background: linear-gradient(180deg, #bfe8ce, #2d8a58); color: #fff8df; }

.seerah-marker.is-active {
  transform: scale(1.16);
  box-shadow:
    0 0 0 6px rgba(231,200,91,.34),
    0 0 30px rgba(231,200,91,.78),
    0 18px 34px rgba(0,0,0,.34);
}

.seerah-tooltip {
  border: 1px solid rgba(176,131,45,.35);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--seerah-green);
  background: rgba(255,253,246,.94);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.seerah-tooltip::before {
  display: none;
}

.seerah-route-hijrah {
  filter:
    drop-shadow(0 0 5px rgba(231,200,91,.85))
    drop-shadow(0 0 14px rgba(201,162,39,.55));
}

.seerah-route-secondary {
  filter: drop-shadow(0 0 4px rgba(15,81,50,.25));
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {
  .seerah-map-layout {
    grid-template-columns: 1fr;
  }

  .seerah-map-canvas {
    min-height: 520px;
  }

  .seerah-map-panel {
    order: -1;
  }
}

@media (max-width: 640px) {
  .seerah-hero-card {
    min-height: 520px;
  }

  .seerah-hero-content {
    margin: 18px;
    width: auto;
  }

  .seerah-map-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .seerah-map-shell {
    border-radius: 24px;
  }

  .seerah-map-canvas {
    min-height: 460px;
    border-radius: 20px;
  }

  .seerah-map-legend {
    position: static;
    margin-top: 10px;
    border-radius: 18px;
  }

  .seerah-panel-meta {
    grid-template-columns: 1fr;
  }
}
