/*
 * Room availability cards (tour page). Colours are the theme's Tailwind tokens
 * (tailwind.config.js); the font is inherited from the theme.
 */
.alfa-rooms {
    /* The theme's variable font (elza-round) takes its weight from font-variation-settings,
       which is inherited and overrides font-weight, so every weight below sets both. */
    --rooms-blue: #154396;        /* alfa-dark-blue */
    --rooms-pink: #ee386f;        /* alfa-pink */
    --rooms-green: #6dc17b;       /* alfa-green */
    --rooms-yellow: #fed400;      /* alfa-yellow */
    --rooms-light-blue: #c8e9f0;  /* alfa-light-blue */
    --rooms-light-grey: #f1f1f2;  /* alfa-light-grey */
    --rooms-grey: #d8d8d9;        /* alfa-grey */
    --rooms-black: #130c0e;       /* alfa-black */
    --rooms-muted: #5b6472;
    --rooms-border: #e2e6ee;

    container-type: inline-size;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
    display: flex;
    flex-direction: column;
    gap: 28px;
    color: var(--rooms-black);
}

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

.alfa-rooms__group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rooms-blue);
}

.alfa-rooms__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@container (min-width: 440px) {
    .alfa-rooms__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 660px) {
    .alfa-rooms__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.alfa-rooms__card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--rooms-border);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(21, 67, 150, 0.06);
}

.alfa-rooms__card--sold-out {
    background: var(--rooms-light-grey);
    box-shadow: none;
}

.alfa-rooms__card--upgrades {
    background: #eef8fa;
    border-color: var(--rooms-light-blue);
    box-shadow: none;
}

.alfa-rooms__card-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alfa-rooms__card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    line-height: 1.2;
    color: var(--rooms-blue);
}

.alfa-rooms__card--sold-out .alfa-rooms__card-title,
.alfa-rooms__card--sold-out .alfa-rooms__row-label {
    color: var(--rooms-muted);
}

.alfa-rooms__card-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--rooms-muted);
}

.alfa-rooms__divider {
    height: 1px;
    background: var(--rooms-border);
}

.alfa-rooms__card--upgrades .alfa-rooms__divider {
    background: var(--rooms-light-blue);
}

.alfa-rooms__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.alfa-rooms__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
}

.alfa-rooms__row-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 15px;
    font-weight: 500;
    font-variation-settings: 'wght' 500;
    line-height: 1.25;
}

.alfa-rooms__row-note {
    font-size: 13px;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
    color: var(--rooms-muted);
}

.alfa-rooms__badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
    line-height: 1.3;
    white-space: nowrap;
}

.alfa-rooms__badge--available {
    background: var(--rooms-yellow);
    color: var(--rooms-black);
}

.alfa-rooms__badge--low {
    background: var(--rooms-yellow);
    color: var(--rooms-black);
}

.alfa-rooms__badge--sold-out {
    background: var(--rooms-grey);
    color: #3f4651;
}

.alfa-rooms__supplement {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--rooms-border);
    font-size: 16px;
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    line-height: 1.3;
    color: var(--rooms-blue);
}

.alfa-rooms__supplement--none svg {
    flex-shrink: 0;
    color: var(--rooms-green);
}

/* Pink at 18px bold meets WCAG AA for large text on white. */
.alfa-rooms__supplement--price {
    font-size: 18px;
    color: var(--rooms-pink);
}

.alfa-rooms__supplement--call {
    font-size: 14px;
}

.alfa-rooms__upgrade {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alfa-rooms__upgrade-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    font-variation-settings: 'wght' 700;
}

.alfa-rooms__upgrade-price {
    font-size: 18px;
    color: var(--rooms-pink);
    white-space: nowrap;
}

.alfa-rooms__upgrade-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #4a5568;
}

.alfatravel-room-availability-stale-note {
    margin: 0 0 16px;
    padding: 8px 12px;
    background: #fff6e5;
    border: 1px solid #e0a800;
    border-radius: 8px;
    color: #6a4d00;
    font-size: 14px;
}
