:root {
  --navy: #071A2F;
  --navy-2: #0D2A49;
  --gold: #D4AF37;
  --cream: #FFF7E6;
  --white: #FFFFFF;
  --charcoal: #222222;
  --muted: #687386;
  --light: #F8F5EF;
  --line: rgba(7, 26, 47, .12);
  --shadow: 0 18px 50px rgba(7, 26, 47, .14);
  --radius: 8px;
  --heading: "Playfair Display", Georgia, serif;
  --body: "Poppins", "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--light);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 86px 0; }
.section.alt { background: var(--white); }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.12; color: var(--navy); margin: 0 0 16px; letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 18px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7, 26, 47, .18); }
.btn.primary { background: var(--gold); color: var(--navy); }
.btn.dark { background: var(--navy); color: var(--white); }
.btn.light { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn.full { width: 100%; }
.btn .ripple { position: absolute; border-radius: 999px; background: rgba(255,255,255,.6); transform: scale(0); animation: ripple .65s linear; pointer-events: none; }

.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.82);
  font-size: .85rem;
  padding: 8px 0;
}
.topbar .container, .navrow, .footer-grid, .auth-actions, .socials { display: flex; align-items: center; }
.topbar .container { justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.socials { gap: 9px; }
.socials a {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(7,26,47,.08);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 12px 34px rgba(7,26,47,.13); }
.navrow { justify-content: space-between; min-height: 76px; gap: 20px; }
.logo { font-family: var(--heading); font-size: 1.55rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.logo span { color: var(--gold); }
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  padding: 10px 11px;
  border-radius: 6px;
  font-size: .92rem;
  font-weight: 600;
  color: #23344b;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); background: var(--cream); }
.auth-actions { gap: 10px; }
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 5px auto; }

.hero {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 5s ease;
  background: linear-gradient(110deg, rgba(7,26,47,.9), rgba(7,26,47,.38)), var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(7,26,47,.88), rgba(7,26,47,.35));
  pointer-events: none;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  align-content: center;
  max-width: 760px;
  padding: 80px 0 150px;
}
.hero h1, .hero p { color: var(--white); }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,.86); }
.hero-dots { position: absolute; z-index: 3; bottom: 105px; left: max(16px, calc((100% - 1180px) / 2)); display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; border: 0; background: rgba(255,255,255,.44); cursor: pointer; }
.hero-dots button.active { background: var(--gold); }

