:root {
  --ink: #1c1b19;
  --muted: #706d67;
  --paper: #f8f5ef;
  --card: rgba(255, 255, 255, 0.94);
  --line: #ded8cd;
  --gold: #b88438;
  --gold-dark: #8e6428;
  --gold-soft: #f3e3c5;
  --danger: #9c3e35;
  --success: #2d6c50;
  --shadow: 0 24px 70px rgba(58, 46, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(214, 185, 139, 0.2), transparent 27rem),
    radial-gradient(circle at 92% 12%, rgba(207, 193, 171, 0.22), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

.app-shell {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 48px) 48px;
}

.topbar,
.booking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid #232220;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 31, 23, 0.14);
}

.eyebrow,
.step-label {
  margin: 0 0 5px;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.topbar h1,
.booking-page h1,
.gallery-copy h2 {
  margin-bottom: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1;
}

.topbar h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.booking-facts {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(77, 62, 42, 0.06);
  backdrop-filter: blur(12px);
}

.fact {
  min-width: 150px;
  padding: 13px 20px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact__label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.74rem;
}

.fact strong {
  font-size: 0.98rem;
}

.plan-card {
  overflow: hidden;
  border: 1px solid rgba(183, 172, 155, 0.72);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.plan-card__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.plan-card__header h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.inline-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.inline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border: 1px solid #a8a198;
  border-radius: 50%;
}

.status-dot--available {
  background: #fffaf0;
}

.status-dot--selected {
  border-color: var(--gold-dark);
  background: #d9a957;
}

.status-dot--unavailable {
  background: #a5a5a3;
}

.map-scroll {
  overflow: auto;
  background: #ece7df;
  scrollbar-color: #bdaa8f #eee9e1;
}

.map-scroll:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.map-stage {
  position: relative;
  width: 100%;
  min-width: 900px;
  aspect-ratio: 3 / 2;
  isolation: isolate;
}

.floor-plan {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.table-hotspot {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  padding: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 16px;
  background: transparent;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.table-hotspot--booth {
  border-radius: 24px;
}

.table-hotspot--round {
  border-radius: 50%;
}

.table-hotspot span {
  position: absolute;
  left: 50%;
  bottom: -31px;
  min-width: max-content;
  padding: 5px 9px;
  transform: translate(-50%, 4px);
  border-radius: 999px;
  background: #1f1d19;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.table-hotspot:hover,
.table-hotspot:focus-visible,
.table-hotspot.is-selected {
  transform: translate(-50%, -50%) scale(1.035);
  border-color: #d8a550;
  background: rgba(239, 197, 125, 0.16);
  box-shadow: 0 0 0 5px rgba(227, 176, 88, 0.2), 0 10px 28px rgba(112, 72, 20, 0.22);
  outline: none;
}

.table-hotspot:hover span,
.table-hotspot:focus-visible span {
  transform: translate(-50%, 0);
  opacity: 1;
}

.table-hotspot[data-status="unavailable"] {
  cursor: not-allowed;
  border-color: rgba(110, 110, 108, 0.65);
  background: rgba(115, 115, 112, 0.3);
  filter: grayscale(0.8);
}

.mobile-map-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.policy-strip {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 980px;
  margin: 22px auto 0;
  padding: 17px 20px;
  border: 1px solid #dfc8a5;
  border-radius: 18px;
  background: #fff9ef;
  color: #554631;
}

.policy-strip__icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #d6a55b;
  color: #fff;
  font-weight: 800;
}

.policy-strip p {
  margin: 3px 0 0;
  color: #756348;
  font-size: 0.87rem;
  line-height: 1.55;
}

.booking-header {
  padding: 2px 0 4px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  transition: border-color 160ms ease, transform 160ms ease;
}

.back-button:hover,
.back-button:focus-visible {
  transform: translateX(-2px);
  border-color: var(--gold);
  outline: none;
}

.booking-header__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-header__mark img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.booking-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  overflow: hidden;
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}

.gallery-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(22px, 3vw, 42px);
  background:
    radial-gradient(circle at 75% 0%, rgba(255, 255, 255, 0.1), transparent 40%),
    #20201e;
  color: white;
}

.gallery-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  align-items: end;
}

