/* ═══════════════════════════════════════════════════
   HOSTAL DUKES — Coastal Galician Retreat
   Pure CSS — Zero Frameworks — Elegant & Fast
   ═══════════════════════════════════════════════════ */

:root {
  --ocean: #1B6B93;
  --ocean-light: #2E8CB8;
  --ocean-dark: #14526F;
  --cream: #F5F7F0;
  --cream-dark: #E8EBE0;
  --charcoal: #2A3440;
  --charcoal-light: #3D4F5F;
  --text: #334155;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --white: #FFFFFF;
  --gold: #8B7355;
  --border: #D1D5DB;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 3px;
  --transition: 0.3s ease;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth; overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  touch-action: manipulation;
}
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ocean-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; -webkit-tap-highlight-color: transparent; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ═══════ NAVIGATION ═══════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.75rem 3rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}
.nav.scrolled {
  padding: 0.75rem 3rem;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 50px; transition: height var(--transition); }
.nav-logo .nav-logo-light { display: none; }
.nav-logo .nav-logo-dark { display: block; }

/* Text-based logo for Dukes */
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  line-height: 1;
}
.nav-logo-text:hover { color: var(--ocean); }

.nav-links {
  display: flex; gap: 1.75rem; align-items: center;
}
.nav-links a {
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ocean); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
  height: 1.5px; background: var(--ocean); transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  border: 1.5px solid var(--ocean) !important;
  border-radius: var(--radius);
  color: var(--ocean) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--ocean) !important;
  color: white !important;
  border-color: var(--ocean) !important;
}

.lang-switch { display: flex; gap: 0.5rem; margin-left: 0.5rem; }
.lang-switch a { font-size: 0.65rem !important; opacity: 0.5; letter-spacing: 0.05em !important; }
.lang-switch a.active { opacity: 1; }
.lang-switch a::after { display: none !important; }

/* Mobile language dropdown — hidden on desktop */
.nav-lang-mobile { display: none; }

/* Mobile nav toggle */
.nav-toggle { display: none; width: 28px; height: 24px; position: relative; z-index: 201; }
.nav-toggle span {
  display: block; width: 100%; height: 2px; position: absolute; left: 0;
  background: var(--charcoal); transition: all 0.4s cubic-bezier(0.77, 0, 0.18, 1);
  border-radius: 1px;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }
.nav-toggle.open span { background: var(--charcoal); }

/* ═══════ HERO ═══════ */
.hero {
  position: relative;
  height: 100vh; height: 100dvh; height: -webkit-fill-available;
  min-height: 600px;
  overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: white; padding: 0 2rem;
}
.hero-subtitle {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  margin-bottom: 1rem; opacity: 0.9;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300; line-height: 1.15;
  margin-bottom: 1.5rem; max-width: 700px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
}
.hero-subtitle, .hero-tagline {
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-title em { font-style: italic; color: var(--ocean-light); }
.hero-tagline {
  font-size: 1rem; font-weight: 300;
  opacity: 0.85; margin-bottom: 2.5rem; letter-spacing: 0.05em;
}
.hero-btn {
  display: inline-block; padding: 1rem 2.5rem;
  border: 1.5px solid white; color: white;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: all 0.4s;
}
.hero-btn:hover { background: var(--ocean); border-color: var(--ocean); color: white; }

.hero-dots {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 0.75rem;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all var(--transition); border: none;
}
.hero-dot.active { background: white; transform: scale(1.3); }

.scroll-hint {
  position: absolute; bottom: 3rem; right: 3rem; z-index: 3;
  writing-mode: vertical-rl;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.75rem;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 40px;
  background: rgba(255,255,255,0.4);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 60px; }
}

/* ═══════ PAGE HEADERS ═══════ */
.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: var(--cream);
}
.page-header .section-label { margin-bottom: 0.75rem; }
.page-header .section-title { margin-bottom: 1rem; }
.page-header .section-text { margin: 0 auto; }

/* ═══════ SECTIONS ═══════ */
section { padding: 6rem 2rem; }

