@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("assets/noto-sans-arabic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
:root {
  color-scheme: light;
  --ink: #142d28;
  --muted: #4f665e;
  --pine: #123b34;
  --jade: #006d58;
  --teal: #085f50;
  --lemon: #f4cf86;
  --mint: #e2f1e9;
  --paper: #eef2ed;
  --surface: #fffefa;
  --line: #d6e1d9;
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Noto Sans Arabic", "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block: 92px 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 15px/1.7 var(--font); }
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: var(--jade); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--jade); outline-offset: 3px;
}
button[disabled] { cursor: not-allowed; opacity: .58; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { position: sticky; z-index: 5; inset-block-start: 0; background: var(--surface); border-block-end: 1px solid var(--line); }
.site-header-inner {
  max-width: 1340px; min-height: 72px; margin-inline: auto; padding-inline: clamp(14px, 3vw, 36px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
}
.brand, .nav-item, .language-button, .reference-button, .text-button { border: 0; background: transparent; text-decoration: none; }
.brand {
  display: inline-flex; justify-self: start; align-items: center; gap: 9px; min-height: 48px;
  padding: 0; text-align: start; white-space: nowrap; font-size: 1.17rem; font-weight: 800;
}
.babil-mark { width: 37px; height: 37px; border-radius: 13px; background: var(--pine); display: grid; place-items: center; }
.babil-mark span {
  width: 21px; height: 21px; background: var(--lemon);
  clip-path: polygon(0 6%, 15% 6%, 15% 0, 30% 0, 30% 6%, 43% 6%, 43% 0, 57% 0, 57% 6%, 70% 6%, 70% 0, 85% 0, 85% 6%, 100% 6%, 100% 100%, 68% 100%, 68% 66%, 61% 52%, 50% 45%, 39% 52%, 32% 66%, 32% 100%, 0 100%);
}
.primary-nav { justify-self: center; display: flex; gap: 4px; padding: 4px; border-radius: 15px; background: #eaf0eb; }
.site-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.nav-item, .language-button, .reference-button {
  min-height: 44px; padding: 7px 12px; border-radius: 11px; white-space: nowrap; font-weight: 750;
  transition: background .18s, color .18s, box-shadow .2s;
}
.nav-item { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.nav-item[aria-current="page"], .nav-item.is-active { color: var(--pine); background: var(--surface); box-shadow: 0 1px 3px #18372816; }
.nav-item:hover, .language-button:hover, .reference-button:hover { background: var(--mint); color: var(--pine); }
.language-button { border: 1px solid var(--line); padding-inline: 11px; }
.reference-button { padding-inline: 9px; color: var(--muted); }
.nav-glyph { position: relative; display: inline-block; width: 16px; height: 16px; flex: 0 0 auto; color: var(--jade); }
.nav-glyph--directory { border: 1.6px solid currentColor; border-radius: 50%; }
.nav-glyph--directory::after { content: ""; width: 7px; height: 7px; background: currentColor; position: absolute; inset: 3px; clip-path: polygon(93% 0, 70% 70%, 0 97%, 23% 28%); }
.nav-glyph--media { border: 1.6px solid currentColor; border-radius: 4px; height: 13px; }
.nav-glyph--media::after { content: ""; width: 0; height: 0; border-left: 5px solid currentColor; border-block: 3px solid transparent; position: absolute; inset: 2.5px 4px; }
.nav-glyph--account::before, .nav-glyph--account::after { content: ""; position: absolute; border: 1.5px solid currentColor; }
.nav-glyph--account::before { width: 7px; height: 7px; border-radius: 50%; inset: 0 4.5px auto; }
.nav-glyph--account::after { width: 14px; height: 7px; border-radius: 7px 7px 2px 2px; inset: auto 1px 0; }

.page-wrap { max-width: 1340px; margin-inline: auto; padding: 22px clamp(14px, 3vw, 36px) 16px; }
.hero {
  position: relative; min-height: 264px; overflow: hidden; isolation: isolate; display: grid; align-items: center;
  background: var(--pine); border-radius: 24px; box-shadow: 0 10px 28px #153b3020;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 51%; animation: arrival 1.24s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, #102b25f0, #102b25bd 34%, #102b2530 75%); }
[dir="ltr"] .hero::after { background: linear-gradient(to right, #102b25f0, #102b25bd 34%, #102b2525 75%); }
.hero-content { position: relative; z-index: 1; padding: 22px clamp(17px, 4vw, 49px); color: #fff; max-width: 670px; animation: arrive-copy .38s var(--ease) both; }
.hero-location { display: inline-flex; gap: 8px; align-items: center; color: #ffdd98; font-size: .83rem; font-weight: 800; }
.location-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lemon); box-shadow: 0 0 0 4px #f4cf8629; }
.hero h1 { margin-block: 4px; font-size: clamp(2rem, 4.75vw, 4rem); line-height: 1.25; font-weight: 800; letter-spacing: -.025em; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.36; }
.hero-description { color: #edf7ed; font-size: clamp(.86rem, 1.6vw, 1.11rem); }
.hero-button {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-block-start: 12px; padding: 6px 13px;
  background: #fffdf5; color: var(--pine); border: 0; border-radius: 12px; font-weight: 800; transition: background .18s;
}
.hero-button:hover { background: #fce5b8; }
.locate-symbol { width: 15px; height: 15px; border: 1.6px solid currentColor; border-radius: 50%; display: inline-grid; place-items: center; }
.locate-symbol::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.search-deck { margin-block: 15px 20px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.search-form {
  display: flex; min-width: 0; align-items: center; gap: 10px; background: #f2f6f1; border: 1px solid var(--line);
  border-radius: 13px; padding: 4px; padding-inline-start: 13px;
}
.search-symbol { width: 14px; height: 14px; flex: 0 0 14px; border: 1.6px solid var(--pine); border-radius: 50%; position: relative; margin-inline-end: 2px; }
.search-symbol::after { content: ""; width: 6px; height: 1.5px; background: var(--pine); border-radius: 1px; position: absolute; inset: auto -4px -2px auto; rotate: 43deg; }
.search-form input { min-width: 0; flex: 1; width: 100%; min-height: 44px; border: 0; padding: 1px; background: transparent; color: var(--ink); font-size: 1rem; text-align: start; }
.search-form input:focus-visible { outline: none; }
.search-form:focus-within { border-color: var(--jade); box-shadow: 0 0 0 2px #08755e33; }
.search-form input::placeholder { color: #4e665e; }
.button {
  min-height: 44px; min-width: 44px; padding: 7px 14px; border: 1px solid transparent; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 800; text-decoration: none;
  transition: background .19s, color .19s, border-color .19s, transform .18s var(--ease);
}
.button:active { transform: translateY(1px); }
.button--primary { color: #fff; background: var(--jade); }
.button--primary:hover { background: #005644; }
.button--outline { background: var(--surface); border-color: var(--line); color: var(--pine); }
.button--outline:hover { background: #eaf4ed; border-color: #8ead9f; }
.search-submit { min-width: 88px; white-space: nowrap; }
.filter-drawer { margin-block-start: 3px; }
.filter-drawer summary {
  display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; padding: 4px 9px;
  border-radius: 9px; font-weight: 760; font-size: .84rem; color: var(--teal); cursor: pointer; list-style: none;
}
.filter-drawer summary::-webkit-details-marker { display: none; }
.filter-drawer summary:hover, .filter-drawer[open] summary { background: var(--mint); }
.filter-symbol { width: 15px; height: 12px; flex: 0 0 auto; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 14%, 0 14%, 0 0, 13% 42%, 86% 42%, 86% 54%, 13% 54%, 13% 42%, 28% 85%, 72% 85%, 72% 100%, 28% 100%, 28% 85%); }
.disclosure-symbol { width: 7px; height: 7px; border-inline-end: 1.4px solid currentColor; border-block-end: 1.4px solid currentColor; rotate: 45deg; margin-block-start: -4px; transition: rotate .19s; }
.filter-drawer[open] .disclosure-symbol { rotate: 225deg; margin-block-start: 3px; }
.search-options { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: 10px 16px; padding: 10px 5px 3px; }
.filter-group { min-width: 0; }
.filter-group p { color: var(--muted); font-size: .8rem; font-weight: 760; margin-block-end: 4px; }
.chips, .categories { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.chip {
  min-height: 44px; padding: 3px 11px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface);
  color: var(--muted); white-space: nowrap; font-size: .8rem; font-weight: 700; transition: background .17s, border-color .17s;
}
.chip:hover { border-color: #99b3a7; }
.chip[aria-pressed="true"], .chip.is-active { border-color: #add2c2; background: var(--mint); color: var(--pine); }
.category-icon { margin-inline-end: 4px; color: var(--jade); }

.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin: 0 2px 11px; }
.directory-heading > div:first-child { min-width: 0; }
.directory-heading h2 { font-size: clamp(1.16rem, 2.4vw, 1.72rem); line-height: 1.45; font-weight: 800; }
#result-count { color: var(--muted); font-size: .84rem; }
.view-switch { display: inline-flex; gap: 3px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: #e3ebe4; padding: 3px; }
.view-switch button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; border: 0; border-radius: 9px; background: transparent; padding: 4px 10px; font-size: .83rem; font-weight: 750; white-space: nowrap; }
.view-switch button[aria-pressed="true"], .view-switch button:hover { background: var(--surface); box-shadow: 0 1px 3px #213d2415; }
.list-symbol { width: 12px; height: 12px; background: repeating-linear-gradient(var(--teal) 0 1.5px, transparent 1.5px 5px); flex: 0 0 auto; }
.map-pin-symbol { width: 12px; height: 12px; border-radius: 50% 50% 50% 1px; background: #317966; rotate: -45deg; flex: 0 0 auto; position: relative; }
.map-pin-symbol::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.directory-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); gap: 13px; align-items: start; }
.map-shell { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; background: var(--surface); }
.map-heading { padding: 9px 13px; min-height: 48px; display: flex; align-items: center; }
.map-heading > div { display: flex; align-items: center; gap: 9px; }
.map-heading h3 { font-size: .97rem; font-weight: 800; }
#map-panel { min-height: 360px; --babil-map-min-height: 360px; }
.results-panel { min-width: 0; }
.result-list { display: grid; gap: 8px; }
.listing {
  min-width: 0; display: flex; align-items: stretch; gap: 10px; padding: 9px; min-height: 96px;
  border: 1px solid var(--line); border-radius: 15px; background: var(--surface); position: relative;
  transition: border-color .19s, transform .21s var(--ease), box-shadow .21s;
}
.listing:hover { border-color: #82a797; box-shadow: 0 6px 14px #23434a13; }
.listing.is-selected { border-color: var(--jade); }
.listing:focus-within { outline: 2px solid var(--jade); outline-offset: 2px; }
.listing-thumb { width: clamp(65px, 9vw, 90px); min-height: 76px; border-radius: 10px; flex: 0 0 auto; object-fit: cover; }
.venue-placeholder {
  display: grid; align-items: center; justify-items: center;
  background: linear-gradient(145deg,#e5f2e8,#c8ded2); color: #1a604d;
}
.venue-placeholder[data-category="cafe"] { background: linear-gradient(145deg,#f2e6cd,#ddc49c); color: #684f2b; }
.venue-placeholder[data-category="services"] { background: linear-gradient(145deg,#e6f0ef,#c9dcd8); color: #1f625b; }
.venue-placeholder .category-icon { margin: 0; color: inherit; font-size: 1.29rem; }
.listing-main { min-width: 0; flex: 1; align-self: center; }
.listing-top { display: flex; gap: 4px 8px; flex-wrap: wrap; align-items: center; }
.listing-top h3, .listing-top strong { font-size: 1rem; font-weight: 800; line-height: 1.47; overflow-wrap: anywhere; }
.listing-meta, .listing-tags { color: var(--muted); font-size: .79rem; line-height: 1.55; margin-block: 2px; overflow-wrap: anywhere; }
.listing-tags { display: flex; gap: 3px 5px; flex-wrap: wrap; align-items: center; }
.tag-dot { color: #79a394; }
.status { display: inline-flex; width: fit-content; color: #125744; background: #e3f2e8; padding: 0 7px; border-radius: 100px; font-size: .72rem; font-weight: 770; white-space: nowrap; }
.status--closed { color: #744922; background: #f3eadb; }
.listing-link { color: var(--jade); border: 0; background: transparent; font-size: .79rem; font-weight: 790; padding: 1px 0; text-align: start; }
.listing-link::after { content: ""; position: absolute; inset: 0; border-radius: 15px; }
.empty-state { display: grid; justify-items: center; align-content: center; gap: 7px; min-height: 184px; padding: 18px 12px; border: 1px dashed #a4bdaf; border-radius: 15px; background: var(--surface); text-align: center; color: var(--muted); }
.empty-state > span { font-size: 1.8rem; line-height: 1; color: var(--jade); }
.empty-state h3 { color: var(--ink); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-block: 11px 7px; font-size: .79rem; color: var(--muted); }
.mobile-reference { display: none; }
.text-button { min-height: 44px; color: var(--jade); font-weight: 760; padding: 5px 8px; }

#app-dialog {
  position: fixed; border: 1px solid var(--line); border-radius: 21px; padding: 0; width: min(730px, calc(100% - 36px));
  max-height: min(92dvh, 900px); background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #102b2960;
  scrollbar-color: #b0c5b8 var(--surface);
}
#app-dialog[open] { animation: enter-sheet .24s var(--ease) both; }
#app-dialog::backdrop { background: #112c258d; backdrop-filter: blur(4px); }
#dialog-body { min-width: 0; }
.dialog-head {
  position: sticky; inset-block-start: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 7px;
  padding: 10px 17px; min-height: 64px; border-block-end: 1px solid var(--line); background: var(--surface);
}
.dialog-title { font-size: 1.28rem; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.dialog-head-actions { display: flex; gap: 5px; align-items: center; flex: 0 0 auto; }
.dialog-close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #edf2ec; font-size: 1.18rem; }
.dialog-content { display: grid; gap: 12px; padding: 15px 17px 17px; min-width: 0; }
.dialog-eyebrow, .dialog-subtitle, .field-note { color: var(--muted); font-size: .82rem; }
.dialog-section { display: grid; gap: 8px; min-width: 0; }
.dialog-section + .dialog-section { margin-block-start: 2px; padding-block-start: 10px; border-block-start: 1px solid var(--line); }
.dialog-section h3 { font-size: 1rem; }
.dialog-section-head, .action-group, .viewer-controls, .link-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.dialog-section-head, .viewer-controls { justify-content: space-between; }
.profile-hero { display: grid; gap: 8px; }
.profile-photo { width: 100%; min-height: 152px; max-height: 220px; border-radius: 14px; object-fit: cover; }
.profile-hero-copy { display: grid; gap: 2px; color: var(--muted); overflow-wrap: anywhere; }
.profile-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 7px; }
.profile-facts, .contact-list { display: grid; gap: 7px; }
.contact-link { min-height: 44px; display: flex; align-items: center; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--pine); text-decoration: none; overflow-wrap: anywhere; }
.contact-link:hover { background: var(--mint); }
.account-nav, .profile-nav {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 4px;
  border: 1px solid var(--line); border-radius: 12px; background: #e6eee6;
}
.account-tab, .profile-tab {
  min-height: 44px; border: 0; border-radius: 9px; background: transparent; padding: 3px 5px; font-size: .86rem; font-weight: 750; line-height: 1.4;
}
.account-tab[aria-selected="true"], .profile-tab[aria-selected="true"], .account-tab.is-active, .profile-tab.is-active { color: var(--pine); background: var(--surface); box-shadow: 0 1px 3px #18342b1a; }
.account-panel, .profile-panel { min-width: 0; display: grid; gap: 11px; }
.account-footer { position: sticky; inset-block-end: 0; z-index: 2; padding: 9px 0 max(7px, env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); background: var(--surface); }
.account-footer .button { width: 100%; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.media-grid--references { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-card { min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--pine); text-align: start; text-decoration: none; }
.media-card-thumb { display: block; width: 100%; height: 112px; object-fit: cover; background-color: var(--mint); }
.media-card-label { display: block; padding: 6px 8px; font-size: .8rem; font-weight: 760; overflow-wrap: anywhere; }
.media-grid--references img { height: 160px; object-fit: contain; background: #eaf0e8; }
#app-dialog.dialog--viewer { max-width: 485px; }
.viewer-media { min-height: 220px; overflow: clip; border-radius: 14px; background: #112f29; color: white; position: relative; }
.viewer-media .venue-placeholder, .viewer-media img { width: 100%; min-height: clamp(225px, 52dvh, 500px); object-fit: cover; }
.viewer-media iframe { display: block; width: 100%; min-height: 210px; height: min(55dvh, 480px); border: 0; }
.viewer-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse, #15271d0b, #15271d70); }
.viewer-play { position: absolute; z-index: 1; inset: 50% auto auto 50%; transform: translate(-50%, -50%); color: white; border: 1px solid #ffffffbb; background: #173e34e8; }
.viewer-play:active { transform: translate(-50%, -50%) scale(.97); }
.viewer-controls { font-size: .82rem; }
.location-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; border: 1px solid #c3ddcf; border-radius: 12px; background: #ecf5ee; padding: 8px 11px; }
.location-card small, .location-card strong, .check-row small { display: block; }
.location-card small, .check-row small { color: var(--muted); }

.form-stack, .field-grid { display: grid; gap: 9px; }
.field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid > .field:has(> textarea) { grid-column: 1 / -1; }
.field { display: grid; gap: 4px; min-width: 0; font-size: .85rem; font-weight: 750; }
.field input, .field textarea, .field select {
  min-height: 44px; min-width: 0; width: 100%; padding: 6px 8px; border: 1px solid #c8d9cf; border-radius: 10px;
  background: #f9fbf6; color: var(--ink); font-size: max(1rem, 16px); font-weight: 500;
}
.field textarea { resize: vertical; }
.action-group .field { flex: 1 1 175px; }
.check-row { display: flex; align-items: start; gap: 7px; min-height: 44px; padding: 8px; border-radius: 10px; background: #eef5ee; }
.check-row input { inline-size: 19px; block-size: 19px; accent-color: var(--jade); flex-shrink: 0; }
.link-row { border-block-end: 1px solid var(--line); padding-block: 5px; overflow-wrap: anywhere; }
.editor-map { min-height: 225px; --babil-map-min-height: 225px; border: 1px solid var(--line); border-radius: 12px; overflow: clip; }
.toast, .dialog-toast {
  position: fixed; z-index: 9; inset-inline-start: 12px; inset-block-end: 15px; max-width: min(87vw, 360px);
  padding: 7px 11px; border-radius: 10px; background: var(--pine); color: #fff; box-shadow: 0 6px 14px #16382d4d; font-size: .84rem;
}
.toast:empty, .dialog-toast:empty { display: none; }

@keyframes arrival { from { transform: scale(1.045); } to { transform: scale(1); } }
@keyframes arrive-copy { from { transform: translateY(7px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes enter-sheet { from { transform: translateY(12px); opacity: .55; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 721px) and (max-width: 880px) {
  .site-header-inner { gap: 8px; }
  .brand { font-size: 1.07rem; }
  .primary-nav { gap: 2px; }
  .nav-item, .language-button, .reference-button { padding-inline: 8px; font-size: .85rem; }
}
@media (min-width: 600px) and (max-width: 720px) {
  .site-header-inner { grid-template-columns: 1fr auto; padding-block: 5px 6px; gap: 2px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  html { scroll-padding-block-start: 113px; }
}
@media (max-width: 599px) {
  html { scroll-padding-block: 64px 82px; }
  .site-header-inner { min-height: 56px; padding-inline: 11px; padding-block-start: env(safe-area-inset-top); grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .brand { font-size: 1.06rem; gap: 7px; }
  .babil-mark { width: 31px; height: 31px; border-radius: 10px; }
  .babil-mark span { width: 18px; height: 18px; }
  .reference-button { display: none; }
  .language-button { font-size: .84rem; padding-inline: 8px; }
  .primary-nav {
    position: fixed; justify-self: stretch; inset-inline: 0; inset-block-end: 0; border-radius: 0; gap: 2px; z-index: 6;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px 8px max(5px, env(safe-area-inset-bottom));
    border-block-start: 1px solid var(--line); background: var(--surface); box-shadow: 0 -5px 16px #20392d11;
  }
  .nav-item { min-height: 51px; gap: 3px; display: flex; flex-direction: column; padding: 3px 2px; font-size: .77rem; }
  .nav-item[aria-current="page"], .nav-item.is-active { box-shadow: none; color: var(--pine); background: var(--mint); }
  .page-wrap { padding: 9px 10px calc(70px + env(safe-area-inset-bottom)); }
  .hero { min-height: 190px; border-radius: 17px; }
  .hero-content { padding: 13px 14px; }
  .hero h1 { font-size: clamp(1.81rem, 8vw, 2.45rem); }
  .hero-description { max-width: 26ch; }
  .hero-button { margin-block-start: 7px; padding-inline: 9px; font-size: .85rem; }
  .hero::after { background: linear-gradient(to left, #112c25eb, #102b25a8 66%, #102b2544); }
  [dir="ltr"] .hero::after { background: linear-gradient(to right, #112c25eb, #102b25ad 66%, #102b2544); }
  .search-deck { margin-block: 9px 12px; padding: 6px 7px 2px; border-radius: 13px; }
  .search-form { gap: 6px; padding-inline-start: 8px; }
  .search-form input { font-size: 16px; }
  .search-submit { min-width: 53px; font-size: .84rem; padding-inline: 7px; }
  .search-options { grid-template-columns: 1fr; gap: 7px; }
  .directory-layout { grid-template-columns: minmax(0, 1fr); }
  .directory-layout:not([data-view="map"]) .map-shell, .directory-layout[data-view="map"] .results-panel { display: none; }
  #map-panel { min-height: 310px; --babil-map-min-height: 310px; }
  .directory-heading { gap: 5px; margin-inline: 0; }
  .view-switch button { padding-inline: 7px; gap: 5px; }
  .listing { min-height: 90px; }
  .listing-top h3 { font-size: .94rem; }
  .mobile-reference { display: inline-flex; align-items: center; }
  #app-dialog { inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  #app-dialog.dialog--viewer { max-width: none; background: #fbfefb; }
  #app-dialog[data-dialog="location"] { inset: auto 0 0; height: auto; border-radius: 20px 20px 0 0; }
  .dialog-head { padding-block-start: max(7px, env(safe-area-inset-top)); padding-inline: 11px; min-height: 58px; }
  .dialog-content { padding: 11px 11px max(13px, env(safe-area-inset-bottom)); gap: 10px; }
  .dialog-title { font-size: 1.14rem; }
  .dialog-head-actions .button { font-size: .82rem; padding-inline: 7px; }
  .viewer-media .venue-placeholder, .viewer-media img { min-height: clamp(225px, 54dvh, 510px); }
  .profile-photo { min-height: 144px; }
  .account-tab, .profile-tab { font-size: .78rem; }
  .toast { inset-block-end: calc(61px + max(0px, env(safe-area-inset-bottom))); }
}
@media (max-width: 375px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-thumb { width: 65px; }
  .profile-actions { grid-template-columns: repeat(auto-fit, minmax(83px, 1fr)); }
  .profile-actions .button { padding-inline: 6px; }
  .search-form input::placeholder { font-size: .81rem; }
  .reference-button, .view-switch button .map-pin-symbol, .view-switch button .list-symbol { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

