/* ============================================================
   Villa Viana Cladera — Sa Cabaneta, Mallorca
   Off-season landing (Oct–Mar). Shared stylesheet for ES/EN/DE.
   ============================================================ */

:root {
  /* --- Brand palette (Mediterranean, warm off-season) --- */
  --sea:        #0f6e8c;   /* deep teal/sea */
  --sea-dark:   #0a4f66;
  --sand:       #f4ece1;   /* warm off-white */
  --sand-dark:  #e7dac6;
  --terracotta: #d8743f;   /* warm accent / CTA */
  --terracotta-dark: #bd5d2c;
  --ink:        #1f2a2e;   /* near-black text */
  --muted:      #5c6b70;
  --white:      #ffffff;
  --line:       rgba(31,42,46,.12);

  /* --- HERO IMAGE -------------------------------------------------
     The pool photo. Swap this for your own high-res shot:
     1) drop pool.jpg into /img/  2) set: --hero-image: url('../img/pool.jpg')
     (root index.html uses url('img/pool.jpg'); subpages use '../img/pool.jpg')
     Default below points to the manager's CDN as a temporary visual. */
  --hero-image: url('https://fincasmajorica.com/alquiler/fotos/3/176701853433ddbbfc6dde1aef3d8ce96ce3fa49bf/huge176969341277900e5284073219ab8398d09ab2dd47.jpg');

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15,40,55,.12);
  --shadow-lg: 0 18px 50px rgba(15,40,55,.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 74px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 0 0 .4em; }
h3 { font-size: 1.2rem; margin: 0 0 .35em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--alt { background: var(--white); }
.section__intro { max-width: 760px; margin: 0 0 36px; }
.section__intro p { font-size: 1.08rem; color: var(--muted); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--terracotta);
  font-family: var(--font); margin-bottom: 10px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; cursor: pointer; border: 0; border-radius: 999px;
  padding: 14px 26px; font-size: 1rem; font-weight: 700; font-family: var(--font);
  text-align: center; transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 18px rgba(216,116,63,.4); }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.24); }
.btn--block { width: 100%; }

/* ---------------- Navigation ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.nav__brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--sea-dark); white-space: nowrap; }
.nav__brand span { color: var(--terracotta); }
.nav__links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav__links a {
  color: var(--ink); font-weight: 600; font-size: .94rem; padding: 8px 12px; border-radius: 8px;
}
.nav__links a:hover { background: var(--sand); text-decoration: none; }
.nav__lang { display: flex; gap: 2px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.nav__lang a { font-size: .82rem; font-weight: 700; padding: 6px 8px; color: var(--muted); text-transform: uppercase; }
.nav__lang a.is-active { color: var(--terracotta); }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  color: #fff; background: var(--sea-dark); overflow: hidden;
}
/* Rotating pool-photo background (JS fills .hero__bg with slides) */
.hero__bg { position: absolute; inset: 0; z-index: 0; background-image: var(--hero-image); background-size: cover; background-position: center; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.3s ease-in-out; }
.hero__slide.is-active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,55,72,.55) 0%, rgba(10,55,72,.35) 40%, rgba(10,55,72,.65) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 100px 0 60px; width: 100%; }
.hero__badge {
  display: inline-block; background: var(--terracotta); color: #fff;
  font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); margin: 0 0 .3em; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.4rem); max-width: 640px; margin: 0 0 8px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 18px; margin: 22px 0 30px; font-weight: 600; }
.hero__facts span { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.14); padding: 8px 14px; border-radius: 999px; font-size: .92rem; }

/* ---------------- Booking widget ---------------- */
.booking {
  background: rgba(255,255,255,.97); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 22px; max-width: 880px;
}
.booking__title { font-family: var(--font); font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.booking__note { font-size: .85rem; color: var(--muted); margin: 0 0 16px; }
.booking__row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select {
  font: inherit; padding: 12px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); min-height: 48px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(15,110,140,.15); }
.booking__msg { margin: 12px 0 0; font-size: .88rem; min-height: 1.2em; }
.booking__msg.is-error { color: var(--terracotta-dark); font-weight: 600; }

