:root {
  --black: #030303;
  --black-2: #0d0c0a;
  --gold: #c29a5b;
  --gold-2: #a87c3e;
  --cream: #fbfaf7;
  --paper: #ffffff;
  --ink: #181512;
  --muted: #68635d;
  --line: rgba(194, 154, 91, 0.28);
  --soft-line: rgba(24, 21, 18, 0.12);
  --ok: #1d8f58;
  --danger: #c95544;
  --warning: #b7791f;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  --display: Georgia, "Times New Roman", serif;
  --ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--ui);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.app-shell { min-height: 100vh; background: var(--black); }
.boot-card { width: min(720px, calc(100% - 32px)); margin: 80px auto; color: var(--cream); }
.site-frame { min-height: 100vh; background: var(--cream); overflow: hidden; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  min-height: 104px; padding: 16px 6vw;
  display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 24px;
  background: #000; color: var(--cream);
}
.brand { border: 0; background: transparent; color: inherit; display: flex; align-items: center; gap: 16px; text-align: left; }
.brand-mark {
  width: 68px; height: 58px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50% 50% 8px 8px;
  color: var(--gold); font-family: var(--display); font-size: 24px;
}
.brand strong { display: block; color: var(--gold); letter-spacing: .22em; font-size: 22px; line-height: 1; }
.brand span span { display: block; color: var(--gold); letter-spacing: .28em; font-size: 10px; margin-top: 7px; text-transform: uppercase; }
.menu-button { display: none; }
.main-nav { display: flex; justify-content: flex-end; align-items: center; gap: 30px; }
.nav-link {
  border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--cream);
  padding: 12px 2px; text-transform: uppercase; font-size: 14px; font-weight: 650; letter-spacing: .03em;
}
.nav-link.active { color: var(--gold); border-color: var(--gold); }
.nav-link[data-view="booking"] {
  border: 1px solid var(--gold); border-radius: 4px; padding: 13px 24px; color: var(--gold);
}
.language-selector { display: grid; gap: 6px; margin-left: 18px; }
.language-pill { border: 0; background: transparent; color: var(--cream); text-align: left; font-size: 12px; }
.language-pill.active { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.top-actions { display: none; }

main { padding: 0; }
.hero, .mode-hero {
  position: relative; min-height: 390px; padding: 58px 6vw 120px;
  color: var(--cream); background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.18)), url("./layout/ref-1.png") center/cover;
}
.mode-hero.moment { background-image: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.18)), url("./layout/ref-3.png"); }
.mode-hero.overnight { background-image: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.18)), url("./layout/ref-2.png"); }
.mode-hero.experience { background-image: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.22)), url("./layout/ref-4.png"); }
.mode-hero.packages { background-image: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.20)), url("./layout/ref-5.png"); }
.hero::after, .mode-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.22); pointer-events: none; }
.hero-content, .mode-hero > div { position: relative; z-index: 1; width: min(620px, 100%); }
.hero-panel {
  position: relative; z-index: 2; width: min(1240px, calc(100vw - 10vw)); margin: 42px auto -166px;
  padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.96); color: var(--ink); box-shadow: var(--shadow);
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.035em; }
h1 { margin: 0 0 14px; font-size: clamp(48px, 6vw, 86px); line-height: .95; }
h2 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; }
h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.lead { color: rgba(255,255,255,.92); font-size: 20px; line-height: 1.55; }
.muted, p, li { color: var(--muted); line-height: 1.65; }
.eyebrow {
  margin: 0 0 14px; color: var(--gold); font-size: 13px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
}

