@font-face {
    font-family: "Young Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/young-serif-400.woff2?v=6ba68b9927") format("woff2");
}
@font-face {
    font-family: Figtree;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/figtree-400.woff2?v=8f98dd6429") format("woff2");
}
@font-face {
    font-family: Figtree;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/figtree-600.woff2?v=367d713287") format("woff2");
}
@font-face {
    font-family: Figtree;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/figtree-700.woff2?v=7ec4f08d09") format("woff2");
}

/* Colors come from the finca itself: the green of the monte, limewashed
   block walls, the red-oxide paint on every roof beam, the pool. */
:root {
    --monte: #1f3a2a;
    --monte-deep: #172d20;
    --monte-soft: #2c4c38;
    --cal: #eef1ea;
    --cal-deep: #e1e8dc;
    --ink: #16201a;
    --muted: #4b5a50;
    --viga: #a3302a;
    --pool: #0e6b7b;
    --pool-light: #8fd6e0;
    --sun: #f2b33d;
    --wa: #25d366;
    --wa-hover: #1fbd5b;
    --bubble: #d9fdd3;
    --line: rgba(22, 32, 26, 0.16);
    --line-dark: rgba(238, 241, 234, 0.18);
    --on-dark: #eef1ea;
    --on-dark-muted: #b9c6bc;
    --focus: var(--viga);

    --display: "Young Serif", Georgia, serif;
    --sans: Figtree, "Segoe UI", system-ui, sans-serif;
    --wide: 1180px;
    --gutter: clamp(16px, 4.5vw, 48px);
    --section: clamp(64px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    background: var(--cal);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--pool); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 7.6vw, 4.75rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--cal);
    font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
    width: min(var(--wide), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.i { width: 1.2em; height: 1.2em; flex: none; }
.star { color: var(--sun); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 50px;
    padding: 12px 22px;
    border: 1.5px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.btn-wa { background: var(--wa); color: var(--ink); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-line { color: inherit; border-color: currentColor; background: transparent; }
.btn-line:hover { background: rgba(255, 255, 255, 0.12); }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* Hero: the sunset photo does the talking; type sits low and left. */
.hero {
    --focus: var(--sun);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
    height: 100svh;
    max-height: 940px;
    padding: max(16px, env(safe-area-inset-top)) var(--gutter) clamp(28px, 5vw, 56px);
    background: var(--monte-deep);
    color: #fff;
    isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 38% 45%;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(10, 18, 12, 0.35) 0%, rgba(10, 18, 12, 0) 18%),
        linear-gradient(0deg, rgba(10, 18, 12, 0.82) 0%, rgba(10, 18, 12, 0.45) 38%, rgba(10, 18, 12, 0) 62%);
}
.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(var(--wide), 100%);
    margin-inline: auto;
}
.wordmark {
    margin: 0;
    font-family: var(--display);
    font-size: 1.2rem;
    line-height: 1;
}
.lang {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 2px;
}
.hero-copy {
    width: min(var(--wide), 100%);
    margin-inline: auto;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}
.hero-copy > * { max-width: 40rem; }
.hero h1 { margin-bottom: 0.3em; }
.lede {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.45;
    margin-bottom: 0.9em;
}
.proof { margin-bottom: 1.5em; font-weight: 600; }
.proof a {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn { text-shadow: none; }
.hero .btn-wa { flex: 1 1 100%; }
.hero .btn-line { display: none; }

.facts {
    list-style: none;
    margin: 0;
    padding: 14px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    background: var(--monte);
    color: var(--on-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Sections */
.finca, .beds, .route, .reviews, .faq, .quote { padding: var(--section) 0; }
.intro { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.intro p, .pair-copy p, .way p { color: var(--muted); }

/* The finca: photos in a few groups, each with a short claim. */
.mosaic { display: grid; gap: 8px; }
.mosaic-3 { grid-template-columns: 1fr 1fr; }
.mosaic-3 .shot:first-child { grid-column: 1 / -1; }
.mosaic-2 { grid-template-columns: 1fr 1fr; }
.shot a { display: block; overflow: hidden; background: var(--cal-deep); cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.shot figcaption {
    padding-top: 6px;
    font-size: 0.875rem;
    color: var(--muted);
}
.pair { margin-top: clamp(48px, 7vw, 96px); }
.pair-copy { max-width: 34rem; margin-bottom: 20px; }

/* Beds: the rooms add up to 20, written out like a sum. */
.beds { background: var(--cal-deep); }
.sum {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sum .room {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 16px;
    align-items: start;
    padding: 12px 0;
}
.term {
    margin: 0;
    font-family: var(--display);
    font-size: 3.4rem;
    line-height: 0.9;
    text-align: right;
    white-space: nowrap;
}
.op {
    color: var(--viga);
    font-size: 0.7em;
    margin-right: 0.08em;
}
.num { font-variant-numeric: lining-nums; }
.sum figure a { display: block; overflow: hidden; background: var(--cal); cursor: zoom-in; }
.sum img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sum figcaption {
    display: grid;
    padding-top: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
}
.room-name { color: var(--muted); font-size: 0.875rem; }
.sum figcaption span:last-child { color: var(--muted); }
.sum .total {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 16px;
    align-items: end;
    margin-top: 8px;
}
.total .term {
    padding-top: 12px;
    border-top: 3px solid var(--ink);
    font-size: 4rem;
}
.total-label {
    margin: 0;
    padding-top: 12px;
    font-family: var(--display);
    font-size: 1.5rem;
    line-height: 1.1;
    padding-bottom: 0.25em;
}

/* Getting there */
.ways { display: grid; gap: 32px; }
.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
}
.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 14px 2.4rem;
    color: var(--muted);
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -0.1em;
    font-family: var(--display);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--viga);
}

/* Reviews */
.reviews {
    --focus: var(--sun);
    background: var(--monte);
    color: var(--on-dark);
}
.reviews a { color: var(--pool-light); }
.reviews-grid { display: grid; gap: 40px; }
.score h2 { margin-bottom: 0.3em; }
.score-num {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 0.4em;
    margin: 0;
    font-size: 1.1rem;
}
.score-num span {
    font-family: var(--display);
    font-size: clamp(4.5rem, 10vw, 6.5rem);
    line-height: 1;
    color: var(--sun);
}
.score-count { color: var(--on-dark-muted); }
.badges { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.badges strong { display: block; }
.badges span { color: var(--on-dark-muted); font-size: 0.95rem; }
.more { font-weight: 600; }
.review {
    padding: 24px 0;
    border-top: 1px solid var(--line-dark);
}
.review:first-child { border-top: 0; padding-top: 0; }
.review blockquote { margin: 0 0 10px; }
.review blockquote p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.55;
    max-width: 38rem;
}
.review figcaption { font-size: 0.95rem; }
.review figcaption span { color: var(--on-dark-muted); }
.translated { margin: 8px 0 0; font-size: 0.875rem; color: var(--on-dark-muted); }

/* Questions */
.faq dl { margin: 0; }
.faq dl div { padding: 18px 0; border-top: 1px solid var(--line); }
.faq dt {
    font-family: var(--display);
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 6px;
}
.faq dd { margin: 0; color: var(--muted); max-width: 34rem; }

/* Quote builder */
.quote {
    --focus: var(--sun);
    background: var(--monte-deep);
    color: var(--on-dark);
}
.quote-grid { display: grid; gap: 32px; }
.quote-intro p { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 28rem; }
.builder { display: grid; gap: 20px; max-width: 36rem; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.field input {
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    border: 1.5px solid transparent;
    border-radius: 6px;
    background: var(--cal);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
}
.field input[aria-invalid="true"] { border-color: #ff8a7a; }
.field-people input { max-width: 9rem; }
.label { margin: 0 0 8px; font-weight: 600; font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 14px;
    border: 1.5px solid var(--line-dark);
    border-radius: 999px;
    background: transparent;
    color: var(--on-dark);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.25;
    cursor: pointer;
}
.chip:hover { border-color: var(--on-dark-muted); }
.chip-puente { border-radius: 10px; text-align: left; }
.chip-puente span { color: var(--on-dark-muted); font-size: 0.875rem; }
.chip-puente[aria-pressed="true"] {
    background: var(--cal);
    border-color: var(--cal);
    color: var(--ink);
}
.chip-puente[aria-pressed="true"] span { color: var(--muted); }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.builder-note { margin: 0; min-height: 0; font-weight: 600; color: var(--pool-light); }
.builder-note:empty { display: none; }
.builder-note.is-error { color: #ffb3a8; }
.bubble .label { color: var(--on-dark-muted); font-weight: 400; font-size: 0.875rem; }
.bubble-text {
    margin: 0;
    padding: 12px 14px;
    background: var(--bubble);
    color: var(--ink);
    border-radius: 12px 2px 12px 12px;
    white-space: pre-wrap;
    font-size: 0.975rem;
    line-height: 1.5;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.send { justify-self: start; }
.hint { margin: -8px 0 0; font-size: 0.875rem; color: var(--on-dark-muted); }

/* Footer */
.site-foot {
    --focus: var(--sun);
    background: var(--monte-deep);
    color: var(--on-dark-muted);
    border-top: 1px solid var(--line-dark);
    padding: 32px 0 calc(40px + 72px + env(safe-area-inset-bottom));
    font-size: 0.95rem;
}
.site-foot strong { color: var(--on-dark); font-weight: 600; }
.site-foot a { color: var(--on-dark); }
.foot-row { display: grid; gap: 16px; }
.foot-row p { margin: 0; }
.foot-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* Booking bar: bottom of the screen on phones, top on wide screens. */
.dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--cal);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.25s ease;
}
.dock.is-shown { transform: none; }
.dock-name {
    margin: 0;
    font-family: var(--display);
    font-size: 1.05rem;
    line-height: 1.2;
}
.dock-name span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
}
.dock .btn { min-height: 46px; padding: 10px 18px; }
body:has(.lightbox[open]) .dock { visibility: hidden; }

/* Photo viewer */
.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0d1510;
    color: #fff;
    overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(8, 14, 10, 0.9); }
.lightbox-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--monte-deep);
    font-size: 0.95rem;
}
.lightbox-bar p { margin: 0; color: var(--on-dark-muted); }
.lightbox-cap { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox-count { font-variant-numeric: tabular-nums; }
.lightbox button {
    --focus: var(--sun);
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 10px 14px;
    cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    background: rgba(8, 14, 10, 0.6) !important;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* 404 */
.lost {
    --focus: var(--sun);
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px var(--gutter);
    background: var(--monte);
    color: var(--on-dark);
}
.lost-card { max-width: 34rem; }
.lost-card .wordmark { margin-bottom: 32px; }
.lost-card > p { color: var(--on-dark-muted); }
.lost-card .actions { margin: 24px 0; }
.lost a:not(.btn) { color: var(--pool-light); }
.lost-alt { font-size: 0.95rem; }

@media (min-width: 600px) {
    .hero .btn-wa { flex: 0 0 auto; }
    .hero .btn-line { display: inline-flex; }
    .mosaic { gap: 12px; }
    .ways { grid-template-columns: 1fr 1fr; gap: 48px; }
    .foot-row { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 900px) {
    .hero-copy > * { max-width: 46rem; }
    .hero::after {
        background:
            linear-gradient(180deg, rgba(10, 18, 12, 0.35) 0%, rgba(10, 18, 12, 0) 16%),
            linear-gradient(0deg, rgba(10, 18, 12, 0.78) 0%, rgba(10, 18, 12, 0.3) 34%, rgba(10, 18, 12, 0) 55%),
            linear-gradient(90deg, rgba(10, 18, 12, 0.35) 0%, rgba(10, 18, 12, 0) 55%);
    }
    .facts { justify-content: center; gap: 0; }
    .facts li { padding: 0 18px; border-left: 1px solid var(--line-dark); }
    .facts li:first-child { border-left: 0; }

    .mosaic-3 {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .mosaic-3 .shot:first-child { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; }
    .mosaic-3 .shot:first-child a { flex: 1; }
    .mosaic-3 .shot:first-child img { height: 100%; aspect-ratio: auto; }
    .pair {
        display: grid;
        grid-template-columns: 4fr 8fr;
        gap: 48px;
        align-items: center;
    }
    .pair-copy { margin: 0; }
    .pair-flip { grid-template-columns: 8fr 4fr; }
    .pair-flip .pair-copy { order: 2; }

    /* Wide screens read the sum left to right: 4 +4 +4 +2 +6 =20. */
    .sum {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
        gap: 0 20px;
        align-items: start;
    }
    .sum .room {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 0;
    }
    .term {
        text-align: left;
        font-size: clamp(4rem, 7vw, 6.5rem);
    }
    .sum .room .term { margin-left: -0.05em; padding-bottom: 0.12em; }
    .sum .total {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 0;
        padding-left: 8px;
    }
    .total .term {
        padding: 0;
        border: 0;
        font-size: clamp(4rem, 7vw, 6.5rem);
    }
    .total-label { padding: 0; font-size: 1.35rem; }

    .reviews-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
    .score { position: sticky; top: 96px; }

    .faq dl {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 56px;
    }

    .quote-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }

    .dock {
        top: 0;
        bottom: auto;
        padding: 10px var(--gutter);
        background: var(--monte-deep);
        color: var(--on-dark);
        border-top: 0;
        border-bottom: 1px solid var(--line-dark);
        transform: translateY(-110%);
    }
    .dock .star { color: var(--sun); }
    .dock-name span { color: var(--on-dark-muted); }
    .dock-name { display: flex; align-items: baseline; gap: 14px; }
    .dock { --focus: var(--sun); }
    .site-foot { padding-bottom: 40px; }

    .lightbox {
        width: min(1200px, calc(100vw - 48px));
        height: min(90vh, 880px);
        margin: auto;
        border-radius: 6px;
    }
    .lightbox-bar { padding-bottom: 12px; }
}

@media (min-width: 900px) and (hover: hover) {
    .shot img, .sum img { transition: transform 0.4s ease; }
    .shot a:hover img, .sum a:hover img { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
