/* ==================================================
 * RENT/BUY PILL SEGMENTED TOGGLE
 * Matches reference: single white pill, orange active
 * ================================================== */

/* Outer centering wrapper — absolute to avoid adding height to hero */
.rent-buy-toggle-container {
    display: flex !important;
    justify-content: center !important;
    position: absolute !important;
    bottom: -30px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The pill itself — single white rounded container */
.pill-toggle,
#pillToggle {
    display: inline-flex !important;
    align-items: center;
    background: rgba(255, 255, 255, 0.55) !important;  /* transparent */
    backdrop-filter: blur(6px);                       /* optionnel */
    border-radius: 999px !important;
    padding: 6px !important;
    gap: 0 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10) !important;
    border: none !important;
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* Each segment button */
.pill-toggle .pill-seg {
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    padding: 13px 48px !important;
    border: none !important;
    background: transparent !important;
    color: #555 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    transition: all 0.25s ease !important;
    outline: none !important;
    box-shadow: none !important;
    white-space: nowrap;
    min-width: 110px;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.3px;
    font-family: inherit;
}

/* Active segment = orange fill + white text */
.pill-toggle .pill-seg.active {
    background: #e63020 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(212, 135, 14, 0.35) !important;
}

/* Hover on inactive segment */
.pill-toggle .pill-seg:not(.active):hover {
    color: #e63020 !important;
    background: rgba(212, 135, 14, 0.06) !important;
}

/* ========================
 * RESPONSIVE
 * ======================== */
@media (max-width: 575px) {
    .rent-buy-toggle-container {
        bottom: -25px !important;
    }

    .pill-toggle .pill-seg {
        padding: 11px 34px !important;
        font-size: 15px !important;
        min-width: 90px;
    }
}

/* ========================
 * RTL SUPPORT
 * ======================== */
html[dir="rtl"] .pill-toggle {
    direction: ltr;
}

/* ================================
 * OVERRIDE any old toggle styles
 * ================================ */
.rent-buy-toggle.pill-toggle,
.rent-buy-toggle {
    display: none !important;
}

/* Ensure new pill-toggle with ID is visible */
#pillToggle {
    display: inline-flex !important;
}