/* ── Card ────────────────────────────────────────────────────
   Figma (home): rooms 1397:12139, experiences 1397:12207,
   spaces 1397:12283, Journal 1397:12333 / 1397:12340.
   The picture's height comes from the section (--card-image-h),
   as each row has its own.
   ─────────────────────────────────────────────────────────── */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* The link's hit area covers the whole card. */
.card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card__link {
    align-self: flex-start;
}

/* No arrow (experiences, the Journal): the link is the card itself. */
.card__link--plain {
    position: absolute;
    inset: 0;
}

.card__link--plain::after {
    content: none;
}

.card__link--plain:focus-visible {
    outline: 2px solid var(--color-copper);
    outline-offset: 4px;
}

/* "A drive ——" */
.card__kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-style: italic;
    line-height: 1.2;
    color: var(--color-burgundy);
}

.card__kicker::after {
    content: "";
    width: 60px;
    height: 1px;
    background: var(--color-walnut);
}

.card__media {
    height: var(--card-image-h, 350px);
    overflow: hidden;
    background: var(--color-candle-wax);
}

.card__media {
    position: relative;
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* More than one picture: one shows at a time, arrows over it on hover. */
.card__media[data-card-gallery] .card__image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.card__media[data-card-gallery] .card__image.is-active {
    opacity: 1;
}

.card__gallery-arrows {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    z-index: 2; /* above the card's own link */
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover .card__gallery-arrows,
.card__media:focus-within .card__gallery-arrows {
    opacity: 1;
}

/* Title styles: 28px (the Stay page's suites), 22px italic (packages) */
.card--title-small .card__title {
    font-size: 28px;
    letter-spacing: -0.14px;
}

.card--title-italic {
    gap: 16px;
}

.card--title-italic .card__title {
    font-size: 22px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card__eyebrow {
    color: var(--color-walnut);
}

/* Title, with the meta ("Up to 140") on the right. */
.card__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.card__title {
    font-size: 38px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.38px;
    color: var(--color-beamwood);
}

.card__meta {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 22px;
    font-style: italic;
    line-height: 1.2;
    color: var(--color-beamwood);
}

.card__text {
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.08px;
    color: var(--color-ink-soft);
}

/* ✦ Historic Suite  ✦ Roll-top Bath  ✦ Sleeps 2 */
.card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-style: italic;
    line-height: 1.2;
    color: var(--color-ink-soft);
}

.card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card__features li::before {
    content: "✦";
    font-size: 22px;
    color: var(--color-burgundy);
}


/* Journal — the big story and the two beside it */
.card--feature .card__title {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.card--small .card__title {
    font-size: 28px;
    letter-spacing: -0.14px;
}

.card--feature .card__text {
    line-height: 1.7;
    color: rgba(20, 13, 12, 0.78);
}

.card--feature .card__eyebrow,
.card--small .card__eyebrow {
    color: rgba(65, 51, 38, 0.7);
}

/* The two smaller stories show no text on desktop. */
@media (min-width: 1025px) {
    .card--small .card__text {
        display: none;
    }
}


/* Tablet and mobile — 1024px and below (Figma mobile frames) */
@media (max-width: 1024px) {
    .card,
    .card__body {
        gap: 9px;
    }

    /* The meta ("Up to 140") goes above the title */
    .card__heading {
        flex-direction: column-reverse;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 9px;
    }

    .card__title,
    .card--feature .card__title,
    .card--small .card__title {
        font-size: 28px;
        line-height: 1.1;
        letter-spacing: -0.21px;
    }

    .card__meta {
        font-size: 16px;
    }

    .card__features {
        justify-content: space-between;
        gap: 8px 12px;
        font-size: 14px;
    }

    .card__features li {
        gap: 7px;
    }

    .card__features li::before {
        font-size: 16px;
    }

    .card--feature .card__text,
    .card--small .card__text {
        font-size: 14px;
        line-height: 1.55;
        letter-spacing: 0.07px;
        color: rgba(20, 13, 12, 0.78);
    }
}

/* Tablet and mobile: no photo arrows (the row itself swipes) */
@media (max-width: 1024px) {
    .card__gallery-arrows {
        display: none;
    }

    .card--title-italic .card__title {
        font-size: 22px;
        line-height: 1.2;
    }
}
