:root {
  color-scheme: light;
  --background: #FFFDF5;
  --foreground: #1E293B;
  --primary: #C981D6;
  --secondary: #F1F5F9;
  --soft-surface: #F1F5F9;
  --accent-fg: #FFFFFF;
  --pink: #FF9BAB;
  --yellow: #FFD473;
  --mint: #7AE9A8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --border: #E2E8F0;
  --interactive: #FF9BAB;
  --button: #FE9BAB;
  --button-hover: #D17C89;
  --muted: #64748B;
  --shadow-soft: 0 10px 15px -3px rgba(30, 41, 59, 0.04);
  --shadow-large: 0 25px 50px -12px rgba(30, 41, 59, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  position: relative;
  color: var(--foreground);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 212, 115, 0.22), transparent 32%),
    radial-gradient(circle at 78% 6%, rgba(201, 129, 214, 0.16), transparent 30%),
    var(--background);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  z-index: 2000;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

@keyframes photo-skeleton {
  0% {
    background-position: 220% 0, 0 0;
  }

  100% {
    background-position: -120% 0, 0 0;
  }
}

button,
input {
  font: inherit;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

button,
a,
input {
  transition:
    background-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 460ms cubic-bezier(0.22, 1, 0.36, 1),
    color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  height: 100vh;
  min-height: 620px;
}

.map-panel {
  position: relative;
  display: flex;
  min-height: 0;
  min-width: 0;
  padding: 0;
}

#map {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--soft-surface);
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
  outline: 0;
  touch-action: pan-x pan-y;
}

.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute !important;
  top: 0;
  left: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 650;
}

.leaflet-tooltip-pane {
  z-index: 660;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-tile,
.leaflet-tile-loaded,
.leaflet-marker-icon {
  opacity: 1 !important;
}

.category-marker {
  display: block;
}

.sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-right: 1px solid rgba(226, 232, 240, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(241, 245, 249, 0.76)),
    var(--background);
}

.sidebar-header {
  display: grid;
  gap: 12px;
  padding-bottom: 4px;
}