.view.active { display: block; padding: 72px 6vw; }
.hero + .view.active { padding-top: 178px; }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 28px; }
.section-head > p { max-width: 520px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.experience-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border: 1px solid var(--gold); border-radius: 4px; padding: 12px 24px;
  background: linear-gradient(135deg, #d1aa6b, #a97c3e); color: #fff; text-decoration: none;
  text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 800;
}
.btn.secondary, .btn.ghost { background: transparent; color: var(--gold); }
.btn.danger { border-color: var(--danger); background: transparent; color: var(--danger); }
.btn.small { min-height: 38px; padding: 8px 14px; }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

.booking-mini .field-grid, .field-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 20px; }
.booking-mini { display: grid; grid-template-columns: 1fr 190px; gap: 24px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 13px; font-weight: 750; color: var(--ink); }
input, select, textarea {
  width: 100%; min-height: 46px; border: 1px solid rgba(24,21,18,.16); border-radius: 8px;
  padding: 12px 14px; background: #fff; color: var(--ink); outline: none;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194,154,91,.18); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(194,154,91,.58); outline-offset: 3px; }
.ui-state {
  display: grid; place-items: center; gap: 10px; min-height: 160px;
  border: 1px solid var(--soft-line); border-radius: var(--radius);
  background: rgba(255,255,255,.82); padding: 28px; text-align: center;
}
.ui-state h3 { margin: 0; }
.ui-state.error { border-color: rgba(201,85,68,.35); }
.ui-state.unavailable { border-color: rgba(183,121,31,.35); }
.spinner {
  width: 28px; height: 28px; border-radius: 999px;
  border: 3px solid rgba(194,154,91,.25); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--soft-line); font-size: 12px; font-weight: 800;
}
.status-badge.ok { color: var(--ok); border-color: rgba(29,143,88,.28); }
.status-badge.warning { color: var(--warning); border-color: rgba(183,121,31,.28); }
.status-badge.error { color: var(--danger); border-color: rgba(201,85,68,.28); }
.price-preview { padding: 14px 0; color: var(--muted); }
.price-preview strong { display: block; color: var(--ink); font-size: 24px; }

.card, .form-card, .summary-box, .metric, .admin-side, .feature-tile, .benefit, .package-card {
  border: 1px solid var(--soft-line); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.07);
}
.card.pad, .form-card, .summary-box, .metric, .admin-side, .package-card { padding: 24px; }
.cabin-card, .package-card, .feature-tile, .gallery-card { overflow: hidden; min-height: 260px; color: #fff; position: relative; isolation: isolate; }
.cabin-card::before, .package-card::before, .feature-tile::before, .gallery-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background: url("./layout/ref-6.png") center/cover;
}
.cabin-card::after, .package-card::after, .feature-tile::after, .gallery-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.82));
}
.cabin-art { min-height: 140px; background: transparent !important; padding: 20px; }
.cabin-body { padding: 24px; margin-top: 20px; }
.cabin-body .muted, .cabin-body p, .package-card p, .feature-tile p, .gallery-card p { color: rgba(255,255,255,.86); }
.feature-tile, .package-card, .gallery-card { padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.feature-tile.is-gold::before { background-image: url("./layout/ref-3.png"); }
.feature-tile.is-dark::before { background-image: url("./layout/ref-2.png"); }
.package-card.food::before { background-image: url("./layout/ref-5.png"); }
.gallery-card.ref-2::before { background-image: url("./layout/ref-2.png"); }
.gallery-card.ref-3::before { background-image: url("./layout/ref-3.png"); }
.gallery-card.ref-4::before { background-image: url("./layout/ref-4.png"); }
.experience-grid { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 22px; }
.benefits-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 42px 0; }
.benefit { text-align: center; padding: 20px; box-shadow: none; border: 0; background: transparent; }
.benefit span { color: var(--gold); font-size: 34px; }
.gallery-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-thumb { min-height: 110px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.65)), url("./layout/ref-1.png") center/cover; text-align: left; padding: 14px; }

.tag, .status-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 26px;
  border-radius: 999px; padding: 4px 10px; background: rgba(194,154,91,.16); color: var(--gold);
  font-size: 12px; font-weight: 800;
}
.tag.warn { color: var(--warning); } .tag.danger { color: var(--danger); } .tag.info { color: var(--gold); }
.trust-row, .metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.trust-card { color: var(--cream); border-left: 1px solid rgba(194,154,91,.45); padding-left: 16px; }
.trust-card strong, .metric strong { display: block; color: inherit; font-size: 26px; }
.trust-card span, .metric span { font-size: 13px; color: inherit; opacity: .78; }

