﻿
.title-header div {
    font-family: 'Chesna Grotesk', sans-serif;
    font-weight: 700;
    display: inline-block;
    width: auto;
    text-align: center;
    vertical-align: middle;
    color: #ba9446;
    text-transform: uppercase;
}

.contentDiv div {
    font-family: 'Chesna Grotesk', sans-serif;
    font-weight: 300;
    display: inline-block;
    width: auto;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    min-height: 46px;
}

.main-content {
    text-align: center;
    margin: 11px auto 0;
}

.contentDiv {
    padding: 10px 0 4px 0px;
}

.totalPoints {
    text-align: right;
    padding: 20px 49px 10px 0px;
    font-weight: 800;
}

div#rewards-container {
    margin: 0 auto;
}

div#tabsPoint {
    margin: 20px auto 32px;
    display: table;
}

#tabsPoint span {
    background: #ba9446;
    cursor: pointer;
    margin: 0 0 0 10px;
    padding: 15px 25px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    outline: none;
    color: #fff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px #999;
    transition: transform 0.3s ease;
}

#tabsPoint .colorActive {
    background-color: #daa333;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

#tabsPoint span:hover {
    background-color: #daa333;
    transform: translateY(-5px);
}

.profile-page .reservations, .profile-page .certificates, .profile-page .purchases {
    margin: 10px 0 10px 0;
    border-radius: 5px;
    position: relative;
}

.section-header {
    background-color: #000000;
    border-radius: 10px;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    font-size: 22px;
}

    .section-header::after {
        content: '−';
        font-size: 20px;
        color: #cd934a;
    }

.section-header.collapsed::after {
    content: '+';
}

.section-title {
    font-family: 'Chesna Grotesk', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: anchor-center;
    text-transform: uppercase;
}

.section-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    overflow: hidden;
    will-change: transform, opacity;
}

    .section-content.collapsed {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        padding: 0 15px;
        overflow: hidden;
        max-height: 0;
    }

/*.contentDivInfo {
    max-height: 209px;
    overflow: auto;
    display: block;
}*/

@media only screen and (min-width: 0px) and (max-width: 900px) {
    div#rewards-container {
        width: 100%;
        padding: 0 15px 0 15px;
    }

    div#tabsPoint {
        margin: 0px auto 32px;
        display: table;
    }

    #tabsPoint span {
        font-size: 13px;
        display: block;
        margin: 19px 0 0px 10px;
    }

    .main-content.mtnav.active {
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .title-header {
        margin: 0 auto;
        width: 100%;
        display: grid;
        box-sizing: border-box;
    }

    .contentDiv {
        margin: 0 auto;
        display: grid;
    }

    #rewards-container h3 {
        margin: 0 auto;
        width: 265px;
        font-size: 20px;
    }

    .totalPoints {
        width: auto;
        text-align: center;
        padding: 16px 0 0 0;
    }
}

.point-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f8f9fd;
    margin: auto;
    width: 100%;
    max-width: 680px;
}

    .point-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

.point-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 20px;
}

.loyalty {
    background: linear-gradient(45deg, #36D1DC, #5B86E5);
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.subcategory-title {
    font-family: 'Chesna Grotesk', sans-serif;
    font-weight: 700;
    text-align: left;
    padding: 8px 0px 7px 0;
    margin: 0 0 20px 0px;
    font-size: 20px;
    position: relative;
    text-transform: uppercase;
}

    .subcategory-title::after {
        content: "";
        position: absolute;
        bottom: 0px;
        left: 0px;
        width: 60px;
        height: 2px;
        background-color: #cd934a;
    }

    .future-trips {
        margin: 0px 0 33px 0;
    }

/* ==============================
   Points Summary Styles
   ============================== */
.rewards-summary .summary-card {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 16px;
    background: #ffffff;
    border-top: 1px solid #cc944b;
    padding: 8px 15px;
    box-shadow: 0 6px 18px rgba(79, 158, 226, 0.12);
    margin-bottom: 8px;
    border-bottom: 1px solid #cc944b;
}

.summary-content h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* .summary-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 8px 20px;
} */

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 40px;
    gap: 1rem;
}

    .summary-item .label {
        font-family: 'Chesna Grotesk', sans-serif;
        font-weight: 700;
        font-size: 2rem;
        color: #000;
    }

    .summary-item .value {
        font-family: 'Chesna Grotesk', sans-serif;
        font-weight: 700;
        color: black;
        font-size: 2rem;
    }