.booking-bar {
  position: relative;
  z-index: 4;
  margin-top: -70px;
}
.booking-form, .contact-form, .auth-panel, .admin-card, .filter-bar {
  background: var(--white);
  border: 1px solid rgba(7,26,47,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.booking-form {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr) auto;
  gap: 12px;
  padding: 18px;
}
.field label { display: block; font-size: .78rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--charcoal);
}
.field textarea { min-height: 130px; resize: vertical; }
.error { color: #B42318; font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B42318; }
.success-message { display: none; background: #EAF8EF; color: #17663A; border: 1px solid #BDE8CC; padding: 12px; border-radius: 6px; margin-top: 14px; font-weight: 600; }
.success-message.show { display: block; }

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid rgba(7,26,47,.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.meta { color: var(--muted); font-size: .93rem; }
.price { color: var(--gold); font-size: 1.45rem; font-weight: 800; }
.features { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tag { background: var(--cream); color: var(--navy); padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.media {
  min-height: 230px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(7,26,47,.78), rgba(212,175,55,.48)), var(--img);
  background-size: cover;
  background-position: center;
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .5s ease;
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(7,26,47,.55), rgba(7,26,47,.18));
  pointer-events: none;
}
.media::after {
  content: attr(data-title);
  position: absolute;
  z-index: 2;
  left: 16px; bottom: 14px;
  color: var(--white);
  font-family: var(--heading);
  font-size: 1.35rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.image-zoom { transition: transform .5s ease; }
.card:hover .media { filter: saturate(1.08); }
.card:hover .media img { transform: scale(1.06); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 24px; background: var(--navy); color: var(--white); border-radius: var(--radius); }
.stat strong { display: block; color: var(--gold); font-family: var(--heading); font-size: 2.4rem; }
.stat span { color: rgba(255,255,255,.78); }

.filter-bar { padding: 16px; display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; box-shadow: none; }
.filter-btn { border: 1px solid var(--line); background: var(--white); padding: 10px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; }
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: var(--white); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; background: transparent; border: 0; padding: 18px 0; text-align: left; display: flex; justify-content: space-between; cursor: pointer; font-weight: 800; color: var(--navy); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); }
.faq-item.open .faq-answer { max-height: 220px; padding-bottom: 18px; }

.page-hero {
  padding: 118px 0 80px;
  color: var(--white);
  background: linear-gradient(110deg, rgba(7,26,47,.92), rgba(7,26,47,.52)), var(--page-img);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(7,26,47,.92), rgba(7,26,47,.48));
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1, .page-hero p { color: var(--white); }
.breadcrumbs { color: rgba(255,255,255,.78); font-size: .92rem; margin-bottom: 12px; }
.detail-layout, .admin-layout { display: grid; grid-template-columns: 1.5fr .75fr; gap: 28px; align-items: start; }
.gallery-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-mosaic .media { min-height: 210px; }

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  padding: 70px 0 0;
}
.footer-grid {
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr) 1.2fr;
}
.site-footer h3, .site-footer h4 { color: var(--white); }
.site-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
  color: rgba(255,255,255,.78);
}
.site-footer a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  flex: 0 0 auto;
}
.site-footer a:hover { color: var(--gold); }
.site-footer .socials a,
.footer-socials a {
  display: grid;
  margin: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: 0;
}
.site-footer .socials a::before,
.footer-socials a::before {
  content: none;
}
.site-footer .socials a:hover,
.footer-socials a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.site-footer .socials a[aria-label="Facebook"]:hover,
.footer-socials a[aria-label="Facebook"]:hover {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}
.site-footer .socials a[aria-label="Instagram"]:hover,
.footer-socials a[aria-label="Instagram"]:hover {
  background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  color: #fff;
  border-color: #DD2A7B;
}
.site-footer .socials a[aria-label="YouTube"]:hover,
.footer-socials a[aria-label="YouTube"]:hover {
  background: #FF0000;
  color: #fff;
  border-color: #FF0000;
}
.site-footer .socials a[aria-label="LinkedIn"]:hover,
.footer-socials a[aria-label="LinkedIn"]:hover {
  background: #0A66C2;
  color: #fff;
  border-color: #0A66C2;
}
.site-footer .socials a[aria-label="X Twitter"]:hover,
.footer-socials a[aria-label="X Twitter"]:hover {
  background: #000;
  color: #fff;
  border-color: #fff;
}
.site-footer .socials a[aria-label="WhatsApp"]:hover,
.footer-socials a[aria-label="WhatsApp"]:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.site-footer .social-facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.site-footer .social-instagram:hover { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4); color: #fff; border-color: #DD2A7B; }
.site-footer .social-youtube:hover { background: #FF0000; color: #fff; border-color: #FF0000; }
.site-footer .social-linkedin:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.site-footer .social-x:hover { background: #000; color: #fff; border-color: #fff; }
.site-footer .social-whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.newsletter { display: flex; gap: 8px; }
.newsletter input { min-width: 0; flex: 1; border-radius: 6px; border: 0; padding: 11px; }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.13); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom span:last-child { display: flex; gap: 16px; }
.footer-bottom a { margin: 0; }
.footer-credit {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  text-align: center;
  padding: 16px;
  font-size: .9rem;
}
.auto-section .card h3 { margin-bottom: 10px; }
.auto-section .media { min-height: 320px; }

.floating-actions { position: fixed; right: 18px; bottom: 20px; z-index: 60; display: grid; gap: 10px; }
.float-btn, .back-top {
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: var(--white); font-weight: 900;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.float-btn.whatsapp { background: #25D366; }
.float-btn.call { background: var(--gold); color: var(--navy); }
.back-top { background: var(--navy); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.back-top.show { opacity: 1; pointer-events: auto; }

.loader { position: fixed; inset: 0; z-index: 100; background: var(--navy); display: grid; place-items: center; transition: opacity .45s ease, visibility .45s ease; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader::after { content: ""; width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--gold); animation: spin 1s linear infinite; }

.auth-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 60px 0; }
.auth-panel { width: min(480px, 100%); padding: 32px; }
.auth-wrap .auto-section {
  width: 100%;
  justify-self: stretch;
  align-self: stretch;
}

.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #EEF2F6; }
.admin-sidebar { background: var(--navy); color: var(--white); padding: 26px; }
.admin-sidebar a { display: block; padding: 12px 14px; margin: 6px 0; border-radius: 6px; color: rgba(255,255,255,.78); }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.admin-main { padding: 28px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); }
.admin-table th { background: var(--cream); color: var(--navy); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
