:root {
  color-scheme: dark;
  --ink: #f7f7f2;
  --muted: #b8b8b2;
  --line: #363636;
  --paper: #050505;
  --panel: #0d0d0d;
  --panel-strong: #151515;
  --sage: #f4f4ef;
  --moss: #f7f7f2;
  --clay: #ffffff;
  --gold: #ffffff;
  --blue: #ffffff;
  --pink: #d8d8d2;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
  --spotlight: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.07) 25%, transparent 46%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(255, 255, 255, 0.26), transparent 34%),
    radial-gradient(ellipse at 18% 22%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 58px 58px, 58px 58px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.88)),
    radial-gradient(circle at 50% 24%, transparent 0 16%, rgba(0, 0, 0, 0.64) 54%, rgba(0, 0, 0, 0.94) 100%);
  mix-blend-mode: multiply;
  z-index: -1;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.planner-panel,
.map-card,
.restaurant-card,
.source-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
    rgba(8, 8, 8, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.planner-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding: 28px;
  border-radius: 2px;
  overflow: hidden;
}

.planner-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--spotlight);
  opacity: 0.92;
  pointer-events: none;
}

.planner-panel > *,
.restaurant-card > * {
  position: relative;
  z-index: 1;
}

.brand-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  width: 100%;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: #000;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 20px 54px rgba(255, 255, 255, 0.12);
  color: #fff;
}

.brand-mark svg {
  width: 50px;
  height: 50px;
}

.brand-mark circle,
.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark path:nth-of-type(3),
.brand-mark path:nth-of-type(4) {
  fill: currentColor;
  stroke-width: 0;
}

.title-block {
  width: 100%;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 4vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.22);
}

h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.lede {
  max-width: 68rem;
  color: var(--muted);
  line-height: 1.55;
}

.trip-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: stretch;
  gap: 0;
  max-width: 1180px;
  min-height: 74px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.trip-form label {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 14px 24px;
  border-right: 1px solid rgba(0, 0, 0, 0.14);
  color: #111;
  font-size: 0.85rem;
  font-weight: 700;
}

.trip-form label:focus-within {
  background: #f0f0ec;
}

.trip-form label span {
  color: #000;
  font-size: 0.76rem;
  font-weight: 900;
}

.trip-form input,
.trip-form select {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #3c3c38;
  font-weight: 600;
}

.trip-form button,
.filter-button,
.booking-link {
  min-height: 42px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 800;
}

.trip-form button {
  align-self: center;
  width: 58px;
  height: 58px;
  min-height: 58px;
  margin: 8px;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 0;
  text-transform: uppercase;
}

.trip-form button::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 8px 8px 0 -5px currentColor;
  transform: rotate(-45deg);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 760px;
}

.quick-stats article {
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #111;
}

.quick-stats strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.filter-button {
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #0b0b0b;
  color: var(--ink);
}

.filter-button.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.map-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: 2px;
}

.route-map {
  position: relative;
  min-height: clamp(260px, 28vw, 360px);
  overflow: hidden;
  background: #111;
}

#restaurantMap {
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 28vw, 360px);
  z-index: 1;
}

#restaurantMap .leaflet-tile {
  filter: none;
  opacity: 1;
}

#restaurantMap .leaflet-control-container {
  filter: none;
}

#restaurantMap .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

#restaurantMap .leaflet-control-zoom a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: #fff;
  color: #000;
  font-size: 1.3rem;
  font-weight: 900;
}

#restaurantMap .leaflet-control-zoom a + a {
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

#restaurantMap .leaflet-control-zoom a:hover {
  background: #000;
  color: #fff;
}

.numbered-map-marker {
  display: grid;
  place-items: center;
  border: 2px solid #1a1510;
  border-radius: 50%;
  background: #f8f0df;
  box-shadow: 0 0 0 2px rgba(248, 240, 223, 0.9), 0 10px 26px rgba(44, 30, 18, 0.45);
  color: #15110d;
  font-weight: 900;
}

.numbered-map-marker span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.map-popup {
  display: grid;
  gap: 5px;
  min-width: 180px;
}

.map-popup strong,
.map-popup span,
.map-popup a {
  display: block;
}

.map-popup span {
  color: var(--muted);
  font-size: 0.78rem;
}

.map-popup a {
  color: #000;
  font-weight: 800;
  text-decoration: none;
}

