/* ==========================================================================
   Casa Luna – Premium Holiday Rental Theme
   Frigiliana · Campo · Andalusien
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette – warm Andalusian night & clay */
  --ink: #1a1814;
  --ink-soft: #2c2822;
  --ink-muted: #5c564c;
  --cream: #f7f2eb;
  --cream-deep: #efe6d8;
  --paper: #fffcf7;
  --white: #ffffff;
  --clay: #c45c3a;
  --clay-deep: #a3482c;
  --clay-soft: #e8a48a;
  --olive: #5c6b4a;
  --olive-soft: #8a9a74;
  --gold: #c4a574;
  --gold-soft: #e0d0b0;
  --pool: #2a6b6b;
  --pool-soft: #4a9a9a;

  /* Surfaces */
  --surface: var(--paper);
  --surface-2: var(--cream);
  --surface-3: var(--cream-deep);
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --border: rgba(26, 24, 20, 0.1);
  --border-strong: rgba(26, 24, 20, 0.18);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;

  /* Space & layout */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --container: 1180px;
  --container-wide: 1400px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 12px rgba(26, 24, 20, 0.06);
  --shadow-md: 0 12px 40px rgba(26, 24, 20, 0.1);
  --shadow-lg: 0 24px 60px rgba(26, 24, 20, 0.16);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--space-9) 0;
  position: relative;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-7);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 var(--space-3);
}

.section-eyebrow.light {
  color: var(--gold-soft);
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

.section-title.light {
  color: var(--cream);
}

.section-sub {
  max-width: 36ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-head.center .section-sub {
  max-width: 48ch;
  margin-top: var(--space-4);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(196, 92, 58, 0.28);
}

.btn-primary:hover {
  background: var(--clay-deep);
  box-shadow: 0 12px 32px rgba(196, 92, 58, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 252, 247, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 252, 247, 0.1);
  border-color: rgba(255, 252, 247, 0.6);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 242, 235, 0.35);
}

.btn-outline-light:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn-sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.05rem 1.9rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.35s var(--ease);
  pointer-events: none;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--border);
}

.site-header.is-scrolled::before {
  background: rgba(255, 252, 247, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  width: min(100% - 2rem, var(--container-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  transition: color 0.3s var(--ease);
}

.site-header.is-scrolled .brand,
.site-header.nav-open .brand {
  color: var(--ink);
}

.brand-mark {
  display: flex;
  color: inherit;
  opacity: 0.95;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav-primary .nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-primary a {
  font-size: 0.875rem;
  font-weight: 450;
  padding: 0.5rem 0.85rem;
  color: rgba(247, 242, 235, 0.85);
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.site-header.is-scrolled .nav-primary a,
.site-header.nav-open .nav-primary a {
  color: var(--ink-muted);
}

.nav-primary a:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .nav-primary a:hover,
.site-header.nav-open .nav-primary a:hover {
  color: var(--ink);
  background: var(--cream-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
  .site-header:not(.is-scrolled) .header-cta {
    background: var(--cream);
    color: var(--ink);
    box-shadow: none;
  }
  .site-header:not(.is-scrolled) .header-cta:hover {
    background: var(--white);
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle-bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.3s;
}

.site-header.is-scrolled .nav-toggle-bar,
.site-header.nav-open .nav-toggle-bar {
  background: var(--ink);
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 959px) {
  .nav-primary {
    position: fixed;
    inset: 0;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
    z-index: 5;
  }

  .site-header.nav-open .nav-primary {
    opacity: 1;
    visibility: visible;
  }

  .nav-primary .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-primary a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--ink) !important;
    padding: 0.6rem 1.2rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.05);
  transition: transform 8s var(--ease);
}

.hero.is-ready .hero-img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 24, 20, 0.45) 0%, rgba(26, 24, 20, 0.15) 35%, rgba(26, 24, 20, 0.55) 70%, rgba(26, 24, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(26, 24, 20, 0.5) 0%, transparent 55%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 6rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 242, 235, 0.85);
  margin-bottom: var(--space-5);
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay-soft);
  box-shadow: 0 0 0 4px rgba(232, 164, 138, 0.25);
  animation: pulse-dot 2.4s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232, 164, 138, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(232, 164, 138, 0.08); }
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 500;
  line-height: 0.98;
  margin: 0 0 var(--space-5);
  max-width: 12ch;
}

.hero-title-line {
  display: block;
}

.hero-title-line.italic {
  font-style: italic;
  color: var(--gold-soft);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  max-width: 38ch;
  color: rgba(247, 242, 235, 0.82);
  margin-bottom: var(--space-6);
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

@media (min-width: 600px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 1rem 1.1rem;
  background: rgba(26, 24, 20, 0.25);
  margin: 0;
}

.stat dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 242, 235, 0.55);
  margin: 0 0 0.25rem;
}

