:root {
  --ink: #11211a;
  --muted: #627068;
  --paper: #f5f3ec;
  --card: #fffef9;
  --accent: #c8ff45;
  --line: #d9ddd5;
  --shadow: 0 18px 50px rgba(21, 40, 30, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

[hidden] {
  display: none !important;
}

.pwa-install-banner[hidden] {
  display: none !important;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(17, 33, 26, 0.12);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark,
.pwa-install-banner__icon {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.topbar-actions { display: flex; align-items: center; gap: 16px; }
.tagline { color: var(--muted); font-size: 0.9rem; }

.install-app-btn {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.install-app-btn:hover { background: var(--ink); color: var(--accent); }

main { padding: 0 5vw 42px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: clamp(40px, 8vw, 120px);
  padding: clamp(58px, 8vw, 110px) 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #67766d;
}

h1, h2, h3 { font-family: "Manrope", sans-serif; }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6.7vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero-copy {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.search-panel {
  padding: 24px;
  border-radius: 24px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.primary-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #aeb8b2;
  font-size: 0.78rem;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #405047;
}

.address-form {
  display: grid;
  grid-template-columns: 1fr 48px;
  overflow: hidden;
  border-radius: 14px;
  background: white;
}

.address-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
}

.address-form button {
  height: 48px;
  border: 0;
  background: white;
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}

.radius-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #c7d0ca;
  font-size: 0.88rem;
}

.radius-row select {
  border: 1px solid #516158;
  border-radius: 9px;
  padding: 7px 10px;
  background: #26372e;
  color: white;
}

.status {
  min-height: 18px;
  margin: 16px 0 0;
  color: #b7c2bb;
  font-size: 0.78rem;
}

.status.error { color: #ffc7c7; }

.results-layout {
  display: grid;
  grid-template-columns: minmax(340px, 42%) 1fr;
  min-height: 560px;
  height: min(720px, 76vh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.results-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.results-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 26px 18px;
}

.results-heading h2 { margin: 0; font-size: 1.5rem; }

.count {
  align-self: center;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 800;
}

.results { overflow-y: auto; padding: 0 14px 20px; }

.empty-state {
  min-height: 300px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.6rem;
}

.empty-state h3 { margin: 14px 0 4px; color: var(--ink); }
.empty-state p { max-width: 300px; margin: 0; }

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

.map-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  cursor: pointer;
}

.place-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  margin: 8px 0;
  padding: 16px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
}

.place-card:hover, .place-card.active {
  background: #f0f5e8;
  border-color: #cbdab9;
}

.place-number,
.place-pin {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
  font-weight: 800;
}

.place-number {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.place-pin {
  width: 36px;
  height: 36px;
  border: 3px solid white;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(0,0,0,.25);
  cursor: pointer;
}

.user-pin {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: .58rem;
  font-weight: 900;
}

.place-title-row { display: flex; justify-content: space-between; gap: 12px; }
.place-title-row h3 { margin: 0; font-size: 1rem; }
.place-title-row strong { white-space: nowrap; font-size: .83rem; }
.place-info p { margin: 5px 0 9px; color: var(--muted); font-size: .82rem; }
.place-info a { color: var(--ink); font-size: .78rem; font-weight: 700; }
.place-meta { display: flex; gap: 10px; margin-bottom: 8px; font-size: .76rem; color: #536159; }
.place-meta .open { color: #227447; }

.seo-content { max-width: 1100px; margin: 90px auto 20px; }
.seo-content > h2 {
  max-width: 800px;
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
}
.seo-intro { max-width: 780px; color: var(--muted); line-height: 1.75; }
.seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 42px 0 70px; }
.seo-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.seo-card p { color: var(--muted); line-height: 1.65; }

.faq-section { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 700; cursor: pointer; }
details p { max-width: 760px; color: var(--muted); line-height: 1.65; }

.pwa-install-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1000;
  width: min(760px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--card);
  box-shadow: 0 24px 70px rgba(17, 33, 26, 0.32);
  transform: translateX(-50%);
}

.pwa-install-banner__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: var(--ink); }
.pwa-install-banner__content strong { display: block; margin-bottom: 4px; }
.pwa-install-banner__content p { margin: 0; color: #c7d0ca; font-size: 0.86rem; }
.pwa-install-banner__actions { display: flex; gap: 8px; }
.pwa-banner-primary, .pwa-banner-dismiss {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.pwa-banner-primary { background: var(--accent); color: var(--ink); }
.pwa-banner-dismiss { background: transparent; color: #c7d0ca; }

.install-help-dialog {
  width: min(92vw, 480px);
  border: 0;
  border-radius: 20px;
  padding: 0;
}

.install-help-dialog::backdrop { background: rgba(17, 33, 26, 0.6); }
.install-help-content { position: relative; padding: 32px; background: var(--card); }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 5vw 34px;
  color: var(--muted);
  font-size: .78rem;
}

.skeleton-circle { width: 34px; height: 34px; border-radius: 10px; background: #e7e9e3; }
.skeleton-lines { display: grid; gap: 8px; }
.skeleton-lines span { display: block; height: 10px; border-radius: 999px; background: #e7e9e3; }
.skeleton-lines span:nth-child(2) { width: 85%; }
.skeleton-lines span:nth-child(3) { width: 55%; }

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

.place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.place-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.place-action:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--accent);
}

.contact-unavailable {
  margin-top: 9px !important;
  font-size: 0.74rem !important;
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .results-layout { grid-template-columns: 1fr; height: auto; }
  .results-panel { min-height: 520px; border-right: 0; border-bottom: 1px solid var(--line); }
  .map-wrap { height: 520px; }
  .seo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .pwa-install-banner { grid-template-columns: auto 1fr; }
  .pwa-install-banner__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 560px) {
  .tagline { display: none; }
  main { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 50px; gap: 34px; }
  h1 { font-size: 3.25rem; }
  .search-panel { padding: 18px; border-radius: 18px; }
  .results-layout { border-radius: 18px; }
  .map-wrap { height: 430px; }
  .pwa-install-banner { bottom: 10px; width: calc(100vw - 20px); }
  footer { padding-inline: 16px; flex-direction: column; }
}
