:root {
  --paper: #f3ecdf;
  --card: #fffaf3;
  --ink: #1d1914;
  --muted: #6d645a;
  --line: #e4d8c6;
  --ember: #c24b24;
  --ember-dark: #9a3516;
  --pine: #234237;
  --gold: #e7b15a;
  --shadow: 0 18px 50px rgba(48, 32, 16, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 90% -10%, #f8d7bf 0%, transparent 60%),
    var(--paper);
  font-family: var(--sans);
}

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7vw;
  background: rgba(243, 236, 223, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav { display: flex; gap: 8px; flex-wrap: wrap; }

#account-slot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-btn { padding: 8px 12px; }

.account-chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--serif);
}

.topnav button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
}

.topnav button[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.wrap { width: min(1120px, 86vw); margin: 0 auto; padding-bottom: 80px; }
.wrap.search-wrap { width: auto; max-width: none; margin: 0; padding: 0 7vw 8px; }
.search-wrap .hero { padding: 22px 0 10px; }
.search-wrap h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); max-width: 18ch; }
.search-wrap .lede { margin-bottom: 18px; }

.discover-page {
  position: relative;
}

.discover-controls {
  position: sticky;
  top: 84px;
  z-index: 4;
  background: rgba(243, 236, 223, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.discover-controls-inner {
  padding: 10px 7vw 12px;
}

.discover-controls .filters {
  margin: 0;
}

.discover-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.discover-toolbar .filters {
  flex: 1;
  min-width: 0;
}

.map-toggle {
  display: none;
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero { padding: 42px 0 18px; }

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ember-dark);
  margin: 0 0 10px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }

h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.95; margin: 0 0 16px; max-width: 12ch; }

.lede { max-width: 46ch; color: var(--muted); font-size: 1.05rem; margin: 0 0 28px; }

.search {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.9fr auto;
  gap: 10px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

label { display: grid; gap: 6px; font-size: 0.75rem; color: var(--muted); }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px;
}

input:read-only { background: #f6f0e6; color: var(--muted); }

textarea { min-height: 90px; resize: vertical; }

.primary, .ghost, .slot {
  border-radius: 12px;
  border: 0;
  padding: 12px 16px;
}

.primary { background: var(--ember); color: white; }
.primary:hover { background: var(--ember-dark); }
.ghost { background: transparent; border: 1px solid var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }

.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
}

.chip[aria-pressed="true"] { background: var(--pine); color: #f6f3ec; border-color: var(--pine); }

.results-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 44vw);
  gap: 18px;
  align-items: stretch;
  padding: 0 0 80px 7vw;
}

.results-list {
  display: grid;
  gap: 14px;
  padding-bottom: 24px;
}

.results-count {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.results-map-wrap {
  position: sticky;
  top: 260px;
  height: calc(100vh - 276px);
  min-height: 320px;
}

.results-map {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  background: #e8dfd0;
  box-shadow: var(--shadow);
}

.map-pin-wrap {
  background: none !important;
  border: 0 !important;
}

.map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: var(--pine);
  color: #f6f3ec;
  font-size: 0.78rem;
  font-weight: 650;
  box-shadow: 0 8px 18px rgba(29, 25, 20, 0.28);
  white-space: nowrap;
}

.map-pin.is-active {
  background: var(--ember);
  transform: translateY(-3px) scale(1.06);
}

.leaflet-popup-content {
  margin: 10px 12px;
  font-family: var(--sans);
}

.leaflet-popup-content strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.leaflet-popup-content button {
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ember);
  color: white;
  padding: 7px 12px;
}

.card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  min-height: 196px;
}

.card-media .plate {
  width: 100%;
  height: 100%;
}

.fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 243, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(29, 25, 20, 0.16);
}

.fav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.fav[aria-pressed="true"] {
  background: var(--ember);
  color: white;
}

.fav[aria-pressed="true"] svg { fill: currentColor; stroke: currentColor; }

.fav-lg {
  width: 44px;
  height: 44px;
  top: 28px;
  right: 18px;
}

.fav-lg svg { width: 22px; height: 22px; }

.offer-tag {
  display: inline-block;
  background: var(--ember);
  color: white;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
}

.card-media .offer-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
}

