:root {
  --limestone: #f4efe8;
  --chalk: #fffaf3;
  --sand: #e4d4c2;
  --clay: #b86442;
  --terracotta: #914f39;
  --olive: #606b4f;
  --cocoa: #42352d;
  --ink: #211b17;
  --muted: #74665d;
  --line: rgba(66, 53, 45, 0.16);
  --soft-line: rgba(66, 53, 45, 0.09);
  --shadow: 0 22px 60px rgba(52, 38, 29, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-size-adjust: 100%;
}

body.has-lightbox {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--ink);
  color: #fffaf3;
  padding: 10px 14px;
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

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

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

input,
textarea,
select {
  font-size: 1rem;
}

:focus-visible {
  outline: 3px solid rgba(184, 100, 66, 0.55);
  outline-offset: 4px;
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

[data-lang] {
  display: none !important;
}

html[data-language="en"] [data-lang="en"],
html[data-language="es"] [data-lang="es"],
html[data-language="fr"] [data-lang="fr"],
html[data-language="de"] [data-lang="de"] {
  display: block !important;
}

[data-inline] {
  display: none !important;
}

html[data-language="en"] [data-inline="en"],
html[data-language="es"] [data-inline="es"],
html[data-language="fr"] [data-inline="fr"],
html[data-language="de"] [data-inline="de"] {
  display: inline !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 239, 232, 0.88);
  border-bottom: 1px solid rgba(66, 53, 45, 0.08);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--terracotta);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--cocoa);
  font-size: 0.95rem;
}

.nav-links a {
  padding: 10px 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 250, 243, 0.75);
  border: 1px solid var(--soft-line);
  border-radius: 999px;
}

.lang-btn {
  min-width: 42px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

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

.icon-btn {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.82);
  color: var(--cocoa);
  cursor: pointer;
}

.icon-btn span,
.icon-btn span::before,
.icon-btn span::after {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
}

.icon-btn span::before {
  transform: translateY(-6px);
}

.icon-btn span::after {
  transform: translateY(4px);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--soft-line);
  padding: 8px 20px 18px;
  background: rgba(244, 239, 232, 0.96);
  box-shadow: 0 18px 34px rgba(52, 38, 29, 0.12);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--cocoa);
}

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(33, 27, 23, 0.68), rgba(33, 27, 23, 0.18) 48%, rgba(244, 239, 232, 0.18)),
    url("cueva-alba-living.jpg") center / cover no-repeat;
}

.hero-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 72px 0 40px;
  display: grid;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
  color: #fffaf3;
  padding-bottom: 13vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #f3dec8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
}

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 6.1rem);
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 250, 243, 0.9);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--clay);
}

.btn-secondary {
  background: rgba(255, 250, 243, 0.14);
  border-color: rgba(255, 250, 243, 0.38);
  color: #fffaf3;
}

.btn-soft {
  background: var(--chalk);
  border-color: var(--soft-line);
  color: var(--cocoa);
}

.hero-trust {
  width: min(calc(100% - 40px), var(--max));
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid rgba(255, 250, 243, 0.62);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 250, 243, 0.92);
  box-shadow: var(--shadow);
}

