:root { --map-header: 66px; --map-switch: 62px; }
html, body.map-page { height: 100%; overflow: hidden; background: #dce7e2; }
.map-page { margin: 0; }
.map-app { height: 100%; min-height: 100dvh; }
.map-app__header { position: fixed; z-index: 720; top: 0; right: 0; left: 0; display: grid; min-height: calc(var(--map-header) + env(safe-area-inset-top)); grid-template-columns: 1fr auto 1fr; align-items: end; padding: env(safe-area-inset-top) 18px 10px; border-bottom: 1px solid rgba(23, 33, 27, .09); background: rgba(250, 252, 249, .94); box-shadow: 0 5px 22px rgba(23, 33, 27, .08); backdrop-filter: blur(18px); }
.map-app__back, .map-app__brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.map-app__back { width: fit-content; min-height: 44px; gap: 7px; font-size: 13px; font-weight: 800; }
.map-app__back span:first-child { font-size: 22px; font-weight: 500; }
.map-app__brand { justify-self: center; gap: 9px; }
.map-app__brand span { display: grid; line-height: 1.05; }
.map-app__brand strong { font-size: 15px; }
.map-app__brand small { margin-top: 4px; color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.map-app__help { width: 42px; height: 42px; justify-self: end; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; font-size: 18px; font-weight: 800; }
.public-map--app { position: fixed; inset: calc(var(--map-header) + env(safe-area-inset-top)) 0 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.public-map--app .public-map__canvas { min-height: 0; touch-action: none; }
.map-app__controls { top: 14px; right: 14px; left: 14px; }
.map-app__search-area { position: absolute; z-index: 405; top: 82px; left: 50%; min-height: 42px; padding: 0 16px; border: 1px solid rgba(23, 33, 27, .12); border-radius: 999px; background: #fff; box-shadow: 0 10px 24px rgba(23, 33, 27, .2); color: var(--ink); cursor: pointer; font: 800 12px Manrope, Arial, sans-serif; transform: translateX(-50%); }
.map-app__search-area[hidden] { display: none; }
.map-app__switch { position: absolute; z-index: 710; right: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; width: min(270px, calc(100% - 28px)); grid-template-columns: 1fr 1fr; padding: 5px; border: 1px solid rgba(23, 33, 27, .1); border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: 0 12px 34px rgba(23, 33, 27, .2); transform: translateX(50%); backdrop-filter: blur(12px); }
.map-app__switch button { min-height: 43px; border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; font: 800 12px Manrope, Arial, sans-serif; }
.map-app__switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.map-app__list { position: absolute; z-index: 500; inset: 0; padding: 24px max(20px, calc((100% - 1040px) / 2)) calc(92px + env(safe-area-inset-bottom)); overflow-y: auto; background: #f5f7f2; }
.map-app__list[hidden] { display: none; }
.map-app__list > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 76px 0 22px; }
.map-app__list small { color: var(--aqua-dark); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.map-app__list h1 { margin: 6px 0 0; font-size: clamp(30px, 5vw, 52px); letter-spacing: -.055em; }
.map-app__list > header strong { color: var(--ink-soft); font-size: 13px; }
[data-map-list-items] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.map-list-card { display: grid; min-width: 0; grid-template-columns: 92px 1fr; gap: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.map-list-card[aria-current="true"] { border-color: var(--aqua-dark); box-shadow: 0 0 0 3px rgba(35, 183, 199, .16); }
.map-list-card img, .map-list-card__placeholder { width: 92px; height: 88px; border-radius: 12px; object-fit: cover; }
.map-list-card__placeholder { display: grid; place-items: center; background: #dce9e1; color: var(--green); font-size: 26px; font-weight: 800; }
.map-list-card > span { display: grid; align-content: center; min-width: 0; gap: 4px; }
.map-list-card small { overflow: hidden; color: var(--aqua-dark); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.map-list-card strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.map-list-card em { overflow: hidden; color: var(--ink-soft); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.map-sheet { position: absolute; z-index: 620; right: 18px; bottom: 86px; width: min(390px, calc(100% - 36px)); overflow: hidden; border: 1px solid rgba(23, 33, 27, .1); border-radius: 22px; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 48px rgba(23, 33, 27, .24); }
.map-sheet[hidden] { display: none; }
.map-sheet__handle { display: none; }
.map-sheet__content { padding: 12px; }
.map-sheet-card { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 13px; }
.map-sheet-card__close { position: absolute; z-index: 2; top: 0; right: 0; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.96); color: var(--ink); cursor: pointer; font-size: 20px; }
.map-sheet-card__body { padding-right: 38px; }
.map-sheet-card__cover, .map-sheet-card__placeholder { width: 112px; height: 118px; border-radius: 15px; object-fit: cover; }
.map-sheet-card__placeholder { display: grid; place-items: center; background: #dce9e1; color: var(--green); font-size: 34px; font-weight: 800; }
.map-sheet-card__body { display: grid; min-width: 0; align-content: start; gap: 5px; }
.map-sheet-card__body > small { color: var(--aqua-dark); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.map-sheet-card h2 { margin: 0; font-size: 19px; letter-spacing: -.035em; line-height: 1.15; }
.map-sheet-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink-soft); font-size: 11px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.map-sheet-card__actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 7px; padding-top: 3px; }
.map-sheet-card__actions a, .map-sheet-card__actions button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #f2f5f1; color: var(--ink); cursor: pointer; font: 800 10px Manrope, Arial, sans-serif; text-decoration: none; }
.map-sheet-card__actions a:first-child { border-color: var(--ink); background: var(--ink); color: #fff; }
.map-onboarding { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; }
.map-onboarding[hidden] { display: none; }
.map-onboarding__backdrop { position: absolute; inset: 0; background: rgba(10, 22, 15, .58); backdrop-filter: blur(6px); }
.map-onboarding__card { position: relative; display: grid; width: min(440px, 100%); gap: 14px; padding: 34px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 26px; outline: 0; background: #fbfdf9; box-shadow: 0 28px 80px rgba(6, 18, 11, .35); }
.map-onboarding__card h2 { max-width: 330px; margin: 0; font-size: clamp(30px, 7vw, 42px); letter-spacing: -.06em; line-height: 1; }
.map-onboarding__card > p:not(.eyebrow) { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.map-onboarding__card ul { display: grid; margin: 2px 0; padding: 0; gap: 9px; list-style: none; }
.map-onboarding__card li { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 750; }
.map-onboarding__card li span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #e1f1ee; color: var(--aqua-dark); font-size: 19px; }
.map-onboarding__card > small { color: var(--ink-soft); font-size: 11px; }
.map-onboarding__card .button { width: 100%; margin-top: 4px; border: 0; }
.map-onboarding__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: #edf1eb; color: var(--ink); cursor: pointer; font-size: 24px; }
.map-tip { position: fixed; z-index: 850; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); left: 14px; display: flex; max-width: 520px; align-items: center; justify-content: space-between; gap: 12px; margin: auto; padding: 12px 12px 12px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 15px; background: rgba(23, 33, 27, .94); box-shadow: 0 12px 30px rgba(23, 33, 27, .25); color: #fff; }
.map-tip[hidden] { display: none; }
.map-tip p { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.4; }
.map-tip button { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 20px; }

@media (max-width: 720px) {
  :root { --map-header: 62px; }
  .map-app__header { padding-right: 12px; padding-bottom: 8px; padding-left: 12px; }
  .map-app__back span:last-child, .map-app__brand small { display: none; }
  .map-app__back { width: 42px; justify-content: center; }
  .map-app__brand img { width: 34px; height: 34px; }
  .map-app__brand strong { font-size: 14px; }
  .map-app__help { width: 40px; height: 40px; }
  .map-app__controls { top: 10px; right: 10px; left: 10px; align-items: start; }
  .map-app__controls .map-search { min-height: 48px; }
  .map-app__controls .map-search input {
    font-size: 16px;
    line-height: 1.25;
    text-decoration: none;
    text-shadow: none;
    transform: none;
    -webkit-text-fill-color: currentColor;
  }
  .map-app__controls .map-tools button { width: 42px; height: 42px; }
  .map-app__controls .map-tools button[data-map-reset] { display: none; }
  .public-map--app .map-filters { z-index: 730; inset: 0; width: auto; max-height: none; padding: 22px 16px calc(92px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: rgba(250, 252, 249, .99); }
  .public-map--app .map-filters__heading { top: -22px; margin: -22px -16px 0; padding: 18px 16px 12px; }
  .public-map--app .map-filters__heading .map-filters__close { display: grid; }
  .map-app__search-area { top: 70px; }
  .public-map--app .public-map__loading { top: 68px; }
  .public-map--app .public-map__results { top: 66px; }
  .public-map--app .map-legend { right: 8px; bottom: calc(74px + env(safe-area-inset-bottom)); left: 8px; max-width: none; max-height: 32px; justify-content: flex-start; overflow: hidden; }
  .public-map--app .map-legend span { padding-right: 7px; font-size: 8px; }
  .public-map--app .public-map__status { right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 10px; }
  .map-app__list { padding: 16px 14px calc(92px + env(safe-area-inset-bottom)); }
  .map-app__list > header { margin: 74px 2px 18px; }
  .map-app__list h1 { font-size: 30px; }
  [data-map-list-items] { grid-template-columns: 1fr; gap: 9px; }
  .map-list-card { grid-template-columns: 84px 1fr; }
  .map-list-card img, .map-list-card__placeholder { width: 84px; height: 78px; }
  .map-sheet { position: absolute; right: 0; bottom: calc(68px + env(safe-area-inset-bottom)); left: 0; width: auto; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 24px 24px 0 0; transition: transform .24s ease; }
  .map-sheet[data-sheet-state="collapsed"] { transform: translateY(calc(100% - 94px)); }
  .map-sheet[data-sheet-state="medium"] { transform: translateY(0); }
  .map-sheet[data-sheet-state="expanded"] { top: 84px; overflow-y: auto; transform: translateY(0); }
  .map-sheet__handle { display: grid; width: 100%; height: 26px; place-items: center; background: transparent; cursor: pointer; }
  .map-sheet__handle span { width: 42px; height: 4px; border-radius: 99px; background: #c9d1ca; }
  .map-sheet__content { padding: 2px 14px 16px; }
  .map-sheet-card { grid-template-columns: 92px 1fr; }
  .map-sheet-card__cover, .map-sheet-card__placeholder { width: 92px; height: 84px; }
  .map-sheet[data-sheet-state="collapsed"] .map-sheet-card__actions,
  .map-sheet[data-sheet-state="collapsed"] .map-sheet-card p { display: none; }
  .map-sheet[data-sheet-state="expanded"] .map-sheet-card { grid-template-columns: 1fr; }
  .map-sheet[data-sheet-state="expanded"] .map-sheet-card__body { padding-right: 0; }
  .map-sheet[data-sheet-state="expanded"] .map-sheet-card__cover,
  .map-sheet[data-sheet-state="expanded"] .map-sheet-card__placeholder { width: 100%; height: min(38vh, 290px); }
  .map-sheet-card__actions a, .map-sheet-card__actions button { flex: 1 1 42%; }
  .map-onboarding { align-items: end; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .map-onboarding__card { max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); overflow-y: auto; padding: 28px 22px 22px; border-radius: 25px; }
}

@media (max-width: 360px) {
  .map-app__controls .map-search input { font-size: 16px; }
  .map-app__controls .map-tools button { width: 40px; }
  .map-onboarding__card { gap: 10px; padding: 24px 18px 18px; }
  .map-onboarding__card h2 { font-size: 29px; }
  .map-onboarding__card li { font-size: 11px; }
  .map-onboarding__card li span { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .map-sheet { transition: none; }
}
