/* ============================================
   host/index.css: /list-your-property (Views/Host/Index).
   Phone first; every rule is scoped under .host-page. A hero with a soft green glow (serif
   headline beside three tilted postcards of the top areas with the Verified seal stuck on),
   then, on the page's light ground: why hosts list (one bordered grid of white cells), the
   Verified badge (a full-width light green band), four steps (a green rule over each), the
   FAQ (white <details> cards) and the closing band (dark green over a photo), which ends the
   page. From 768px a Start bar is fixed to the bottom of the screen. Fraunces (the headline and
   the postcard captions) is loaded by the view.
   ============================================ */

.host-page {
    --host-display: "Fraunces", Georgia, "Times New Roman", serif;
    --host-frame: 1200px;
    width: 100%;
    background-color: var(--color-surface-muted);
    color: var(--color-ink);
}

.host-page > section {
    width: 100%;
    max-width: calc(var(--host-frame) + 2 * var(--gutter));
    margin: 0 auto;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
}

/* --- Hero --- */
.host-page > .host-hero {
    max-width: none;
    padding-top: var(--space-8);
    padding-bottom: var(--space-10);
    background: radial-gradient(120% 80% at 90% 0%, var(--green-100) 0%, var(--color-surface-muted) 60%);
}

.host-page .host-hero__inner {
    display: grid;
    gap: var(--space-10);
    max-width: var(--host-frame);
    margin: 0 auto;
}

.host-page .host-hero__title {
    max-width: 12ch;
    margin: 0 0 var(--space-4);
    color: var(--color-ink);
    font-family: var(--host-display);
    font-size: clamp(2.6rem, 11vw, 4.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    text-wrap: balance;
}

.host-page .host-hero__title em {
    color: var(--green-700);
    font-style: italic;
}

.host-page .host-hero__lead {
    max-width: 44ch;
    margin: 0 0 var(--space-6);
    color: var(--color-text-body);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.host-page .host-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-4);
}

.host-page .host-start {
    min-height: 52px;
    padding: 0 var(--space-6);
    font-size: 1rem;
}

.host-page .host-hero__aside {
    margin: var(--space-3) 0 0;
    font-size: 0.9375rem;
}

.host-page .host-hero__aside a {
    display: inline-block;
    padding: var(--space-3) 0;
    color: var(--green-700);
    font-weight: 600;
}

/* Postcards: an aspect box the three cards are placed in, so the collage keeps its shape at
   every width. One or two cards sit side by side instead. */
.host-page .host-postcards {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 6 / 5;
    margin: 0 auto;
}

.host-page .host-postcard {
    position: absolute;
    width: 58%;
    margin: 0;
    padding: 3% 3% 11%;
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-2);
}

.host-page .host-postcard img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.host-page .host-postcard figcaption {
    position: absolute;
    bottom: 3%;
    left: 5%;
    color: var(--color-ink);
    font-family: var(--host-display);
    font-size: clamp(0.8rem, 3.2vw, 1rem);
}

.host-page .host-postcards--3 .host-postcard:nth-child(1) { top: 6%; left: 0; rotate: -6deg; }
.host-page .host-postcards--3 .host-postcard:nth-child(2) { top: 0; right: 0; rotate: 5deg; }
.host-page .host-postcards--3 .host-postcard:nth-child(3) { bottom: 0; left: 21%; z-index: 1; rotate: -1deg; }
.host-page .host-postcards--2 .host-postcard:nth-child(1) { top: 4%; left: 0; rotate: -5deg; }
.host-page .host-postcards--2 .host-postcard:nth-child(2) { bottom: 0; right: 0; rotate: 4deg; }
.host-page .host-postcards--1 .host-postcard { top: 8%; left: 21%; rotate: -3deg; }

.host-page .host-sticker {
    position: absolute;
    right: 4%;
    bottom: 8%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(78px, 22%, 112px);
    aspect-ratio: 1;
    rotate: 10deg;
}

.host-page .host-sticker .bl-verified-seal {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--green-900) 30%, transparent));
}

/* --- Body (sections on the page's light ground, two full-width bands) --- */
.host-page .host-section {
    padding-top: var(--space-12);
}

