:root {
  --forest: #0C2E8A;
  --forest-deep: #071A54;
  --gold: #00C8F0;
  --gold-dark: #00A8CC;
  --teal: #00C8F0;
  --cream: #F3F7FC;
  --sand: #E4ECF5;
  --ink: #0A1A3A;
  --muted: #4A5A72;
  --line: #C9D6E8;
  --white: #FFFFFF;
  --shadow: 0 18px 40px rgba(7, 26, 84, .14);
  --radius: 18px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom);
}
img, video, iframe { max-width: 100%; }
img { display: block; }
a { color: var(--forest); text-decoration: none; }
h1, h2, h3, .navbar-brand strong {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: .4rem;
}

.topbar {
  background: var(--forest-deep);
  color: #e8efe9;
  font-size: .82rem;
  padding: .45rem 0;
}
.topbar a { color: inherit; }

.site-nav {
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: .55rem 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--forest) !important;
  min-width: 0;
}
.brand-logo-nav {
  height: 56px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--gold);
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-logo {
  height: auto;
  width: min(280px, 82vw);
  display: block;
  margin: 0 auto 1.1rem;
  background: #fff;
  border-radius: 16px;
}
.navbar-toggler { border-color: rgba(12, 46, 138, .35); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(0, 200, 240, .25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.25rem; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-link { color: var(--ink) !important; font-weight: 500; padding: .5rem .85rem !important; }
.nav-link.active, .nav-link:hover { color: var(--forest) !important; }
.btn-gold {
  background: var(--gold);
  color: var(--forest-deep);
  border: 0;
  font-weight: 600;
  border-radius: 999px;
  padding: .7rem 1.35rem;
}
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-forest {
  background: var(--forest);
  color: #fff;
  border: 0;
  font-weight: 600;
  border-radius: 999px;
  padding: .7rem 1.35rem;
}
.btn-forest:hover { background: var(--forest-deep); color: #fff; }
.btn-outline-forest {
  border: 1px solid var(--forest);
  color: var(--forest);
  border-radius: 999px;
  font-weight: 600;
  padding: .65rem 1.25rem;
}
.btn-outline-forest:hover { background: var(--forest); color: #fff; }

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media {
  background-size: cover;
  background-position: center 58%;
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(7,26,84,.18) 0%, rgba(7,26,84,.48) 48%, rgba(7,26,84,.88) 100%);
}
.hero-copy { position: relative; z-index: 2; padding: 8rem 0 4.5rem; max-width: 920px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: .35rem; }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero .lead { font-size: 1.15rem; max-width: 38rem; opacity: .92; }
.search-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}
.search-hint {
  margin-top: .85rem;
  font-size: .88rem;
  color: var(--muted);
}
.search-card label, .filter-bar label, .book-widget label, .form-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .25rem;
}

.section { padding: 5rem 0; }
.section-cream { background: var(--cream); }
.welcome-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.welcome-photo-media,
.welcome-photo-veil {
  position: absolute;
  inset: 0;
}
.welcome-photo-media {
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.welcome-photo-veil {
  background: rgba(243, 247, 252, .78);
  z-index: 1;
}
.welcome-photo .container { position: relative; z-index: 2; }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: 2.4rem; }
.welcome-blurb h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--forest); }
.welcome-blurb p { font-size: 1.08rem; color: var(--ink); }

.room-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,42,31,.08);
  color: inherit;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.room-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.room-card-media img { width: 100%; height: 100%; object-fit: cover; }
.price-chip {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--white);
  color: var(--forest);
  font-weight: 700;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .9rem;
}
.price-chip small { font-weight: 500; color: var(--muted); }
.room-card-body { padding: 1.1rem 1.15rem 1.25rem; }
.room-card-body h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.meta { color: var(--muted); font-size: .92rem; }
.meta span { margin-right: .8rem; }
.meta i { color: var(--gold-dark); margin-right: .25rem; }

.amenity-tile {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem;
  height: 100%;
  border: 1px solid var(--line);
}
.amenity-tile i { color: var(--gold-dark); font-size: 1.3rem; margin-bottom: .5rem; }
.amenity-tile h3 { font-size: 1.05rem; font-family: var(--font); }

.split-photos { display: grid; gap: 12px; }
.split-photos img { border-radius: var(--radius); height: 220px; width: 100%; object-fit: cover; }
.split-photos img:first-child { height: 280px; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .35rem 0 .35rem 1.5rem; position: relative; }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }

