/* Self-hosted Inter — no third-party cookies or render-blocking CDN */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("/fonts/inter-400.woff2") format("woff2"),
    url("/fonts/inter-400.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url("/fonts/inter-500.woff2") format("woff2"),
    url("/fonts/inter-500.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url("/fonts/inter-600.woff2") format("woff2"),
    url("/fonts/inter-600.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("/fonts/inter-700.woff2") format("woff2"),
    url("/fonts/inter-700.ttf") format("truetype");
}

:root {
  /* Brand surfaces */
  --base-dark: #122a1e;
  --brand-green: #1a3d2b;
  --brand-green-light: #2a5e40;
  --brand-green-hover: #347a50;

  /* Accent */
  --mint: #73d4a0;
  --mint-soft: #c8e6c9;

  /* Content surfaces */
  --bg: #f7f7f5;
  --card: #ffffff;
  --border: #e8e8e8;
  --border-light: #f0f0ee;

  /* Text on light — contrast-tuned for WCAG AA on #f7f7f5 / #ffffff */
  --text-primary: #111111;
  --text-secondary: #595959;
  --text-tertiary: #6b6b6b;

  /* Text on dark */
  --on-dark: #e0efe4;
  --on-dark-secondary: rgba(255, 255, 255, 0.55);
  --on-dark-muted: rgba(255, 255, 255, 0.35);

  /* Status */
  --open: #22c55e;
  --closing-soon: #f59e0b;
  --closed: #ef4444;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-2xl: 20px;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lifted: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-floating: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.14);

  /* Layout */
  --content-max: 1080px;
  --edge-mobile: 16px;
  --edge-tablet: 24px;
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-feature-settings: "cv01", "cv02", "cv11", "ss01";
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font: inherit;
  border: 0;
  background: none;
}

/* ======== GREEN ZONE ======== */

.green-zone {
  background: var(--base-dark);
  padding: 0 var(--edge-mobile) 20px;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.green-zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.green-zone-back {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

/* ======== LOGO ======== */

.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--mint);
  letter-spacing: -0.03em;
}

.logo-small {
  font-size: 15px;
}

/* ======== HEADER (desktop) ======== */

.site-header {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 247, 245, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  gap: 24px;
  height: 52px;
}

.site-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 150ms ease;
}

.site-header-logo:hover { opacity: 0.65; }

.site-header-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--base-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
  justify-content: center;
  letter-spacing: -0.005em;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--text-primary);
}

.site-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* Hide auth buttons on static pages until client-side auth check resolves */
.site-header-cta[data-server-authed="false"]:not([data-auth-resolved]) {
  visibility: hidden;
}

.site-header-submit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 4px;
  letter-spacing: -0.005em;
  transition: color 150ms ease;
}

.site-header-submit:hover { color: var(--text-primary); }

.site-header-explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--base-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background 150ms ease;
}

.site-header-explore:hover {
  background: #1a3d2b;
}

.site-header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--base-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  transition: transform 150ms ease, opacity 150ms ease;
}

.site-header-avatar:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.site-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======== HEADER: overlay variant (dark hero pages) ======== */

.site-header-overlay {
  position: absolute;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}

.site-header-overlay .site-header-logo {
  color: #fff;
}

