/* Flying sites inside the Sorenfly theme: the theme gives fonts, colours, header, footer, buttons; this adds the
   map page (list beside / sheet over a light relief map) and the site page. Class names that the theme also
   styles carry an sf- prefix. */
:root {
  --paper: #efebe4; --map-ink: #3a3024; --halo: #f6f2ea;
  --go: #46c28b; --maybe: #f2aa3c; --no: #e8664f;
  --go-d: #1d8a5a; --maybe-d: #b8730c; --no-d: #b4432f;
  --r-card: 18px; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
/* the theme's 3D stage, scroll wing and their bars do not run on these pages */
.sfs-page #loader, .sfs-page #stage, .sfs-page #fly, .sfs-page #progress, .sfs-page #cursor, .sfs-page #hud, .sfs-page #rail, .sfs-page #sound, .sfs-page #dock, .sfs-page .fly-up { display: none !important; }
.sfs-page .top { background: rgba(13, 11, 9, .9); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px); border-color: var(--line); transform: none !important; }
.sfs-page { background: var(--ink); }
.sfs { position: relative; z-index: 1; padding-top: var(--head, 70px); }
.sfs *, .sfs-modal * { box-sizing: border-box; }
.sfs button:not(.btn), .sfs input, .sfs select, .sfs-modal button:not(.btn), .sfs-modal input, .sfs-modal textarea { font: inherit; color: inherit; }
.sfs button, .sfs-modal button { cursor: pointer; }
.sfs .ltr { direction: ltr; unicode-bidi: isolate; }
.sfs .num { font-variant-numeric: tabular-nums; }
.sfs .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sfs .ic, .sfs-modal .ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; fill: currentColor; }
.sfs .btn .ic, .sfs-modal .btn .ic { width: 19px; height: 19px; }
.sf-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(244, 239, 227, .04); font-size: 13.5px; white-space: nowrap; transition: background .2s, border-color .2s; }
.sf-chip:hover { background: rgba(244, 239, 227, .09); }
.sf-chip .ic { width: 16px; height: 16px; }
.sf-chip[aria-pressed="true"], .sf-chip.on { background: rgba(254, 222, 39, .14); border-color: rgba(254, 222, 39, .55); color: var(--sun); }
.sf-chip b { font-weight: 700; }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px 3px 9px; border-radius: 999px; white-space: nowrap; }
.verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.v2 { color: var(--go); background: rgba(70, 194, 139, .13); }
.v1 { color: var(--maybe); background: rgba(242, 170, 60, .13); }
.v0 { color: var(--no); background: rgba(232, 102, 79, .13); }
.school-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--sun); }
.school-badge svg { width: 12px; height: 15px; }

/* ---------- views ---------- */

/* ---------- map page ---------- */
.mp { position: relative; height: calc(100dvh - var(--head, 70px)); display: grid; grid-template-columns: 1fr; }
.mapbox { position: relative; min-width: 0; background: var(--paper); }
#map, .site-map { position: absolute; inset: 0; background: var(--paper); }
.leaflet-container { direction: ltr; font-family: var(--body); background: var(--paper); outline: 0; }
.leaflet-container .leaflet-control-attribution { display: none; }
.leaflet-pane .leaflet-tile { filter: none; }
.map-attr { position: absolute; z-index: 500; bottom: 6px; inset-inline-end: 8px; max-width: calc(100% - 16px); font-size: 10.5px; line-height: 1.5; color: rgba(58, 48, 36, .75); background: rgba(246, 242, 234, .78); padding: 3px 9px; border-radius: 8px; direction: rtl; pointer-events: auto; }
.map-attr a { text-decoration: underline; text-decoration-color: rgba(58, 48, 36, .3); }

