/* Discovery surfaces: accommodation and travel videos. Selectors stay component-scoped. */
.stay-heading,
.video-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--tt-space-3);
    margin-bottom: var(--tt-space-3);
}

.stay-note,
.video-note {
    margin: 0;
    padding: var(--tt-space-3);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    background: var(--tt-surface);
    color: var(--tt-muted);
}

.stay-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tt-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.stay-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: var(--tt-space-3);
    align-items: start;
    min-width: 0;
    padding: var(--tt-space-3);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    background: var(--tt-surface);
}

.stay-media {
    position: relative;
    overflow: hidden;
    width: 104px;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: #efe9dd;
}

.stay-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--tt-muted);
    font-size: 28px;
}

.stay-media-failed .stay-credit {
    display: none;
}

.stay-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stay-credit {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 3px 6px;
    background: rgb(36 34 31 / 72%);
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.stay-credit:hover {
    color: #fff;
}

.stay-credit:focus-visible {
    outline: 2px solid #fffdfa;
    outline-offset: -2px;
}

.stay-details {
    display: flex;
    flex-direction: column;
    gap: var(--tt-space-2);
    min-width: 0;
}

.stay-name {
    margin: 0;
    color: var(--tt-ink);
    font-family: var(--tt-font-heading);
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.stay-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--tt-space-2);
    margin: 0;
}

.stay-kind,
.stay-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eae4d5;
    color: #3f3b35;
    font-size: 12px;
    line-height: 1.2;
}

.stay-website {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    width: fit-content;
    color: var(--tt-accent);
    font-weight: 600;
    text-decoration: none;
}

.stay-website:hover {
    color: var(--tt-accent-hover);
}

.stay-prices {
    flex: 0 1 auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--tt-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.video-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: var(--tt-space-2);
    align-items: stretch;
    min-width: 0;
    padding: var(--tt-space-2);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    background: var(--tt-surface);
}

.video-player {
    min-width: 0;
    border-radius: 6px;
}

.video-player:focus {
    outline: none;
}

.video-player:focus-visible {
    outline: 2px solid var(--tt-accent);
    outline-offset: 2px;
}

.video-activate {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    width: 118px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: #efe9dd;
}

.video-thumbnail-failed {
    background: #eae4d5;
}

.video-thumbnail-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--tt-muted);
    font-size: 30px;
}

.video-thumbnail-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: rgb(36 34 31 / 76%);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 2px 8px rgb(36 34 31 / 18%);
}

.video-embed {
    display: block;
    width: 118px;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 6px;
    background: #000;
}

.video-details {
    display: flex;
    flex-direction: column;
    gap: var(--tt-space-2);
    justify-content: space-between;
    min-width: 0;
    padding: 2px 0;
}

.video-title {
    color: var(--tt-ink);
    font-family: var(--tt-font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.video-title:hover {
    color: var(--tt-accent-hover);
    text-decoration: underline;
}

.video-watch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    margin-top: -4px;
    color: var(--tt-accent);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.video-watch:hover {
    color: var(--tt-accent-hover);
}

.video-expansion {
    margin-top: var(--tt-space-3);
}

.video-extra[hidden] {
    display: none;
}

.video-more-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--tt-space-2);
    margin-top: var(--tt-space-3);
}

.video-count {
    margin: 0;
    color: var(--tt-muted);
    font-size: 12px;
}

.video-expand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px var(--tt-space-3);
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    background: var(--tt-surface);
    color: var(--tt-accent);
    font-weight: 600;
    cursor: pointer;
}

.video-expand:hover {
    color: var(--tt-accent-hover);
    border-color: var(--tt-accent);
}

@media (max-width: 899px) {
    .stay-grid,
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .stay-grid,
    .video-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stay-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: var(--tt-space-2);
    }

    .stay-media,
    .video-thumbnail,
    .video-embed {
        width: 88px;
    }

    .video-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: var(--tt-space-2);
        align-items: center;
    }

    .video-more-row {
        align-items: stretch;
    }

    .video-expand {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .stay-item,
    .video-card {
        padding: var(--tt-space-2);
    }

    .stay-media {
        width: 76px;
    }
}