.section-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ocean); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; color: var(--charcoal);
  line-height: 1.2; margin-bottom: 1.5rem;
}
.section-text {
  font-size: 1rem; color: var(--text-light);
  max-width: 550px; line-height: 1.8;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ═══════ WELCOME ═══════ */
.welcome { background: var(--cream); }
.welcome-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.welcome-images {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; position: relative;
}
.welcome-images img {
  width: 100%; height: 250px;
  object-fit: cover; border-radius: var(--radius);
}
.welcome-images img:first-child { grid-column: 1 / -1; height: 300px; }

/* ═══════ ROOM / APARTMENT CARDS ═══════ */
.rooms-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.room-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: pointer;
}
.room-card a { color: white; text-decoration: none; display: block; }
.room-card img {
  width: 100%; height: 350px;
  object-fit: cover; transition: transform 0.6s ease;
}
.room-card:hover img { transform: scale(1.05); }
.room-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 2rem;
  transition: background 0.4s;
}
.room-card:hover .room-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%);
}
.room-card h3 {
  font-family: var(--serif); color: white;
  font-size: 1.5rem; font-weight: 400; margin-bottom: 0.25rem;
}
.room-card-meta { color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.room-card-price { color: var(--ocean-light); font-size: 0.85rem; font-weight: 500; margin-top: 0.5rem; }
.rooms-cta { text-align: center; margin-top: 2.5rem; }

/* ═══════ BUTTONS ═══════ */
.btn-outline {
  display: inline-block; padding: 0.9rem 2.5rem;
  border: 1.5px solid var(--ocean); color: var(--ocean);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: all var(--transition); border-radius: var(--radius);
}
.btn-outline:hover { background: var(--ocean); color: white; }

.btn-solid {
  display: inline-block; padding: 0.9rem 2.5rem;
  background: var(--ocean); color: white;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: all var(--transition); border: 1.5px solid var(--ocean);
  border-radius: var(--radius);
}
.btn-solid:hover { background: var(--ocean-dark); border-color: var(--ocean-dark); color: white; }

/* ═══════ EXPERIENCE STRIP ═══════ */
.experience { background: var(--charcoal); color: white; padding: 5rem 2rem; }
.experience-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 3rem; text-align: center;
}
.exp-icon { width: 48px; height: 48px; margin: 0 auto 1.25rem; opacity: 0.8; color: rgba(255,255,255,0.7); }
.exp-item h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 0.5rem; }
.exp-item p { font-size: 0.85rem; line-height: 1.6; }
.experience .exp-item h4 { color: #fff; }
.experience .exp-item p { color: rgba(255,255,255,0.55); }

/* ═══════ IMAGE BREAK / PARALLAX ═══════ */
.image-break {
  position: relative; height: 50vh; min-height: 350px;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
@supports (-webkit-touch-callout: none) {
  .image-break { background-attachment: scroll; }
}
.image-break-content {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: white; padding: 2rem;
}
.image-break-content blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300; font-style: italic;
  max-width: 700px; line-height: 1.4; margin-bottom: 1rem;
}
.image-break-content cite {
  font-style: normal; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7;
}

/* ═══════ DISCOVER / SIGHTSEEING CARDS ═══════ */
.discover-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.discover-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); height: 280px;
}
.discover-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.discover-card:hover img { transform: scale(1.06); }
.discover-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}
.discover-card h4 { font-family: var(--serif); color: white; font-size: 1.25rem; font-weight: 400; }
.discover-card p { color: rgba(255,255,255,0.65); font-size: 0.8rem; margin-top: 0.25rem; }

/* ═══════ TESTIMONIALS ═══════ */
.testimonials { background: var(--white); text-align: center; }
.testimonial-slider { max-width: 700px; margin: 0 auto; }
.testimonial-item { display: none; }
.testimonial-item.active { display: block; }
.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 1.5rem; letter-spacing: 0.2em; }
.testimonial-text {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 300;
  font-style: italic; color: var(--charcoal); line-height: 1.6; margin-bottom: 1.5rem;
}
.testimonial-author { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
.testimonial-source { font-size: 0.75rem; color: var(--ocean); margin-top: 0.25rem; }
.testimonial-nav { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.testimonial-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cream-dark); cursor: pointer;
  transition: all var(--transition);
}
.testimonial-dot.active { background: var(--ocean); }

/* ═══════ AWARDS STRIP ═══════ */
.awards-strip {
  background: var(--cream); padding: 3rem 2rem; text-align: center;
}
.awards-strip-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap; opacity: 0.5;
}
.awards-strip img { height: 60px; filter: grayscale(100%); transition: all var(--transition); }
.awards-strip img:hover { filter: none; opacity: 1; }