.cta-band {
  background: var(--forest);
  color: #f4efe6;
  padding: 4.5rem 0;
}
.cta-band h2 { font-size: 2.6rem; color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.page-hero {
  background: var(--forest);
  color: #f6f1e7;
  padding: 3.5rem 0 2.6rem;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; }
.page-hero p { max-width: 40rem; opacity: .88; }

.filter-bar {
  background: var(--cream);
  padding: 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.room-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
  height: 100%;
}
.room-row-media { display: block; overflow: hidden; min-height: 220px; }
.room-row-media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.room-row-body { padding: 1.25rem; display: flex; flex-direction: column; }
.room-row-body h2 { font-size: 1.5rem; }
.price span { color: var(--muted); font-weight: 400; font-size: .9rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 370px;
}
.gallery-item { display: block; overflow: hidden; background: #ddd; }
.gallery-item.main { grid-row: 1 / span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-more {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-more .gallery-item { height: 110px; border-radius: 10px; }
.book-widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.book-widget h3 { font-size: 1.4rem; }
.breakdown { font-size: .95rem; }
.breakdown .total { font-weight: 700; border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .6rem; }
.amenity-line { padding: .4rem 0; }
.amenity-line i { width: 22px; color: var(--gold-dark); }
.price-lg { font-family: var(--serif); font-size: 2rem; }
.price-lg small { font-size: 1rem; color: var(--muted); }
.crumb { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }

.card-form, .side-panel, .team-card, .confirm-card, .admin-panel, .stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .7rem; }
.facts dd { margin: 0; }
.contact-facts > div { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-facts i { color: var(--gold-dark); font-size: 1.2rem; margin-top: .2rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; height: 360px; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.steps { display: flex; gap: 1rem; font-weight: 600; font-size: .9rem; }
.steps span { color: var(--muted); }
.steps .on { color: var(--forest); border-bottom: 2px solid var(--gold); }

.pay-options { display: grid; gap: .7rem; }
.pay-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.pay-option:has(input:checked) { border-color: var(--forest); background: var(--cream); }
.pay-option input { accent-color: var(--forest); }

.confirm-card { text-align: center; padding: 3rem 1.5rem; }
.confirm-icon { font-size: 3rem; color: var(--forest); }
.ref-box {
  display: inline-block;
  font-size: 1.6rem;
  letter-spacing: .12em;
  font-weight: 700;
  background: var(--cream);
  padding: .6rem 1.2rem;
  border-radius: 12px;
  margin: .8rem 0;
}

.site-footer {
  background: var(--forest-deep);
  color: #d5def0;
  padding: 3.5rem 0 1.2rem;
  padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));
}
.site-footer a { color: #f4efe6; display: block; margin: .25rem 0; }
.site-footer h6 { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2rem; padding-top: 1rem; font-size: .85rem;
}
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.admin-body { display: flex; min-height: 100vh; background: #f3eee4; }
.admin-side {
  width: 240px; background: var(--forest-deep); color: #e8efe9;
  padding: 1.2rem .8rem; display: flex; flex-direction: column;
}
.admin-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; margin-bottom: 1.4rem; }
.admin-brand .brand-logo-nav { height: 40px; max-width: 40px; }
.admin-side nav a {
  display: flex; align-items: center; gap: .6rem;
  color: #d5e0d8; padding: .65rem .75rem; border-radius: 10px;
}
.admin-side nav a.active, .admin-side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side-foot { margin-top: auto; display: grid; gap: .4rem; }
.admin-side-foot a { color: var(--gold); }
.admin-main { flex: 1; }
.admin-top {
  background: #fff; padding: 1rem 1.5rem;
  display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.admin-content { padding: 1.5rem; }
.stat-card span { color: var(--muted); display: block; }
.stat-card strong { font-size: 1.7rem; font-family: var(--serif); }
.auth-body {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--cream);
}
.auth-card { width: min(420px, calc(100% - 32px)); background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }

.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--line);
  padding: .65rem .8rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 .2rem rgba(0, 200, 240, .22);
}

.category-block { margin-bottom: 3.2rem; }
.amenity-pills { display: flex; flex-wrap: wrap; gap: .35rem .6rem; }
.amenity-pills span {
  font-size: .78rem;
  color: var(--muted);
  background: var(--cream);
  border-radius: 999px;
  padding: .2rem .55rem;
}
.amenity-pills i { color: var(--gold-dark); margin-right: .2rem; }
.similar-card {
  display: flex; gap: .75rem; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; padding: .6rem;
  color: inherit;
}
.similar-card img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; }
.similar-card:hover { border-color: var(--forest); }

@media (max-width: 991px) {
  .hero { min-height: 72vh; }
  .hero-copy { padding: 6.5rem 0 2.4rem; max-width: 100%; }
  .section { padding: 3.2rem 0; }
  .section-head h2, .cta-band h2, .welcome-blurb h2 { font-size: 1.85rem; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 120px;
    min-height: 0;
  }
  .gallery-item.main { grid-column: 1 / span 2; grid-row: auto; }
  .gallery-more { grid-template-columns: 1fr 1fr; }
  .room-row { grid-template-columns: 1fr; }
  .room-row-media { min-height: 0; aspect-ratio: 16 / 10; }
  .room-row-media img { min-height: 0; height: 100%; }
  .admin-body { flex-direction: column; }
  .admin-side { width: 100%; }
  .book-widget { position: static; }
  .navbar-collapse { padding-bottom: .75rem; }
  .navbar-collapse .btn-gold { display: inline-flex; margin-top: .35rem; }
}
@media (max-width: 576px) {
  .hero { min-height: 0; }
  .hero-copy { padding: 4.8rem 0 1.6rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero-tagline { font-size: 1.15rem; }
  .hero .lead { font-size: 1rem; }
  .section { padding: 2.4rem 0; }
  .page-hero { padding: 2rem 0 1.4rem; }
  .cta-band { padding: 2.4rem 0 3.2rem; }
  .cta-actions .btn { width: 100%; }
  .search-card .btn, .filter-bar .btn { width: 100%; }
  .brand-logo-nav { height: 44px; max-width: 44px; }
  .brand-logo { width: min(220px, 78vw); }
  .split-photos img,
  .split-photos img:first-child { height: 190px; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 6px;
  }
  .gallery-item.main { grid-column: auto; }
  .gallery-item { min-height: 0; }
  .gallery-item img { width: 100%; height: 200px; object-fit: cover; }
  .gallery-item.main img { height: 230px; }
  .gallery-more { grid-template-columns: 1fr 1fr; }
  .gallery-more .gallery-item { height: 96px; }
  .gallery-more .gallery-item img { height: 96px; }
  .price-lg { font-size: 1.45rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .whatsapp-float {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
  }
  .map-wrap { height: 240px; }
  .topbar { font-size: .75rem; }
}