.gallery-copy .eyebrow {
  grid-column: 1 / -1;
}

.gallery-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.gallery-copy p:last-child {
  max-width: 410px;
  margin: 0 0 4px;
  color: #c9c5be;
  line-height: 1.6;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 400px;
  margin-top: 28px;
  border-radius: 24px;
  background: #111;
}

.gallery-main::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 7, 0.42));
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease, transform 500ms ease;
}

.gallery-main:hover img {
  transform: scale(1.015);
}

.gallery-main__badge {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.66);
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 13px;
  background: #111;
  opacity: 0.64;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible,
.gallery-thumb.is-active {
  border-color: #d7a75f;
  opacity: 1;
  outline: none;
}

.form-panel {
  padding: clamp(26px, 4vw, 52px);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 180, 127, 0.14), transparent 22rem),
    #fff;
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.form-heading h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.selected-table-pill {
  padding: 8px 11px;
  border: 1px solid #dfc597;
  border-radius: 999px;
  background: #fff8ec;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field > span {
  font-size: 0.82rem;
  font-weight: 700;
}

.field b {
  color: var(--gold-dark);
}

.field small {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d9d4ca;
  border-radius: 13px;
  background: #fcfbf8;
  color: var(--ink);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input,
.field select {
  height: 48px;
  padding: 0 13px;
}

.field textarea {
  min-height: 100px;
  padding: 13px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #c08c3f;
  background: white;
  box-shadow: 0 0 0 4px rgba(192, 140, 63, 0.13);
}

.field input:user-invalid,
.field select:user-invalid {
  border-color: #bd6b62;
}

.deposit-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #ddc59d;
  border-radius: 17px;
  background: #fff9ee;
}

.deposit-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.deposit-card__top p {
  margin-bottom: 2px;
  font-weight: 800;
}

.deposit-card__top span {
  color: #78664a;
  font-size: 0.78rem;
}

.deposit-card__top strong {
  color: var(--gold-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.deposit-card ul {
  display: grid;
  gap: 5px;
  margin: 13px 0 0;
  padding: 12px 0 0 18px;
  border-top: 1px solid #ead8b8;
  color: #68583f;
  font-size: 0.8rem;
  line-height: 1.45;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  color: #5f5b54;
  font-size: 0.79rem;
  line-height: 1.5;
}

.terms-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--gold-dark);
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 20px;
  cursor: pointer;
  border: 0;
  border-radius: 15px;
  background: #1f1e1b;
  color: white;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(31, 30, 27, 0.18);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-1px);
  background: #8c6329;
  box-shadow: 0 16px 34px rgba(109, 74, 28, 0.24);
  outline: none;
}

.form-status {
  display: none;
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #edf7f1;
  color: var(--success);
}

.form-status.is-error {
  background: #fff0ed;
  color: var(--danger);
}

.secure-note {
  margin: 12px 0 0;
  color: #918c83;
  font-size: 0.69rem;
  text-align: center;
}

@media (max-width: 1040px) {
  .booking-page {
    grid-template-columns: 1fr;
  }

  .gallery-panel {
    min-height: 720px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 18px 12px 32px;
  }

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

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .booking-facts {
    width: 100%;
  }

  .fact {
    min-width: 0;
    flex: 1;
    padding: 11px 13px;
  }

  .plan-card {
    border-radius: 20px;
  }

  .plan-card__header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .inline-legend {
    justify-content: flex-start;
  }

  .map-stage {
    min-width: 820px;
  }

  .mobile-map-hint {
    display: flex;
  }

  .policy-strip {
    margin-top: 14px;
  }

  .booking-header__mark span {
    display: none;
  }

  .booking-page {
    border-radius: 20px;
  }

  .gallery-panel,
  .form-panel {
    padding: 22px 16px;
  }

  .gallery-panel {
    min-height: 610px;
  }

  .gallery-copy {
    display: block;
  }

  .gallery-copy p:last-child {
    margin-top: 12px;
  }

  .gallery-main {
    min-height: 320px;
  }

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

  .field--full {
    grid-column: auto;
  }

  .form-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
