/* =========================================================
   ARAM MIZURI ARCHITECTURE — heritage.css
   Kurdistan's architectural heritage (/kurdistan-heritage) and each
   landmark's page, on top of project.css: the map of Greater Kurdistan
   with its gold border, the filters, the landmarks as cards, and a
   landmark's own page.
   ========================================================= */

/* ---- Introduction -------------------------------------------------- */
.hr-hero { max-width: var(--wide); margin: 0 auto; padding: clamp(120px, 17vh, 170px) var(--gutter) clamp(28px, 5vh, 48px); }
.hr-hero__title { max-width: 16ch; font-size: clamp(44px, 6.4vw, 100px); font-weight: 200; line-height: 1; letter-spacing: -.035em; color: #fff; }
[dir="rtl"] .hr-hero__title { letter-spacing: 0; line-height: 1.3; font-weight: 400; }
.hr-hero__intro { max-width: 64ch; margin-top: 24px; font-size: 16.5px; font-weight: 300; line-height: 1.85; color: var(--muted); }
[dir="rtl"] .hr-hero__intro { font-size: 17px; line-height: 2.05; }
.hr-hero__count { margin-top: 20px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .hr-hero__count { letter-spacing: 0; font-size: 14px; }

/* ---- Filters -------------------------------------------------------- */
.hr-filters {
    max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) 18px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
}
.hr-filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hr-filters__label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-inline-end: 2px; }
[dir="rtl"] .hr-filters__label { letter-spacing: 0; font-size: 12.5px; }
.hr-chip {
    height: 32px; padding: 0 14px; border-radius: 100px; cursor: pointer;
    font: 400 12px/1 var(--font); color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: border-color .25s, color .25s, background-color .25s;
}
[dir="rtl"] .hr-chip { font-size: 13px; }
.hr-chip:hover { border-color: rgba(245,197,24,.45); color: #fff; }
.hr-chip.is-on { background: var(--gold); border-color: var(--gold); color: #0a0a0a; font-weight: 500; }

/* ---- The map -------------------------------------------------------- */
.hr-map-wrap { position: relative; max-width: var(--wide); margin: 0 auto clamp(48px, 8vh, 88px); padding: 0 var(--gutter); }
.hr-map {
    height: clamp(420px, 78vh, 820px); border-radius: 8px; overflow: hidden;
    background: #0d0d0d; border: 1px solid var(--line);
}
.hr-map .leaflet-container, .hr-map.leaflet-container { background: #0d0d0d; font-family: var(--font); }
.hr-map__hint {
    position: absolute; inset-inline-start: calc(var(--gutter) + 14px); bottom: 14px; z-index: 500; pointer-events: none;
    padding: 7px 12px; border-radius: 100px; font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.75);
    background: rgba(10,10,10,.72); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
[dir="rtl"] .hr-map__hint { letter-spacing: 0; font-size: 12.5px; }
/* the zoom buttons, dark like the rest */
.hr-map .leaflet-bar a { background: rgba(14,14,14,.9); color: #fff; border-color: var(--line); }
.hr-map .leaflet-bar a:hover { background: #1a1a1a; }
.hr-map .leaflet-control-attribution { background: rgba(0,0,0,.55); color: rgba(255,255,255,.5); }
.hr-map .leaflet-control-attribution a { color: rgba(255,255,255,.65); }

/* the pins: gold, numbered; a UNESCO site wears a ring */
.hm-pin {
    position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--gold); color: #0a0a0a; font: 600 11.5px/1 var(--font); cursor: pointer;
    box-shadow: 0 0 0 4px rgba(245,197,24,.2), 0 6px 14px rgba(0,0,0,.55);
    transition: transform .25s, opacity .3s, box-shadow .25s;
}
.hm-pin--unesco::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(245,197,24,.7); }
.hm-pin:hover, .is-open > .hm-pin { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(245,197,24,.3), 0 8px 18px rgba(0,0,0,.6); }
.is-dim > .hm-pin { opacity: .18; transform: scale(.75); pointer-events: none; }
/* zoomed out: small dots, the number hidden, the name on hover */
.is-far .hm-pin { width: 13px; height: 13px; font-size: 0; box-shadow: 0 0 0 3px rgba(245,197,24,.22), 0 3px 8px rgba(0,0,0,.6); }
.is-far .hm-pin--unesco::after { inset: -6px; }
.is-far .hm-pin:hover, .is-far .is-open > .hm-pin { transform: scale(1.5); }
.hr-tip.leaflet-tooltip { background: rgba(10,10,10,.92); color: #fff; border: 1px solid rgba(245,197,24,.4); border-radius: 6px; font: 400 12.5px/1.3 var(--font); padding: 6px 10px; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.hr-tip.leaflet-tooltip-top::before { border-top-color: rgba(245,197,24,.4); }
.hm-pin--single { width: 22px; height: 22px; cursor: default; animation: hm-pulse 2.4s ease-out infinite; }
@keyframes hm-pulse { 0% { box-shadow: 0 0 0 0 rgba(245,197,24,.55); } 100% { box-shadow: 0 0 0 22px rgba(245,197,24,0); } }

/* the card a pin opens */
.hr-pop {
    position: absolute; z-index: 600; inset-inline-end: calc(var(--gutter) + 16px); top: 16px; width: min(340px, calc(100% - 2 * var(--gutter) - 32px));
    max-height: calc(100% - 32px); overflow: auto; padding: 22px; border-radius: 10px;
    background: rgba(12,12,12,.94); border: 1px solid rgba(245,197,24,.35); backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0,0,0,.55); animation: hr-pop-in .3s ease;
}
@keyframes hr-pop-in { from { opacity: 0; transform: translateY(8px); } }
.hr-pop__close {
    position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent; color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.hr-pop__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; margin-bottom: 14px; }
.hr-pop__meta { padding-inline-end: 34px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); line-height: 1.6; }
.hr-pop__meta span { color: rgba(255,255,255,.6); }
[dir="rtl"] .hr-pop__meta { letter-spacing: 0; font-size: 12.5px; }
.hr-pop__name { margin-top: 8px; font-size: 22px; font-weight: 300; line-height: 1.25; color: #fff; }
[dir="rtl"] .hr-pop__name { font-weight: 400; line-height: 1.5; }
.hr-pop__period { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.6); }
.hr-pop__unesco { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 100px; font-size: 11px; color: var(--gold); border: 1px solid rgba(245,197,24,.35); }
.hr-pop__text { margin-top: 10px; font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.72); }
.hr-pop__more { display: inline-flex; gap: 8px; margin-top: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hr-pop__more:hover { color: #fff; }
[dir="rtl"] .hr-pop__more { letter-spacing: 0; font-size: 13px; }

/* ---- The landmarks, as cards ---------------------------------------- */
.hr-list {
    list-style: none; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter);
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px;
}
.hr-card { scroll-margin-top: 100px; }
.hr-card[hidden] { display: none; }
.hr-card__link {
    display: flex; flex-direction: column; height: 100%; padding: 14px 14px 20px; border-radius: 10px;
    background: rgba(255,255,255,.025); border: 1px solid var(--line); transition: border-color .3s, background-color .3s, transform .3s;
}
.hr-card__link:hover { border-color: rgba(245,197,24,.45); background: rgba(255,255,255,.045); transform: translateY(-2px); }
.hr-card__img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #111; }
.hr-card__img img { width: 100%; height: 100%; object-fit: cover; }
/* no photograph yet: the number, large, over a fine survey grid */
.hr-card__ph {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 64px; font-weight: 200; color: rgba(245,197,24,.55); letter-spacing: -.02em;
    background-image: linear-gradient(rgba(245,197,24,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(245,197,24,.06) 1px, transparent 1px);
    background-size: 24px 24px; background-position: center;
}
.hr-card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 16px 6px 0; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .hr-card__meta { letter-spacing: 0; font-size: 12.5px; }
.hr-card__unesco { color: rgba(255,255,255,.6); }
.hr-card__name { margin: 10px 6px 0; font-size: 21px; font-weight: 300; line-height: 1.3; color: #fff; }
[dir="rtl"] .hr-card__name { font-weight: 400; line-height: 1.55; }
.hr-card__where { margin: 6px 6px 0; font-size: 13px; color: var(--muted); }
.hr-card__summary { margin: 12px 6px 0; font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.7); }
.hr-card__more { margin: auto 6px 0; padding-top: 16px; display: inline-flex; gap: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .hr-card__more { letter-spacing: 0; font-size: 13px; }

/* ---- Closing -------------------------------------------------------- */
.hr-end { text-align: center; padding: clamp(64px, 11vh, 120px) var(--gutter) clamp(80px, 13vh, 140px); border-top: 1px solid var(--line); margin-top: clamp(56px, 9vh, 96px); }
.hr-end__by { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .hr-end__by { letter-spacing: 0; font-size: 14px; }
.hr-end__title { margin-top: 16px; font-size: clamp(30px, 3.6vw, 52px); font-weight: 200; color: #fff; }
[dir="rtl"] .hr-end__title { font-weight: 400; line-height: 1.5; }
.hr-end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---- A landmark's own page ------------------------------------------ */
.lm { max-width: var(--wide); margin: 0 auto; padding: clamp(110px, 15vh, 150px) var(--gutter) 0; }
.lm-back { display: inline-flex; gap: 8px; margin-bottom: 28px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lm-back:hover { color: var(--gold); }
[dir="rtl"] .lm-back { letter-spacing: 0; font-size: 13px; }
[dir="rtl"] .lm-back .pp-arrow, [dir="rtl"] .lm-nav .pp-arrow { display: inline-block; transform: scaleX(-1); }
.lm-title { max-width: 20ch; font-size: clamp(40px, 5.6vw, 88px); font-weight: 200; line-height: 1.02; letter-spacing: -.03em; color: #fff; }
[dir="rtl"] .lm-title { letter-spacing: 0; line-height: 1.35; font-weight: 400; }
.lm-summary { max-width: 60ch; margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 300; line-height: 1.75; color: rgba(255,255,255,.78); }
.lm-unesco { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 14px; border-radius: 100px; font-size: 12px; color: var(--gold); border: 1px solid rgba(245,197,24,.35); }
.lm-unesco svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.lm-img { position: relative; margin: clamp(32px, 6vh, 56px) 0 0; aspect-ratio: 21 / 9; border-radius: 8px; overflow: hidden; background: #111; }
.lm-img img { width: 100%; height: 100%; object-fit: cover; }
.lm-img figcaption { position: absolute; inset: auto 0 0 auto; padding: 5px 10px; font-size: 11px; color: rgba(255,255,255,.75); background: rgba(0,0,0,.55); }
.lm-img__soon {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
    background-image: linear-gradient(rgba(245,197,24,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(245,197,24,.05) 1px, transparent 1px);
    background-size: 28px 28px;
}
[dir="rtl"] .lm-img__soon { letter-spacing: 0; font-size: 13px; }

.lm-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); padding: clamp(40px, 7vh, 72px) 0; }
.lm-facts { display: flex; flex-direction: column; gap: 18px; align-self: start; position: sticky; top: 100px; }
.lm-facts dt { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .lm-facts dt { letter-spacing: 0; font-size: 12.5px; }
.lm-facts dd { margin-top: 6px; font-size: 15px; line-height: 1.6; color: #fff; font-weight: 300; }
.lm-go { display: inline-flex; gap: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lm-go:hover { color: #fff; }
[dir="rtl"] .lm-go { letter-spacing: 0; font-size: 13px; }
.lm-text p { max-width: 64ch; margin-bottom: 22px; font-size: 17px; font-weight: 300; line-height: 1.9; color: rgba(229,226,220,.88); }
[dir="rtl"] .lm-text p { font-size: 18px; line-height: 2.1; }
.lm-text p:first-child::first-letter { color: var(--gold); }
.lm-text .lm-by { margin-top: 32px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
[dir="rtl"] .lm-text .lm-by { letter-spacing: 0; font-size: 13.5px; }

.hr-map--single { height: clamp(300px, 46vh, 480px); }

.lm-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 7vh, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.lm-nav__link { display: flex; flex-direction: column; gap: 8px; max-width: 46%; }
.lm-nav__link--next { text-align: end; margin-inline-start: auto; }
.lm-nav__dir { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .lm-nav__dir { letter-spacing: 0; font-size: 13px; }
.lm-nav__name { font-size: clamp(18px, 1.8vw, 24px); font-weight: 300; color: #fff; transition: color .25s; }
.lm-nav__link:hover .lm-nav__name { color: var(--gold); }

@media (max-width: 820px) {
    .hr-map { height: clamp(380px, 68vh, 600px); }
    .hr-map__hint { display: none; }
    .hr-pop { inset: auto calc(var(--gutter) + 10px) 10px; width: auto; top: auto; max-height: 62%; }
    .lm-body { grid-template-columns: minmax(0, 1fr); }
    .lm-facts { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .lm-img { aspect-ratio: 4 / 3; }
}