.trust-item {
  min-height: 94px;
  padding: 18px 16px;
  border-right: 1px solid var(--soft-line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-kicker {
  display: block;
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trust-text {
  display: block;
  margin-top: 5px;
  color: var(--cocoa);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.2;
}

.section {
  padding: 86px 0;
}

.section-alt {
  background: #ede2d5;
}

.section-clay {
  background: #8b4c36;
  color: #fffaf3;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 56px;
  align-items: start;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-clay .section-kicker {
  color: #f0c3a3;
}

h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.section-clay h2 {
  color: #fffaf3;
}

.section-intro {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-clay .section-intro,
.section-clay p {
  color: rgba(255, 250, 243, 0.82);
}

.story-panel {
  display: grid;
  gap: 18px;
}

.feature-grid,
.price-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.price-card,
.faq-item,
.contact-panel {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
  box-shadow: 0 16px 45px rgba(52, 38, 29, 0.08);
}

.feature-card,
.price-card,
.faq-item {
  padding: 24px;
}

.feature-card h3,
.price-card h3,
.faq-item h3 {
  margin-bottom: 10px;
  color: var(--cocoa);
  font-size: 1rem;
}

.feature-card p,
.price-card p,
.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.price-card p {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--soft-line);
  padding-top: 16px;
  font-size: 0.95rem;
}

.price-card p strong {
  color: var(--cocoa);
  font-size: 1.05rem;
}

.image-note {
  max-width: 780px;
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--terracotta);
  background: rgba(255, 250, 243, 0.62);
  color: var(--muted);
}

.gallery-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.gallery-side {
  display: grid;
  gap: 16px;
}

.gallery-button {
  position: relative;
  min-height: 310px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--sand);
  cursor: pointer;
}

.gallery-button.is-large {
  min-height: 636px;
}

.gallery-button img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 450ms ease;
}

.gallery-button:hover img {
  transform: scale(1.035);
}

.gallery-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 250, 243, 0.34);
  border-radius: 8px;
  background: rgba(33, 27, 23, 0.58);
  color: #fffaf3;
  text-align: left;
  backdrop-filter: blur(12px);
}

.gallery-label strong {
  display: block;
  margin-bottom: 2px;
}

.gallery-label span {
  color: rgba(255, 250, 243, 0.78);
  font-size: 0.88rem;
}

.availability-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.availability-panel {
  padding: 28px;
  border: 1px solid rgba(255, 250, 243, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.08);
}

.booking-card {
  border: 1px solid rgba(255, 250, 243, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.1);
  box-shadow: 0 22px 60px rgba(33, 27, 23, 0.18);
  overflow: hidden;
}

.booking-form {
  padding: 24px;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  color: rgba(255, 250, 243, 0.82);
  font-size: 0.84rem;
  font-weight: 800;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 250, 243, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.94);
  color: var(--ink);
  min-height: 48px;
  padding: 0 13px;
}

.field textarea {
  min-height: 104px;
  padding: 12px 13px;
  resize: vertical;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #ffcfb9;
  box-shadow: 0 0 0 3px rgba(255, 207, 185, 0.2);
}

.booking-summary {
  margin-top: 18px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 8px;
  background: rgba(33, 27, 23, 0.14);
  overflow: hidden;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 250, 243, 0.14);
  color: rgba(255, 250, 243, 0.76);
}

.summary-row strong {
  color: #fffaf3;
  text-align: right;
}

.summary-total {
  background: rgba(255, 250, 243, 0.08);
}

.summary-total strong {
  font-size: 1.2rem;
}

.summary-status {
  margin: 0;
  padding: 13px 14px;
  color: rgba(255, 250, 243, 0.82);
  font-size: 0.92rem;
}

.booking-errors {
  margin: 0;
  padding: 0 14px 14px 32px;
  color: #ffe0d1;
  font-size: 0.9rem;
}

.booking-submit {
  width: 100%;
  margin-top: 16px;
}

.booking-note {
  margin: 14px 0 0;
  color: rgba(255, 250, 243, 0.72);
  font-size: 0.9rem;
}

.booking-confirmation {
  border-top: 1px solid rgba(255, 250, 243, 0.18);
  padding: 22px 24px 24px;
  background: rgba(255, 250, 243, 0.92);
  color: var(--ink);
}

.booking-confirmation h3 {
  margin-bottom: 8px;
  color: var(--cocoa);
}

.booking-confirmation p {
  color: var(--muted);
}

.booking-confirmation .btn-secondary {
  background: var(--terracotta);
  color: #fff;
  border-color: transparent;
}

.availability-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.availability-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 250, 243, 0.16);
  padding-bottom: 10px;
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.price {
  margin-bottom: 22px;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-family: inherit;
  font-size: 0.95rem;
}

.price-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--soft-line);
  padding-top: 16px;
  color: var(--muted);
}

.price-note div {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--cocoa);
}