.map-fallback {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.map-copy {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1fr) minmax(220px, 0.32fr);
  align-items: start;
  gap: 22px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.18), transparent 36%),
    #090909;
}

.map-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.map-link-panel {
  display: grid;
  gap: 8px;
  margin: 0;
}

.map-link-title {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  padding-right: 4px;
}

.map-links a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #111;
  color: var(--ink);
  text-decoration: none;
}

.map-links a:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.map-links span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 0.78rem;
  font-weight: 900;
}

.map-links strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-portrait {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.show-portrait img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 2px;
  object-fit: cover;
  background: #111;
}

.restaurant-grid {
  display: grid;
  gap: 16px;
}

.price-section {
  display: grid;
  gap: 12px;
}

.price-section h2 {
  margin: 4px 0 0;
  text-transform: uppercase;
}

.price-section p {
  margin-bottom: 0;
  color: var(--muted);
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.restaurant-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 18px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.restaurant-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 34%);
  pointer-events: none;
}

.media-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  margin: -18px -18px 16px;
  overflow: hidden;
  border-radius: 2px 2px 0 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(255, 255, 255, 0.18)),
    #111;
  color: white;
  text-decoration: none;
}

.media-frame::before {
  content: "Photo coming soon";
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.media-frame img:not(.chef-portrait) {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.media-frame:hover img:not(.chef-portrait) {
  transform: scale(1.03);
}

.chef-portrait {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 74px;
  height: 74px;
  border: 3px solid white;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.72);
}

.media-credit {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 112px);
  padding: 5px 8px;
  border-radius: 2px;
  background: rgba(32, 32, 29, 0.72);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
}

.image-failed .media-credit {
  display: none;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.price {
  color: #fff;
  font-weight: 900;
}

.city-pill {
  padding: 5px 8px;
  border: 1px solid #fff;
  border-radius: 2px;
  background: #fff;
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 14px;
}

.tag {
  padding: 5px 8px;
  border: 1px solid #3d3d3d;
  border-radius: 2px;
  background: #0f0f0f;
  color: #f5f5f0;
  font-size: 0.72rem;
  font-weight: 800;
}

.story {
  color: var(--muted);
  line-height: 1.5;
}

.show-chef {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.42;
}

.booking-box {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.booking-guidance {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--sage);
  border-radius: 2px;
  background: #101010;
}

.booking-guidance.urgency-green {
  border-left-color: #00d26a;
  background: linear-gradient(90deg, rgba(0, 210, 106, 0.18), rgba(255, 255, 255, 0.04));
}

.booking-guidance.urgency-yellow {
  border-left-color: #ffd84d;
  background: linear-gradient(90deg, rgba(255, 216, 77, 0.2), rgba(255, 255, 255, 0.04));
}

.booking-guidance.urgency-red {
  border-left-color: #ff3b30;
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.22), rgba(255, 255, 255, 0.04));
}

.booking-guidance strong,
.booking-guidance span {
  display: block;
}

.booking-guidance strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.booking-guidance span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.urgency-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 2px;
  color: #000;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.urgency-green .urgency-badge {
  background: #00d26a;
}

.urgency-yellow .urgency-badge {
  background: #ffd84d;
}

.urgency-red .urgency-badge {
  background: #ff3b30;
  color: #fff;
}

.booking-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.booking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
}

.confidence {
  color: var(--muted);
  font-size: 0.76rem;
}

.source-panel {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 2px;
}

.source-panel summary {
  cursor: pointer;
  font-weight: 800;
}

.source-panel li {
  margin: 7px 0;
}

@media (max-width: 900px) {
  .app-shell {
    padding: 14px;
  }

  .planner-panel {
    padding: 18px;
  }

  .trip-form {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 18px;
  }

  .trip-form label {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  }

  .trip-form button {
    width: calc(100% - 16px);
    border-radius: 999px;
    font-size: 0.86rem;
  }

  .trip-form button::before {
    display: none;
  }

  .quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-card {
    grid-template-columns: 1fr;
  }

  .map-copy {
    grid-template-columns: 1fr;
  }

  .source-panel {
    width: calc(100% - 28px);
  }
}

@media (max-width: 640px) {
  .brand-header {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-mark svg {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .route-map,
  #restaurantMap {
    min-height: 280px;
  }

  .map-links {
    max-height: 240px;
  }
}