.sf-panel { display: none; min-width: 0; background: var(--ink-2); border-inline-start: 1px solid var(--line); position: relative; flex-direction: column; overflow: hidden; }
.p-head { padding: 22px 22px 0; display: grid; gap: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--sun); }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.p-head h1 { font-size: 30px; line-height: 1.25; }
.p-head p { color: rgba(244, 239, 227, .74); font-size: 14px; line-height: 1.9; }
.search { position: relative; }
.search input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink); padding: 0 44px 0 14px; font-size: 14.5px; }
.search input::placeholder { color: rgba(169, 160, 145, .8); }
.search .ic { position: absolute; top: 14px; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--mist); }
.sf-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.sf-chips .count { min-width: 19px; height: 19px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }

/* the "where can we fly" card */
.wx { margin: 16px 22px 0; border-radius: var(--r-card); background: linear-gradient(160deg, rgba(254, 222, 39, .09), rgba(254, 222, 39, .02) 60%), var(--ink-3); border: 1px solid rgba(254, 222, 39, .2); padding: 14px; display: grid; gap: 11px; }
.wx-top { display: flex; align-items: center; gap: 10px; }
.wx-top h2 { font-size: 16.5px; }
.wx-top .ic { color: var(--sun); width: 22px; height: 22px; }
.switch { margin-inline-start: auto; position: relative; width: 46px; height: 27px; border-radius: 999px; background: rgba(244, 239, 227, .16); border: 0; transition: background .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--bone); transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: var(--sun); }
.switch[aria-checked="true"]::after { transform: translateX(-19px); background: var(--sun-ink); }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.day { border: 1px solid var(--line-2); background: rgba(13, 11, 9, .35); border-radius: 12px; padding: 7px 8px; text-align: center; line-height: 1.35; transition: .2s; }
.day b { display: block; font-size: 13.5px; }
.day span { font-size: 11.5px; color: var(--mist); }
.day[aria-pressed="true"] { border-color: var(--sun); background: rgba(254, 222, 39, .12); }
.day[aria-pressed="true"] span { color: var(--bone); }
.tally { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tally .src { font-size: 11px; color: var(--mist); margin-inline-start: auto; }
.wx.off .days, .wx.off .tally { opacity: .4; pointer-events: none; }

.p-bar { display: flex; align-items: center; gap: 10px; padding: 16px 22px 8px; font-size: 13px; color: var(--mist); }
.p-bar b { color: var(--bone); }
.p-bar select { margin-inline-start: auto; background: transparent; border: 0; color: var(--bone); font-size: 13px; padding: 4px; }
.p-bar select option { background: var(--ink-2); }
.list { overflow-y: auto; padding: 0 12px 18px; display: grid; gap: 4px; align-content: start; overscroll-behavior: contain; scrollbar-width: thin; }
.row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid transparent; transition: background .2s, border-color .2s; position: relative; }
.row:hover, .row.hl { background: rgba(244, 239, 227, .05); border-color: var(--line); }
.row.sel { background: rgba(254, 222, 39, .07); border-color: rgba(254, 222, 39, .35); }
.th { position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #e8e2d6; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th .rose { position: absolute; inset: 6px; width: auto; height: auto; }
.row .tx { min-width: 0; display: grid; gap: 3px; }
.row .nm { font-weight: 800; font-size: 15.5px; line-height: 1.4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row .mt { font-size: 12.5px; color: var(--mist); line-height: 1.6; }
.row .ch { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--mist); }
.row .go { color: var(--mist); width: 18px; height: 18px; }
.empty { padding: 30px 16px; text-align: center; color: var(--mist); display: grid; gap: 10px; justify-items: center; }
.p-foot { margin-top: auto; padding: 12px 22px 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--mist); }
.p-foot .btn { margin-inline-start: auto; }