/* ═══════ PRICES TABLE ═══════ */
.prices-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem; margin: 2rem 0;
}
.prices-table th {
  background: var(--charcoal); color: white;
  padding: 0.75rem 1rem; text-align: left;
  font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
.prices-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.prices-table tr:hover td { background: var(--cream); }
.prices-table .room-number { color: var(--ocean); font-weight: 500; }
.prices-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Mobile: stacked cards instead of table */
@media (max-width: 768px) {
  .prices-table-wrap { overflow-x: visible; }
  .prices-table { display: block; }
  .prices-table thead { display: none; }
  .prices-table tbody { display: flex; flex-direction: column; gap: 0.75rem; }
  .prices-table tr {
    display: flex; flex-wrap: wrap;
    background: white; border: 1px solid var(--border);
    border-radius: 0.75rem; padding: 0.85rem 1rem;
    transition: box-shadow 0.2s;
  }
  .prices-table tr:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .prices-table tr:hover td { background: transparent; }
  .prices-table td {
    border: none; padding: 0; font-size: 0.85rem;
    white-space: normal !important;
  }
  .prices-table td:first-child {
    width: 100%; font-weight: 500; margin-bottom: 0.4rem;
    font-size: 0.95rem; color: var(--charcoal);
  }
  .prices-table td:nth-child(2),
  .prices-table td:nth-child(3) {
    width: 50%; color: var(--text-muted); font-size: 0.8rem;
  }
  .prices-table td:nth-child(2)::before,
  .prices-table td:nth-child(3)::before {
    content: attr(data-label);
    display: block; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--ocean); font-weight: 600;
    margin-bottom: 0.15rem;
  }
}

/* ═══════ GALLERY CAROUSEL ═══════ */
.gallery-carousel {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
}
.carousel-track {
  display: flex; transition: transform 0.4s ease;
}
.carousel-item {
  min-width: 100%; height: 500px;
}
.carousel-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--charcoal);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
.carousel-prev:hover, .carousel-next:hover {
  background: var(--ocean); color: white;
}
.carousel-counter {
  position: absolute; bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,0.5); color: white;
  padding: 0.25rem 0.75rem; border-radius: 2px;
  font-size: 0.75rem; letter-spacing: 0.05em;
}

/* ═══════ GALLERY — Masonry ═══════ */
.gallery-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 2.5rem;
}
.gallery-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.25rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1.5px solid var(--border); color: var(--text-light);
  background: transparent; cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.gallery-pill:hover { border-color: var(--ocean); color: var(--ocean); }
.gallery-pill.active {
  background: var(--ocean); border-color: var(--ocean);
  color: white;
}
.gallery-pill-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.08); font-size: 0.6rem; font-weight: 600;
}
.gallery-pill.active .gallery-pill-count {
  background: rgba(255,255,255,0.25); color: white;
}

.gallery-masonry {
  columns: 4; column-gap: 0.6rem;
}
.gm-item {
  position: relative; overflow: hidden;
  break-inside: avoid; margin-bottom: 0.6rem;
  border-radius: 6px; cursor: pointer;
  opacity: 0; transform: translateY(30px) scale(0.97);
  transition: opacity 0.5s ease var(--delay, 0s),
              transform 0.5s ease var(--delay, 0s);
}
.gm-item.gm-visible {
  opacity: 1; transform: translateY(0) scale(1);
}
.gm-item img {
  width: 100%; display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gm-item:hover img { transform: scale(1.08); }

/* Tall items */
.gm-tall img { min-height: 380px; object-fit: cover; }

/* Overlay on hover */
.gm-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.15) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.25rem;
  opacity: 0; transition: opacity 0.35s ease;
}
.gm-item:hover .gm-overlay { opacity: 1; }
.gm-cat {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ocean-light); margin-bottom: 0.25rem;
}
.gm-title {
  color: white; font-family: var(--serif);
  font-size: 1.15rem; font-weight: 400; line-height: 1.3;
  transform: translateY(8px); transition: transform 0.35s ease;
}
.gm-item:hover .gm-title { transform: translateY(0); }
.gm-icon {
  position: absolute; top: 1rem; right: 1rem;
  color: white; opacity: 0; transform: scale(0.7);
  transition: all 0.3s ease;
}
.gm-item:hover .gm-icon { opacity: 0.8; transform: scale(1); }