.price-note strong {
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.price-note p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--olive);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.location-media {
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sand);
}

.location-media iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
}

.faq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-panel {
  padding: 28px;
}

.footer {
  padding: 42px 0 92px;
  background: var(--ink);
  color: rgba(255, 250, 243, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 6px;
  color: #fffaf3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.booking-bar {
  position: sticky;
  bottom: 0;
  z-index: 25;
  border-top: 1px solid rgba(66, 53, 45, 0.12);
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(16px);
}

.booking-bar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.booking-bar strong {
  display: block;
  color: var(--cocoa);
}

.booking-bar span {
  color: var(--muted);
  font-size: 0.92rem;
}

.booking-bar .btn span {
  color: inherit;
  font-size: inherit;
}

.mobile-booking-cta {
  display: none;
}

.mobile-booking-cta .btn {
  min-height: 56px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(20, 16, 13, 0.84);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  width: min(1040px, 100%);
  border-radius: 8px;
  overflow: hidden;
  background: var(--chalk);
}

.lightbox-content img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #1b1714;
}

.lightbox-text {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
}

.lightbox-text h3 {
  margin-bottom: 4px;
}

.lightbox-text p {
  margin-bottom: 0;
  color: var(--muted);
}

.lightbox-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 1040px) {
  .hero-trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-item {
    border-bottom: 1px solid var(--soft-line);
  }

  .trust-item:nth-child(3n) {
    border-right: 0;
  }

  .section-grid,
  .availability-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .price-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  body {
    padding-bottom: 86px;
  }

  .wrap,
  .hero-inner,
  .hero-trust {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 66px;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .brand-name {
    font-size: 1.28rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    display: none;
  }

  .icon-btn {
    display: grid;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .lang-btn {
    min-width: 36px;
    min-height: 32px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: min(760px, calc(100svh - 66px));
    background:
      linear-gradient(180deg, rgba(33, 27, 23, 0.16), rgba(33, 27, 23, 0.74)),
      url("cueva-alba-living.jpg") center / cover no-repeat;
  }

  .hero-inner {
    padding: 44px 0 84px;
    align-items: end;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(2.82rem, 15vw, 4.25rem);
  }

  .lead {
    font-size: 1.02rem;
  }

  .cta-row .btn {
    width: 100%;
  }

  .hero-trust {
    margin-top: 0;
    grid-template-columns: 1fr 1fr;
    transform: translateY(-34px);
  }

  .trust-item {
    min-height: 86px;
    padding: 15px 13px;
  }

  .trust-item:nth-child(2n) {
    border-right: 0;
  }

  .trust-item:nth-child(3n) {
    border-right: 1px solid var(--soft-line);
  }

  .trust-text {
    font-size: 1rem;
  }

  .section {
    padding: 58px 0;
  }

  .section:first-of-type {
    padding-top: 30px;
  }

  h2 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .gallery-layout,
  .gallery-side {
    grid-template-columns: 1fr;
  }

  .gallery-button,
  .gallery-button.is-large {
    min-height: 300px;
  }

  .booking-card {
    margin-top: 8px;
  }

  .availability-list li {
    display: block;
  }

  .booking-form {
    padding: 18px;
  }

  .booking-form-grid {
    grid-template-columns: 1fr;
  }

  .summary-row {
    display: block;
  }

  .summary-row strong {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .price-note {
    display: grid;
    gap: 8px;
  }

  .location-media,
  .location-media iframe {
    min-height: 320px;
    height: 320px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer {
    padding-bottom: 120px;
  }

  .footer-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .booking-bar {
    display: none;
  }

  .mobile-booking-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 40;
    display: none;
    box-shadow: 0 18px 42px rgba(52, 38, 29, 0.22);
  }

  body.show-mobile-cta .mobile-booking-cta {
    display: flex;
  }

  .mobile-booking-cta .btn {
    width: 100%;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-text {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 1.12rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav {
    gap: 7px;
  }

  .lang-btn {
    min-width: 34px;
  }
}

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