.stat dd {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0;
  color: var(--cream);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: max(1.5rem, calc((100% - var(--container)) / 2));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 242, 235, 0.65);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(247, 242, 235, 0.6), transparent);
  animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
  0% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.4); transform-origin: bottom; opacity: 0.4; }
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.08s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Villa intro ---------- */
.villa {
  background: var(--surface);
}

.villa-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 900px) {
  .villa-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-8);
  }
}

.villa-copy .section-title {
  margin-bottom: var(--space-5);
}

.villa-copy p {
  color: var(--text-muted);
}

.villa-copy .lead {
  color: var(--ink-soft);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-5);
}

.pill-list li {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.frame-stack {
  position: relative;
  min-height: 420px;
}

.frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.frame-main {
  aspect-ratio: 4/5;
  max-width: 85%;
  margin-left: auto;
}

.frame-main img {
  aspect-ratio: 4/5;
  object-fit: cover;
}

.frame-accent {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: 48%;
  aspect-ratio: 1;
  border: 5px solid var(--paper);
  box-shadow: var(--shadow-lg);
}

.frame-accent img {
  aspect-ratio: 1;
  object-fit: cover;
}

.frame-badge {
  position: absolute;
  top: 8%;
  left: 4%;
  background: var(--ink);
  color: var(--cream);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
}

.badge-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}

.badge-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  opacity: 0.85;
}

/* ---------- Quote ---------- */
.quote-strip {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}

.quote-strip::before {
  content: "“";
  position: absolute;
  top: -0.2em;
  left: 5%;
  font-family: var(--font-display);
  font-size: 18rem;
  line-height: 1;
  color: rgba(196, 165, 116, 0.12);
  pointer-events: none;
}

.quote-inner {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.quote-strip blockquote {
  margin: 0;
}

.quote-strip blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: var(--space-5);
}

.quote-strip footer {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Gallery ---------- */
.gallery-section {
  padding-bottom: var(--space-7);
  background: var(--surface-2);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: min(100% - 1rem, var(--container-wide));
  margin-inline: auto;
  padding: 0 0.5rem;
}

@media (min-width: 700px) {
  .gallery-mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 0.65rem;
  }

  .gallery-item.is-tall {
    grid-row: span 2;
  }

  .gallery-item.is-wide {
    grid-column: span 2;
  }
}

@media (min-width: 1100px) {
  .gallery-mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
  }
}

.gallery-item {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--ink);
  min-height: 160px;
  isolation: isolate;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 24, 20, 0.75));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-cap {
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Experience ---------- */
.experience {
  background: var(--surface);
}

.exp-grid {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

@media (min-width: 800px) {
  .exp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.exp-card {
  padding: var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.exp-icon {
  color: var(--clay);
  margin-bottom: var(--space-4);
}

.exp-card h3 {
  font-size: 1.55rem;
  margin-bottom: var(--space-3);
}

.exp-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.exp-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  width: min(100% - 2.5rem, var(--container-wide));
  margin-inline: auto;
}

.exp-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 24, 20, 0.85) 0%, rgba(26, 24, 20, 0.4) 55%, transparent 100%);
}

.exp-banner-content {
  position: relative;
  z-index: 1;
  padding: var(--space-7);
  max-width: 480px;
  color: var(--cream);
}

.exp-banner-content h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: var(--space-3);
}

.exp-banner-content p {
  color: rgba(247, 242, 235, 0.8);
}

/* ---------- Rooms ---------- */
.rooms {
  background: var(--surface-2);
}