/* Filter animation */
.gm-hiding {
  opacity: 0 !important; transform: scale(0.85) !important;
  transition: all 0.25s ease !important;
}
.gm-showing { animation: gmPopIn 0.4s ease forwards; }
@keyframes gmPopIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* ═══════ ROOM DETAIL ═══════ */
.room-detail { padding-top: 5rem; }
.room-detail-header {
  padding: 2rem 0; margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.room-detail-header h1 {
  font-family: var(--serif); font-size: 2.5rem;
  font-weight: 300; color: var(--charcoal);
}
.room-detail-meta {
  display: flex; gap: 2rem; margin-top: 0.75rem;
  color: var(--text-light); font-size: 0.9rem;
}
.room-detail-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 3rem;
}
.room-detail-sidebar {
  position: sticky; top: 6rem;
}
.sidebar-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 2rem;
}
.sidebar-card h4 {
  font-family: var(--serif); font-size: 1.3rem;
  font-weight: 400; margin-bottom: 1rem;
}
.price-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.price-row .label { color: var(--text-light); }
.price-row .value { font-weight: 500; color: var(--charcoal); }
.sidebar-tax {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 1rem; line-height: 1.5;
}
.features-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin-top: 1.5rem;
}
.feature-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text);
}
.feature-item svg { width: 18px; height: 18px; color: var(--ocean); flex-shrink: 0; }

/* ═══════ CONTACT PAGE LAYOUT ═══════ */
.contact-layout {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 4rem; align-items: start;
}
.contact-layout > div { min-width: 0; }
.contact-info-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 4rem; align-items: start;
}
.policies-list {
  font-size: 0.9rem; line-height: 2.2; color: var(--text-light);
  list-style: none; padding: 0;
}
.policies-list li::before {
  content: '\2713'; color: var(--ocean); font-weight: 600; margin-right: 0.5rem;
}

/* ═══════ FORMS ═══════ */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.8rem; font-weight: 500;
  margin-bottom: 0.4rem; color: var(--charcoal);
}
.form-group label .required { color: var(--ocean); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%; max-width: 100%;
  box-sizing: border-box;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocean);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ═══════ LIGHTBOX — Premium fullscreen viewer ═══════ */
.lb {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0); display: flex;
  align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.4s ease;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.lb.lb-active { background: rgba(0,0,0,0.95); }

.lb-img-wrap {
  position: relative; max-width: 92vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.45s ease;
}
.lb-img-wrap img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 4px;
  user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none;
}
/* Slide transitions */
.lb-img-wrap.lb-slide-left { transform: translateX(-60px); opacity: 0; }
.lb-img-wrap.lb-slide-right { transform: translateX(60px); opacity: 0; }
.lb-img-wrap.lb-slide-in { transform: translateX(0); opacity: 1; }

/* Close button */
.lb-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: white; opacity: 0; transition: opacity 0.3s 0.2s;
}
.lb.lb-active .lb-close { opacity: 1; }
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-close svg { width: 20px; height: 20px; }

/* Nav arrows */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: white; opacity: 0; transition: all 0.3s 0.25s;
}
.lb.lb-active .lb-nav { opacity: 0.7; }
.lb-nav:hover { opacity: 1; background: rgba(255,255,255,0.15); transform: translateY(-50%) scale(1.1); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-nav svg { width: 22px; height: 22px; }

/* Counter + caption */
.lb-bottom {
  position: absolute; bottom: 1.5rem; left: 0; right: 0;
  text-align: center; opacity: 0;
  transition: opacity 0.3s 0.3s;
}
.lb.lb-active .lb-bottom { opacity: 1; }
.lb-counter {
  color: rgba(255,255,255,0.5); font-size: 0.75rem;
  letter-spacing: 0.12em; font-weight: 400;
}
.lb-caption {
  color: rgba(255,255,255,0.8); font-family: var(--serif);
  font-size: 1rem; margin-top: 0.3rem;
}

/* Progress dots */
.lb-dots {
  display: flex; gap: 5px; justify-content: center; margin-top: 0.75rem;
}
.lb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.25); transition: all 0.3s;
}
.lb-dot.active { background: var(--ocean); transform: scale(1.3); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
  .lb-nav { display: none; }
  .lb-img-wrap img { max-width: 100vw; max-height: 80vh; border-radius: 0; }
  .lb-close { top: 0.75rem; right: 0.75rem; }
  .lb-dots { display: none; }
}