/* filters (desktop: covers the list; phone: a sheet) */
.filters { position: absolute; inset: 0; z-index: 30; background: var(--ink-2); display: flex; flex-direction: column; }
.f-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 10px; }
.f-head h2 { font-size: 19px; }
.f-head .icon-btn { margin-inline-start: auto; }
.f-body { overflow-y: auto; padding: 0 22px 20px; display: grid; gap: 22px; align-content: start; }
.f-sec { display: grid; gap: 10px; }
.f-sec h3 { font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.f-sec h3 small { font-weight: 400; color: var(--mist); font-size: 12px; }
.f-sec .sf-chips .sf-chip span { color: var(--mist); font-size: 12px; }
.f-sec .sf-chips .sf-chip[aria-pressed="true"] span { color: inherit; opacity: .75; }
.compass-pick { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.compass-pick svg { width: 150px; height: 150px; }
.compass-pick path.pet { cursor: pointer; transition: fill .2s; }
.compass-pick p { font-size: 13px; color: var(--mist); line-height: 1.9; }
.range { display: grid; gap: 8px; }
.range .hist { display: flex; align-items: flex-end; gap: 2px; height: 34px; direction: ltr; }
.range .hist i { flex: 1; background: rgba(244, 239, 227, .18); border-radius: 2px 2px 0 0; min-height: 2px; }
.range .hist i.in { background: rgba(254, 222, 39, .65); }
.dual { position: relative; height: 26px; direction: ltr; }
.dual input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink-2); box-shadow: 0 0 0 1px var(--sun); cursor: grab; }
.dual input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink-2); cursor: grab; }
.dual .track { position: absolute; top: 11px; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(244, 239, 227, .15); }
.dual .track b { position: absolute; top: 0; bottom: 0; background: var(--sun); border-radius: 4px; }
.range .vals { display: flex; justify-content: space-between; font-size: 13px; }
.toggle-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.toggle-row .switch { margin-inline-start: auto; }
.near-pick { display: grid; gap: 8px; font-size: 13px; color: var(--mist); }
.f-foot { margin-top: auto; padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.f-foot .btn-sun { flex: 1; }

/* map overlays */
.m-ctl { position: absolute; z-index: 600; display: grid; gap: 8px; bottom: 34px; left: 12px; }
.m-ctl button { width: 42px; height: 42px; border-radius: 13px; border: 0; background: rgba(22, 19, 15, .9); color: var(--bone); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(30, 22, 10, .28); }
.m-ctl button .ic { width: 19px; height: 19px; }
.m-ctl .zoom { display: grid; border-radius: 13px; overflow: hidden; box-shadow: 0 6px 18px rgba(30, 22, 10, .28); }
.m-ctl .zoom button { border-radius: 0; box-shadow: none; }
.m-ctl .zoom button + button { border-top: 1px solid var(--line); }
.legend { position: absolute; z-index: 600; top: 12px; left: 12px; background: rgba(246, 242, 234, .93); color: var(--map-ink); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; font-size: 12px; line-height: 1.5; box-shadow: 0 6px 22px rgba(60, 45, 20, .18); max-width: 250px; }
.legend .li { display: flex; align-items: center; gap: 9px; }
.legend svg { flex: none; }
.legend .x { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border: 0; background: none; color: inherit; display: grid; place-items: center; opacity: .6; }
.legend h4 { font-size: 12.5px; padding-left: 22px; }

/* pins */
.pin { width: 52px; height: 52px; margin: -26px 0 0 -26px; position: relative; transition: transform .25s var(--ease), filter .25s; filter: drop-shadow(0 3px 5px rgba(40, 28, 10, .35)); }
.pin svg { width: 100%; height: 100%; overflow: visible; }
.pin:hover, .pin.hl { transform: scale(1.18); z-index: 1000 !important; }
.pin.sel { transform: scale(1.32); }
.pin .lb { width: max-content; position: absolute; top: 50%; left: calc(100% - 6px); transform: translateY(-50%); white-space: nowrap; font: 800 12.5px/1.2 var(--body); color: var(--map-ink); text-shadow: 0 0 3px var(--halo), 0 0 3px var(--halo), 0 0 6px var(--halo), 0 0 1px var(--halo); direction: rtl; pointer-events: none; opacity: 0; transition: opacity .2s; }
.show-names .pin .lb, .pin:hover .lb, .pin.sel .lb { opacity: 1; }
.pin.dim { opacity: .35; filter: grayscale(.6); }
.land { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; border: 2px solid var(--map-ink); display: grid; place-items: center; color: var(--map-ink); box-shadow: 0 2px 6px rgba(40, 28, 10, .3); }
.land svg { width: 14px; height: 14px; fill: currentColor; }
.clu { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; font: 800 15px/1 var(--body); border: 3px solid var(--sun); box-shadow: 0 0 0 5px rgba(254, 222, 39, .28), 0 4px 10px rgba(40, 28, 10, .35); transition: transform .2s; }
.clu:hover { transform: scale(1.1); }
.clu small { font-size: 9px; color: var(--bone); display: block; text-align: center; margin-top: 1px; }
.lbl { width: max-content; white-space: nowrap; font: 700 12px/1.2 var(--body); color: #4a3d2e; text-shadow: 0 0 3px var(--halo), 0 0 3px var(--halo), 0 0 5px var(--halo); direction: rtl; pointer-events: none; transform: translate(-50%, -50%); }
.lbl.city::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #4a3d2e; margin-left: 5px; box-shadow: 0 0 0 2px var(--halo); vertical-align: .15em; }
.lbl.big { font-size: 13.5px; font-weight: 800; }
.lbl.vil { font-size: 11px; font-weight: 500; color: #6a5a46; }
.lbl.prov { font-size: 15px; font-weight: 500; color: rgba(110, 90, 66, .62); text-shadow: 0 0 4px var(--halo), 0 0 4px var(--halo); }
.lbl.sea { font-size: 14px; font-weight: 500; color: #5f8ba0; text-shadow: none; }
.me { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #2f7cf6; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(47, 124, 246, .22); }

/* popup card on the map (desktop) and the site peek (phone sheet) */
.leaflet-popup-content-wrapper { background: var(--ink-2); color: var(--bone); border-radius: 18px; padding: 0; box-shadow: 0 20px 50px rgba(20, 14, 6, .45); }
.leaflet-popup-content { margin: 0; width: 300px !important; direction: rtl; font-family: var(--body); line-height: 1.7; }
.leaflet-popup-tip { background: var(--ink-2); }
.leaflet-container a.leaflet-popup-close-button { color: var(--mist); top: 8px; right: auto; left: 8px; font-size: 20px; }
.peek { display: grid; gap: 10px; padding: 16px; }
.peek .h { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.peek h3 { font-size: 18px; }
.peek .mt { font-size: 12.5px; color: var(--mist); }
.peek .sf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.peek .sf-stats div { background: rgba(244, 239, 227, .05); border-radius: 10px; padding: 6px 8px; display: grid; line-height: 1.4; }
.peek .sf-stats b { font-size: 14px; }
.peek .sf-stats span { font-size: 11px; color: var(--mist); }
.hbar { display: flex; gap: 2px; }
.hbar i { flex: 1; height: 8px; border-radius: 2px; }
.hbar i.r2 { background: var(--go); } .hbar i.r1 { background: var(--maybe); } .hbar i.r0 { background: var(--no); opacity: .75; }
.hline { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--mist); }
.peek .acts { display: flex; gap: 8px; }
.peek .acts .btn-sun { flex: 1; }

/* phone sheet */
.sf-sheet { position: fixed; z-index: 700; left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--head, 70px) - 10px); background: var(--ink-2); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(10, 8, 4, .45); display: flex; flex-direction: column; transform: translateY(calc(100% - var(--peek, 150px))); transition: transform .38s var(--ease); touch-action: none; }
.sf-sheet.drag { transition: none; }
.sf-sheet .grip { padding: 9px 0 4px; display: grid; place-items: center; cursor: grab; }
.sf-sheet .grip i { width: 42px; height: 5px; border-radius: 5px; background: rgba(244, 239, 227, .25); }
.sf-sheet .s-head { padding: 2px var(--pad-r) 10px var(--pad); display: flex; align-items: center; gap: 10px; }
.sf-sheet .s-head b { font-size: 16px; }
.sf-sheet .s-body { overflow-y: auto; flex: 1; touch-action: pan-y; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
.sf-sheet .list { padding: 0 8px 20px; }
.m-top { position: absolute; z-index: 650; top: 10px; left: 0; right: 0; padding-left: var(--pad); padding-right: var(--pad-r); display: grid; gap: 8px; pointer-events: none; }
.m-top > * { pointer-events: auto; }
.m-top .search input { background: rgba(22, 19, 15, .92); border-color: transparent; box-shadow: 0 8px 22px rgba(30, 22, 10, .3); height: 46px; }
.m-top .sf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad-r)) calc(-1 * var(--pad)); padding-inline: var(--pad-r) var(--pad); }
.m-top .sf-chips::-webkit-scrollbar { display: none; }
.m-top .sf-chip { background: rgba(22, 19, 15, .9); border-color: transparent; box-shadow: 0 4px 12px rgba(30, 22, 10, .25); }
.m-top .sf-chip[aria-pressed="true"], .m-top .sf-chip.on { background: var(--sun); color: var(--sun-ink); }
.m-top .sf-chip.on .count { background: var(--sun-ink); color: var(--sun); }

/* ---------- site page ---------- */
.sf-crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mist); padding-block: 18px 0; flex-wrap: wrap; }
.sf-crumbs a:hover { color: var(--sun); }
.sf-crumbs .ic { width: 13px; height: 13px; }
.s-hero { display: grid; gap: 22px; padding-block: 16px 34px; }
.s-hero .txt { display: grid; gap: 14px; align-content: start; min-width: 0; }
.s-hero h1 { font-size: var(--step-4); line-height: 1.15; }
.s-hero .where { color: rgba(244, 239, 227, .78); font-size: 15.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; }
.status b { font-size: 14.5px; }
.status.open .dot { background: var(--go); box-shadow: 0 0 0 4px rgba(70, 194, 139, .2); }
.status.caution .dot { background: var(--maybe); box-shadow: 0 0 0 4px rgba(242, 170, 60, .2); }
.status.closed .dot { background: var(--no); }
.status.unknown .dot, .status.unchecked .dot { background: transparent; border: 2px solid var(--mist); }
.stats4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sf-stat { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.sf-stat span { font-size: 12px; color: var(--mist); }
.sf-stat b { font-size: 21px; line-height: 1.3; font-weight: 800; }
.sf-stat b small { font-size: 13px; font-weight: 500; color: var(--mist); margin-inline-start: 3px; }
.sf-stat i { font-style: normal; font-size: 11.5px; color: var(--mist); }
.hero-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-wx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero-wx a { display: grid; gap: 4px; justify-items: start; padding: 10px 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(254, 222, 39, .07), transparent 70%), var(--ink-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; transition: border-color .2s; min-width: 0; }
.hero-wx a:hover { border-color: rgba(254, 222, 39, .45); }
.hero-wx small { font-size: 11.5px; font-weight: 400; color: var(--mist); }
.s-hero .txt > .hero-wx::before { content: none; }
.s-mapwrap { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px; border: 1px solid var(--line); background: var(--paper); }
.s-mapwrap .leaflet-bar { border: 0; box-shadow: 0 6px 18px rgba(30, 22, 10, .28); border-radius: 12px; overflow: hidden; }
.s-mapwrap .leaflet-bar a { background: rgba(22, 19, 15, .9); color: var(--bone); border-color: var(--line); width: 36px; height: 36px; line-height: 34px; font-size: 20px; }
.s-mapwrap .leaflet-bar a:hover { background: var(--ink-3); color: var(--sun); }
.s-mapwrap .scale { position: absolute; z-index: 500; bottom: 12px; right: 12px; color: var(--map-ink); font-size: 11px; display: grid; gap: 2px; direction: rtl; }
.s-mapwrap .scale i { display: block; height: 6px; border: 2px solid var(--map-ink); border-top: 0; }
.glide-tag { width: max-content; white-space: nowrap; transform: translate(-50%, -50%); background: rgba(22, 19, 15, .9); color: var(--bone); font: 700 11.5px/1.3 var(--body); padding: 5px 10px; border-radius: 999px; direction: rtl; pointer-events: none; }
.pt-tag { width: max-content; white-space: nowrap; font: 800 12.5px/1.2 var(--body); color: var(--map-ink); text-shadow: 0 0 3px var(--halo), 0 0 3px var(--halo), 0 0 6px var(--halo); direction: rtl; pointer-events: none; transform: translate(0, -50%); }

.sf-sec { padding-block: 34px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head, 70px) + 10px); }
.sec-h { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.sec-h h2 { font-size: var(--step-3); }
.sec-h p { color: var(--mist); font-size: 14px; flex-basis: 100%; max-width: 70ch; }

/* forecast */
.fc { display: grid; gap: 18px; }
.fc-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fc-day { text-align: right; border: 1px solid var(--line-2); background: var(--ink-2); border-radius: 16px; padding: 11px 13px; display: grid; gap: 6px; transition: .2s; min-width: 0; }
.fc-day[aria-pressed="true"] { border-color: var(--sun); background: rgba(254, 222, 39, .08); }
.fc-day .d { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.fc-day .d b { font-size: 15.5px; } .fc-day .d span { font-size: 12px; color: var(--mist); }
.fc-day .w { font-size: 12.5px; color: rgba(244, 239, 227, .8); }
.fc-day .verdict { justify-self: start; }
.fc-main { display: grid; gap: 18px; }
.fc-rose { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; justify-items: center; }
.fc-rose svg { width: 100%; max-width: 280px; height: auto; }
.fc-rose .cap { text-align: center; font-size: 13.5px; line-height: 1.8; }
.fc-rose .cap b { font-size: 16px; }
.hours { overflow-x: auto; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); scrollbar-width: thin; }
.hours table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 13px; }
.hours th, .hours td { text-align: center; padding: 8px 4px; border-left: 1px solid var(--line); white-space: nowrap; }
.hours tr > :last-child { border-left: 0; }
.hours th[scope="row"] { text-align: right; padding-inline: 14px 10px; color: var(--mist); font-weight: 500; font-size: 12px; position: sticky; right: 0; background: var(--ink-2); z-index: 1; }
.hours thead th { font-weight: 700; font-size: 13.5px; padding-top: 12px; }
.hours td.hr, .hours th.hr { cursor: pointer; transition: background .15s; }
.hours .sel { background: rgba(254, 222, 39, .08); }
.hours .rt i { display: block; height: 6px; border-radius: 3px; margin: 0 3px; }
.hours .rt .r2 { background: var(--go); } .hours .rt .r1 { background: var(--maybe); } .hours .rt .r0 { background: var(--no); }
.hours .arw svg { width: 26px; height: 26px; display: block; margin: auto; }
.hours .why { font-size: 11px; color: var(--mist); white-space: normal; line-height: 1.4; min-width: 54px; }
.fc-note { display: grid; gap: 6px; font-size: 12.5px; color: var(--mist); line-height: 1.9; }
.fc-note b { color: rgba(244, 239, 227, .9); font-weight: 700; }
.fc-note a { text-decoration: underline; text-decoration-color: var(--line-2); }