.auth-layout { display: grid; grid-template-columns: minmax(320px, .8fr) 1.2fr; gap: 28px; }
.auth-layout::before {
  content: ""; min-height: 520px; border-radius: var(--radius-lg); background: url("./layout/ref-7.png") center/cover; box-shadow: var(--shadow);
}
.auth-tabs, .admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { min-height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: #fff; color: var(--ink); }
.tab.active { background: var(--gold); color: #fff; }

.flow { display: grid; grid-template-columns: 320px 1fr 360px; gap: 24px; align-items: start; }
.steps, .side-nav { display: grid; gap: 12px; }
.step { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--soft-line); }
.step-index { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--gold); color: #fff; }
.summary-line, .summary-total { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--soft-line); }
.summary-total strong { font-size: 24px; color: var(--ink); }

.admin-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.admin-side { background: #090806; color: #fff; }
.admin-side .tab { width: 100%; justify-content: flex-start; border-color: rgba(194,154,91,.3); background: transparent; color: #fff; }
.admin-side .tab.active { background: rgba(194,154,91,.22); color: var(--gold); }
.table-wrap { overflow: auto; border: 1px solid var(--soft-line); border-radius: var(--radius); background: #fff; }
table { min-width: 780px; width: 100%; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--soft-line); text-align: left; vertical-align: top; font-size: 13px; }
th { background: #f8f5ef; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

.footer {
  position: relative; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 28px; align-items: center;
  padding: 36px 6vw; background: #030303; color: var(--cream); border-top: 1px solid rgba(194,154,91,.18);
}
.footer strong { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.footer span { display: block; color: rgba(255,255,255,.82); margin-top: 7px; }
.footer p { color: rgba(255,255,255,.62); margin: 12px 0 0; }
.footer-brand { text-align: center; }
.whatsapp-float {
  position: fixed; right: 34px; bottom: 34px; z-index: 50; width: 64px; height: 64px;
  border: 0; border-radius: 50%; background: #19b937; color: #fff; font-size: 30px; box-shadow: var(--shadow);
}

.drawer { position: fixed; right: 24px; bottom: 112px; z-index: 60; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { padding: 14px 16px; border-radius: 12px; background: #0e0d0b; color: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.toast.error { border-color: var(--danger); } .toast.ok { border-color: var(--gold); }
.modal-backdrop { position: fixed; inset: 0; z-index: 55; display: none; place-items: center; padding: 22px; background: rgba(0,0,0,.66); }
.modal-backdrop.open { display: grid; }
.modal { width: min(680px, 100%); max-height: calc(100vh - 44px); overflow: auto; padding: 26px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f4efe7; }
.gallery-modal img { border-radius: 14px; }
.code-box { overflow: auto; padding: 14px; border-radius: 12px; background: #111; color: #f4efe7; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; min-height: 78px; padding: 12px 22px; }
  .menu-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--gold); font-size: 24px; }
  .main-nav { display: none; position: absolute; left: 18px; right: 18px; top: 76px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #060504; flex-direction: column; align-items: stretch; gap: 8px; }
  .main-nav.open { display: flex; }
  .nav-link, .nav-link[data-view="booking"] { border: 0; border-radius: 8px; text-align: left; padding: 13px 14px; }
  .language-selector { margin: 10px 0 0; }
  .brand strong { font-size: 17px; }
  .brand-mark { width: 50px; height: 44px; }
  .hero, .mode-hero { padding: 44px 22px 120px; min-height: 470px; }
  .hero-panel { width: calc(100vw - 32px); margin-bottom: -180px; padding: 18px; }
  .hero + .view.active { padding-top: 210px; }
  .view.active { padding: 54px 22px; }
  .booking-mini, .booking-mini .field-grid, .field-grid, .grid, .experience-strip, .experience-grid, .benefits-row, .gallery-row, .flow, .auth-layout, .admin-layout, .footer, .trust-row, .metrics { grid-template-columns: 1fr; }
  .auth-layout::before { min-height: 220px; order: 2; }
  .section-head { display: block; }
  .footer { text-align: left; }
}

@media (max-width: 560px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .lead { font-size: 17px; }
  .brand span span { letter-spacing: .16em; }
  .btn { width: 100%; }
  .hero-actions, .form-actions { flex-direction: column; }
  .whatsapp-float { width: 56px; height: 56px; right: 18px; bottom: 18px; }
}
