/* Deals of the Year page — scoped styles (does not modify style.css) */

.deals-doty-page {
    --deals-doty-card-padding-top: 32px;
    --deals-doty-card-padding-bottom: calc(var(--deals-doty-card-padding-top) * 1.5);
    --deals-doty-card-title-button-gap: var(--about-pillar-card-label-gap, 24px);
    --deals-doty-card-padding-x: 28px;
    --deals-doty-media-height: clamp(200px, 22vw, 260px);
    background: #FFFFFF;
    padding: 0 0 64px;
}

.deals-doty-page .deals-doty-wrapper {
    max-width: 1500px;
}

.deals-doty-page .deals-doty-showcase {
    display: block;
}

.deals-doty-page .deals-doty-header {
    padding-top: 48px;
    margin-bottom: 0;
}

.deals-doty-page .deals-doty-header .about-subsection-title {
    margin: 0 0 var(--about-element-gap, 28px);
}

.deals-doty-page .deals-doty-header .about-archive-description {
    margin: 0;
    max-width: none;
}

.deals-doty-page .deals-doty-showcase .deals-doty-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--about-pillar-card-gap, 24px);
    margin-top: var(--about-element-gap, 28px);
    margin-bottom: 0;
}

.deals-doty-page .deals-doty-showcase .deals-doty-feature-card {
    --deals-doty-showcase-edge: 24px;
    --deals-doty-showcase-title-button-gap: clamp(24px, 2.5vw, 36px);
    --deals-doty-media-height: clamp(230px, 20vw, 290px);
    --deals-doty-card-padding-x: var(--about-pillar-card-padding-x, 28px);
}

.deals-doty-page .deals-doty-showcase .deals-doty-feature-card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--deals-doty-showcase-title-button-gap);
    padding: var(--deals-doty-showcase-edge) var(--deals-doty-card-padding-x);
}

.deals-doty-page .deals-doty-showcase .deals-doty-feature-card-copy {
    flex: 0 1 auto;
    min-height: 0;
}

.deals-doty-page .deals-doty-showcase .deals-doty-feature-card-title {
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.35;
}

.deals-doty-page .deals-doty-showcase .deals-doty-feature-card-actions {
    position: static;
    bottom: auto;
    left: auto;
    margin: 0;
    margin-top: auto;
    flex-shrink: 0;
    max-width: none;
}

.deals-doty-page .deals-doty-feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--about-card-gap, 40px);
    margin-top: var(--about-element-gap, 28px);
    margin-bottom: 0;
}

.deals-doty-page .deals-doty-feature-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    height: auto;
    background: #FFFFFF;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-sizing: border-box;
}

.deals-doty-page .deals-doty-feature-card-media {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: var(--deals-doty-media-height);
    min-height: var(--deals-doty-media-height);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #0c1730;
    overflow: hidden;
}

.deals-doty-page .deals-doty-feature-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
}

.deals-doty-page .deals-doty-feature-card--china .deals-doty-feature-card-media {
    background: #0c1730;
}

.deals-doty-page .deals-doty-feature-card-body {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    min-height: 0;
    padding: var(--deals-doty-card-padding-top) var(--deals-doty-card-padding-x) calc(var(--deals-doty-card-padding-bottom) + var(--about-explore-btn-reserve, 66px));
    box-sizing: border-box;
}

.deals-doty-page .deals-doty-feature-card-copy {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--deals-doty-card-title-button-gap);
    width: 100%;
    min-height: 0;
}

.deals-doty-page .deals-doty-feature-card-title {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(16px, 1.5vw, 24px);
    line-height: 1.3;
    font-weight: 700;
    color: #303030;
    text-align: left;
}

.deals-doty-page .deals-doty-feature-card-desc {
    margin: 0;
    width: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: var(--about-card-label-size, calc(17px * 1.1 - 2px));
    line-height: var(--about-card-label-line-height, calc(25px * 1.1 - 2px));
    font-weight: 400;
    color: #303030;
    text-align: left;
}

.deals-doty-page .deals-doty-feature-card-actions {
    position: absolute;
    bottom: var(--deals-doty-card-padding-bottom);
    left: var(--deals-doty-card-padding-x);
    margin: 0;
    padding: 0;
    align-self: flex-start;
    width: auto;
    max-width: calc(100% - (2 * var(--deals-doty-card-padding-x)));
    flex-shrink: 0;
}

.deals-doty-page .deals-doty-archive-section {
    margin-top: var(--about-section-spacing, 80px);
    margin-bottom: 0;
}

.deals-doty-page .deals-doty-archive-section .deals-doty-feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--about-card-gap, 40px);
    margin-top: 0;
    margin-bottom: var(--about-element-gap, 28px);
}

.deals-doty-page .deals-doty-archive-section .deals-doty-feature-card {
    flex-direction: row;
    align-items: stretch;
    min-height: clamp(240px, 24vw, 300px);
}

.deals-doty-page .deals-doty-archive-section .deals-doty-feature-card-body {
    flex: 1 1 auto;
    align-self: stretch;
    min-height: clamp(240px, 24vw, 300px);
    /* Slightly more top padding; modest gap before the media column */
    padding-top: 44px;
    padding-right: clamp(28px, 3vw, 40px);
}

