/* --------------------------------------------------------- */
/* Scoped styles for Spa Listings Element                    */
/* --------------------------------------------------------- */
.brxe-spa-listings {
    max-width: var(--site-container-width);
    margin: 75px auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.brxe-spa-listings .spa-listings-heading {
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-size: 1.6em;
}

.brxe-spa-listings .spa-nav-container {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.brxe-spa-listings .spa-nav {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0;
    overflow-x: auto; 
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;
}

.brxe-spa-listings .spa-nav::-webkit-scrollbar {
    display: none;
}

.brxe-spa-listings .spa-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 234, 207, 0.95);
    color: var(--color-primary);
    width: 30px;
    height: 35px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.brxe-spa-listings .spa-scroll-arrow.right {
    right: 0;
    border-radius: 8px 0 0 8px;
    padding-left: 3px;
}

.brxe-spa-listings .spa-scroll-arrow.left {
    left: 0;
    border-radius: 0 8px 8px 0;
    padding-right: 3px;
}

.brxe-spa-listings .spa-nav-container.can-scroll-right .spa-scroll-arrow.right,
.brxe-spa-listings .spa-nav-container.can-scroll-left .spa-scroll-arrow.left {
    opacity: 1;
    visibility: visible;
}

.brxe-spa-listings .spa-tab-btn {
    flex: 0 0 auto;
    text-align: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-style: italic;
    color: var(--color-primary);
    font-family: var(--font-primary);
}

.brxe-spa-listings .spa-tab-btn span {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.2s ease-in-out;
    font-size: 1.2em !important;
    white-space: nowrap; 
}

.brxe-spa-listings .spa-tab-btn.active span,
.brxe-spa-listings .spa-tab-btn:hover span {
    background-color: #F4EACF;
}

.brxe-spa-listings .spa-content-wrapper {
    position: relative;
    overflow: hidden;
    transition: min-height 0.5s ease-in-out;
    width: 100%;
}

.brxe-spa-listings .spa-tab-panel {
    background-color: #F4EACF;
    border-radius: 35px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    pointer-events: none;
}

.brxe-spa-listings .spa-tab-panel.active {
    opacity: 1;
    visibility: visible;
    position: relative; 
    pointer-events: auto;
}

.brxe-spa-listings .spa-image-block.with-overlay {
    background-size: cover;
    background-position: center;
    min-height: 600px; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 35px;
}

/* NEW FEATURE: TOP RIGHT CORNER BADGE PILL LOOK */
.brxe-spa-listings .spa-badge {
    position: absolute;
    top: 30px;
    right: 35px;
    z-index: 3; /* Places badge on top of black overlay */
    background-color: #b50606; /* Elegant hot-offer red color from your screenshot */
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 25px;
    font-family: var(--font-secondary), serif;
    font-weight: normal;
    font-size: 0.8em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* NEW FEATURE: TOP LEFT CORNER DURATION BADGE */
.brxe-spa-listings .spa-badge-left {
    position: absolute;
    top: 30px;
    left: 35px;
    z-index: 3;
    background-color: #cb9913;
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 25px;
    font-family: var(--font-secondary), serif;
    font-size: 0.8em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.spa-description {
    margin-bottom: 40px !important;
}

.brxe-spa-listings .spa-price-block {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    font-family: var(--font-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.brxe-spa-listings .spa-price-label {
    font-weight: normal;
}

.brxe-spa-listings .spa-price-original.has-strike {
    text-decoration: line-through;
}

.brxe-spa-listings .spa-price-discounted {
    color: #fff; 
    font-weight: bold;
}

.brxe-spa-listings .spa-price-normal {
    font-weight: bold;
}

.brxe-spa-listings .spa-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.brxe-spa-listings .spa-action-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-secondary), serif;
    text-transform: uppercase;
    font-size: 0.95em;
}

.brxe-spa-listings .spa-action-btn.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.brxe-spa-listings .spa-action-btn.btn-primary:hover {
    opacity: 0.9;
}

.brxe-spa-listings .spa-action-btn.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    transition: background-color 0.6s ease-in-out, color 0.6s ease-in-out, transform 0.3s ease;
}

.brxe-spa-listings .spa-action-btn.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

.brxe-spa-listings .spa-image-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 3;
    font-family: var(--font-secondary);
    margin-bottom: 10px;
    margin-top: 10px;
    margin-right: 30px;
    padding: 0 5px;
    font-size: 0.9em;
    font-style: italic;
    color: #ffffff;
}

.brxe-spa-listings .spa-black-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.brxe-spa-listings .spa-center-text {
    position: relative;
    z-index: 2;
    padding: 50px;
    text-align: center;
    width: 100%;
}

.brxe-spa-listings .spa-overlay-text {
    color: white;
    max-width: 1000px;
    margin: 0 auto;
}

.brxe-spa-listings .spa-overlay-text h2 {
    margin-bottom: 0px;
}

/* Fix for the Spa Features List */
.brxe-spa-listings .spa-overlay-text ul {
    text-align: left;
    padding-left: 20px; /* Gives room for the bullets */
    padding-top:20px;
    margin: 0px auto;
}

.brxe-spa-listings .spa-overlay-text li {
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Fix for Ordered Lists (OL) */
.brxe-spa-listings .spa-overlay-text ol {
    text-align: left;
    padding-left: 20px; /* Slightly more room for numbers */
    margin: 0px auto;
}

.brxe-spa-listings .spa-overlay-text li {
    margin-bottom: 12px;
    line-height: 1.5;
}

/* --------------------------------------------------------- */
/* Alt Style (Toggle On) Logic                               */
/* --------------------------------------------------------- */
.brxe-spa-listings.has-alt-style {
    max-width: none;
    width: 100%;
    background-color: var(--color-quaternary);
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 75px;
    padding-bottom: 0px;
}

.brxe-spa-listings.has-alt-style > * {
    max-width: var(--site-container-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.brxe-spa-listings.has-alt-style .spa-listings-heading,
.brxe-spa-listings.has-alt-style .spa-tab-btn {
    color: #000000;
}

.brxe-spa-listings.has-alt-style .spa-tab-btn.active span,
.brxe-spa-listings.has-alt-style .spa-tab-btn:hover span {
    background-color: #faf7ef;
}

.brxe-spa-listings.has-alt-style .spa-scroll-arrow {
    background: rgba(250, 247, 239, 0.95);
    color: #000000;
}

/* --------------------------------------------------------- */
/* Responsive Styles                                         */
/* --------------------------------------------------------- */
@media (max-width: 768px) {
    .brxe-spa-listings .spa-image-block.with-overlay {
        min-height: 400px !important; 
        height: auto !important; 
        display: flex;
        flex-direction: column;
    }

    .brxe-spa-listings .spa-badge {
        top: 15px;
        right: 15px;
        padding: 6px 16px;
        font-size: 0.85em;
    }

    .brxe-spa-listings .spa-badge-left {
        top: 15px;
        left: 15px;
        padding: 6px 16px;
        font-size: 0.85em;
    }

    .brxe-spa-listings .spa-black-overlay {
        background: radial-gradient(
            circle at center, 
            rgba(0, 0, 0, 0.85) 0%,   
            rgba(0, 0, 0, 0.4) 60%,    
            rgba(0, 0, 0, 0.1) 90%,    
            transparent 100%           
        );
    }

    .brxe-spa-listings .spa-center-text {
    padding: 45px;
}

    .brxe-spa-listings .spa-nav {
        justify-content: flex-start !important; 
        padding-left: 20px;
        padding-right: 40px; 
    }

    .brxe-spa-listings .spa-overlay-text {
        font-size: 0.85em !important;
        margin-top:50px;
    }

    .brxe-spa-listings .spa-tab-btn {
        font-size: 0.8em;
    }

    .brxe-spa-listings {
        margin-top: 30px;
        margin-bottom: 0px !important;
    }

    .brxe-spa-listings.has-alt-style {
        padding-top: 30px;
        padding-bottom: 0px;
    }
    
    .brxe-spa-listings.has-alt-style > * {
        padding-left: 0px;
        padding-right: 0px;
    }
    
    .brxe-spa-listings .spa-content-wrapper .spa-tab-panel,
    .brxe-spa-listings .spa-image-block.with-overlay {
        border-radius: 0px !important;
    }

    .spa-image-block h2 {
        font-size: 1.8em !important;
        line-height:normal;
        margin-bottom:10px !important;
    }
}