:root {
  color-scheme: light;
  --ink: #1c2421;
  --muted: #66726e;
  --line: #dfe6e1;
  --paper: #ffffff;
  --wash: #f5f7f2;
  --wash-strong: #e9f3ef;
  --accent: #d94f31;
  --accent-dark: #a73523;
  --teal: #0f8a7a;
  --teal-dark: #08655a;
  --gold: #c18a2d;
  --charcoal: #121716;
  --shadow: 0 18px 50px rgba(18, 23, 22, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family:
    Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.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;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 230, 225, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--charcoal);
  border-radius: var(--radius);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.primary-button,
.secondary-button,
.ghost-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.icon-button {
  padding: 0 14px;
  color: var(--ink);
  background: #edf3ef;
}

.icon-button.is-signed-in,
.member-button:hover {
  color: white;
  background: var(--teal);
}

.live-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  color: #714700;
  background: #fff1cf;
  border: 0;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.live-mode-badge.is-live {
  color: white;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(15, 138, 122, 0.22);
}

.live-mode-badge.is-loading {
  color: var(--ink);
  background: #e9f3ef;
}

.live-mode-badge.is-error {
  color: white;
  background: #b3261e;
  box-shadow: 0 8px 20px rgba(179, 38, 30, 0.2);
}

.primary-button {
  padding: 0 18px;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(217, 79, 49, 0.22);
}

.primary-button:hover,
.icon-button:hover,
.secondary-button:hover,
.contact-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  padding: 0 16px;
  color: white;
  background: var(--teal);
}

.secondary-button:hover {
  background: var(--teal-dark);
}

.ghost-button {
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.ghost-button:hover {
  background: #f0f5f2;
}

.danger-button {
  color: #9c2f1e;
  border-color: #efc9bf;
}

.wide {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 74px));
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 13, 12, 0.92) 0%, rgba(9, 13, 12, 0.72) 42%, rgba(9, 13, 12, 0.22) 100%),
    linear-gradient(0deg, rgba(9, 13, 12, 0.72), rgba(9, 13, 12, 0.08) 42%),
    url("./assets/hero-dining.png") center / cover;
  transform: scale(1.015);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 54px;
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--teal);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ff0d8;
}