#fav-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.3em;
  height: 1.3em;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--ember);
  color: white;
  font-size: 0.7rem;
}

.topnav button[aria-current="page"] #fav-count {
  background: var(--paper);
  color: var(--ink);
}

.card.is-active {
  border-color: var(--pine);
  box-shadow: 0 18px 50px rgba(35, 66, 55, 0.14);
}

.plate {
  position: relative;
  min-height: 196px;
  display: grid;
  place-items: end start;
  padding: 0;
  border: 0;
  color: white;
  font-family: var(--serif);
  font-size: 1.35rem;
  overflow: hidden;
  background: #2a211c;
}

.plate picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate span,
.plate:not(.has-photo) {
  padding: 14px;
}

.plate.has-photo span {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(18, 14, 10, 0.62));
}

.card-body { padding: 16px 16px 14px; }
.card-body h2 { margin: 0 0 4px; font-size: 1.45rem; }
.card-place { margin: 0; font-size: 0.9rem; color: var(--muted); }

.meta, .muted { color: var(--muted); }

.meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; margin: 6px 0 10px; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f6e7c8;
  color: #6a4a12;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.8rem;
}

.slots { display: flex; flex-wrap: wrap; gap: 6px; }

.slot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 10px;
  line-height: 1.15;
}

.slot em {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--ember-dark);
}

.slot:hover, .slot[aria-pressed="true"] { background: var(--pine); color: white; border-color: var(--pine); }
.slot:hover em, .slot[aria-pressed="true"] em { color: #f6e7c8; }

.detail-page { padding-top: 18px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  width: 100%;
}

.menu-toggle .muted { margin-left: 4px; }

.place-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.place-identity { min-width: 0; flex: 1; }

.place-identity h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  line-height: 1.1;
}

.place-location {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.place-location a {
  color: inherit;
  text-decoration: none;
}

.place-location a:hover { text-decoration: underline; }

.place-cuisine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.place-avg { color: var(--muted); }

.place-score {
  flex-shrink: 0;
  display: grid;
  justify-items: end;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  min-width: 7.5rem;
}

.place-score strong {
  display: inline-grid;
  place-items: center;
  min-width: 3.2rem;
  background: #f6e7c8;
  color: #6a4a12;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.7rem;
  line-height: 1;
}

.place-score em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
}

.place-gallery-block {
  margin-top: 18px;
}

.place-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 320px;
  gap: 8px;
  height: 320px;
}

.place-gallery-more {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 25, 20, 0.82);
  color: #f6f3ec;
  font-weight: 650;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
}

.place-gallery-more:hover {
  background: rgba(29, 25, 20, 0.92);
}

.place-gallery-extra {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.place-gallery-extra img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #2a211c;
}

.place-gallery.is-single,
.place-gallery.is-empty {
  grid-template-columns: 1fr;
}

.place-gallery.is-empty {
  height: 240px;
  grid-template-rows: 240px;
  border-radius: 20px;
}

.place-gallery picture.place-gallery-hero,
.place-gallery-hero {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px 8px 8px 20px;
  background: #2a211c;
  overflow: hidden;
}

.place-gallery picture.place-gallery-hero img,
img.place-gallery-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.place-gallery.is-single {
  height: 280px;
  grid-template-rows: 280px;
}

.place-gallery.is-single .place-gallery-hero {
  border-radius: 20px;
}

.place-gallery-thumbs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 0;
}

.place-gallery-thumbs picture,
.place-gallery-thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px 20px 20px 8px;
  background: #2a211c;
  min-height: 0;
  overflow: hidden;
}

.place-gallery-thumbs picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.place-gallery-extra picture,
.place-gallery-extra img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-nav {
  position: sticky;
  top: 70px;
  z-index: 4;
  display: flex;
  gap: 6px;
  margin: 8px 0 0;
  padding: 10px 0;
  background: rgba(243, 236, 223, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.page-nav a {
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid transparent;
}

.page-nav a:hover { border-color: var(--line); }

.page-nav a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 368px;
  gap: 28px;
  align-items: start;
  margin-top: 10px;
}

.detail-main { min-width: 0; padding-bottom: 36px; }

#about h3 { margin-top: 16px; }

#booking > .primary { width: 100%; margin-top: 12px; }

.section { scroll-margin-top: 148px; }

.section h3 { margin: 28px 0 12px; }

.panel {
  position: sticky;
  top: 88px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 168px);
  overflow: auto;
}