.site-header-overlay .site-header-logo-mark {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.site-header-overlay .site-nav {
  color: rgba(255, 255, 255, 0.72);
}

.site-header-overlay .site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header-overlay .site-header-submit {
  color: rgba(255, 255, 255, 0.72);
}

.site-header-overlay .site-header-submit:hover { color: #fff; }

.site-header-overlay .site-header-explore {
  background: #fff;
  color: var(--base-dark);
}

.site-header-overlay .site-header-explore:hover {
  background: #fff;
  color: var(--base-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Overlay header is absolutely positioned — body becomes the positioning
 * context so the header pins to the top of the page. */
.body-overlay {
  position: relative;
}

/* ======== BOTTOM NAV ======== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  padding: 8px 12px 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--base-dark);
  border-top: none;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  min-width: 64px;
  min-height: 48px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-item.active {
  color: #fff;
}

.nav-icon {
  font-size: 22px;
  line-height: 1;
}

.nav-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ======== HERO TEXT (on green) ======== */

.hero-display {
  font-size: 26px;
  font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--on-dark-secondary);
  margin-top: 6px;
  max-width: 300px;
}

/* ======== SECTION LABEL ======== */

.section-label-dark {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-tertiary);
}

/* ======== SEARCH ======== */

.search-dark {
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  color: white;
  width: 100%;
}

.search-dark::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-light {
  padding: 11px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
}

.search-light::placeholder {
  color: var(--text-tertiary);
}

/* ======== PILLS ======== */

.pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pills-row::-webkit-scrollbar {
  display: none;
}

.pill {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.pill-active-dark {
  background: var(--brand-green-light);
  color: var(--mint-soft);
}

.pill-inactive-dark {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
}

.pill-active-light {
  background: var(--brand-green-light);
  color: white;
}

.pill-inactive-light {
  background: var(--border-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ======== BUTTONS ======== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  background: var(--brand-green-light);
  color: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: background 180ms ease;
}

.btn-primary:hover {
  background: var(--brand-green-hover);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.btn-ghost:hover {
  background: #f0f0f0;
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease;
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ======== PLACE CARD (minimal) ======== */

.place-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.place-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lifted);
}

.place-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.place-card-verdict {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.4;
}

.place-card-arrow {
  font-size: 16px;
  color: #ccc;
  flex-shrink: 0;
  margin-inline-start: 12px;
}

/* ======== FEATURED CARD ======== */

.featured-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lifted);
}

.featured-card-image {
  height: 120px;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  object-fit: cover;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.featured-card-body {
  padding: 12px 14px;
}

.featured-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.featured-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ======== CITY HERO (with photo) ======== */

.city-hero {
  background: var(--base-dark);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  overflow: hidden;
}

.city-hero-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-light));
  position: relative;
}

.city-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(18, 42, 30, 0.9) 100%);
}

.city-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--edge-mobile) 16px;
  margin-top: -60px;
}

.city-hero-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.city-hero-content p {
  font-size: 13px;
  color: var(--on-dark-secondary);
  margin-top: 4px;
}

.city-hero-meta {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--on-dark-muted);
  font-weight: 500;
}

/* ======== PLACE PAGE ======== */

.place-hero-desktop {
  display: contents;
}

.place-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--brand-green-light), #4a7c59, #6a9970);
  position: relative;
}

.place-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-image-back {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: white;
  font-size: 16px;
  z-index: 2;
}

.place-sidebar {
  padding: 20px var(--edge-mobile);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.place-breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.place-breadcrumb:hover {
  color: var(--text-secondary);
}

.place-body {
  padding: 0 var(--edge-mobile) 80px;
}

.place-body-grid {
  display: contents;
}

.place-body-main,
.place-body-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.place-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.place-location {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.place-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}

.place-open-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-open {
  color: var(--open);
}

.status-open .place-open-dot {
  background: var(--open);
}

.status-closing {
  color: var(--closing-soon);
}

.status-closing .place-open-dot {
  background: var(--closing-soon);
}

.status-closed {
  color: var(--closed);
}

.status-closed .place-open-dot {
  background: var(--closed);
}

.place-verdict {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
  padding: 16px;
  background: linear-gradient(135deg, rgba(42, 94, 64, 0.06), rgba(42, 94, 64, 0.02));
  border-inline-start: 3px solid var(--brand-green-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ======== EXPORT BUTTONS ======== */

.export-row {
  display: flex;
  gap: 8px;
}

.export-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--brand-green-light);
  color: white;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  border: none;
  min-height: 44px;
  transition: background 180ms ease;
}

.export-btn:hover {
  background: var(--brand-green-hover);
}

.export-btn-ghost {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  transition: background 180ms ease;
}

.export-btn-ghost:hover {
  background: #f0f0f0;
}

/* ======== INFO ROWS ======== */

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row-label {
  color: var(--text-tertiary);
  font-weight: 500;
}

.info-row-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: end;
  max-width: 200px;
}

