/* VillaMijas.es — whitewash, azulejo cobalt and a touch of roof-tile red */
:root {
  --cal: #fafaf6;
  --white: #ffffff;
  --azulejo: #1c3f78;
  --azulejo-deep: #122b54;
  --azulejo-soft: #9ec3e8;
  --tint: #e9eef5;
  --ink: #17202b;
  --muted: #5a6573;
  --line: #d9dee6;
  --teja: #9c4a2f;
  --pool: #2e9aa8;
  --ok: #2f7d4f;
  --err: #a3341f;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --pad: 28px;
  --radius: 16px;
}
*,
*::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 { transition: none !important; animation: none !important; }
}
body { overflow-wrap: break-word; margin: 0; background: var(--cal); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--azulejo); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pool); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; color: var(--azulejo-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 5.6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: 23px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; margin-top: 16px; }
.fine { font-size: 15px; color: var(--muted); margin-top: 16px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
section { padding: 110px 0; }
.band--white { background: var(--white); }
.band--tint { background: var(--tint); }
.band--blue { background: var(--azulejo); color: #fff; }
.band--blue h2 { color: #fff; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
.head .lead { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1.1 var(--body); padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: background-color .15s, box-shadow .15s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn--primary { background: var(--azulejo); color: #fff; }
.btn--primary:hover { background: var(--azulejo-deep); }
.btn--ghost { background: transparent; color: var(--azulejo); box-shadow: inset 0 0 0 1.5px var(--azulejo); }
.btn--ghost:hover { background: var(--tint); }
.btn--light { background: #fff; color: var(--azulejo); }
.btn--light:hover { background: var(--tint); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(250, 250, 246, .96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; height: 76px; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.brand { display: inline-flex; align-items: baseline; color: var(--azulejo-deep); text-decoration: none; font-family: var(--display); font-size: 26px; line-height: 1; }
.brand small { font: 500 15px var(--body); opacity: .75; margin-left: 1px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; font: 600 14px var(--body); padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; letter-spacing: .02em; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(8, 20, 45, .18); min-width: 170px; z-index: 40; }
.lang li a { display: block; padding: 9px 14px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.lang li a:hover { background: var(--tint); }
.lang li a[aria-current] { font-weight: 700; color: var(--azulejo); }
.top__book { padding: 11px 20px; font-size: 15px; background: var(--azulejo); color: #fff; }
.top__book:hover { background: var(--azulejo-deep); }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: 600 16px var(--body); padding: 10px 4px; cursor: pointer; }

.top--overlay { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; color: #fff; backdrop-filter: none; }
.top--overlay .brand { color: #fff; }
.top--overlay .top__book { background: #fff; color: var(--azulejo); }
.top--overlay .top__book:hover { background: var(--tint); }
.has-overlay .top { position: absolute; }

/* Hero */
.hero { position: relative; min-height: min(900px, 100svh); display: flex; align-items: flex-end; color: #fff; padding: 0; overflow: hidden; background: var(--azulejo-deep); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 45, .55) 0%, rgba(10, 22, 45, 0) 22%, rgba(10, 22, 45, 0) 42%, rgba(10, 22, 45, .74) 100%); }
.hero__in { position: relative; z-index: 2; width: 100%; max-width: 1360px; margin: 0 auto; padding: 120px var(--pad) 40px; }
.hero h1 { color: #fff; font-size: clamp(46px, 7vw, 96px); max-width: 12ch; letter-spacing: -.015em; }
.hero__sub { font-size: 20px; margin: 18px 0 32px; max-width: 46ch; }
.hero__from { margin-top: 14px; font-size: 16px; }

/* Search bar */
.search { background: #fff; color: var(--ink); border-radius: 22px; padding: 10px; display: grid; grid-template-columns: 1.1fr 1.1fr .8fr auto; gap: 6px; max-width: 880px; box-shadow: 0 20px 50px rgba(8, 20, 45, .28); }
.search .btn { border-radius: 16px; padding: 0 28px; min-height: 62px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.search .field { padding: 10px 18px; border-radius: 14px; }
.search .field:hover { background: var(--tint); }
.field label, .field legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.search .field label { margin-bottom: 0; }
.search input, .search select { border: 0; background: transparent; font: 500 17px var(--body); color: var(--ink); padding: 2px 0; width: 100%; min-width: 0; }

/* Facts strip */
.facts { background: var(--azulejo-deep); color: #fff; }
.facts ul { list-style: none; margin: 0 auto; padding: 22px var(--pad); display: flex; justify-content: space-between; gap: 16px 28px; max-width: 1360px; flex-wrap: wrap; }
.facts li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.facts svg { width: 26px; height: 26px; stroke: var(--azulejo-soft); fill: none; stroke-width: 1.6; flex: none; }

/* Arch photo frame — the villa's terrace arches */
.arch { border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--tint); }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.arch--link { display: block; position: relative; cursor: zoom-in; }
.arch--link:hover img { transform: scale(1.04); }
.arch__count { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.mosaic__item { cursor: zoom-in; }
.arch--tall { aspect-ratio: 4 / 5; }

/* Welcome */
.welcome__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 90px; align-items: center; }
.welcome__story { font-size: 21px; line-height: 1.65; margin: 28px 0 20px; max-width: 52ch; }
.signature { font-family: var(--display); font-size: 25px; color: var(--teja); }
.welcome__cta { margin-top: 30px; }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px; gap: 12px; }
.mosaic__item { position: relative; overflow: hidden; border-radius: 14px; display: block; background: var(--tint); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic__item:hover img { transform: scale(1.03); }
.mosaic__item span { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.mosaic__item--lead { grid-column: span 2; grid-row: span 2; }

.amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 30px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
#amenities .amen { margin-top: 32px; }
.amen div { font-size: 16px; }
.amen b { display: block; font-weight: 600; color: var(--azulejo-deep); }
.amen span { color: var(--muted); }

/* Rooms */
.rooms-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.room h3 { font-size: 22px; margin: 6px 0 8px; }
.room p { font-size: 15px; color: var(--muted); margin: 0; }
.room .room__floor { font-size: 14px; font-weight: 600; color: var(--teja); margin-top: 16px; }

/* Outdoors */
.outdoors { padding: 0; position: relative; }
.outdoors__img { width: 100%; height: min(760px, 80vh); object-fit: cover; object-position: 50% 88%; }
.outdoors__card { position: absolute; right: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); bottom: 60px; background: var(--cal); max-width: 440px; padding: 38px; border-radius: 20px; }
.outdoors__card h2 { font-size: 38px; }
.outdoors__card p { color: var(--muted); margin-top: 14px; }

/* Prices + steps */
.prices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.tiers { margin: 34px 0 0; border-top: 1px solid var(--line); }
.tier { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.tier dt { margin: 0; }
.tier dd { margin: 0; font-family: var(--display); font-size: 26px; color: var(--azulejo-deep); }
.tier dd small { font: 500 15px var(--body); color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 34px 0 10px; counter-reset: s; }
.steps li { position: relative; padding: 0 0 28px 64px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 42px; height: 42px; border-radius: 50%; background: var(--tint); color: var(--azulejo); font: 400 22px/42px var(--display); text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 6px; width: 2px; background: var(--line); }
.steps b { display: block; font-weight: 600; color: var(--azulejo-deep); font-size: 18px; }
.steps span { color: var(--muted); font-size: 16px; }
.callout { background: var(--tint); border-radius: 18px; padding: 24px 28px; margin: 10px 0 28px; }
.callout b { color: var(--azulejo-deep); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review { margin: 0; border-radius: 18px; padding: 30px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.band--blue .review { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: #fff; }
.review__text p { font-size: 17px; line-height: 1.6; }
.review--clamp .review__text { max-height: 10.4em; overflow: hidden; }
.review.is-clamped .review__text { -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.review.is-open .review__text { max-height: none; -webkit-mask-image: none; mask-image: none; }
.review__toggle { align-self: flex-start; background: none; border: 0; padding: 6px 0 0; font: 600 15px var(--body); color: var(--azulejo); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.band--blue .review__toggle { color: #fff; }
.review footer a { color: inherit; }
.review__note { display: block; font-weight: 400; opacity: .65; margin-top: 4px; }
.platforms { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; margin-top: 40px; padding: 28px 32px; border-radius: 20px; background: var(--tint); }
.platforms h3 { font-size: 26px; margin-bottom: 6px; }
.platforms p { color: var(--muted); max-width: 52ch; margin: 0; }
.platforms__links { display: flex; gap: 12px; flex-wrap: wrap; }
.platform-btn { flex-direction: column; gap: 3px; padding: 12px 24px; }
.platform-btn small { font-weight: 500; font-size: 13px; opacity: .8; }
.platforms--light { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.platforms--light h3 { color: #fff; }
.platforms--light p { color: #dbe6f5; }
.review footer { margin-top: auto; padding-top: 22px; font-size: 15px; font-weight: 600; }
.review footer span { font-weight: 400; opacity: .75; }
.stars { color: #e0a93a; letter-spacing: 2px; margin-bottom: 12px; font-size: 18px; }
.band--blue .stars { color: #f2c35b; }
.link-light { color: #fff; }
.review-grid--page { grid-template-columns: repeat(2, 1fr); }

/* Location */
.loc__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: start; }
.times { list-style: none; padding: 0; margin: 28px 0 0; }
.times li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.times b { font-weight: 600; }
.map { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.map svg { width: 100%; height: auto; display: block; }
.map figcaption { font-size: 13px; color: var(--muted); text-align: right; }
.map__sea { fill: var(--tint); }
.map__coast { fill: none; stroke: var(--azulejo-soft); stroke-width: 2; }
.map__sea-label { fill: var(--azulejo-soft); font: italic 15px var(--display); letter-spacing: .04em; }
.map__town { fill: var(--azulejo-deep); }
.map__label { fill: var(--ink); font: 500 14px var(--body); }
.map__villa path { fill: var(--teja); }
.map__villa-label { fill: var(--teja); font: 400 18px var(--display); }

/* Places */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.places--compact { grid-template-columns: repeat(4, 1fr); }
.place { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; background: var(--azulejo-deep); }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.place:hover img { transform: scale(1.03); }
.place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 20, 45, .82)); }
.place__name { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-family: var(--display); font-size: 27px; line-height: 1.1; }
.place__name small { display: block; font: 400 15px/1.4 var(--body); opacity: .92; margin-top: 6px; }
.area-group { padding: 70px 0 0; }
.area-group:last-of-type { padding-bottom: 110px; }
.area-group h2 { margin-bottom: 28px; font-size: 34px; }

/* Final CTA */
.final { padding: 0; position: relative; color: #fff; text-align: center; background: var(--azulejo-deep); }
.final__img { width: 100%; height: 560px; object-fit: cover; }
.final::after { content: ""; position: absolute; inset: 0; background: rgba(10, 22, 45, .42); }
.final__in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: var(--pad); }
.final h2 { color: #fff; font-size: clamp(40px, 5vw, 66px); max-width: 16ch; }
.cta-band { background: var(--azulejo); color: #fff; padding: 70px 0; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 8px; }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band p { opacity: .9; }

/* Footer */
.site-footer { background: var(--azulejo-deep); color: #c9d6e8; padding: 70px 0 34px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { max-width: 34ch; }
.site-footer h2 { color: #fff; font: 600 15px var(--body); margin: 0 0 12px; letter-spacing: 0; }
.site-footer a { color: #c9d6e8; text-decoration: none; display: block; margin: 6px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; margin-top: 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer__legal span:last-child { display: flex; gap: 20px; }
.site-footer__legal a { display: inline; margin: 0; }

/* Page header (inner pages) */
.page-head { padding: 90px 0 40px; }
.page-head h1 { max-width: 18ch; }
.page-head + section { padding-top: 30px; }

/* Getting here */
.getting__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.getting__item { background: var(--cal); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.getting__item svg { width: 34px; height: 34px; fill: none; stroke: var(--azulejo); stroke-width: 1.6; }
.getting__item h3 { margin: 14px 0 8px; font-size: 22px; }
.getting__item p { font-size: 15px; color: #334050; }
.getting__note { margin: 24px 0 0; }
.loc__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#getting-here { scroll-margin-top: 80px; }

/* Leave a review */
.reviews__cta { margin-top: 36px; text-align: center; }
.reviews__jump { margin: -10px 0 26px; }
.leave { padding: 56px 0; }
.reviews-list { padding-bottom: 64px; }
.leave__grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; align-items: start; }
.leave__intro h2 { font-size: 32px; }
.leave__intro p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.leave__form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 22px 24px; }
.leave__form .field { margin-bottom: 10px; }
.leave__form input:not([type=radio]), .leave__form textarea { padding: 10px 12px !important; }
.leave__wide { grid-column: 1 / -1; }
.leave__submit { display: flex; justify-content: flex-end; }
.leave__form .rate { margin: 0 0 10px; }
#leave { scroll-margin-top: 80px; }
.rate { margin-bottom: 10px; }
.rate legend { font: 600 13px var(--body); color: var(--muted); margin: 0 0 4px; }
.rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate__stars label { font-size: 28px; line-height: 1; color: #d3d8e0; cursor: pointer; padding: 2px; }
.rate__stars input:checked ~ label, .rate__stars label:hover, .rate__stars label:hover ~ label { color: #e0a93a; }
.rate__stars input:focus-visible + label { outline: 3px solid var(--pool); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Villa page sections */
.villa-head__grid { display: grid; grid-template-columns: 3fr 2fr; gap: 60px; align-items: end; }
.villa-head .lead + .lead { margin-top: 12px; }
.villa-toc { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-end; }
.villa-toc a { text-decoration: none; background: var(--tint); color: var(--azulejo-deep); padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.villa-toc a:hover { background: var(--azulejo); color: #fff; }
.villa-toc span { opacity: .55; margin-left: 2px; }
.vs { padding: 90px 0; scroll-margin-top: 80px; }
.vs__grid { display: grid; grid-template-columns: 2fr 3fr; gap: 64px; align-items: center; }
.vs--flip .vs__text { order: 2; }
.vs__text p { font-size: 18px; color: #334050; max-width: 46ch; margin-top: 16px; }
.vs__photos { display: grid; gap: 10px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; height: 460px; }
.vs__photo { display: block; overflow: hidden; border-radius: 14px; background: var(--tint); cursor: zoom-in; }
.vs__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vs__photo:hover img { transform: scale(1.04); }
.vs__photos .vs__photo:first-child { grid-row: 1 / -1; }
.vs__photos--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.vs__photos--2 { grid-template-rows: 1fr; }
.vs__photos--3 { grid-template-rows: 1fr 1fr; }
#bedrooms, #amenities, #rules, #photos { scroll-margin-top: 80px; }
.gallery-title { margin-bottom: 24px; }

/* Gallery */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font: 500 15px var(--body); border: 0; background: var(--tint); color: var(--azulejo-deep); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.chip span { opacity: .6; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--azulejo); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--tint); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 16, 32, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font: 500 15px var(--body); }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.lightbox__close { top: 18px; right: 18px; width: auto !important; padding: 0 18px; border-radius: 999px !important; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #c9d6e8; font-size: 14px; }
.lightbox__cap { position: absolute; bottom: 42px; left: 0; right: 0; text-align: center; color: #fff; font-size: 15px; }

.rules { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.rule-list li { padding-left: 22px; position: relative; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50% 50% 2px 2px; background: var(--azulejo); }

/* Cards and forms */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.card h2 { font-size: 28px; margin-bottom: 18px; }
form .field { margin-bottom: 14px; }
input, select, textarea { font: inherit; color: var(--ink); }
form:not(.search) input:not([type=checkbox]), form:not(.search) select, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 16px; }
form:not(.search) input:focus, form:not(.search) select:focus, textarea:focus { border-color: var(--azulejo); outline: none; box-shadow: 0 0 0 3px rgba(28, 63, 120, .15); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-family: var(--display); font-size: 24px; color: var(--azulejo-deep); margin: 24px 0 14px; padding: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin: 6px 0 20px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--azulejo); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fbeae5; color: var(--err); border-radius: 12px; padding: 12px 16px; font-size: 15px; font-weight: 500; }
.form-ok { background: #e6f3eb; color: var(--ok); border-radius: 12px; padding: 12px 16px; font-weight: 500; }
.hint { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

/* Booking page */
.booking { padding-top: 10px; }
.booking__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 44px; align-items: start; }
.booking__side { position: sticky; top: 96px; }
.booking__prices .tiers { margin-top: 20px; }
.book-form__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-form__quote { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; min-height: 40px; }
.book-form .form-error { margin: 12px 0 0; }
.sum { margin: 0; }
.sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; }
.sum dt { margin: 0; color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; text-align: right; }
.sum div:first-child dt { color: var(--ink); font-weight: 600; }
.sum__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; }
.sum__total dt { color: var(--ink) !important; font-weight: 700; }
.sum__total dd { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--azulejo-deep); }

.cal { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; position: relative; }
.cal noscript .search { box-shadow: none; grid-template-columns: 1fr; }
.cal__nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--azulejo); cursor: pointer; display: grid; place-items: center; }
.cal__nav button:hover:not([disabled]) { background: var(--tint); }
.cal__nav button[disabled] { opacity: .35; cursor: default; }
.cal__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.cal__status { font-size: 15px; color: var(--muted); text-align: center; flex: 1; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.cal__month h3 { font: 600 17px var(--body); color: var(--ink); text-align: center; margin: 0 0 12px; text-transform: capitalize; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; }
.cal__dow { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 6px; text-transform: capitalize; }
.cal__day { position: relative; aspect-ratio: 1 / 1; border: 0; background: none; font: 500 15px var(--body); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; padding: 0; }
.cal__day small { font-size: 10px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.cal__day > span { position: relative; z-index: 1; }
.cal__day::before { content: ""; position: absolute; inset: 2px; border-radius: 12px; z-index: 0; }
.cal__day--open:hover::before { background: var(--tint); }
.cal__day--closed, .cal__day--past { color: #b4bcc8; cursor: default; }
.cal__day--closed small, .cal__day--past small { display: none; }
.cal__day--booked { color: #b4bcc8; cursor: default; }
.cal__day--booked > span:first-child { text-decoration: line-through; }
.cal__day--booked small { display: none; }
.cal__day--checkout { cursor: pointer; color: var(--ink); }
.cal__day--inrange::before { inset: 2px 0; border-radius: 0; background: var(--tint); }
.cal__day--start::before, .cal__day--end::before { background: var(--azulejo) !important; border-radius: 12px !important; inset: 2px !important; }
.cal__day--start, .cal__day--end { color: #fff !important; }
.cal__day--start small, .cal__day--end small { color: #dbe6f5; }
.cal__day--invalid { color: #c4cad3; cursor: not-allowed; }
.cal__day--invalid small { display: none; }
.cal__day:focus-visible { outline-offset: -2px; }
.cal__clear { background: none; border: 0; color: var(--azulejo); font: 600 15px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0 0; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.lg--open { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.lg--booked { background: repeating-linear-gradient(135deg, #e3e7ee 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px var(--line); }
.lg--closed { background: #eef0f3; }
.lg--sel { background: var(--azulejo); }

/* Payment options on the booking page */
.pay__opt { padding: 14px 0; border-top: 1px solid var(--line); }
.pay__opt:first-of-type { border-top: 0; padding-top: 0; }
.pay__opt h3 { font-size: 20px; margin-bottom: 8px; }
.pay__opt .fine { margin-top: 8px; }

/* Notice pages */
.notice { padding: 110px 0; }
.notice h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 8px; }
.notice .card { margin: 30px 0; }
.notice h2 { font-size: 28px; margin: 30px 0 10px; }
.status { display: inline-block; font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--azulejo); margin-bottom: 18px; }
.status--confirmed { background: #e6f3eb; color: var(--ok); }
.status--declined, .status--cancelled, .status--expired { background: #f1f2f4; color: var(--muted); }

/* Guide */
.guide-hero { position: relative; padding: 0; min-height: 520px; display: flex; align-items: flex-end; color: #fff; background: var(--azulejo-deep); }
.guide-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 45, .2), rgba(10, 22, 45, .78)); }
.guide-hero__in { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 50px; width: 100%; }
.guide-hero h1 { color: #fff; }
.guide-hero .lead { color: #fff; opacity: .92; }
.guide-hero a { color: #fff; font-weight: 600; }
.guide { padding: 80px 0; }
.guide__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 70px; align-items: start; }
.guide__body { max-width: 68ch; }
.guide__body h2 { font-size: 32px; margin: 40px 0 14px; }
.guide__body h2:first-child { margin-top: 0; }
.guide__body p { font-size: 18px; line-height: 1.7; }
.guide__fig { margin: 40px 0 0; }
.guide__fig img { border-radius: 16px; }
.guide__fig figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.guide__side { position: sticky; top: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.link-list a { overflow-wrap: anywhere; }
.guide__side .card h2 { font-size: 24px; margin-bottom: 10px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.link-list li:last-child { border-bottom: 0; }
.link-list small { display: block; color: var(--muted); }
.link-list__links { display: flex; gap: 12px; flex: none; }

/* Recommendations */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 26px; }
.partner__logo { max-height: 56px; width: auto; margin-bottom: 14px; }
.partner__cat { font-size: 14px; font-weight: 600; color: var(--teja); margin-bottom: 8px; }
.partner__offer { font-weight: 600; color: var(--azulejo-deep); }
.rec-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 60px; margin-top: 26px; }
.rec-cols h3 { margin: 18px 0 6px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; color: var(--azulejo-deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 28px var(--display); color: var(--azulejo); }
.faq details[open] summary::after { content: "–"; }
.faq details > p { color: var(--muted); padding-bottom: 8px; }
.faq + p { margin-top: 36px; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: start; }
.contact__wa { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); margin-bottom: 14px; }
.contact__photo { margin-top: 28px; }
.contact__wa svg { width: 40px; height: 40px; fill: none; stroke: var(--azulejo); stroke-width: 1.6; flex: none; }
.contact__wa b { display: block; color: var(--azulejo-deep); font-size: 19px; }
.contact__wa:hover { border-color: var(--azulejo); }
.contact__photo { max-width: 420px; }

.prose h2 { font-size: 28px; margin: 36px 0 10px; }
.prose p { color: #334050; }

/* Mobile booking bar */
.mbar { display: none; }

@media (max-width: 1100px) {
  .nav, .top__book { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .nav.is-open { display: flex; position: fixed; inset: 76px 0 0 0; flex-direction: column; gap: 0; background: var(--cal); color: var(--ink); padding: 20px var(--pad); z-index: 50; overflow-y: auto; }
  .nav.is-open a { font-family: var(--display); font-size: 30px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rooms-grid { grid-template-columns: repeat(3, 1fr); }
  .getting__grid { grid-template-columns: 1fr 1fr; }
  .amen { grid-template-columns: repeat(2, 1fr); }
  .booking__grid { grid-template-columns: minmax(0, 1fr); }
  .booking__side { position: static; }
  .guide__grid { grid-template-columns: minmax(0, 1fr); }
  .guide__side { position: static; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  :root { --pad: 18px; }
  body { font-size: 16px; }
  section { padding: 76px 0; }
  .head { flex-direction: column; align-items: start; margin-bottom: 30px; }
  .lead { font-size: 17px; }
  .top__in { gap: 12px; height: 64px; }
  .nav.is-open { inset: 64px 0 0 0; }
  .hero__in { padding-bottom: 26px; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 22, 45, .5) 0%, rgba(10, 22, 45, .15) 18%, rgba(10, 22, 45, .55) 45%, rgba(10, 22, 45, .86) 100%); }
  .hero__sub { font-size: 17px; margin: 14px 0 22px; }
  .search { grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .search .field { padding: 8px 12px; }
  .search .field--guests { grid-column: 1 / -1; }
  .search .btn { grid-column: 1 / -1; min-height: 54px; }
  .facts ul { justify-content: flex-start; gap: 12px 24px; padding: 18px var(--pad); }
  .facts li { font-size: 15px; }
  .welcome__grid, .prices__grid, .loc__grid, .contact__grid, .rules, .villa-head__grid, .vs__grid, .leave__grid { grid-template-columns: 1fr; gap: 32px; }
  .vs { padding: 64px 0; }
  .vs--flip .vs__text { order: 0; }
  .vs__photos { height: 300px; }
  .platforms { padding: 22px; }
  .leave__form { grid-template-columns: 1fr; }
  .getting__grid { grid-template-columns: 1fr; }
  .leave__submit { justify-content: stretch; }
  .leave__submit .btn { width: 100%; }
  .welcome .arch { max-width: 420px; }
  .welcome__story { font-size: 19px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mosaic__item { aspect-ratio: 1; }
  .mosaic__item--lead { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .rooms-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .rooms-grid .room:last-child { grid-column: span 2; max-width: calc(50% - 9px); }
  .amen { grid-template-columns: 1fr 1fr; gap: 18px; }
  .review-grid, .review-grid--page, .partner-grid, .rec-cols, .rule-list { grid-template-columns: 1fr; }
  .outdoors { padding-bottom: 30px; }
  .outdoors__img { height: 60vh; }
  .outdoors__card { position: relative; right: auto; bottom: auto; margin: -70px var(--pad) 0; max-width: none; padding: 28px; }
  .outdoors__card h2 { font-size: 32px; }
  .places, .places--compact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .place__name { font-size: 21px; left: 12px; bottom: 12px; }
  .place__name small { display: none; }
  .final__img { height: 440px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > div:first-child { grid-column: 1 / -1; }
  .page-head { padding: 54px 0 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .cal { padding: 16px 12px; }
  .cal__months { grid-template-columns: 1fr; gap: 26px; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 160px); border-radius: 0; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; }
  .mbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 25; background: #fff; border-radius: 16px; padding: 10px 10px 10px 18px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 10px 30px rgba(8, 20, 45, .25); transform: translateY(140%); transition: transform .25s; }
  .mbar.is-on { transform: none; }
  .mbar[hidden] { display: flex; }
  .mbar b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--azulejo-deep); display: block; line-height: 1.1; }
  .mbar span { font-size: 13px; color: var(--muted); }
  .mbar .btn { padding: 13px 18px; font-size: 15px; }
  .site-footer { padding-bottom: 100px; }
}
@media (max-width: 400px) {
  .search { grid-template-columns: 1fr; }
  .lang summary { padding: 6px 10px; }
}

/* Cookie banner – Accept and Reject deliberately identical (AEPD) */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 440px; background: #fff; color: var(--ink); border-radius: 18px; padding: 20px 22px; box-shadow: 0 18px 50px rgba(8, 20, 45, .28); font-size: 15px; line-height: 1.5; }
.cookie p { margin: 0 0 14px; }
.cookie a { color: var(--azulejo); }
.cookie__opts { display: grid; gap: 8px; margin: 0 0 14px; }
.cookie__opts[hidden], .cookie[hidden] { display: none; }
.cookie__opts label { display: flex; gap: 10px; align-items: center; }
.cookie__opts input { width: 18px; height: 18px; accent-color: var(--azulejo); }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn--cookie { flex: 1 1 0; background: var(--azulejo); color: #fff; padding: 12px 18px; }
.btn--cookie:hover { background: var(--azulejo-deep); }
.cookie__set { flex-basis: 100%; background: none; border: 0; padding: 4px 0 0; font: inherit; color: var(--azulejo); text-decoration: underline; cursor: pointer; text-align: center; }
@media (max-width: 560px) {
  .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
  .cookie p { margin-bottom: 10px; }
  .cookie__btns { gap: 8px; }
  .btn--cookie { padding: 10px 12px; font-size: 15px; }
  .cookie__set { padding-top: 0; font-size: 13px; }
}

/* Date fields: iOS Safari draws an empty date input with no text and almost no height,
   so the field looked missing. Give it a real height and show a hint while empty. */
.date-wrap { position: relative; display: block; }
input[type=date] { -webkit-appearance: none; appearance: none; display: block; min-height: 1.6em; line-height: 1.4; text-align: left; }
input[type=date]::-webkit-date-and-time-value { text-align: left; min-height: 1.4em; }
.date-hint { display: none; position: absolute; left: 0; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--azulejo); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 24px); }
form:not(.search) .date-wrap .date-hint { left: 15px; }
form:not(.search) input[type=date] { min-height: 50px; }
.search input[type=date] { min-height: 30px; }
@supports (-webkit-touch-callout: none) {
  /* iOS only: the hint fills the empty field (other browsers already show dd/mm/yyyy) */
  input[type=date]:invalid + .date-hint { display: block; }
}

/* Mobile hero: the photo with the title stays visible on top; the booking form sits
   below the photo on the dark band instead of covering the villa. */
@media (max-width: 820px) {
  .hero { display: block; min-height: 0; }
  .hero__img { height: 64svh; bottom: auto; }
  .hero::after { height: 64svh; bottom: auto; background: linear-gradient(180deg, rgba(10, 22, 45, .5) 0%, rgba(10, 22, 45, 0) 22%, rgba(10, 22, 45, 0) 50%, rgba(10, 22, 45, .78) 100%); }
  .hero__in { padding: 0 var(--pad) 26px; }
  .hero__head { min-height: 64svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 96px 0 22px; }
  .hero h1 { font-size: clamp(36px, 10vw, 56px); }
  .hero__sub { font-size: 16px; margin: 10px 0 0; }
  .hero .search { margin-top: 4px; }
  .search .field--guests, .search .btn { grid-column: auto; }
  .search .btn { min-height: 0; padding: 0 16px; white-space: normal; line-height: 1.15; }
}
@media (max-width: 400px) { .search { grid-template-columns: 1fr 1fr; } }
@media (max-width: 340px) { .search { grid-template-columns: 1fr; } .search .btn { min-height: 52px; } }
