/* DANZO — shared design for every country page */
:root{--navy:#0d1b36;--navy2:#13264a;--ink:#14213d;--text:#4a5568;--muted:#6b7686;--line:#e4e8ef;--bg:#ffffff;--soft:#f6f8fb;--gold:#ffbd45;--orange:#ff7849;--pink:#ed3f83;
 --serif:"Playfair Display",Georgia,serif;--sans:"DM Sans",system-ui,sans-serif;--radius:12px;--shadow:0 6px 22px rgba(13,27,54,.08);--head:62px}
html[lang="fa"]{--serif:"Vazirmatn",Tahoma,sans-serif;--sans:"Vazirmatn",Tahoma,sans-serif}
html[lang="fa"] *{letter-spacing:0!important}html[lang="fa"] em,html[lang="fa"] i{font-style:normal}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:calc(var(--head) + 10px)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);line-height:1.55}
a{color:inherit;text-decoration:none}img{max-width:100%;display:block}button,input{font:inherit}
.wrap{width:min(1280px,calc(100% - 48px));margin-inline:auto}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.skip{position:absolute;inset-inline-start:-999px;top:6px;z-index:300;background:var(--gold);color:#111;padding:8px 12px;border-radius:8px;font-weight:700}.skip:focus{inset-inline-start:8px}
.ar::after{content:"→"}html[dir="rtl"] .ar::after{content:"←"}

/* ===== Header ===== */
.top{position:sticky;top:0;z-index:100;background:var(--navy);color:#fff;box-shadow:0 2px 14px rgba(0,0,0,.25)}
.top .wrap{height:var(--head);display:flex;align-items:center;gap:12px;width:min(1400px,calc(100% - 24px))}
.logo{display:flex;align-items:center;gap:10px;flex:none}
.logo img{width:44px;height:44px;border-radius:50%;box-shadow:0 0 0 2px rgba(255,255,255,.15)}
.logo b{display:block;font:800 22px/1 "Playfair Display",Georgia,serif;letter-spacing:.02em}
.logo small{display:block;font-size:8.5px;letter-spacing:.2em;text-transform:uppercase;color:#aab6c8;margin-top:3px}
.mainnav{display:flex;align-items:center;gap:0;margin-inline-start:4px;font-size:12px;font-weight:600}
.mainnav>a,.mainnav .dd>button{padding:8px 6px;border-radius:8px;color:#e7edf6;background:none;border:0;cursor:pointer;white-space:nowrap}
.mainnav>a:hover,.mainnav .dd>button:hover,.mainnav a[aria-current]{color:var(--gold)}
.dd{position:relative}.dd>button::after{content:"▾";margin-inline-start:4px;font-size:10px}
.dd-menu{position:absolute;top:100%;inset-inline-start:0;min-width:200px;background:#fff;color:var(--ink);border-radius:10px;box-shadow:0 14px 40px rgba(0,0,0,.2);padding:8px;display:none}
.dd:hover .dd-menu,.dd:focus-within .dd-menu,.dd.open .dd-menu{display:block}
.dd-menu a{display:block;padding:8px 10px;border-radius:7px;font-weight:600}.dd-menu a:hover{background:var(--soft);color:#c2410c}
.tools{margin-inline-start:auto;display:flex;align-items:center;gap:10px;flex:none}
.icon-btn{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;border:0;background:transparent;color:#fff;cursor:pointer}.icon-btn:hover{background:rgba(255,255,255,.1)}
.icon-btn svg{width:20px;height:20px}
.searchbox{display:none;position:absolute;top:var(--head);inset-inline:0;background:var(--navy2);padding:12px 0}
.searchbox.open{display:block}.searchbox form{display:flex;gap:8px}
.searchbox input{flex:1;border:0;border-radius:24px;padding:11px 18px;outline:0}.searchbox button{border:0;border-radius:24px;padding:0 20px;background:var(--gold);font-weight:700;cursor:pointer}
.lang{display:flex;border:1px solid rgba(255,255,255,.25);border-radius:22px;overflow:hidden;direction:ltr}
.lang button{border:0;background:transparent;color:#c9d3e2;padding:7px 11px;font:700 12px "DM Sans",sans-serif;cursor:pointer}
.lang button.active{background:linear-gradient(100deg,var(--orange),var(--pink));color:#fff}
.burger{display:none}

/* ===== Hero ===== */
.hero{position:relative;height:clamp(240px,24vw,380px);overflow:hidden;background:#cfd8e3}
.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.hero-glow{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:20px;
 background:radial-gradient(ellipse 28% 70% at 50% 52%,rgba(255,255,255,.96) 0%,rgba(255,255,255,.9) 45%,rgba(255,255,255,.5) 74%,rgba(255,255,255,0) 100%)}
.hero-text{max-width:440px}
.flag{display:inline-flex;width:86px;height:54px;box-shadow:0 4px 14px rgba(0,0,0,.18);margin-bottom:10px;overflow:hidden}
.flag.h{flex-direction:column}.flag span{flex:1}.flag.svg{background:none}.flag.svg svg,.flag.svg img{width:100%;height:100%;display:block;object-fit:cover}
.hero h1{margin:0;font:800 clamp(34px,4.6vw,62px)/1 var(--serif);color:var(--navy);letter-spacing:.02em;text-transform:uppercase}
html[lang="fa"] .hero h1{font-weight:900;line-height:1.3}
.hero p{margin:8px auto 0;font:italic 500 clamp(14px,1.45vw,19px)/1.4 var(--serif);color:#1d2b45;max-width:360px}
html[lang="fa"] .hero p{font-style:normal;line-height:1.8}

/* ===== Sections ===== */
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--muted);padding:12px 0 2px}
.crumbs a:hover{color:var(--navy);text-decoration:underline}.crumbs li{list-style:none;display:flex;gap:8px}
.crumbs ol{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.crumbs li+li::before{content:">";color:#9aa4b2}html[dir="rtl"] .crumbs li+li::before{content:"<"}
.crumbs [aria-current]{color:var(--navy);font-weight:700}
.sec{padding:10px 0 22px}
.sec h2,.page-title{font:800 clamp(26px,2.9vw,38px)/1.15 var(--serif);color:var(--navy);margin:0 0 8px}
.page-title{font-size:clamp(30px,3.4vw,44px);margin-top:4px}
.lead{color:var(--text);font-size:15px;max-width:1080px;margin:0 0 18px}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:12px}
.sec-head .lead{margin:0}
.pill-btn{display:inline-flex;align-items:center;gap:8px;background:var(--navy);color:#fff;font-weight:700;font-size:13px;padding:10px 20px;border-radius:30px;white-space:nowrap;transition:background .2s,transform .2s}
.pill-btn:hover{background:#1e3a6e;transform:translateY(-1px)}

/* Dance cards */
.dances{display:grid;grid-template-columns:repeat(var(--cols,6),1fr);gap:14px}
.dances[style*="--cols: 7"],.dances[style*="--cols: 8"]{gap:10px}.dances[style*="--cols: 7"] .dcard h3,.dances[style*="--cols: 8"] .dcard h3{font-size:15px}.dances[style*="--cols: 8"] .dcard p{font-size:12px}
.dcard{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);overflow:hidden;transition:transform .25s,box-shadow .25s}
.dcard:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(13,27,54,.14)}
.dcard .ph{aspect-ratio:200/130;overflow:hidden;background:var(--soft);position:relative}
.dcard .ph img{width:100%;height:100%;object-fit:cover;transition:transform .5s}.dcard:hover .ph img{transform:scale(1.05)}
.dcard .body{padding:10px 12px 14px}
.dcard h3{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px;font:700 17px/1.25 var(--serif);color:var(--navy)}
.go{flex:none;width:20px;height:20px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:11px;font-family:var(--sans)}
.dcard p{margin:0;color:var(--text);font-size:13px;line-height:1.45}

/* Heritage cards */
.heritage{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.hcard{position:relative;min-height:220px;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);overflow:hidden;padding:16px 14px 18px}
.hcard .art{position:absolute;inset-block:0;inset-inline-end:0;width:46%;z-index:0}
.hcard .art img{width:100%;height:100%;object-fit:cover;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 30%);mask-image:linear-gradient(90deg,transparent 0%,#000 30%)}
html[dir="rtl"] .hcard .art img{-webkit-mask-image:linear-gradient(270deg,transparent 0%,#000 30%);mask-image:linear-gradient(270deg,transparent 0%,#000 30%)}
.hcard .art.map{width:46%;display:grid;place-items:center;padding:8px}
.hcard .art.map svg{width:100%;height:auto}
.hcard>*:not(.art){position:relative;z-index:1}
.hcard .ico{width:34px;height:34px;color:var(--navy);margin-bottom:8px}
.hcard h3{margin:0 0 8px;font:700 17px/1.25 var(--serif);color:var(--navy);max-width:62%}
.hcard p{margin:0 0 14px;color:var(--text);font-size:12.5px;line-height:1.5;max-width:58%;text-shadow:0 0 6px #fff,0 0 2px #fff}
.hcard .map-wide{display:block;margin:-6px 0 12px}.hcard .map-wide svg{width:100%;height:auto;display:block}
.hcard:has(.map-wide) p{max-width:none}
.hcard ul{margin:0 0 14px;padding-inline-start:16px;color:var(--text);font-size:12.5px;line-height:1.6;max-width:60%;text-shadow:0 0 6px #fff,0 0 2px #fff}
.hcard .pill-btn{margin-top:auto;align-self:flex-start}

/* Places */
.places{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.place{position:relative;aspect-ratio:200/150;border-radius:6px;overflow:hidden;box-shadow:var(--shadow);background:var(--soft)}
.place img{width:100%;height:100%;object-fit:cover;transition:transform .5s}.place:hover img{transform:scale(1.06)}
.place::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(5,12,28,.82))}
.place span{position:absolute;inset-inline:10px;bottom:9px;z-index:1;color:#fff;font:700 16px/1.2 var(--serif);text-shadow:0 1px 6px rgba(0,0,0,.6)}
.place .ext{position:absolute;top:8px;inset-inline-end:8px;z-index:1;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.9);color:var(--navy);display:grid;place-items:center;font-size:11px;opacity:0;transition:opacity .2s}
.place:hover .ext{opacity:1}

/* Missing photo placeholder (from i18n.js) */
.img-missing{background:linear-gradient(135deg,#ed3f83,#7657ff 55%,#22bdd0)!important}

/* ===== Footer ===== */
.foot{margin-top:28px;background:var(--navy);color:#b9c4d4;padding:28px 0 18px;font-size:13px}
.foot .row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.foot .logo b{color:#fff}.foot p{margin:8px 0 0;max-width:420px}
.foot nav{display:flex;flex-wrap:wrap;gap:16px}.foot nav a:hover{color:var(--gold)}
.foot .rights{border-top:1px solid rgba(255,255,255,.12);margin-top:18px;padding-top:14px;text-align:center;color:#d9e1ec;font-weight:600}

/* ===== Responsive ===== */
@media(max-width:1300px){.logo small{display:none}}
@media(max-width:1200px){.mainnav{display:none}.burger{display:grid}
 .mainnav.open{display:flex;position:absolute;top:var(--head);inset-inline:0;flex-direction:column;align-items:stretch;background:var(--navy2);padding:10px 16px 16px;gap:0;max-height:calc(100dvh - var(--head));overflow:auto}
 .mainnav.open>a,.mainnav.open .dd>button{padding:12px 6px;border-bottom:1px solid rgba(255,255,255,.08);text-align:start;width:100%;font-size:15px}
 .mainnav.open .dd-menu{position:static;box-shadow:none;background:transparent;color:#fff;display:block;padding:0 12px}
 .mainnav.open .dd-menu a:hover{background:rgba(255,255,255,.08);color:var(--gold)}}
@media(max-width:1100px){.dances,.places{grid-template-columns:repeat(3,1fr)}.dances[style*="--cols: 8"]{grid-template-columns:repeat(4,1fr)}.heritage{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.dances[style*="--cols: 8"]{grid-template-columns:repeat(2,1fr)}.wrap{width:calc(100% - 32px)}.logo small{display:none}.logo b{font-size:19px}.logo img{width:38px;height:38px}
 .dances,.places{grid-template-columns:repeat(2,1fr);gap:10px}.heritage{grid-template-columns:1fr}
 .hero{height:300px}.hero>img{object-position:30% center}.hero-glow{background:radial-gradient(ellipse 75% 60% at 50% 52%,rgba(255,255,255,.95) 0%,rgba(255,255,255,.88) 50%,rgba(255,255,255,.3) 85%,rgba(255,255,255,0) 100%)}
 .sec-head{flex-direction:column;align-items:flex-start}.dcard h3{font-size:15px}.lang button{padding:7px 8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* breadcrumb row + share button */
.crumbs-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.share{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--navy);font-weight:600;font-size:13px;cursor:pointer;padding:8px 4px}
.share svg{width:16px;height:16px}.share:hover{color:#c2410c}
/* heritage cards with the photo on top ("heritageStyle":"top") */
.heritage.photo-top .hcard{padding-top:0}
.heritage.photo-top .hcard .art{position:relative;inset:auto;width:auto;height:var(--art-h,130px);margin:0 -14px 10px}
.heritage.photo-top .hcard .art img{-webkit-mask-image:linear-gradient(180deg,#000 82%,transparent 100%);mask-image:linear-gradient(180deg,#000 82%,transparent 100%)}
.heritage.photo-top .hcard .ico{position:absolute;top:12px;inset-inline-start:12px;width:44px;height:44px;padding:7px;background:#fff;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.15);z-index:2}
.heritage.photo-top .hcard h3,.heritage.photo-top .hcard p,.heritage.photo-top .hcard ul{max-width:none}
/* famous places with a short description */
.place.with-desc{aspect-ratio:auto;display:flex;flex-direction:column;background:var(--navy)}
.place.with-desc::after{display:none}
.place.with-desc .pimg{aspect-ratio:200/90;overflow:hidden}.place.with-desc .pimg img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.place.with-desc:hover .pimg img{transform:scale(1.06)}
.place.with-desc .pband{padding:8px 10px 11px;color:#fff;flex:1}
.place.with-desc .pband b{display:block;font:700 15px/1.2 var(--serif)}
.place.with-desc .pband small{display:block;margin-top:3px;font-size:11.5px;line-height:1.4;color:#d5deeb}

/* a dance card can span two columns ("wide":true) */
.dcard.wide{grid-column:span 2}.dcard.wide .ph{aspect-ratio:400/130}
@media(max-width:640px){.dcard.wide .ph{aspect-ratio:200/90}}

/* dance cards with the photo on the side ("danceStyle":"side") */
.dances.side .dcard{flex-direction:row;min-height:250px}
.dances.side .dcard .ph{flex:0 0 44%;aspect-ratio:auto}
.dances.side .dcard .body{flex:1;display:flex;flex-direction:column;padding:12px 12px 14px}
@media(max-width:640px){.dances.side{grid-template-columns:1fr!important}.dances.side .dcard{min-height:200px}}

/* "danceCols":12 + per-card "span" lets a row hold 3 wide + 4 normal cards */
.dances.mixed .dcard{grid-column:span var(--span,3)}
.dances.mixed .dcard[style*="--span:4"] .ph{aspect-ratio:320/150}
@media(max-width:1100px){.dances.mixed .dcard{grid-column:span 4}}
@media(max-width:640px){.dances.mixed{grid-template-columns:1fr 1fr!important}.dances.mixed .dcard{grid-column:auto}}
