:root {
  --bg: #f4efe6;
  --surface: #fffdf9;
  --surface-soft: #f0e8da;
  --ink: #14263e;
  --ink-soft: #4f6178;
  --brand: #0a3a5f;
  --brand-2: #1d6d86;
  --accent: #c87949;
  --line: rgba(20, 38, 62, 0.12);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow: 0 16px 36px rgba(11, 25, 43, 0.12);
  --header-h: 76px;
  --max-w: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Avenir Next", Avenir, "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(29, 109, 134, 0.08), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(200, 121, 73, 0.08), transparent 36%),
    linear-gradient(180deg, #f9f5ee, var(--bg));
  line-height: 1.55;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  z-index: 9999;
}

.container {
  width: min(var(--max-w), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(249, 245, 238, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  font-size: 1.82rem;
  color: var(--brand);
  font-weight: 700;
  margin-right: auto;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0.2rem 0.45rem;
  min-height: 44px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--brand);
  background: rgba(10, 58, 95, 0.08);
}

.nav a.active {
  color: var(--brand);
  background: rgba(10, 58, 95, 0.12);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.espa-badge {
  width: 68px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.espa-badge img {
  width: 100%;
  display: block;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.6rem;
  min-height: 40px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--brand);
}

.lang-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.hero {
  padding: 2.5rem 0 2rem;
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.hero-video-only {
  display: grid;
}

.hero-card,
.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.kicker {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(10, 58, 95, 0.1);
  border: 1px solid rgba(10, 58, 95, 0.22);
  color: var(--brand);
  padding: 0.28rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-card h1 {
  margin-top: 0.8rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.95;
}

.hero-copy {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-bullets {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.hero-bullets li {
  color: var(--ink-soft);
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.9rem;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  top: 0.52rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-media {
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
  min-height: 360px;
}

.hero-media-full {
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: min(72vh, 760px);
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  display: block;
  background: transparent;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  margin: -1px 0 0 -1px;
  max-width: none;
  vertical-align: top;
  object-position: center 50%;
  transform: scale(3.15);
  transform-origin: center center;
  will-change: transform;
}

.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-enclosure {
  display: none !important;
}

.stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 0.8rem;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--brand);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.section {
  padding: 4.6rem 0;
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.section.alt {
  background: linear-gradient(180deg, #f2eadc, #f8f3ea);
}

.section-head h2 {
  margin-top: 0.7rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.rooms-toolbar {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.95rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
}

.filter-title {
  font-size: 0.79rem;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-pills {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-pill {
  border: 1px solid rgba(20, 38, 62, 0.2);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.filter-pill.active,
.filter-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(10, 58, 95, 0.08);
}

.rooms-result {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.rooms-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.room-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.room-card-link {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.room-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 58, 95, 0.3);
}

.room-card-link:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
}

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

.room-body {
  padding: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.room-title {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  font-size: 1.25rem;
}

.room-meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags span,
.amenities li {
  border-radius: 999px;
  background: rgba(29, 109, 134, 0.12);
  border: 1px solid rgba(29, 109, 134, 0.22);
  color: var(--brand-2);
  padding: 0.22rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.empty-state {
  border-radius: var(--radius-m);
  border: 1px dashed rgba(20, 38, 62, 0.2);
  background: #fff;
  padding: 1rem;
  color: var(--ink-soft);
}

.gallery-grid {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 210px;
}

.gallery-card.large {
  grid-row: span 2;
  min-height: 430px;
}

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

.gallery-caption {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  background: rgba(10, 20, 35, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.56rem;
  font-size: 0.74rem;
}

.activities-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.activity-card {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  min-height: 170px;
}

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

.activity-card span {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  border-radius: 999px;
  background: rgba(10, 20, 35, 0.72);
  color: #fff;
  padding: 0.28rem 0.56rem;
  font-size: 0.74rem;
}

.contact-grid,
.room-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card,
.map-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.contact-card h2 {
  margin-top: 0.7rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  font-size: 2rem;
}

.contact-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.38rem;
}

.contact-list li {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.contact-actions {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.notice {
  margin-top: 0.9rem;
  border: 1px solid rgba(200, 121, 73, 0.36);
  background: #fff4ed;
  color: #77482d;
  border-radius: var(--radius-s);
  padding: 0.65rem;
  font-size: 0.86rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-s);
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: #efe6d7;
}

.footer-grid {
  padding: 1.4rem 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr 1fr;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0;
}

.footer-grid p,
.footer-grid li {
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.powered-by {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.powered-by a {
  color: var(--brand);
  font-weight: 800;
}

.powered-by a:hover {
  text-decoration: underline;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border-color: rgba(10, 58, 95, 0.25);
}

.btn:focus-visible,
.filter-pill:focus-visible,
.room-gallery-item:focus-visible,
.room-picker select:focus-visible,
.lightbox button:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

/* Room page */
.room-page .room-hero {
  padding: 2.8rem 0 1rem;
}

.room-hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.room-hero-meta,
.room-hero-copy {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

.room-flow {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: end;
}

.room-flow .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.room-picker {
  display: grid;
  gap: 0.25rem;
}

.room-picker span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.room-picker select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem;
  color: var(--ink);
  font-size: 0.84rem;
  min-height: 44px;
  width: 100%;
  max-width: 100%;
}

.room-hero-image {
  min-height: 420px;
}

.room-hero-image img {
  cursor: zoom-in;
}

.room-gallery-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.room-gallery-item {
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 220px;
  background: #fff;
  padding: 0;
  cursor: zoom-in;
}

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

.amenities {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Sticky mobile contact */
.sticky-contact {
  display: none !important;
}

.sticky-contact .btn {
  flex: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(7, 16, 26, 0.92);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem;
  gap: 0.6rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.lightbox-figure img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.lightbox-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Motion */
.reveal {
  animation: rise 0.5s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .rooms-grid,
  .activities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-card.large {
    grid-column: span 2;
    min-height: 320px;
  }

  .rooms-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 66px;
  }

  .container {
    width: min(var(--max-w), calc(100% - 1.25rem));
  }

  .brand {
    font-size: 1.45rem;
    max-width: 52vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-tools {
    gap: 0.4rem;
  }

  .espa-badge {
    width: 58px;
  }

  .lang-btn {
    padding: 0.33rem 0.52rem;
    font-size: 0.72rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .hero {
    padding: 1.5rem 0 1.25rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #f9f5ee;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.8rem 1rem;
    display: grid;
    gap: 0.5rem;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.2s ease;
  }

  .nav.open {
    max-height: min(70vh, 420px);
  }

  .nav a {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    width: 100%;
    font-size: 0.95rem;
  }

  .hero-grid,
  .contact-grid,
  .footer-grid,
  .stats,
  .room-hero-wrap,
  .room-details-grid {
    grid-template-columns: 1fr;
  }

  .hero-media-full {
    aspect-ratio: 4 / 5;
    min-height: min(52vh, 460px);
  }

  .hero-video {
    transform: scale(3.25);
    object-position: center 50%;
  }

  .room-hero-image {
    min-height: min(44vh, 340px);
  }

  .room-flow {
    grid-template-columns: 1fr;
  }

  .room-flow .btn {
    width: 100%;
  }

  .map-wrap iframe {
    min-height: 250px;
  }

  .sticky-contact {
    display: none !important;
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 62px;
  }

  .brand {
    font-size: 1.2rem;
    line-height: 1.1;
    max-width: 46vw;
  }

  .header-tools {
    gap: 0.3rem;
  }

  .espa-badge {
    width: 50px;
  }

  .lang-btn {
    padding: 0.3rem 0.42rem;
    font-size: 0.68rem;
  }

  .hero-media-full {
    aspect-ratio: 3 / 4;
    min-height: min(48vh, 360px);
  }

  .rooms-grid,
  .activities-grid,
  .gallery-grid,
  .room-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card.large {
    grid-column: auto;
  }

  .room-flow {
    grid-template-columns: 1fr;
  }

  .room-flow .btn {
    width: 100%;
  }

  .room-gallery-item {
    min-height: 180px;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .powered-by {
    width: 100%;
  }

  .lightbox {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    align-content: center;
  }

  .lightbox-nav {
    width: 100%;
    max-width: 280px;
  }

  .sticky-contact {
    display: none !important;
  }
}
