


.screen--fullmap {
  position: fixed;
  top: 56px;
  top: var(--topbar-h, 56px);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - var(--topbar-h, 56px));
  height: calc(100dvh - var(--topbar-h, 56px));
  margin: 0 !important;
  padding: 14px 18px 18px !important;
  box-sizing: border-box !important;
  max-width: none !important;
  overflow: hidden;
  z-index: 30;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.fullmap-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface-sunk);
}

.fullmap-canvas {
  width: 100%;
  height: 100%;
  background: #fbfaf8;
}

.fullmap-floating-top {
  position: absolute;
  top: 14px;
  left: 14px;
  width: min(420px, calc(100% - 150px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.fullmap-floating-top > * {
  pointer-events: auto;
}

.fullmap-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.fullmap-search-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  pointer-events: none;
}

.fullmap-search-box input {
  width: 100%;
  min-height: 44px;
  padding: 8px 42px 8px 48px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-family: inherit;
  box-shadow: var(--shadow-lift);
  transition: border-color .15s, box-shadow .15s;
}

.fullmap-search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lift);
}

.fullmap-search-clear {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: var(--surface-sunk);
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.fullmap-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 70;
  max-height: 320px;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.fullmap-chips-scroll {
  display: none !important;
}

.fullmap-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-1);
  white-space: nowrap;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all .15s ease;
  flex: 0 0 auto;
}

.fullmap-chip:hover {
  border-color: var(--accent-line);
  background: var(--bg);
}

.fullmap-chip.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 107, 90, .35);
}

.fullmap-chip--myresults {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}

.fullmap-chip--myresults.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.fullmap-chip--city {
  background: var(--surface-sunk);
  color: var(--ink-2);
}

.fullmap-chip-divider {
  width: 1px;
  height: 20px;
  background: var(--line-strong);
  margin: 0 2px;
  flex: 0 0 auto;
}

.fullmap-floating-controls {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 98px;
}

.fullmap-action-pill {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--ink-1);
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: all .15s ease;
}

.fullmap-action-pill:hover {
  background: var(--surface-sunk);
  border-color: var(--ink-3);
}

.fullmap-action-pill:active {
  transform: scale(.96);
}

.fullmap-action-pill svg {
  width: 15px;
  height: 15px;
  color: var(--ink-1);
  flex-shrink: 0;
}

#fullmapZoomIn, #fullmapZoomOut {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  padding: 0;
}

.fullmap-card-panel {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 410px;
  width: calc(100% - 32px);
  max-height: calc(100% - 130px);
  overflow-y: auto;
  z-index: 55;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lift);
  animation: fullmapSlideIn .22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fullmapSlideIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


.map-marker { cursor: pointer; transform: translate(-50%, -100%); transition: transform .18s cubic-bezier(.34, 1.56, .64, 1); z-index: 2; }
.map-marker-pin { display: flex; align-items: center; gap: 6px; background: var(--accent, #0f6b5a); color: #ffffff; padding: 4px 10px 4px 5px; border-radius: 999px; font-weight: 700; font-size: .8125rem; box-shadow: 0 3px 10px rgba(15, 107, 90, .35), 0 1px 3px rgba(0, 0, 0, .12); border: 2px solid #ffffff; position: relative; }
.map-marker-pin::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); border-width: 6px 5px 0 5px; border-style: solid; border-color: var(--accent, #0f6b5a) transparent transparent transparent; }
.map-marker-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; background: rgba(255, 255, 255, .22); border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 1px 6px; }
.map-marker-label { font-size: .78rem; font-weight: 700; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.map-marker:hover { transform: translate(-50%, -106%) scale(1.08); z-index: 10; }
.map-marker.is-selected { transform: translate(-50%, -108%) scale(1.15); z-index: 20; }
.map-marker.is-selected .map-marker-pin { background: #0a4f42; border-color: #ffd166; box-shadow: 0 0 0 3px rgba(255, 209, 102, .5), var(--shadow-lift); }
.map-marker.is-selected .map-marker-pin::after { border-top-color: #0a4f42; }
.map-marker--search .map-marker-pin { background: var(--accent, #0f6b5a); } .map-marker--search .map-marker-pin::after { border-top-color: var(--accent, #0f6b5a); }
.map-marker.is-shortlisted .map-marker-pin { background: var(--accent, #0f6b5a); border-color: #fef3c7; color: #ffffff; box-shadow: 0 0 0 2px #d97706, 0 3px 10px rgba(15, 107, 90, .45); }
.map-marker.is-shortlisted .map-marker-pin::after { border-top-color: var(--accent, #0f6b5a); }
.map-marker.is-selected.is-shortlisted .map-marker-pin { background: #0a4f42; border-color: #ffd166; box-shadow: 0 0 0 3px rgba(255, 209, 102, .6), var(--shadow-lift); }


.screen--fullmap ~ #shortlistTray,
.app:has(#s-map:not([hidden])) #shortlistTray {
  left: auto;
  right: 20px;
  transform: none;
  bottom: 20px;
  max-width: 480px;
  width: auto;
  min-width: 320px;
}

@media (max-width: 640px) {
  .screen--fullmap {
    padding: 8px 10px 10px !important;
  }
  .fullmap-container {
    border-radius: 16px;
  }
  .fullmap-floating-top {
    left: 10px;
    right: 10px;
    top: 10px;
    width: calc(100% - 20px);
  }
  .fullmap-floating-controls {
    right: 10px;
    top: 66px;
    bottom: auto;
    width: 92px;
  }
  .fullmap-action-pill {
    height: 38px;
    min-height: 38px;
  }
  .screen--fullmap ~ #shortlistTray,
  .app:has(#s-map:not([hidden])) #shortlistTray {
    left: 8px;
    right: 8px;
    bottom: 10px;
    width: calc(100% - 16px);
    max-width: none;
  }
  .fullmap-card-panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100% - 16px);
    max-height: 62vh;
    padding: 16px;
  }
  .app:has(#s-map:not([hidden])):has(#shortlistTray:not([hidden])) .fullmap-card-panel {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

.topbar-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-1);
  font-size: .8125rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all .15s ease;
}

.topbar-link-btn svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.topbar-link-btn:hover {
  background: var(--surface-sunk);
  border-color: var(--accent-line);
}

.topbar-link-btn.is-active,
.topbar-link-btn[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.topbar-link-btn.is-active svg,
.topbar-link-btn[aria-current="page"] svg {
  color: var(--accent-ink);
}

@media (max-width: 440px) {
  .topbar-link-label { display: none; }
  .topbar-link-btn { padding: 8px; width: 38px; height: 38px; justify-content: center; }
}

.chip--map {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1.5px solid var(--accent-line);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip--map:hover {
  background: #d5e9e3;
}

.chip--map svg {
  width: 16px;
  height: 16px;
}

.display-opt--full {
  background: var(--accent-soft);
  color: var(--accent);
}