/* ═══════ FOOTER ═══════ */
.site-footer {
  background: var(--charcoal); color: rgba(255,255,255,0.7);
  padding: 3.5rem 2rem 2rem; text-align: center;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}
.footer-brand { margin-bottom: 1.75rem; }
.footer-logo {
  height: 50px; margin: 0 auto 0.5rem;
  filter: brightness(0) invert(1); opacity: 0.9;
}

/* Text-based footer logo for Dukes */
.footer-logo-text {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.site-footer .footer-tagline {
  color: var(--ocean-light); font-size: 0.8rem;
  font-style: italic; letter-spacing: 0.05em;
}

.footer-contact {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem; margin-bottom: 1.75rem;
}
.footer-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.6); font-size: 0.8rem;
  transition: color var(--transition);
}
.footer-item:hover { color: var(--ocean-light); }
.footer-item svg { color: var(--ocean-light); flex-shrink: 0; opacity: 0.8; }

.footer-social {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.footer-social a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition), transform var(--transition);
}
.footer-social a:hover { color: var(--ocean-light); transform: translateY(-2px); }

.footer-divider {
  width: 60px; height: 1px; margin: 0 auto 1.25rem;
  background: rgba(255,255,255,0.15);
}

.footer-bottom {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-bottom p {
  color: rgba(255,255,255,0.3); font-size: 0.7rem; letter-spacing: 0.05em;
}
.footer-langs { display: flex; gap: 0.75rem; }
.footer-langs a {
  color: rgba(255,255,255,0.3); font-size: 0.65rem;
  letter-spacing: 0.1em; font-weight: 500;
  transition: color var(--transition);
}
.footer-langs a:hover { color: rgba(255,255,255,0.7); }
.footer-langs a.active { color: var(--ocean-light); }

/* ═══════ PAGE TRANSITION ═══════ */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
body { animation: pageIn 0.6s ease-out; }

/* ═══════ REVEAL ANIMATIONS ═══════ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  .experience-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .room-detail-grid { grid-template-columns: 1fr; }
  .room-detail-sidebar { position: static; }
  .gallery-masonry { columns: 3; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: 0.5rem 1.5rem; }

  /* ── Mobile fullscreen menu ── */
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    background: #FFFFFF;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 0; z-index: 200; padding: 5rem 2rem 3rem;
    overflow-y: auto;
  }
  .nav-links.show {
    display: flex;
    animation: menuFadeIn 0.3s ease forwards;
  }
  @keyframes menuFadeIn { from { opacity: 0; } to { opacity: 1; } }
  body.menu-open {
    overflow: hidden; position: fixed; width: 100%;
    touch-action: none;
    -webkit-overflow-scrolling: none;
  }

  /* Menu items styling */
  .nav-links li {
    width: 100%; max-width: 320px; text-align: center;
    border-bottom: 1px solid var(--border);
    transform: translateY(20px); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .nav-links.show li {
    transform: translateY(0); opacity: 1;
  }
  .nav-links.show li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.show li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.show li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.show li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.show li:nth-child(5) { transition-delay: 0.25s; }
  .nav-links.show li:nth-child(6) { transition-delay: 0.3s; }
  .nav-links.show li:nth-child(7) { transition-delay: 0.35s; }
  .nav-links.show li:nth-child(8) { transition-delay: 0.4s; }
  .nav-links.show li:nth-child(9) { transition-delay: 0.45s; }
  .nav-links li:first-child { border-top: 1px solid var(--border); }

  .nav-links a {
    color: var(--charcoal) !important;
    font-family: var(--serif) !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    text-transform: none !important;
    display: block; padding: 1rem 0;
  }
  .nav-links a::after { display: none !important; }
  .nav-links a:hover,
  .nav-links a.active { color: var(--ocean) !important; }

  /* CTA in mobile */
  .nav-links li:nth-child(8) { border: none; margin-top: 0.75rem; }
  .nav-links .nav-cta {
    display: inline-block !important;
    background: var(--ocean) !important;
    color: var(--white) !important;
    border-color: var(--ocean) !important;
    padding: 0.75rem 2.5rem !important;
    font-family: var(--sans) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
  }

  /* Language switch in mobile */
  .nav-links .lang-switch {
    border: none; margin-top: 1rem; justify-content: center;
    gap: 1.25rem;
  }
  .nav-links .lang-switch a {
    font-family: var(--sans) !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 2px;
  }
  .nav-links .lang-switch a.active {
    background: var(--cream);
    color: var(--ocean) !important;
  }

  .nav-toggle { display: block; }

  /* ── Mobile language dropdown ── */
  .nav-lang-mobile {
    display: block; position: relative;
    margin-left: auto; margin-right: 1rem;
    z-index: 201;
  }
  .nav-lang-current {
    display: flex; align-items: center; gap: 0.35rem;
    background: none; border: 1px solid var(--border);
    border-radius: 6px; padding: 0.3rem 0.5rem;
    cursor: pointer; color: var(--charcoal);
    transition: all 0.2s;
  }
  .nav-lang-current:hover,
  .nav-lang-current:focus { border-color: var(--ocean); }
  .nav-lang-current img { border-radius: 2px; display: block; }
  .nav-lang-arrow { transition: transform 0.2s; }
  .nav-lang-mobile.open .nav-lang-arrow { transform: rotate(180deg); }
  .nav-lang-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: white; border: 1px solid var(--border);
    border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-width: 100px; overflow: hidden;
    animation: langDropIn 0.15s ease;
  }
  .nav-lang-mobile.open .nav-lang-dropdown { display: block; }
  @keyframes langDropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
  .nav-lang-dropdown a {
    display: flex !important; align-items: center; gap: 0.6rem;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.75rem !important; font-weight: 500 !important;
    letter-spacing: 0.08em !important; text-transform: uppercase !important;
    color: var(--charcoal) !important; text-decoration: none;
    font-family: var(--sans) !important;
    transition: background 0.15s;
  }
  .nav-lang-dropdown a::after { display: none !important; }
  .nav-lang-dropdown a:hover { background: var(--cream); }
  .nav-lang-dropdown img { border-radius: 2px; }

  /* Hide lang switch inside mobile menu since we have the header one */
  .nav-links .lang-switch { display: none !important; }

  /* ── Layout adjustments ── */
  .container { padding: 0 1.25rem; }
  .welcome-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rooms-grid { grid-template-columns: 1fr; }
  .discover-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info-grid { grid-template-columns: 1fr; gap: 2rem; }

  section { padding: 3rem 0; }
  section > .container { padding: 0 1.25rem; }
  .page-header { padding: 6.5rem 1.25rem 2.5rem; }
  .image-break { background-attachment: scroll; }

  /* Full-width images on mobile */
  .welcome-images { gap: 0.5rem; }
  .welcome-images img { height: 200px; border-radius: 0; }
  .welcome-images img:first-child { height: 220px; }

  .room-card { border-radius: var(--radius); }
  .room-card img { height: 260px; }
  .rooms-grid { gap: 1.25rem; padding: 0 0.5rem; }

  .discover-card { border-radius: 0; height: 220px; }

  .carousel-item { height: 280px; }
  .gallery-carousel { border-radius: 0; }

  .gallery-masonry { columns: 2; column-gap: 0.4rem; }
  .gm-item { margin-bottom: 0.4rem; border-radius: 4px; }
  .gm-tall img { min-height: 260px; }
  /* Touch: always show overlay on mobile */
  .gm-overlay { opacity: 1; background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%); padding: 0.85rem; }
  .gm-title { transform: translateY(0); font-size: 0.95rem; }
  .gm-icon { display: none; }
  .gallery-filters { gap: 0.35rem; margin-bottom: 1.5rem; }
  .gallery-pill { padding: 0.4rem 0.85rem; font-size: 0.65rem; }

  /* Hero mobile */
  .hero { height: 100vh; height: 100dvh; height: -webkit-fill-available; min-height: 500px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.7rem; }
  .hero-btn { padding: 0.8rem 2rem; font-size: 0.7rem; }
  .scroll-hint { display: none; }

  /* Section text breathing room */
  .section-title { font-size: 1.8rem; }
  .section-text { font-size: 0.9rem; }

  /* Experience strip full width */
  .experience { padding: 3rem 1.25rem; }
  .experience-grid { gap: 2rem; }

  /* Footer compact on mobile */
  .site-footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-contact { flex-direction: column; gap: 0.75rem; align-items: center; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .gallery-masonry { columns: 2; column-gap: 0.3rem; }
  .gm-item { margin-bottom: 0.3rem; }
  .gm-tall img { min-height: 200px; }
  .features-grid { grid-template-columns: 1fr; }
}