.deals-doty-page .deals-doty-archive-section .deals-doty-feature-card-desc {
    /* Fill the text column up to the green-line bound (just before the image) */
    max-width: 100%;
}

.deals-doty-page .deals-doty-archive-section .deals-doty-feature-card-media {
    flex: 0 0 clamp(320px, 34vw, 420px);
    width: clamp(320px, 34vw, 420px);
    max-width: 420px;
    height: auto;
    min-height: 100%;
    align-self: stretch;
}

.deals-doty-page .deals-doty-archive-section .about-subsection-title {
    margin: 0 0 var(--about-element-gap, 28px);
}

.deals-doty-page.about-page .about-archive-map {
    width: 100%;
    margin-bottom: 8px;
    cursor: zoom-in;
}

.deals-doty-page.about-page .about-archive-map-trigger {
    display: block;
    cursor: zoom-in;
    text-decoration: none;
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.deals-doty-page.about-page .about-archive-map-trigger:focus,
.deals-doty-page.about-page .about-archive-map-trigger:focus-visible,
.deals-doty-page.about-page .about-archive-map-trigger:active {
    outline: none;
    box-shadow: none;
    border: none;
}

.deals-doty-page.about-page .about-archive-map-image {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
    border: none;
    outline: none;
}

@media (max-height: 900px) {
    .deals-doty-page .deals-doty-header {
        padding-top: 32px;
    }

    .deals-doty-page .deals-doty-header .about-subsection-title {
        margin-bottom: 20px;
    }

    .deals-doty-page {
        --deals-doty-media-height: clamp(180px, 20vw, 220px);
    }

    .deals-doty-page .deals-doty-feature-card-body {
        --deals-doty-card-padding-top: 28px;
        --deals-doty-card-padding-bottom: calc(var(--deals-doty-card-padding-top) * 1.5);
        --deals-doty-card-title-button-gap: 20px;
        --deals-doty-card-padding-x: 24px;
        padding: var(--deals-doty-card-padding-top) var(--deals-doty-card-padding-x) calc(var(--deals-doty-card-padding-bottom) + var(--about-explore-btn-reserve, 66px));
    }

    .deals-doty-page .deals-doty-showcase .deals-doty-feature-card-body {
        padding: var(--deals-doty-showcase-edge, 24px) var(--deals-doty-card-padding-x);
    }

    .deals-doty-page .deals-doty-feature-card-title {
        font-size: clamp(15px, 1.4vw, 20px);
        line-height: 1.35;
    }
}

@media (max-width: 900px) {
    .deals-doty-page {
        padding: 16px 0 48px;
        --deals-doty-media-height: clamp(200px, 52vw, 280px);
    }

    .deals-doty-page .deals-doty-feature-list {
        gap: 16px;
        margin-top: 20px;
    }

    .deals-doty-page .deals-doty-showcase .deals-doty-feature-list {
        grid-template-columns: 1fr;
    }

    .deals-doty-page .deals-doty-showcase .deals-doty-feature-card {
        --deals-doty-showcase-edge: 20px;
        --deals-doty-showcase-title-button-gap: clamp(20px, 5vw, 28px);
        --deals-doty-media-height: clamp(295px, 75vw, 385px);
        --deals-doty-card-padding-x: 20px;
    }

    .deals-doty-page .deals-doty-showcase .deals-doty-feature-card-actions {
        position: static;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: auto;
        max-width: none;
    }

    .deals-doty-page .deals-doty-feature-card-body {
        --deals-doty-card-padding-top: 24px;
        --deals-doty-card-padding-bottom: calc(var(--deals-doty-card-padding-top) * 1.5);
        --deals-doty-card-title-button-gap: 16px;
        --deals-doty-card-padding-x: 20px;
        width: 100%;
        align-items: stretch;
        min-height: 0;
        padding: var(--deals-doty-card-padding-top) var(--deals-doty-card-padding-x) calc(var(--deals-doty-card-padding-bottom) + var(--about-explore-btn-reserve, 66px));
    }

    .deals-doty-page .deals-doty-feature-card-actions {
        position: absolute;
        bottom: var(--deals-doty-card-padding-bottom);
        left: var(--deals-doty-card-padding-x);
        right: var(--deals-doty-card-padding-x);
        margin: 0;
        padding: 0;
        width: auto;
        max-width: none;
        align-self: stretch;
    }

    .deals-doty-page .deals-doty-feature-card-actions .about-explore-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    .deals-doty-page .deals-doty-archive-section {
        margin-top: 48px;
    }

    .deals-doty-page .deals-doty-archive-section .deals-doty-feature-card {
        flex-direction: column-reverse;
        min-height: 0;
    }

    .deals-doty-page .deals-doty-archive-section .deals-doty-feature-card-body {
        min-height: 0;
        padding-top: var(--deals-doty-card-padding-top);
        padding-right: var(--deals-doty-card-padding-x);
    }

    .deals-doty-page .deals-doty-archive-section .deals-doty-feature-card-desc {
        max-width: none;
    }

    .deals-doty-page .deals-doty-archive-section .deals-doty-feature-card-media {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        height: clamp(220px, 52vw, 320px);
        min-height: clamp(220px, 52vw, 320px);
    }
}
