:root {
  --bg: #10131a;
  --panel: #171b24;
  --panel-2: #202633;
  --text: #f6f2ea;
  --muted: #b6ac9e;
  --accent: #38c0c6;
  --accent-2: #f2ad4e;
  --brand-yellow: #ffd01f;
  --border: rgba(255,255,255,.10);
  --shadow: 0 22px 70px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.sidebar {
  background: linear-gradient(180deg, var(--panel) 0%, #11151d 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-shadow: var(--shadow);
  z-index: 2;
}

.site-header { padding: 28px 28px 18px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.brand-logo {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}
.eyebrow {
  color: var(--brand-yellow);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: 12px;
  margin: 0 0 10px;
}

h1 { font-size: clamp(34px, 5vw, 56px); line-height: .95; margin: 0 0 16px; }
.intro { color: var(--muted); line-height: 1.55; margin: 0; }

.place-list {
  padding: 10px 18px 24px;
  display: grid;
  gap: 14px;
  overflow-y: auto;
}

.place-card {
  width: 100%;
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 15px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px;
  color: inherit;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.place-card:hover,
.place-card:focus-visible,
.place-card.is-active {
  transform: translateY(-2px);
  background: var(--panel-2);
  border-color: rgba(56,192,198,.55);
  outline: none;
}


.place-card--invalid {
  cursor: default;
  opacity: .68;
}

.place-card--invalid:hover {
  transform: none;
  background: rgba(255,255,255,.035);
  border-color: var(--border);
}

.place-card img {
  width: 98px;
  height: 98px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}

.place-content { min-width: 0; }
.place-title {
  margin: 3px 0 6px;
  font-size: 22px;
  line-height: 1.05;
}
.place-address, .place-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}
.place-description { margin-top: 8px; }
.place-link-hint {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 28px 24px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.map-wrap { min-height: 100vh; position: relative; }
#map { height: 100%; width: 100%; min-height: 100vh; }

.map-info {
  color: #1d1d1f;
  max-width: 230px;
  font-family: Inter, Arial, sans-serif;
}
.map-info h2 { margin: 0 0 6px; font-size: 18px; }
.map-info p { margin: 0 0 10px; line-height: 1.35; }
.map-info a { color: #006c7a; font-weight: 800; }
.map-info-image-link {
  display: block;
  margin: 0 0 10px;
}
.map-info-image-link img {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .place-list { grid-auto-flow: column; grid-auto-columns: minmax(285px, 86vw); overflow-x: auto; overflow-y: hidden; padding-bottom: 16px; }
  .map-wrap, #map { min-height: 62vh; }
}

/* Leaflet fallback: keeps the map displayed correctly even if the external Leaflet CSS file from the CDN does not load. */
.leaflet-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #ddd;
  outline-offset: 1px;
  font-family: Inter, Arial, sans-serif;
}
.leaflet-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; left: 0; top: 0; }
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow { user-select: none; -webkit-user-drag: none; }
.leaflet-tile { width: 256px; height: 256px; filter: saturate(.88) contrast(.97); }
.leaflet-safari .leaflet-tile { image-rendering: -webkit-optimize-contrast; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-interactive { cursor: pointer; }
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab { cursor: grabbing; }
.leaflet-control { position: relative; z-index: 800; pointer-events: visiblePainted; 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-control { float: left; clear: both; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }
.leaflet-control-zoom a {
  display: block;
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  color: #222;
  background: #fff;
  border-bottom: 1px solid #ccc;
  font: bold 20px/30px Arial, sans-serif;
}
.leaflet-control-zoom a:first-child { border-top-left-radius: 6px; border-top-right-radius: 6px; }
.leaflet-control-zoom a:last-child { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; border-bottom: 0; }
.leaflet-control-attribution {
  background: rgba(255,255,255,.82);
  margin: 0;
  padding: 2px 6px;
  color: #333;
  font-size: 11px;
}
.leaflet-control-attribution a { color: #006c7a; }
.leaflet-popup { position: absolute; text-align: center; margin-bottom: 20px; }
.leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  padding: 1px;
  text-align: left;
}
.leaflet-popup-content { margin: 13px 18px; min-width: 160px; line-height: 1.4; }
.leaflet-popup-tip-container { position: absolute; left: 50%; margin-left: -20px; width: 40px; height: 20px; overflow: hidden; pointer-events: none; }
.leaflet-popup-tip { width: 17px; height: 17px; padding: 1px; margin: -10px auto 0; transform: rotate(45deg); background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 8px 0 0;
  border: none;
  text-align: center;
  width: 24px;
  height: 24px;
  font: 18px/20px Tahoma, Verdana, sans-serif;
  color: #666;
  text-decoration: none;
  background: transparent;
}
/* Round location image directly on the map — without a classic pin. */
.leaflet-marker-icon.map-pin {
  background: transparent;
  border: 0;
}
.leaflet-marker-icon.map-pin--image {
  width: 82px !important;
  height: 82px !important;
  margin-left: -41px !important;
  margin-top: -41px !important;
  cursor: pointer;
  border-radius: 50%;
  padding: 5px;
  background: var(--brand-yellow);
  border: 4px solid #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.38);
  transition: transform .18s ease, box-shadow .18s ease;
}
.leaflet-marker-icon.map-pin--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
}
.leaflet-marker-icon.map-pin--image:hover,
.leaflet-marker-icon.map-pin--image:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(0,0,0,.48);
}