.rooms-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 800px) {
  .rooms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.room-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.room-media {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.room-card:hover .room-media img {
  transform: scale(1.05);
}

.room-body {
  padding: var(--space-5);
}

.room-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.room-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Amenities ---------- */
.amenities {
  background: var(--ink);
  color: var(--cream);
}

.amenities .section-title {
  color: var(--cream);
}

.amenities .section-eyebrow {
  color: var(--gold);
}

.amenities-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 800px) {
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.amenity-block {
  padding: var(--space-6);
  border: 1px solid rgba(247, 242, 235, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.amenity-block h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-4);
  color: var(--gold-soft);
}

.amenity-icon {
  font-size: 0.7rem;
  color: var(--clay-soft);
}

.amenity-block ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.amenity-block li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: rgba(247, 242, 235, 0.78);
}

.amenity-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}

.included-bar {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(196, 92, 58, 0.25), rgba(196, 165, 116, 0.15));
  border: 1px solid rgba(196, 165, 116, 0.25);
  text-align: center;
}

.included-bar p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--surface);
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (min-width: 900px) {
  .price-cards {
    grid-template-columns: repeat(6, 1fr);
  }
}

.price-card {
  position: relative;
  padding: var(--space-5) var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--clay-soft);
  box-shadow: var(--shadow-sm);
}

.price-card.is-featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: scale(1.03);
  z-index: 1;
}

.price-card.is-featured:hover {
  transform: scale(1.05) translateY(-3px);
}

.price-badge {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--clay);
  color: white;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}

.price-months {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.35rem;
}

.price-card.is-featured .price-months {
  color: var(--gold);
}

.price-name {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.price-amount {
  margin: 0 0 var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
}

.price-amount .currency {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
}

.price-card.is-featured .price-amount .currency {
  color: var(--gold-soft);
}

.price-amount .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.price-amount .per {
  width: 100%;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.price-card.is-featured .price-amount .per {
  color: rgba(247, 242, 235, 0.55);
}

.price-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.price-card.is-featured .price-note {
  color: rgba(247, 242, 235, 0.65);
}

.price-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  max-width: 900px;
  margin-inline: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.price-terms li {
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1rem;
}

.price-terms li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--clay);
  font-weight: 700;
}

/* ---------- Location ---------- */
.location {
  background: var(--surface-2);
}

.location-grid {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.dist-list {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dist-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.dist-place {
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}

.dist-line {
  flex: 1;
  border-bottom: 1px dotted var(--border-strong);
  min-width: 1rem;
  transform: translateY(-0.3em);
}

.dist-meta {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.location-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.location-photo figcaption {
  padding: var(--space-4) var(--space-5);
  background: var(--ink);
  color: rgba(247, 242, 235, 0.75);
  font-size: 0.9rem;
  line-height: 1.5;
}

.location-photo figcaption strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.location-tips {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.location-tips h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}

.location-tips li {
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.location-tips li:last-child {
  border-bottom: none;
}

.location-tips strong {
  color: var(--ink);
  font-weight: 550;
}

/* ---------- Booking ---------- */
.booking {
  background: var(--surface);
  padding-bottom: calc(var(--space-9) + 2rem);
}

.booking-panel {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink);
}

@media (min-width: 900px) {
  .booking-panel {
    grid-template-columns: 1fr 1.05fr;
  }
}

.booking-intro {
  padding: var(--space-7);
  color: var(--cream);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196, 92, 58, 0.25), transparent 55%),
    var(--ink);
}

.booking-intro p {
  color: rgba(247, 242, 235, 0.75);
  max-width: 36ch;
}

.booking-points {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.booking-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(247, 242, 235, 0.85);
}

.booking-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(196, 92, 58, 0.25);
}

.booking-form-wrap {
  padding: var(--space-7);
  background: var(--paper);
}

.luna-inquiry .form-row {
  margin-bottom: var(--space-4);
}

.luna-inquiry .form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.luna-inquiry label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.luna-inquiry .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}

.luna-inquiry input,
.luna-inquiry select,
.luna-inquiry textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.luna-inquiry input:focus,
.luna-inquiry select:focus,
.luna-inquiry textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(196, 92, 58, 0.15);
}

.luna-inquiry textarea {
  resize: vertical;
  min-height: 90px;
}