.info-row-link {
  color: var(--brand-green-light);
}

/* ======== TAB ROW ======== */

.tab-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 0 calc(-1 * var(--edge-mobile));
  padding: 0 var(--edge-mobile);
}

.tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.tab-active {
  color: var(--text-primary);
  border-bottom-color: var(--brand-green-light);
}

/* ======== LIGHT ZONE CONTENT ======== */

.light-zone {
  padding: 20px var(--edge-mobile) 80px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-gap {
  margin-top: 48px;
}

/* ======== FORM SHELL ======== */

.form-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.form-shell label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.form-shell input,
.form-shell textarea,
.form-shell select {
  padding: 11px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  color: var(--text-primary);
}

.form-shell input::placeholder,
.form-shell textarea::placeholder {
  color: var(--text-tertiary);
}

/* ======== FOOTER ======== */

.site-footer {
  padding: 24px var(--edge-mobile) calc(24px + 72px);
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}

.site-footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: -0.005em;
}

.site-footer nav {
  display: flex;
  gap: 12px;
}

.site-footer a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 4px;
}

.site-footer a:hover {
  color: var(--text-secondary);
}

@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: 24px;
  }
}


/* ======== GUIDE BODY ======== */

.guide-body {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ======== EDITORIAL NOTES (place page) ======== */

.note-section {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.note-section h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.note-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Info rows grouped in a card when inside sidebar */
.info-card-group {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ======== HOURS GRID ======== */

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.hour-row:last-child {
  border-bottom: none;
}

.hour-day {
  font-weight: 600;
  color: var(--text-primary);
}

.hour-time {
  color: var(--text-secondary);
}

/* ======== REVIEWS ======== */

/* Review form */
.review-form {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.review-form-header {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.review-form-row {
  margin-bottom: 16px;
}

.review-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.review-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color 150ms ease;
  box-sizing: border-box;
}

.review-form-input:focus {
  outline: none;
  border-color: var(--brand-green-light);
}

.review-form-input::placeholder {
  color: var(--text-tertiary);
}

.review-form-textarea {
  min-height: 80px;
  resize: vertical;
}

.review-form-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 4px;
  transition: color 150ms ease;
}

.review-form-toggle:hover {
  color: var(--text-secondary);
}

.review-form-detail {
  overflow: hidden;
  transition: max-height 250ms ease, opacity 200ms ease;
}

.review-form-submit {
  width: 100%;
  padding: 12px;
  background: var(--base-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
  margin-top: 4px;
}

.review-form-submit:hover:not(:disabled) {
  background: var(--brand-green);
}

.review-form-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.review-form-signin {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.review-form-signin a {
  color: var(--brand-green-light);
  font-weight: 600;
  text-decoration: none;
}

.review-form-success {
  padding: 16px;
  background: rgba(42, 94, 64, 0.06);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--brand-green-light);
  font-weight: 500;
}

.review-form-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.review-form-rating-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.review-card {
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-md);
}

.review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.review-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 6px;
}

/* ======== BUSINESS CARDS ======== */

.info-card {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.info-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ======== RESPONSIVE ======== */

@media (min-width: 640px) {
  .green-zone {
    padding-inline-start: var(--edge-tablet);
    padding-inline-end: var(--edge-tablet);
  }

  .light-zone {
    padding-inline-start: var(--edge-tablet);
    padding-inline-end: var(--edge-tablet);
  }

  .city-hero-content {
    padding-inline-start: var(--edge-tablet);
    padding-inline-end: var(--edge-tablet);
  }

  .place-content {
    padding-inline-start: var(--edge-tablet);
    padding-inline-end: var(--edge-tablet);
  }

  .tab-row {
    margin: 0 calc(-1 * var(--edge-tablet));
    padding: 0 var(--edge-tablet);
  }

}

@media (min-width: 1024px) {
  /* Show desktop header, hide mobile nav */
  .site-header {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  /* Scale up type */
  .hero-display {
    font-size: 40px;
  }

  .place-name {
    font-size: 28px;
  }

  .city-hero-content h1 {
    font-size: 36px;
  }

  /* Green zone: constrain width, center, add rounded corners on all sides */
  .green-zone {
    max-width: var(--content-max);
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    padding: 24px 32px 28px;
    margin-top: 8px;
  }

  /* City hero: constrain and round */
  .city-hero {
    max-width: var(--content-max);
    margin: 8px auto 0;
    border-radius: var(--radius-2xl);
  }

  .city-hero-image {
    height: 240px;
  }

  .city-hero-content {
    padding-inline-start: 32px;
    padding-inline-end: 32px;
  }

  /* Place page: 2-column hero (image left, info right) */
  .place-hero-desktop {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    max-width: var(--content-max);
    margin: 8px auto 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
  }

  .place-image {
    height: 100%;
    min-height: 400px;
    border-radius: 0;
    margin: 0;
    width: 100%;
  }

  .place-image-back {
    top: 16px;
    left: 16px;
  }

  .place-sidebar {
    padding: 32px 32px 28px;
    gap: 20px;
    justify-content: center;
  }

  .place-name {
    font-size: 28px;
  }

  /* Place body: constrained 2-col grid */
  .place-body {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 32px 0 48px;
  }

  .place-body-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
  }

  /* Light zone: no extra bottom padding needed (no bottom nav) */
  .light-zone {
    padding-bottom: 40px;
  }

  /* Homepage: two-column layout for cards + guides */
  .desktop-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Content stack goes 2-col on desktop for card lists */
  .content-stack-desktop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Featured cards get taller image on desktop */
  .featured-card-image {
    height: 160px;
  }

  /* Note sections: constrain width in place body */
  .place-body .note-section {
    max-width: 640px;
  }

  /* Tab row: respect desktop padding */
  .tab-row {
    margin: 0;
    padding: 0;
  }
}

/* Translate button */
.translate-wrapper {
  margin-block-start: 8px;
}

.translate-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 150ms ease;
}

.translate-btn:hover {
  color: var(--text-secondary);
}

.translate-result {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-block-start: 6px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--border);
}

/* Place photos */
.place-photos-section {
  margin-bottom: 32px;
}

.place-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 12px;
  overflow: hidden;
}