.panel .form { margin-top: 16px; }

.book-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.book-steps button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 0.68rem;
  color: var(--muted);
  display: grid;
  gap: 4px;
  justify-items: center;
}

.book-steps span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #efe4d3;
  color: var(--ink);
  font-size: 0.72rem;
}

.book-steps .is-current { color: var(--ink); }
.book-steps .is-current span,
.book-steps .is-done span { background: var(--pine); color: #f6f3ec; }
.book-steps button:disabled { opacity: 0.45; }

.book-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.book-summary button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.book-copy { margin: 0 0 12px; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cal-head p { margin: 0; font-weight: 650; }

.cal-nav {
  width: 36px;
  height: 36px;
  padding: 0;
}

.cal-nav:disabled { opacity: 0.35; }

.cal-week,
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-week {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.cal-day,
.cal-empty {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0;
}

.cal-day:hover { background: #efe4d3; }
.cal-day.is-selected { background: var(--ember); color: white; }
.cal-day:disabled { opacity: 0.35; }
.cal-day.is-closed:disabled { text-decoration: line-through; }

.guest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.guest-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px 0;
}

.guest-btn[aria-pressed="true"] {
  background: var(--pine);
  color: #f6f3ec;
  border-color: var(--pine);
}

.duration-grid {
  grid-template-columns: 1fr;
}

.duration-grid .guest-btn {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  text-align: left;
}

.duration-grid .guest-btn strong {
  font-size: 1rem;
}

.duration-grid .guest-btn span {
  font-size: 0.85rem;
  color: var(--muted);
}

.duration-grid .guest-btn[aria-pressed="true"] span {
  color: rgba(246, 243, 236, 0.82);
}

.duration-grid .guest-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.offer-list { display: grid; gap: 8px; margin-bottom: 12px; }

.offer-card {
  display: grid;
  gap: 2px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
}

.offer-card strong { color: var(--ember-dark); }
.offer-card em { font-style: normal; color: var(--muted); font-size: 0.78rem; }
.offer-card[aria-pressed="true"] { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }

.coupon-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.form-error { color: var(--ember-dark); margin: 0 0 8px; font-size: 0.85rem; }
.offer-applied { margin: 0 0 12px; color: var(--pine); font-size: 0.9rem; }

.book-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.book-actions .primary,
.book-actions .ghost { flex: 1; }

.book-recap {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.book-recap div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.book-recap dt { color: var(--muted); }
.book-recap dd { margin: 0; font-weight: 650; }

.fav-list { display: grid; gap: 14px; }

.map {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 16px;
  background: #e8dfd0;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.facts h3 { margin: 0 0 8px; }

.facts p { margin: 0 0 6px; }

.fact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fact-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.menu-heading {
  margin: 22px 0 0;
  font-size: 1.05rem;
  color: var(--ember-dark);
}

.menu { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }

.menu li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--muted);
}

.reviews-score {
  display: inline-grid;
  place-items: center;
  min-width: 2.8rem;
  background: #f6e7c8;
  color: #6a4a12;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.35rem;
  line-height: 1;
}

.reviews { display: grid; gap: 12px; }

.review {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--line);
}

.review strong { margin-right: 8px; }

.form { display: grid; gap: 12px; }

.empty, .confirm {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.7);
}

.booking-date-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.booking-date-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.booking-date-card:hover { border-color: var(--pine); }

.booking-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 16px;
}

.booking-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 10px;
}

.booking-tab.is-active {
  background: var(--pine);
  color: #f6f3ec;
  border-color: var(--pine);
}

.booking-pending-block { margin-bottom: 18px; }

.booking-offer {
  margin: 6px 0 0;
  color: var(--pine);
  font-size: 0.92rem;
}

.booking-section-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
}
.booking-list { display: grid; gap: 12px; }

.booking {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 16px;
  padding: 16px;
}

.booking.is-focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 2px rgba(35, 66, 55, 0.18), var(--shadow);
}

.booking-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 4px;
}

.booking-head h3 { margin: 0; }

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: #fff;
}