.brand-lockup {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 22px -16px rgba(30, 41, 59, 0.22);
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.eyebrow {
  margin: 0;
  color: var(--interactive);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-meta {
  display: grid;
  gap: 10px;
}

.area-pill {
  width: fit-content;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  padding: 6px 11px;
  color: #64748B;
  background: rgba(241, 245, 249, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: none;
  margin: 0;
  color: var(--foreground);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
}

.summary {
  max-width: 31ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.search-wrap {
  position: relative;
  display: grid;
  gap: 9px;
}

.search-wrap label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-wrap input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  padding: 13px 44px 13px 48px;
  color: var(--foreground);
  background: rgba(241, 245, 249, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.search-wrap::after {
  position: absolute;
  bottom: 14px;
  left: 18px;
  width: 20px;
  height: 20px;
  content: "";
  pointer-events: none;
  background: url("./assets/icons/searchicon.svg") center / contain no-repeat;
  opacity: 0.72;
}

.search-wrap input::placeholder {
  color: rgba(100, 116, 139, 0.72);
}

.search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 129, 214, 0.16);
  outline: none;
}

.search-clear {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--foreground);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  opacity: 0.72;
}

.search-clear:hover {
  opacity: 1;
  transform: scale(1.04);
}

.search-clear[hidden] {
  display: none;
}

.search-clear img {
  width: 16px;
  height: 16px;
}

.search-suggestions {
  position: absolute;
  z-index: 1300;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  border: 1px solid rgba(226, 232, 240, 0.74);
  border-radius: 16px;
  padding: 16px;
  background: #FFFFFF;
  box-shadow: 0 24px 54px -30px rgba(30, 41, 59, 0.34);
}

.search-suggestions.is-typed {
  border: 0;
  border-radius: 0 0 12px 12px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestions-title[hidden] {
  display: none;
}

.search-suggestions-title {
  margin: 0 0 8px;
  color: #4A4A4A;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.search-suggestions-list {
  display: grid;
}

.search-suggestion-item {
  display: grid;
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 8px 0;
  color: #1A1A1A;
  background: #FFFFFF;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus-visible {
  background: rgba(241, 245, 249, 0.78);
  outline: none;
}

.search-suggestion-query {
  overflow: hidden;
  min-width: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-match {
  color: #A78498;
}

.search-suggestion-count {
  color: #707070;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.category-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  white-space: nowrap;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.map-overlay {
  position: absolute;
  z-index: 500;
  top: 24px;
  left: 24px;
  width: max-content;
  max-width: calc(100% - 48px);
}

.map-expand-toggle {
  position: absolute;
  z-index: 610;
  right: 28px;
  bottom: 28px;
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  color: var(--foreground);
  background: rgba(255, 253, 245, 0.9);
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.12);
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.map-expand-symbol {
  display: grid;
  place-items: center;
  line-height: 1;
}

.map-expand-symbol img {
  width: 20px;
  height: 20px;
}

.desktop-zoom-controls {
  position: absolute;
  z-index: 610;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desktop-zoom-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #FFFFFF;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    opacity 240ms ease;
}

.desktop-zoom-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 18px rgba(0, 0, 0, 0.11),
    0 5px 8px rgba(0, 0, 0, 0.1);
}

.desktop-zoom-button:focus-visible {
  outline: 2px solid var(--button);
  outline-offset: 3px;
}

.desktop-zoom-button:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
}

.desktop-zoom-button img {
  width: 20px;
  height: 20px;
}

.map-locate-toggle {
  position: absolute;
  z-index: 610;
  right: 28px;
  bottom: 124px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #FFFFFF;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    opacity 240ms ease;
}

.map-locate-toggle:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 18px rgba(0, 0, 0, 0.11),
    0 5px 8px rgba(0, 0, 0, 0.1);
}

.map-locate-toggle:focus-visible {
  outline: 2px solid var(--button);
  outline-offset: 3px;
}

.map-locate-toggle:disabled {
  cursor: default;
  opacity: 0.46;
  transform: none;
}

.map-locate-toggle img {
  width: 18px;
  height: 18px;
}

.map-locate-toggle.is-loading img {
  opacity: 0.52;
  transform: rotate(22deg);
}

.map-locate-toggle.is-error {
  box-shadow:
    0 0 0 2px rgba(254, 155, 171, 0.72),
    0 10px 15px rgba(0, 0, 0, 0.1);
}

.expanded-map-toolbar,
.expanded-filter-sheet {
  display: none;
}

.expanded-filter-button {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px -18px rgba(30, 41, 59, 0.35);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.filter-count-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  display: grid;
  width: 16px;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: #FFFFFF;
  background: #FF9BAB;
  box-shadow:
    0 0 0 2px #FFFFFF,
    0 8px 16px -10px rgba(30, 41, 59, 0.38);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.filter-count-badge[hidden] {
  display: none;
}

.expanded-home-button {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.expanded-filter-button img {
  width: 24px;
  height: 24px;
}

.expanded-search-wrap {
  position: relative;
  min-width: 0;
}

.expanded-search-wrap > img {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  pointer-events: none;
}

.expanded-search-wrap input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 14px 50px 14px 52px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px -22px rgba(30, 41, 59, 0.42);
  font-size: 17px;
  font-weight: 400;
}

.expanded-search-wrap .search-clear {
  top: 50%;
  right: 18px;
  bottom: auto;
  transform: translateY(-50%);
}

.expanded-search-wrap .search-clear:hover {
  transform: translateY(-50%) scale(1.04);
}

.expanded-search-wrap input::placeholder {
  color: rgba(26, 26, 26, 0.62);
}

.filter-sheet-card {
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 0 0 28px 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 52px -26px rgba(30, 41, 59, 0.32);
  backdrop-filter: blur(16px);
}

.filter-sheet-card h2 {
  margin: 0 0 14px;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sheet-category-filters {
  flex-wrap: wrap;
  overflow: visible;
  padding: 0;
  white-space: normal;
}

.filter-button {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(254, 155, 171, 0.58);
  border-radius: 999px;
  padding: 6px 10px 6px 8px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
}

.filter-button:hover {
  transform: translateY(-1px);
  border-color: rgba(209, 124, 137, 0.72);
  background: rgba(255, 255, 255, 0.98);
}

.filter-button img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.filter-checkbox {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #FDD6DC;
  border-radius: 4px;
  background: transparent;
}

.filter-checkbox::after {
  width: 10px;
  height: 8px;
  background: url("./assets/icons/checkmarkicon.svg") center / contain no-repeat;
  content: "";
  opacity: 0;
}

.filter-button.active {
  color: var(--foreground);
  border-color: rgba(209, 124, 137, 0.58);
  background: rgba(255, 255, 255, 0.98);
}

.filter-button.active .filter-checkbox {
  border-color: #FF9BAB;
  background: #FF9BAB;
}

.filter-button.active .filter-checkbox::after {
  opacity: 1;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-place {
  position: relative;
  display: grid;
  gap: 13px;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 30px;
  padding: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  padding: 0;
  color: #64748B;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px -14px rgba(30, 41, 59, 0.26);
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.detail-close img {
  width: 18px;
  height: 18px;
}

.detail-close:hover {
  transform: translateY(-1px);
  color: #1E293B;
  background: #FFFFFF;
}

.selected-place.is-empty {
  display: none;
  border: 0;
  border-radius: 0;
  padding: 0 2px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.selected-place h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.08;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag.suburb {
  color: #475569;
  background: #F1F5F9;
}

.place-photo {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 156px;
  margin: 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(253, 214, 220, 0.56), rgba(230, 243, 255, 0.74)),
    #ffffff;
  box-shadow: 0 16px 32px -24px rgba(30, 41, 59, 0.2);
}

.place-photo::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.72) 46%, transparent 62%),
    linear-gradient(135deg, rgba(253, 214, 220, 0.64), rgba(230, 243, 255, 0.84));
  background-size: 220% 100%, 100% 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-24%);
}

.place-photo.is-loading::before {
  opacity: 1;
  animation: photo-skeleton 1400ms ease-in-out infinite;
}

.place-photo.is-loading img,
.place-photo.is-loading figcaption {
  opacity: 0;
}

.place-photo.is-loaded img,
.place-photo.is-loaded figcaption {
  opacity: 1;
}

.place-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.place-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(30, 41, 59, 0.72);
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.12);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  backdrop-filter: blur(8px);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.place-photo figcaption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.place-photo-placeholder {
  display: grid;
  place-items: center;
  color: rgba(100, 116, 139, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.place-photo-placeholder span {
  position: relative;
  z-index: 1;
}

.tag.category-cafe,
.place-category.category-cafe,
.popup .category.category-cafe {
  color: #7A2435;
  background: #FDD6DC;
}

.tag.category-pub-bar,
.place-category.category-pub-bar,
.popup .category.category-pub-bar {
  color: #684400;
  background: #FFE9B8;
}

.tag.category-park,
.place-category.category-park,
.popup .category.category-park {
  color: #2E5B1D;
  background: #D9F6C1;
}

.tag.category-shop,
.place-category.category-shop,
.popup .category.category-shop {
  color: #1D4F73;
  background: #E6F3FF;
}

.selected-description,
.selected-address {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.selected-address strong {
  display: block;
  margin-bottom: 3px;
  color: var(--foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.place-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.place-instagram-link {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(30, 41, 59, 0.54);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 20px rgba(30, 41, 59, 0.04);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 280ms ease,
    color 280ms ease,
    border-color 280ms ease,
    background 280ms ease;
}

.place-instagram-link:hover {
  color: #8C566F;
  border-color: #8C566F;
  background: rgba(255, 255, 255, 0.76);
  transform: translateY(-1px);
}

.place-instagram-link:active {
  color: var(--button);
  border-color: var(--button);
  transform: translateY(0);
}

.get-there {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--accent-fg);
  background: var(--button);
  box-shadow: 0 14px 24px rgba(30, 41, 59, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.get-there:hover {
  transform: translateY(-1px);
  background: var(--button-hover);
}

.empty-selection {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.place-list {
  display: grid;
  min-height: 0;
  gap: 13px;
  margin: 0;
  padding: 1px 2px 12px 0;
  overflow: auto;
  list-style: none;
  scrollbar-color: rgba(201, 129, 214, 0.34) transparent;
}

.selected-place-inline {
  margin: -3px 0 2px;
  padding: 0;
  list-style: none;
}

.list-contact-card {
  padding: 22px 4px 8px;
  color: var(--muted);
  background: transparent;
  list-style: none;
}

.contact-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 4px;
  row-gap: 2px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.contact-copyright {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.list-contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--foreground);
  font-weight: 500;
  text-decoration-color: rgba(30, 41, 59, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.list-contact-card a:hover {
  color: #8C566F;
  text-decoration-color: currentColor;
}

.list-contact-card a:active {
  color: var(--button);
}

.instagram-link-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: currentColor;
  fill: currentColor;
}

.place-card {
  --card-y: 0px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 28px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 4px 10px -4px rgba(30, 41, 59, 0.05);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 640ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform: translateY(var(--card-y));
}

.place-card:nth-child(even) {
  --card-y: 4px;
}

.place-card:hover,
.place-card:focus-within,
.place-card.selected {
  transform: translateY(calc(var(--card-y) - 1px));
  border-color: rgba(201, 129, 214, 0.36);
  box-shadow: 0 12px 28px -18px rgba(30, 41, 59, 0.16);
}

.place-card.selected {
  background: rgba(241, 245, 249, 0.92);
}

.place-card button {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  text-align: left;
  cursor: pointer;
}

.place-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 10px 18px rgba(30, 41, 59, 0.06);
}

.place-content {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.place-name {
  overflow: hidden;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-address,
.place-description {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.38;
}

.place-category {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaflet-popup-content-wrapper {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 50px -12px rgba(30, 41, 59, 0.12);
}

.leaflet-popup a.leaflet-popup-close-button {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  color: transparent !important;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px -14px rgba(30, 41, 59, 0.26);
  font-size: 0;
  line-height: 1;
  text-decoration: none !important;
}

.leaflet-popup a.leaflet-popup-close-button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  content: "";
  background: url("./assets/icons/x-closeicon.svg") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.leaflet-popup a.leaflet-popup-close-button:hover {
  transform: translateY(-1px);
  background: #FFFFFF;
}

.leaflet-popup-content {
  margin: 18px;
}

.leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.95);
}

.popup {
  display: grid;
  gap: 9px;
  min-width: 240px;
  padding-right: 30px;
  color: var(--foreground);
}

.popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.popup h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.12;
}

.popup p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.popup .category {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popup .category.suburb {
  color: #475569;
  background: #F1F5F9;
}

.popup .address-label {
  display: block;
  margin-bottom: 2px;
  color: var(--foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.popup .place-actions {
  margin-top: 4px;
}

.leaflet-bar {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.08) !important;
}

.leaflet-bar a {
  color: var(--foreground) !important;
  background: rgba(255, 253, 245, 0.9) !important;
}

.leaflet-control-attribution {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 0 4px !important;
  color: #000000 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 8px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.leaflet-control-attribution a {
  color: #000000 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}

@media (max-width: 860px) {
  html.map-expanded {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
  }

  body.map-expanded {
    width: 100%;
    height: 100svh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body:not(.map-expanded) {
    overflow-y: visible;
  }

  .app-shell {
    display: flex;
    min-height: 100svh;
    height: auto;
    flex-direction: column;
    overflow: visible;
  }

  body.map-expanded .app-shell {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .map-panel {
    order: 1;
    min-height: 300px;
    height: clamp(300px, 44svh, 390px);
    padding: 0;
    flex: 0 0 auto;
    transition:
      border-radius 420ms cubic-bezier(0.22, 1, 0.36, 1),
      height 520ms cubic-bezier(0.22, 1, 0.36, 1),
      padding 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .map-panel.is-expanded {
    position: fixed;
    z-index: 1800;
    inset: 0;
    height: 100svh;
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
    background: var(--background);
    overscroll-behavior: none;
  }

  #map {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .map-panel.is-expanded #map {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sidebar {
    display: block;
    order: 2;
    min-height: auto;
    height: auto;
    border-top: 1px solid var(--border);
    border-right: 0;
    padding: 18px;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }

  body.map-expanded .sidebar {
    visibility: hidden;
    pointer-events: none;
  }

  .sidebar > * + * {
    margin-top: 16px;
  }

  .map-overlay {
    display: none;
  }

  .map-panel.is-expanded .map-overlay {
    display: none;
  }

  .map-panel.is-expanded .expanded-map-toolbar {
    position: fixed;
    z-index: 1950;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: 16px;
    left: 16px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 52px;
    gap: 12px;
    align-items: center;
    pointer-events: none;
  }

  .map-panel.is-expanded .expanded-home-button,
  .map-panel.is-expanded .expanded-home-button .brand-logo {
    width: 48px;
    height: 48px;
  }

  .map-panel.is-expanded .expanded-map-toolbar > * {
    pointer-events: auto;
  }

  .map-panel.is-expanded.filter-sheet-open .expanded-filter-sheet {
    position: fixed;
    z-index: 1930;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    max-height: 50svh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: calc(env(safe-area-inset-top, 0px) + 88px) 16px 0;
    pointer-events: none;
  }

  .map-panel.is-expanded.filter-sheet-open .filter-sheet-card {
    pointer-events: auto;
  }

  .map-panel.is-expanded .sheet-category-filters .filter-button {
    min-height: 44px;
    padding: 8px 12px 8px 9px;
    font-size: 14px;
  }

  .filter-button {
    min-height: 34px;
    padding: 5px 9px 5px 7px;
    font-size: 12px;
  }

  .filter-button img {
    width: 20px;
    height: 20px;
  }

  .filter-checkbox {
    border-radius: 4px;
  }

  .map-expand-toggle {
    display: grid;
    right: 16px;
    bottom: 16px;
  }

  .map-expand-toggle[hidden] {
    display: none;
  }

  .desktop-zoom-controls {
    display: none;
  }

  .map-locate-toggle {
    display: none;
    right: 72px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 999px;
    background: rgba(255, 253, 245, 0.94);
    backdrop-filter: blur(10px);
  }

  .map-locate-toggle img {
    width: 20px;
    height: 20px;
  }

  .map-panel.is-expanded .map-expand-toggle {
    display: none;
  }

  .map-panel.is-expanded .map-locate-toggle {
    position: fixed;
    display: none;
    z-index: 1880;
    top: auto;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px -18px rgba(30, 41, 59, 0.35);
  }

  .leaflet-control-attribution {
    max-width: calc(100% - 20px);
    overflow: hidden;
    font-size: 8px !important;
    text-overflow: ellipsis;
  }

  .place-list {
    display: grid;
    min-height: auto;
    height: auto;
    overflow: visible !important;
    padding-right: 0;
  }

  body.map-expanded .selected-place:not(.is-empty) {
    position: fixed;
    z-index: 1900;
    right: 14px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    left: 14px;
    max-height: min(44svh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 24px 56px -22px rgba(30, 41, 59, 0.38);
  }

  body.map-expanded .selected-place h2 {
    padding-right: 34px;
    font-size: 22px;
  }

  body.map-expanded .selected-description,
  body.map-expanded .selected-address {
    font-size: 13px;
    line-height: 1.45;
  }

  body.map-expanded .place-photo {
    min-height: 120px;
  }

  body.map-expanded .place-photo img {
    aspect-ratio: 16 / 8;
  }

  h1 {
    max-width: none;
    font-size: 34px;
  }

  .brand-lockup {
    gap: 12px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .summary {
    max-width: none;
  }

  .place-card:nth-child(even) {
    transform: none;
  }
}