.place-photo-item {
  aspect-ratio: 1;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--bg);
}

.place-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.place-photo-item:hover img {
  transform: scale(1.05);
}

.place-photo-skeleton {
  aspect-ratio: 1;
  background: var(--bg);
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Lightbox */
.place-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.place-photo-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.place-photo-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.place-photo-lightbox-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 14px;
}

.place-photo-lightbox-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 640px) {
  .place-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   MAP MARKERS — shared by /explore and homepage hero
   These styles are needed by any page that renders DirectoryMap.
   ============================================================ */

.dir-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.place-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  color: #ffffff;
  font-family: Inter, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.place-pin--visible {
  opacity: 1;
  transform: scale(1);
}

.place-pin--essential {
  width: 46px;
  height: 46px;
  font-size: 14px;
  background: #a67424;
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 5px rgba(0, 0, 0, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.30),
    0 10px 28px rgba(0, 0, 0, 0.20);
}

.place-pin--recommended {
  width: 40px;
  height: 40px;
  font-size: 13px;
  background: #2a5e40;
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 5px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.28),
    0 8px 22px rgba(0, 0, 0, 0.18);
}

.place-pin--listed {
  width: 32px;
  height: 32px;
  font-size: 12px;
  background: #4a4a45;
  box-shadow:
    0 0 0 3.5px #ffffff,
    0 0 0 4.5px rgba(0, 0, 0, 0.12),
    0 3px 10px rgba(0, 0, 0, 0.26),
    0 6px 16px rgba(0, 0, 0, 0.16);
}

.place-pin:hover,
.place-pin--hovered {
  transform: scale(1.12);
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
  z-index: 10;
}

.matcha-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size, 40px);
  height: var(--size, 40px);
  border-radius: 50%;
  background: #122a1e;
  color: #ffffff;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 2.5px solid #ffffff;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.matcha-cluster:hover {
  transform: scale(1.08);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.24);
}