.booking.status-pending,
.status-pill.status-pending { border-color: #c9a227; }
.status-pill.status-pending { color: #8a6a12; background: #fff7df; }
.booking.status-accepted,
.status-pill.status-accepted { border-color: #2f6b4f; }
.status-pill.status-accepted { color: #1f4d38; background: #e7f3ec; }
.booking.status-declined,
.status-pill.status-declined { border-color: #a33b2b; }
.status-pill.status-declined { color: #8a2e22; background: #fceceb; }
.booking.status-cancelled,
.status-pill.status-cancelled { border-color: #7a7268; opacity: 0.85; }
.status-pill.status-cancelled { color: #5c554c; background: #f1ebe3; }

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(29, 25, 20, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-overlay[hidden] { display: none; }

.auth-dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--card);
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 1.4rem;
}

.auth-dialog h2 { margin: 0 0 8px; }
.auth-dialog .form { margin: 16px 0; }
.auth-dialog .primary,
.auth-dialog .ghost,
.auth-dialog .social-btn { width: 100%; margin-top: 8px; }

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
}

.social-btn svg { width: 18px; height: 18px; }
.social-btn.facebook { background: #1877F2; color: white; border-color: #1877F2; }
.social-btn:disabled { opacity: 0.7; cursor: wait; }
.social-btn.google { color: #1f1f1f; }

.auth-split {
  text-align: center;
  color: var(--muted);
  margin: 14px 0 6px;
}

.auth-fine { font-size: 0.82rem; margin-top: 14px; }

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-embed {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-embed .primary,
.auth-embed .ghost,
.auth-embed .social-btn { width: 100%; }

.empty .primary { margin-top: 16px; }

@media (max-width: 860px) {
  .search, .detail, .card { grid-template-columns: 1fr; }
  .plate { min-height: 180px; }
  .card-media { min-height: 180px; }
  .book-steps { font-size: 0.64rem; }
  .coupon-form { grid-template-columns: 1fr; }
  .place-head { flex-wrap: wrap; }
  .place-score { justify-items: start; }
  .place-gallery {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 200px;
    height: 200px;
  }
  .place-gallery-extra { grid-template-columns: 1fr 1fr; }
  .place-gallery-more { min-width: 44px; height: 44px; }
  .topbar { padding-inline: 5vw; flex-wrap: wrap; gap: 10px; }
  .top-actions { width: 100%; justify-content: space-between; }
  .name-grid { grid-template-columns: 1fr; }
  .wrap { width: min(1120px, 90vw); }
  .wrap.search-wrap { padding: 0 5vw 4px; }
  .search-wrap .hero { padding: 16px 0 6px; }
  .search-wrap h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); max-width: 14ch; }
  .search-wrap .lede { margin-bottom: 10px; font-size: 0.98rem; }

  /* Let the search bar scroll away on phones so restaurant cards stay usable. */
  .discover-controls {
    position: static;
    top: auto;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }
  .discover-controls-inner { padding: 8px 5vw 14px; }
  .discover-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .discover-controls .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .map-toggle {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }
  .search {
    grid-template-columns: 1fr 1fr;
  }
  .search label:nth-child(4),
  .search .primary {
    grid-column: 1 / -1;
  }

  .page-nav { top: 62px; overflow-x: auto; }
  .results-split {
    grid-template-columns: 1fr;
    padding: 0 5vw 80px;
  }
  .results-list { order: 1; }
  .results-split:not(.is-map-open) .results-map-wrap {
    display: none;
  }
  .results-map-wrap {
    position: relative;
    top: auto;
    order: 0;
    height: min(42vh, 260px);
    min-height: 200px;
    margin-bottom: 12px;
  }
  .results-map {
    border-right: 1px solid var(--line);
    border-radius: 18px;
  }
  .panel {
    order: -1;
    position: static;
    top: auto;
    z-index: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 861px) {
  .map-toggle { display: none !important; }
}

.reservia-toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.reservia-toast {
  pointer-events: auto;
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fffaf3;
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: toast-in 180ms ease-out;
}

.reservia-toast strong { font-size: 0.95rem; }
.reservia-toast span { color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
.reservia-toast.tone-ok { border-color: #2f6b4f; }
.reservia-toast.tone-warn { border-color: #c9a227; }
.reservia-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: 200ms ease; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