/* ---------------- Seasons ---------------- */
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.season {
  background: var(--sand); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.season--featured { background: linear-gradient(160deg, #fff 0%, var(--sand) 100%); border: 2px solid var(--terracotta); }
.season__tag { position: absolute; top: 14px; right: 14px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--terracotta); }
.season__icon { font-size: 1.9rem; }
.season h3 { margin-top: 8px; }
.season__months { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.season ul { margin: 10px 0 0; padding-left: 18px; font-size: .95rem; color: var(--ink); }
.season li { margin-bottom: 4px; }

/* ---------------- Activity sections ---------------- */
.activity__head { display: flex; align-items: center; gap: 14px; }
.activity__emoji { font-size: 2.2rem; }
.routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.routes--from { margin-top: 26px; }
.route {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.section--alt .route { background: var(--sand); }
.route:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.route__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.route__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.route__meta .chip { background: var(--sand-dark); color: var(--sea-dark); padding: 3px 9px; border-radius: 999px; }
.section--alt .route__meta .chip { background: #fff; }
.route h4 { margin: 0 0 6px; font-size: 1.04rem; font-family: var(--serif); }
.route p { margin: 0 0 12px; font-size: .9rem; color: var(--muted); flex: 1; }
.route__link { font-weight: 700; font-size: .9rem; color: var(--terracotta-dark); }
.subhead { font-family: var(--serif); font-size: 1.35rem; margin: 30px 0 4px; }
.subhead small { display: block; font-family: var(--font); font-size: .9rem; color: var(--muted); font-weight: 500; margin-top: 4px; }
.wikiloc-cta { margin-top: 26px; }
.note-water { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: 14px; }

/* ---------------- Location ---------------- */
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.distances { list-style: none; padding: 0; margin: 18px 0 0; }
.distances li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.distances li b { color: var(--sea-dark); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--sea); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.1rem; color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 26px; }

/* ---------------- Footer ---------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 50px 0 30px; font-size: .92rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-family: var(--font); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .seasons, .routes { grid-template-columns: repeat(2, 1fr); }
  .location__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .booking__row { grid-template-columns: 1fr 1fr; }
  .booking__row .field--submit { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px; }
  .nav__lang { border-left: 0; margin-left: auto; }
  .nav__toggle { display: block; }
  .seasons, .routes { grid-template-columns: 1fr; }
  .booking__row { grid-template-columns: 1fr; }
  .hero { min-height: 90vh; }
}

/* ---------------- Photo carousel (gallery) ---------------- */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #0a0e10; }
.carousel__track { display: flex; transition: transform .5s ease; will-change: transform; }
.carousel__slide { position: relative; min-width: 100%; margin: 0; }
.carousel__slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.carousel__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 20px 32px; color: #fff;
  font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 100%);
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.88); color: var(--ink); font-size: 1.9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: background .15s ease;
}
.carousel__btn:hover { background: #fff; }
.carousel__btn--prev { left: 14px; } .carousel__btn--next { right: 14px; }
.carousel__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.carousel__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel__dot.is-active { background: #fff; width: 24px; border-radius: 6px; }
@media (max-width: 640px) {
  .carousel__btn { width: 40px; height: 40px; font-size: 1.5rem; }
  .carousel__slide img { aspect-ratio: 4 / 3; }
}

/* ---------------- Cookie consent banner ---------------- */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 16px 20px;
  box-shadow: 0 -6px 30px rgba(0,0,0,.28);
  transform: translateY(110%); transition: transform .35s ease;
}
.cc-banner.is-visible { transform: translateY(0); }
.cc-banner__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cc-banner__text { flex: 1 1 360px; margin: 0; font-size: .92rem; line-height: 1.5; color: rgba(255,255,255,.85); }
.cc-banner__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-btn { border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: .92rem; cursor: pointer; font-family: var(--font); }
.cc-btn--accept { background: var(--terracotta); color: #fff; }
.cc-btn--accept:hover { background: var(--terracotta-dark); }
.cc-btn--reject { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.cc-btn--reject:hover { background: rgba(255,255,255,.24); }
.cc-link { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: rgba(255,255,255,.7); text-decoration: underline; }
.cc-link:hover { color: #fff; }
@media (max-width: 640px) {
  .cc-banner__btns { width: 100%; }
  .cc-btn { flex: 1; }
}

/* Honor reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route:hover, .btn:hover { transform: none; }
  .hero__slide { transition: none; }
  .carousel__track { transition: none; }
  .cc-banner { transition: none; }
}