.hero h1 {
  max-width: 740px;
  margin: 12px 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.quick-search {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.8fr auto;
  gap: 10px;
  width: min(980px, 100%);
  margin-top: 34px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-search label {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 7px 10px;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.quick-search label:last-of-type {
  border-right: 0;
}

.quick-search span {
  font-size: 0.78rem;
  font-weight: 800;
}

.quick-search select {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metrics-band div {
  display: grid;
  gap: 4px;
  min-height: 92px;
  align-content: center;
  padding: 18px;
  background: var(--paper);
}

.metrics-band strong {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
}

.metrics-band span {
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
}

.trust-strip div {
  min-height: 96px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(18, 23, 22, 0.07);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 7px;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto;
  scroll-margin-top: 92px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2,
.contact-band h2,
.modal-head h2 {
  margin: 5px 0 0;
  font-size: clamp(1.6rem, 4vw, 2.55rem);
  line-height: 1.15;
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.destination-picker {
  margin-top: 64px;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.destination-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 198px;
  align-items: end;
  overflow: hidden;
  padding: 18px;
  color: white;
  text-align: left;
  background: var(--region-color, var(--charcoal));
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(18, 23, 22, 0.12);
  cursor: pointer;
  isolation: isolate;
}

.destination-card.is-featured {
  grid-column: span 2;
  min-height: 248px;
}

.destination-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--destination-image) center / cover;
  transform: scale(1.02);
  transition: transform 0.28s ease;
}

.destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 23, 22, 0.1), rgba(18, 23, 22, 0.78)),
    linear-gradient(90deg, rgba(18, 23, 22, 0.72), rgba(18, 23, 22, 0.12));
}

.destination-card:hover::before {
  transform: scale(1.07);
}

.destination-card.is-active {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.destination-content {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
}

.destination-kicker {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.destination-content strong {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.destination-content span:last-child {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.destination-count {
  position: absolute;
  right: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.view-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field input,
.view-tools select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 42px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.search-field input,
.view-tools select {
  padding: 0 12px;
}

.search-field input {
  width: min(360px, 42vw);
}

.chip-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.chip-row.compact {
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.chip.is-active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.chip-count {
  color: inherit;
  opacity: 0.72;
  font-size: 0.78rem;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.restaurant-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(18, 23, 22, 0.07);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(15, 138, 122, 0.28), transparent 38%),
    linear-gradient(135deg, #23302d, #101514);
}

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

.price-pill,
.source-pill {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: white;
  background: rgba(18, 23, 22, 0.72);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 800;
}

.price-pill {
  left: 12px;
}

.source-pill {
  right: 12px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

.restaurant-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.28;
}

.restaurant-card p {
  min-height: 58px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

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

.rating-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--wash-strong);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.rating-badge.google {
  color: #174b42;
  background: #ddf4ed;
}

.rating-badge.editor {
  color: #714700;
  background: #fff1cf;
}

.rating-badge.member {
  color: #6b2746;
  background: #ffe5ef;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 27px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  color: var(--muted);
  background: #f1f4f1;
  border-radius: 999px;
  font-size: 0.78rem;
}

.social-proof {
  display: grid;
  gap: 5px;
  min-height: 43px;
  color: var(--muted);
  font-size: 0.82rem;
}

.social-proof span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(58px, 0.68fr) 42px 42px 42px 42px;
  gap: 8px;
  margin-top: auto;
}

.card-actions .ghost-button,
.card-actions .secondary-button {
  min-width: 0;
  padding: 0 10px;
}

.square-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.card-actions .square-button {
  padding: 0;
}

.is-favorite {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.community-panel {
  width: 100%;
  margin: 80px 0;
  padding: 62px max(16px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(233, 243, 239, 0.88)),
    radial-gradient(circle at 18% 0%, rgba(217, 79, 49, 0.16), transparent 34%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.community-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
  color: white;
  background:
    linear-gradient(135deg, rgba(18, 23, 22, 0.94), rgba(8, 101, 90, 0.86)),
    url("./assets/hero-dining.png") center / cover;
  border-radius: var(--radius);
}

.community-copy strong {
  max-width: 520px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.18;
}

.community-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.community-stats div {
  display: grid;
  gap: 3px;
  min-height: 72px;
  align-content: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.community-stats strong {
  font-size: 1.22rem;
}

.community-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.review-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-feed-item {
  display: grid;
  gap: 10px;
  min-height: 150px;
  align-content: start;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(18, 23, 22, 0.07);
}

.review-feed-top,
.review-row-top,
.review-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-feed-item p,
.review-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.review-feed-item small,
.review-row small {
  color: var(--muted);
}

.region-panel {
  margin-top: 30px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.region-card {
  min-height: 180px;
  padding: 18px;
  color: white;
  background:
    linear-gradient(135deg, rgba(18, 23, 22, 0.9), rgba(18, 23, 22, 0.42)),
    var(--region-image) center / cover,
    var(--region-bg, #0f8a7a);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.region-card span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.region-card h3 {
  margin: 0 0 8px;
  font-size: 1.34rem;
}

.region-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.region-card button {
  align-self: start;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 72px auto;
  padding: clamp(24px, 5vw, 44px);
  color: white;
  background:
    linear-gradient(135deg, rgba(18, 23, 22, 0.96), rgba(15, 138, 122, 0.82)),
    url("./assets/hero-dining.png") center / cover;
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-band .eyebrow {
  color: #8ff0d8;
}

.contact-band p {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.fresh-panel {
  padding-top: 18px;
}

.fresh-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(3, minmax(220px, 0.9fr));
  gap: 14px;
}

.fresh-lead,
.fresh-card {
  min-height: 250px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(18, 23, 22, 0.08);
}

.fresh-lead {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  color: white;
  background:
    linear-gradient(135deg, rgba(18, 23, 22, 0.95), rgba(193, 138, 45, 0.78)),
    url("./assets/city-fukuoka.png") center / cover;
}

.fresh-lead p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.fresh-card {
  display: grid;
  grid-template-rows: 130px 1fr;
}

.fresh-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.fresh-card div {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.fresh-card h3 {
  margin: 0;
  line-height: 1.18;
}

.fresh-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.fresh-badge {
  width: fit-content;
  padding: 5px 9px;
  color: white;
  background: var(--teal);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.contact-actions {
  display: grid;
  gap: 10px;
  min-width: 220px;
  align-content: center;
}

.contact-button {
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  background: white;
}

.contact-button.line {
  background: #dff9ee;
}

.contact-button.kakao {
  background: #ffe867;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(16px, 4vw, 48px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.modal {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background: rgba(9, 13, 12, 0.58);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 28px));
  margin: 14px auto;
  overflow: auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-card {
  width: min(920px, calc(100% - 28px));
}

.admin-card {
  width: min(1120px, calc(100% - 28px));
}

.close-button {
  position: sticky;
  top: 12px;
  left: calc(100% - 54px);
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.modal-head {
  padding: 4px 26px 0;
}

.modal-head p {
  margin: 9px 0 0;
  color: var(--muted);
}

.reservation-card,
.admin-card {
  padding-bottom: 26px;
}

.form-grid,
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 26px;
}

.form-grid label,
.admin-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 10px 12px;
  resize: vertical;
}

.span-2 {
  grid-column: 1 / -1;
}

.reservation-card .primary-button {
  width: calc(100% - 52px);
  margin: 0 26px;
}

.detail-hero {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--charcoal);
}

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

.detail-info {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 26px;
  padding: 26px;
}

.detail-info h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.detail-info p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  background: var(--wash);
  border-radius: var(--radius);
}

.info-row span:first-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-reviews {
  display: grid;
  gap: 16px;
  padding: 0 26px 26px;
}

.review-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-summary h3 {
  margin: 5px 0 8px;
  font-size: 1.4rem;
}

.review-summary p {
  margin: 0;
  color: var(--muted);
}

.review-score {
  display: grid;
  min-width: 140px;
  align-content: center;
  justify-items: end;
  gap: 3px;
}

.review-score strong {
  font-size: 2.3rem;
}

.review-score small {
  color: var(--muted);
}

.review-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-form input,
.review-form select,
.review-form textarea,
.member-auth-form input,
.member-auth-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.review-form textarea {
  resize: vertical;
}

.mini-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--muted);
  background: var(--wash);
  border: 1px dashed #b9c9c1;
  border-radius: var(--radius);
}

.mini-file input {
  min-height: 0;
  padding: 0;
  border: 0;
}

.login-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: #fff7e6;
  border: 1px solid #f0d6a6;
  border-radius: var(--radius);
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.member-card {
  width: min(860px, calc(100% - 28px));
}

.member-auth-grid,
.member-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 26px;
}

.member-auth-form {
  display: grid;
  gap: 11px;
  padding: 18px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.member-auth-form h3,
.member-lists h3 {
  margin: 0;
}

.member-auth-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.member-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 22px 26px 0;
}

.member-stat {
  display: grid;
  gap: 5px;
  min-height: 84px;
  align-content: center;
  padding: 14px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.member-stat strong {
  font-size: 1.5rem;
}

.member-stat span,
.member-list-row span {
  color: var(--muted);
}

.member-list-row {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 62px;
  padding: 12px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.member-list-row + .member-list-row {
  margin-top: 8px;
}

.member-logout {
  margin: 0 26px 24px;
}

.admin-login {
  display: grid;
  gap: 14px;
  width: min(440px, calc(100% - 48px));
  margin: 0 auto 22px;
  padding: 0 0 6px;
}

.admin-login input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-shell {
  padding: 0 24px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 18px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.admin-tabs button {
  white-space: nowrap;
}

.admin-tabs .is-active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.admin-panel,
.admin-list,
.reservations-list,
.settings-panel {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-panel h3,
.admin-list h3,
.reservations-list h3,
.settings-panel h3 {
  margin: 0;
  padding: 18px 18px 0;
}

.admin-form {
  padding: 18px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.file-input {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 120px;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: white;
  border: 1px dashed #b9c9c1;
  border-radius: var(--radius);
}

.file-input input {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 0;
}

.image-preview {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: #dfe6e1;
  border-radius: var(--radius);
}

.admin-list-scroll {
  max-height: 646px;
  overflow: auto;
  padding: 12px;
}

.admin-row,
.reservation-row {
  display: grid;
  gap: 10px;
  padding: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-row + .admin-row,
.reservation-row + .reservation-row {
  margin-top: 10px;
}

.admin-row-top,
.reservation-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-row h4,
.reservation-row h4 {
  margin: 0;
  line-height: 1.25;
}

.admin-row small,
.reservation-row small {
  color: var(--muted);
}

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

.row-actions button,
.row-actions a {
  min-height: 36px;
}

.reservations-list {
  padding-bottom: 12px;
}

.status-select {
  width: auto;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-panel {
  padding-bottom: 18px;
}

.ops-panel {
  padding-bottom: 18px;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.ops-card,
.ops-error,
.ops-note {
  padding: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ops-card {
  display: grid;
  gap: 8px;
}

.ops-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ops-card strong {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.ops-card p,
.ops-error p,
.ops-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ops-card.is-good {
  border-color: rgba(15, 138, 122, 0.35);
  background: #eef8f4;
}

.ops-card.is-warn {
  border-color: rgba(217, 79, 49, 0.28);
  background: #fff7ed;
}

.ops-error {
  margin: 0 18px 12px;
  border-color: rgba(179, 38, 30, 0.3);
  background: #fff0ed;
}

.ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 14px;
}

.backup-import {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.backup-import input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ops-note {
  margin: 0 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: none;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  color: white;
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toast.is-visible {
  display: block;
}

.mobile-quickbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 55;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 230, 225, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.mobile-quickbar button {
  min-height: 46px;
  color: white;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
}

.mobile-quickbar button:last-child {
  background: var(--accent);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

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

  .quick-search .primary-button {
    grid-column: 1 / -1;
  }

  .metrics-band,
  .trust-strip,
  .destination-grid,
  .fresh-layout,
  .restaurant-grid,
  .region-grid,
  .contact-band,
  .community-layout,
  .detail-info,
  .admin-layout {
    grid-template-columns: 1fr 1fr;
  }

  .restaurant-grid {
    gap: 14px;
  }

  .destination-card.is-featured {
    grid-column: span 2;
  }

  .detail-info,
  .admin-layout,
  .fresh-layout,
  .ops-grid,
  .community-layout,
  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 76px;
  }

  .mobile-quickbar {
    display: grid;
  }

  .topbar {
    min-height: 66px;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .icon-button span:last-child {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero-content {
    width: calc(100% - 24px);
    padding-bottom: 26px;
  }

  .quick-search,
  .metrics-band,
  .trust-strip,
  .destination-grid,
  .fresh-layout,
  .restaurant-grid,
  .region-grid,
  .review-feed,
  .community-stats,
  .member-auth-grid,
  .member-dashboard,
  .member-lists,
  .form-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

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

  .destination-card,
  .destination-card.is-featured {
    grid-column: auto;
    min-height: 220px;
  }

  .quick-search label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-search label:last-of-type {
    border-bottom: 0;
  }

  .metrics-band {
    margin-top: 0;
  }

  .section,
  .contact-band {
    width: calc(100% - 24px);
    margin: 48px auto;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .view-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .search-field input,
  .view-tools select {
    width: 100%;
  }

  .card-actions {
    grid-template-columns: 1fr 1fr 44px 44px 44px;
  }

  .community-panel {
    padding: 44px 12px;
  }

  .review-summary,
  .login-prompt {
    align-items: stretch;
    flex-direction: column;
  }

  .review-score {
    justify-items: start;
  }

  .review-row {
    grid-template-columns: 1fr;
  }

  .detail-reviews,
  .member-auth-grid,
  .member-dashboard,
  .member-lists {
    padding-left: 18px;
    padding-right: 18px;
  }

  .detail-info,
  .modal-head,
  .form-grid,
  .admin-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .span-2 {
    grid-column: auto;
  }

  .reservation-card .primary-button {
    width: calc(100% - 36px);
    margin: 0 18px;
  }

  .footer {
    flex-direction: column;
  }
}