.form-fineprint {
  margin-top: var(--space-4);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- MotoPress Hotel Booking embed ---------- */
.mphb-embed {
  max-width: 100%;
}

.mphb-embed .mphb_sc_booking_form-wrapper,
.mphb-embed .mphb_sc_search-wrapper,
.mphb-embed .mphb-calendar,
.mphb-embed .mphb-reservation-form {
  max-width: 100%;
}

.mphb-embed label,
.mphb-embed .mphb-required-fields-tip {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mphb-embed input[type="text"],
.mphb-embed input[type="email"],
.mphb-embed input[type="tel"],
.mphb-embed input[type="number"],
.mphb-embed input[type="date"],
.mphb-embed select,
.mphb-embed textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0.75rem;
}

.mphb-embed input:focus,
.mphb-embed select:focus,
.mphb-embed textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(196, 92, 58, 0.15);
}

.mphb-embed .button,
.mphb-embed button[type="submit"],
.mphb-embed input[type="submit"],
.mphb-embed .mphb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.05rem 1.9rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--clay);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(196, 92, 58, 0.28);
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
  text-decoration: none !important;
}

.mphb-embed .button:hover,
.mphb-embed button[type="submit"]:hover,
.mphb-embed input[type="submit"]:hover,
.mphb-embed .mphb-button:hover {
  background: var(--clay-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(196, 92, 58, 0.35);
}

.mphb-embed .mphb-price,
.mphb-embed .mphb-total-price,
.mphb-embed .mphb-regular-price {
  font-family: var(--font-display);
  color: var(--ink);
}

.mphb-embed .mphb-errors-wrapper,
.mphb-embed .mphb-message {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Keep checkout/search pages readable under theme */
.page-main .mphb_sc_checkout-wrapper,
.page-main .mphb_sc_search-results-wrapper,
.page-main .mphb-checkout-form {
  max-width: 720px;
}

.page-main .mphb_sc_checkout-wrapper input,
.page-main .mphb_sc_checkout-wrapper select,
.page-main .mphb_sc_checkout-wrapper textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.page-main .mphb_sc_checkout-wrapper .button,
.page-main .mphb_sc_checkout-wrapper input[type="submit"] {
  background: var(--clay);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.6rem;
  cursor: pointer;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
}

.final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.62);
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-8) 0;
}

.final-cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: var(--space-6);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #12100e;
  color: rgba(247, 242, 235, 0.75);
  padding: var(--space-8) 0 0;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(196, 92, 58, 0.12), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  }
}

.brand-footer {
  color: var(--cream);
  margin-bottom: var(--space-4);
}

.footer-lead {
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 32ch;
  margin-top: var(--space-4);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(247, 242, 235, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-meta li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-meta strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 242, 235, 0.45);
  font-weight: 500;
}

.footer-note {
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
  line-height: 1.55;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 242, 235, 0.08);
  padding: var(--space-4) 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.8rem;
  color: rgba(247, 242, 235, 0.45);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Sticky book bar ---------- */
.sticky-book {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(26, 24, 20, 0.08);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}

.sticky-book.is-visible {
  transform: translateY(0);
}

.sticky-price {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.sticky-price strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.sticky-note {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

@media (min-width: 900px) {
  .sticky-book {
    display: none;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 16, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 85vh;
  text-align: center;
}

.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.lightbox-figure figcaption {
  color: rgba(247, 242, 235, 0.7);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--cream);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 1rem;
  right: 1.25rem;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Generic page ---------- */
.page-main {
  padding-top: var(--header-h);
}

.page-hero {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-8) 0 var(--space-6);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

.content-wrap {
  padding: var(--space-7) 0 var(--space-9);
  max-width: 720px;
}

/* Header dark text on non-front pages */
body:not(.luna-front) .site-header .brand,
body:not(.luna-front) .site-header .nav-primary a {
  color: var(--ink);
}

body:not(.luna-front) .site-header .nav-toggle-bar {
  background: var(--ink);
}

body:not(.luna-front) .site-header::before {
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(12px);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(196, 92, 58, 0.25);
  color: var(--ink);
}

/* ---------- Utility: body padding for sticky bar on mobile ---------- */
@media (max-width: 899px) {
  body.luna-front {
    padding-bottom: 72px;
  }
}