.host-page .host-section__title,
.host-page .host-verified__title,
.host-page .host-closing__title {
    margin: 0 0 var(--space-6);
    color: var(--color-ink);
    font-size: clamp(1.625rem, 6vw, 2.375rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: balance;
}

/* Why hosts list: one bordered grid of white cells split by hairlines */
.host-page .host-reasons {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    background-color: var(--color-border-light);
    list-style: none;
}

.host-page .host-reason {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding: var(--space-6) var(--space-5);
    background-color: var(--color-surface);
}

.host-page .host-reason__icon {
    color: var(--green-700);
    font-size: 1.5rem;
    line-height: 1;
}

.host-page .host-reason__title {
    margin: var(--space-1) 0 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.host-page .host-reason__text {
    margin: 0;
    color: var(--color-text-body);
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* Full-width bands: the section spans the screen, its content keeps the frame */
.host-page > .host-band {
    position: relative;
    max-width: none;
    margin-top: var(--space-12);
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.host-page .host-band > :not(.host-band__photo) {
    position: relative;
    max-width: var(--host-frame);
    margin-right: auto;
    margin-left: auto;
}

/* Verified badge: a light green band with the sample card */
.host-page .host-band--verified {
    background-color: var(--green-50);
}

.host-page .host-verified {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}

.host-page .host-verified__title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.host-page .host-verified__title .bl-verified-seal {
    width: 1.15em;
    height: 1.15em;
}

.host-page .host-verified__text {
    max-width: 48ch;
    margin: 0;
    color: var(--color-text-body);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.host-page .host-sample {
    width: 100%;
    max-width: 380px;
    justify-self: center;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-color: var(--color-surface);
    color: var(--color-ink);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--green-900) 14%, transparent);
}

.host-page .host-sample img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.host-page .host-sample__body {
    padding: var(--space-3) var(--space-4) var(--space-4);
}

.host-page .host-sample__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
}

.host-page .host-sample__facts {
    margin: 2px 0 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Steps: a green rule over each, its number above the title */
.host-page .host-steps {
    display: grid;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: host-step;
}

.host-page .host-step {
    padding-top: var(--space-3);
    border-top: 3px solid var(--color-primary);
    counter-increment: host-step;
}

.host-page .host-step::before {
    content: counter(host-step);
    color: var(--green-700);
    font-size: 0.8125rem;
    font-weight: 700;
}

.host-page .host-step__title {
    margin: var(--space-1) 0;
    font-size: 1.0625rem;
    font-weight: 700;
}

.host-page .host-step__text {
    margin: 0;
    color: var(--color-text-body);
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* FAQ: white cards, + to open, - to close */
/* The FAQ sits in the middle of the page, its heading centred over it. */
.host-page .host-section--faq .host-section__title {
    text-align: center;
}

.host-page .host-faq {
    display: grid;
    gap: var(--space-3);
    max-width: 760px;
    margin: 0 auto;
}

.host-page .host-faq__item {
    padding: 0 var(--space-5);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
}

.host-page .host-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 56px;
    padding: var(--space-3) 0;
    color: var(--color-ink);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.host-page .host-faq__item summary::-webkit-details-marker {
    display: none;
}

.host-page .host-faq__item summary::after {
    content: "+";
    flex: none;
    color: var(--green-700);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
}

.host-page .host-faq__item[open] summary::after {
    content: "\2013";
}

.host-page .host-faq__item summary:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.host-page .host-faq__item p {
    max-width: 62ch;
    margin: 0 0 var(--space-4);
    color: var(--color-text-body);
    line-height: 1.6;
}

/* Closing: a dark green band over a photo */
.host-page .host-band--closing {
    overflow: hidden;
    background-color: var(--green-900);
    color: var(--color-surface);
}

.host-page .host-band__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-page .host-band--closing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: color-mix(in srgb, var(--green-900) 84%, transparent);
}

.host-page .host-band--closing > .host-closing {
    z-index: 2;
}

.host-page .host-closing {
    display: grid;
    justify-items: start;
    gap: var(--space-4);
}

.host-page .host-closing__title {
    margin: 0;
    color: var(--color-surface);
}

.host-page .host-closing__text {
    max-width: 52ch;
    margin: 0;
    color: color-mix(in srgb, var(--color-surface) 88%, transparent);
    line-height: 1.6;
}

.host-page .host-closing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.host-page .host-closing__whatsapp {
    gap: var(--space-2);
    border: 1.5px solid currentColor;
    background: transparent;
    color: var(--color-surface);
}

.host-page .host-closing__whatsapp:hover {
    background: color-mix(in srgb, var(--color-surface) 12%, transparent);
    color: var(--color-surface);
}

/* Start bar: desktop only (phones have the tab bar at the bottom) */
.host-page .host-bar {
    display: none;
}

@media (min-width: 768px) {
    /* Fixed for the whole page, footer included: the body keeps room for it at the end. */
    .host-page .host-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: var(--z-sticky);
        display: block;
        border-top: 1px solid var(--color-border-light);
        background-color: var(--color-surface);
        box-shadow: 0 -6px 24px color-mix(in srgb, var(--color-ink) 8%, transparent);
    }

    /* Focus and in-page jumps never land under the bar (WCAG 2.4.11). */
    html:has(.host-page) {
        scroll-padding-bottom: 88px;
    }

    body:has(.host-bar) {
        padding-bottom: 72px;
    }

    .host-page .host-bar__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-4);
        max-width: var(--host-frame);
        margin: 0 auto;
        padding: var(--space-3) var(--gutter);
    }

    .host-page .host-bar__text {
        display: flex;
        flex-direction: column;
        margin: 0;
        color: var(--color-text-muted);
        font-size: 0.8125rem;
    }

    .host-page .host-bar__text strong {
        color: var(--color-ink);
        font-size: 1rem;
    }
}

/* --- Wider screens --- */
@media (min-width: 600px) {
    .host-page .host-reasons,
    .host-page .host-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .host-page .host-verified {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (min-width: 1024px) {
    .host-page > .host-hero {
        padding-top: var(--space-12);
        padding-bottom: var(--space-16);
    }

    .host-page .host-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
    }

    .host-page .host-section {
        padding-top: var(--space-16);
    }

    .host-page .host-reasons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .host-page .host-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .host-page > .host-band {
        margin-top: var(--space-16);
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }
}