/* takeoff + landing */
.pts { display: grid; gap: 14px; }
.pt { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; min-width: 0; }
.pt header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt header .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(254, 222, 39, .14); color: var(--sun); flex: none; }
.pt header .badge.l { background: rgba(244, 239, 227, .08); color: var(--bone); }
.pt header .badge .ic { width: 22px; height: 22px; }
.pt header h3 { font-size: 19px; }
.pt header .src { margin-inline-start: auto; font-size: 11.5px; color: var(--mist); }
.coord { display: flex; align-items: center; gap: 8px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; }
.coord code { font: 600 15px/1.4 var(--mono); direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; flex: 1; text-align: left; overflow-wrap: anywhere; }
.coord button { height: 36px; border-radius: 9px; border: 0; background: rgba(244, 239, 227, .08); padding: 0 12px; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; }
.coord button.ok { background: rgba(70, 194, 139, .18); color: var(--go); }
.pt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.pt dt { color: var(--mist); }
.pt dd { margin: 0; min-width: 0; }
.navs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.navs a { display: grid; justify-items: center; gap: 3px; padding: 9px 4px; border-radius: 12px; background: rgba(244, 239, 227, .05); border: 1px solid var(--line); font-size: 12.5px; transition: background .2s, border-color .2s; }
.navs a:hover { background: rgba(254, 222, 39, .1); border-color: rgba(254, 222, 39, .4); }
.navs a b { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 800 13px/1 var(--body); color: #fff; }
.navs .balad b { background: #1b6ef3; } .navs .neshan b { background: #ec5b2e; } .navs .gmaps b { background: #34a853; } .navs .waze b { background: #33ccff; color: #08263a; }

/* details */
.det { display: grid; gap: 14px; }
.sf-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.sf-card h3 { font-size: 17px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.sf-card h3 .ic { color: var(--sun); width: 21px; height: 21px; }
.spec { margin: 0; display: grid; gap: 0; }
.spec > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.spec > div:first-child { border-top: 0; padding-top: 0; }
.spec dt { color: var(--mist); font-size: 13px; }
.spec dd { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.tag { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: rgba(244, 239, 227, .07); border: 1px solid var(--line); }
.season { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.season div { border-radius: 10px; padding: 8px 2px 6px; text-align: center; font-size: 11.5px; line-height: 1.3; display: grid; gap: 6px; background: rgba(244, 239, 227, .04); }
.season div i { height: 6px; border-radius: 3px; margin: 0 6px; }
.season .s2 i { background: var(--go); } .season .s1 i { background: var(--maybe); } .season .s0 i { background: rgba(244, 239, 227, .14); }
.season .now { outline: 1.5px solid var(--sun); }
.legend-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--mist); }
.legend-row span { display: inline-flex; gap: 6px; align-items: center; }
.legend-row i { width: 14px; height: 6px; border-radius: 3px; display: inline-block; }
.warns { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.warns li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; line-height: 1.8; }
.warns .ic { color: var(--maybe); width: 22px; height: 22px; margin-top: 2px; }
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gal figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: var(--ink-3); max-width: 100%; }
.gal figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal figure:hover img { transform: scale(1.04); }
.gal .add { display: grid; place-items: center; text-align: center; gap: 8px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--mist); font-size: 13.5px; padding: 12px; }
.gal .add .ic { width: 28px; height: 28px; color: var(--sun); }
.near { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nc { display: grid; gap: 10px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 10px; transition: border-color .2s, transform .3s var(--ease); min-width: 0; }
.nc:hover { border-color: rgba(254, 222, 39, .45); }
.nc .im { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #e8e2d6; max-width: 100%; }
.nc .im img { width: 100%; height: 100%; object-fit: cover; }
.nc .im .rose { position: absolute; width: 54px; height: 54px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nc .im .dist { position: absolute; bottom: 6px; right: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(13, 11, 9, .8); }
.nc b { font-size: 14.5px; line-height: 1.5; }
.nc span { font-size: 12px; color: var(--mist); }
.prov { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); border: 1px dashed var(--line-2); font-size: 13.5px; line-height: 1.9; color: rgba(244, 239, 227, .82); }
.prov .ic { color: var(--sun); width: 24px; height: 24px; margin-top: 3px; }
.sf-dock { position: fixed; z-index: 70; bottom: 0; left: 0; right: 0; padding: 10px var(--pad-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--pad); background: rgba(13, 11, 9, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; gap: 8px; }
.sf-dock .btn-sun { flex: 1; }

/* navigation sheet */
.sfs-modal { position: fixed; inset: 0; z-index: 900; background: rgba(5, 4, 2, .55); display: grid; align-items: end; }
.sfs-modal .box { background: var(--ink-2); border-radius: 22px 22px 0 0; padding: 18px var(--pad-r) calc(18px + env(safe-area-inset-bottom, 0px)) var(--pad); display: grid; gap: 14px; max-width: 520px; width: 100%; margin-inline: auto; }
.sfs-modal .box h3 { font-size: 18px; display: flex; gap: 10px; align-items: center; }
.sfs-modal .box h3 .icon-btn { margin-inline-start: auto; }
.sfs-toast { position: fixed; z-index: 950; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--bone); color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }

@media (min-width: 720px) {
  .stats4 { grid-template-columns: repeat(4, 1fr); }
  .pts { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .near { grid-template-columns: repeat(4, 1fr); }
  .season { grid-template-columns: repeat(12, 1fr); }
  .sfs-modal { align-items: center; }
  .sfs-modal .box { border-radius: 22px; }
}
@media (min-width: 960px) {
  .mp { grid-template-columns: 420px 1fr; }
  .sf-panel { display: flex; }
  .sf-sheet, .m-top, .sf-dock { display: none !important; }
  .m-ctl { bottom: 40px; left: 16px; }
  .legend { top: 16px; left: 16px; }
  .s-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; padding-block: 22px 46px; gap: 34px; }
  .s-mapwrap { min-height: 520px; }
  .fc-main { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .det { grid-template-columns: 1.15fr 1fr; }
  .det .sf-card.wide { grid-column: 1 / -1; }
}
@media (max-width: 959px) {
  .filters { position: fixed; inset: auto 0 0 0; top: calc(var(--head, 70px) + 30px); border-radius: 22px 22px 0 0; z-index: 800; box-shadow: 0 -16px 50px rgba(0, 0, 0, .5); }
  .filters-back { position: fixed; inset: 0; z-index: 790; background: rgba(5, 4, 2, .45); }
  .m-ctl { bottom: calc(var(--peek, 150px) + 12px); }
  .legend { display: none; }
  .mapbox .map-attr { bottom: calc(var(--peek, 150px) + 6px); font-size: 9.5px; max-width: calc(100% - 80px); }
  .s-mapwrap .map-attr { font-size: 9.5px; }
  .compass-pick { grid-template-columns: 130px 1fr; }
  .compass-pick svg { width: 130px; height: 130px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- WordPress additions ---- */
.sfs-map .mp { min-height: 520px; }
@media (max-width: 959px) { .sfs-map .foot { display: none; } .sfs-map { overflow: hidden; } }
.sfs-single .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.sfs .status .old { display: inline-block; margin-inline-start: 6px; font-size: 12px; color: var(--maybe); }
.sfs .about { max-width: 70ch; color: rgba(244, 239, 227, .86); line-height: 2; display: grid; gap: 12px; }
.sfs .gal a.ph { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); max-width: 100%; }
.sfs .gal a.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sfs .gal a.ph:hover img { transform: scale(1.04); }
.sfs .hero-wx[hidden] { display: none; }
.sfs-modal .rform { display: grid; gap: 12px; }
.sfs-modal .rform label { display: grid; gap: 6px; font-size: 13.5px; }
.sfs-modal .rform textarea, .sfs-modal .rform input { background: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; color: var(--bone); }
.sfs-modal .rform input { height: 46px; }
.sfs-modal .rform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sfs-modal .lbx { display: grid; gap: 12px; }
.sfs-modal .lbx img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 14px; background: #000; }
.sfs-modal .lbx-nav { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 14px; }
.sfs-modal .box:has(.lbx) { max-width: min(1100px, 100%); }
.leaflet-popup .peek .h { padding-inline-end: 24px; }