/* Responsive adjustments */
@media only screen and (max-width: 900px) {
    .section-header {
        position: relative !important;
        top: 0;
    }

    .new-certificates {
        width: 100% !important;
    }

    .rewards-summary {
        max-width: 100%;
    }

    .rewards-summary .summary-card {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 12px;
    }

    .summary-item {
        flex-direction: column;
        margin-right: 0px;
    }

        .summary-item .label {
            font-size: 1.4rem;
        }

    .btn-newcertificate {
        width: 100% !important;
    }

    .profile-page .renew-button .refresh-icon {
        width: 1.5rem;
    }

    .profile-page .renew-button {
        height: auto;
    }

    .profile-page #my-wpdollars .item-details {
        flex-direction: column;
    }

    /* .summary-details {
        grid-template-columns: 1fr;
        gap: 10px;
    } */
}

/* ==============================
   Responsive table-like grids per section
   ============================== */
/* Reservations: 7 columns */
.reservations .future-trips .title-header,
.reservations .future-trips .contentDiv,
.reservations .enjoyed-trips .title-header,
.reservations .enjoyed-trips .contentDiv {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 8px;
}

.upgrades .title-header,
.upgrades .contentDiv,
.renews .title-header,
.renews .contentDiv {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 8px;
}

/* Certificates: future (5 columns), enjoyed (6 columns) */
.certificates .future-trips .title-header,
.certificates .future-trips .contentDiv,
.certificates .enjoyed-trips .title-header,
.certificates .enjoyed-trips .contentDiv {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 8px;
}

/* Purchases: renews/upgrades (3 columns) */
.purchases .renews .title-header,
.purchases .renews .contentDiv,
.purchases .upgrades .title-header,
.purchases .upgrades .contentDiv {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 8px;
}

.reservations,
.certificates,
.renews,
.upgrades {
    margin-top: 20px;
    margin-left: 30px;
    margin-right: 30px;
}

.contentDivInfo {
    padding-left: 9px;
}

    .contentDivInfo .contentDiv:not(:last-of-type) {
        border-bottom: 1.5px solid #cc944b;
    }

.reservation-icon {
    background: url(/Content/images/icons/reservations.png);
    height: 21px;
    width: 21px;
    margin-right: 6px;
}

.certificate-icon {
    background: url(/Content/images/icons/certificates.png);
    height: 21px;
    width: 21px;
    margin-right: 6px;
}

.renewal-icon {
    background: url(/Content/images/icons/renewals.png);
    height: 25px;
    width: 25px;
    margin-right: 6px;
}

.upgrade-icon {
    background: url(/Content/images/icons/upgrades.png);
    height: 21px;
    width: 21px;
    margin-right: 6px;
}

.btn-newcertificate {
    font-family: 'Chesna Grotesk', sans-serif;
    font-weight: 400;
    padding: 10px 24px;
    background: #cd934a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin: 0px auto 0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(188, 152, 76, 0.3);
    text-decoration: none;
    display: flex;
    justify-content: center;
    width: 40%;
}

.btn-newcertificate:focus, .btn-newcertificate:hover {
    text-decoration: none;
    color: white;
}

.reservations .title-header div:first-child,
.certificates .title-header div:first-child {
    text-align: left;
}

/* On narrow screens, keep grid but allow horizontal scroll for clarity */
    @media only screen and (max-width: 900px) {
    /* Apply scroll to the shared parent so headers and rows move together */
    .reservations .future-trips,
    .reservations .enjoyed-trips,
    .certificates .future-trips,
    .certificates .enjoyed-trips,
    .purchases .renews,
    .purchases .upgrades {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    /* Let the inner container be visible so it doesn't create nested scroll */
    .contentDivInfo {
        overflow: visible;
    }

    .reservations .future-trips .title-header,
    .reservations .future-trips .contentDiv,
    .reservations .enjoyed-trips .title-header,
    .reservations .enjoyed-trips .contentDiv {
        min-width: 720px;
    }

    .certificates .future-trips .title-header,
    .certificates .future-trips .contentDiv {
        min-width: 600px;
    }

    .certificates .enjoyed-trips .title-header,
    .certificates .enjoyed-trips .contentDiv {
        min-width: 720px;
    }

    .purchases .renews .title-header,
    .purchases .renews .contentDiv,
    .purchases .upgrades .title-header,
    .purchases .upgrades .contentDiv {
        min-width: 480px;
    }
    /* Slightly smaller fonts for compactness */
    .subcategory-title {
        font-size: 18px;
    }

    .title-header div,
    .contentDiv div {
        font-size: 14px;
        padding: 6px 4px;
    }
}

.enjoyed-trips {
    border-top: 1.5px solid #cc944b;
}

    .enjoyed-trips .subcategory-title {
        margin-top: 12px;
    }

    .empty-result {
        font-family: 'Chesna Grotesk', sans-serif;
        font-weight: 300;
        padding: 15px 0;
    }

#reservations-overlay,
#certificates-overlay,
#renews-overlay,
#upgrades-overlay {
    margin-bottom: 6px;
}

.overlay-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 200px;
    font-size: 16px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}