.antologa-container {
    background-color: transparent;
    padding: 2.5rem; /* 40px -> 2.5rem */
    border-radius: 1rem; /* 12px -> 0.75rem */
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
}

/* Tab Styling */
.nav-tab {
    color: var(--antologa-white);
    background-color: var(--antologa-white);
    font-weight: 600;
    letter-spacing: 0.05rem;
    cursor: pointer;
    padding: 0.5em 1em;
    transition: color 0.3s;
    background: transparent;
    border: none;
    border-radius: 1rem;
    outline: none;
    font-size: 1rem;
}

    .nav-tab:hover {
        color: var(--antologa-dark);
        background-color: var(--antologa-white);
        border-radius: 1rem;
    }

    .nav-tab.active {
        color: var(--antologa-white);
        border: 2px solid var(--antologa-white); /* Border -> px */
        border-radius: 1rem;
    }

/* Search Bar Pill */
.search-bar-pill {
    background-color: white;
    border: 1px solid var(--antologa-light-gray);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 850px;
    height: 4.125rem;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 20;    
    padding-right: 0.5rem;
}

/* Individual Clickable Sections */
.search-section {
    cursor: pointer;
    border-radius: 1rem;
    padding: 0.5rem 1.5rem;
    flex-grow: 1;
    position: relative;
    transition: background-color 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .search-section:hover {
        background-color: var(--antologa-white);
    }

    .search-section.active {
        background-color: var(--antologa-white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Shadows -> px */
        z-index: 21;
    }

    .search-section:last-of-type {
        padding-right: 4.5rem; /* Adds space for the button */
    }

/* Typography */
.label-text {
    font-size: 0.75rem; /* 12px -> 0.75rem */
    font-weight: 700;
    color: var(--antologa-dark);
    letter-spacing: 0.04em;
}

.placeholder-text {
    font-size: 0.875rem; /* 14px -> 0.875rem */
    color: var(--antologa-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.value-text {
    font-size: 0.875rem; /* 14px -> 0.875rem */
    font-weight: 500;
    color: var(--antologa-dark);
}

/* Search Button */
.search-btn-container {
    position: absolute; /* Stick to the parent */
    right: 0.5rem; /* Distance from the right edge */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Perfect vertical centering */
    padding-left: 0; /* Remove the old hack */
    z-index: 30; /* Ensure it sits on top */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.search-btn {
    background-color: var(--antologa-primary) !important;
    color: var(--antologa-white);
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* Adds slight depth */
}

    .search-btn:hover {
        background-color: var(--antologa-secondary) !important;
        transform: scale(1.05); /* Slight grow effect on hover */
    }

/* Popover Customization */
.mud-popover {
    border-radius: 1rem !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important; /* Shadows -> px */
    margin-top: 0.75rem; /* 12px -> 0.75rem */
    overflow: hidden;
}

.location-input-container {
    padding: 1rem; /* 16px -> 1rem */
    background-color: white;
    border-radius: 1rem; /* 24px -> 1.5rem */
    width: 21.875rem; /* 350px -> 21.875rem */
}

/* Counter Buttons */
.counter-btn {
    border: 1px solid var(--antologa-gray) !important; /* Border -> px */
    color: var(--antologa-gray) !important;
    width: 2rem; /* 32px -> 2rem */
    height: 2rem;
}

    .counter-btn:hover {
        border-color: var(--antologa-dark) !important;
        color: var(--antologa-dark) !important;
    }



/* ===================================
   MOBILE & TABLET SEARCH BAR TRANSFORMATION
   =================================== */
@media (max-width: 1279px) {
    /* 1. Container: Remove padding to let the card handle spacing */
    .antologa-container {
        padding: 0 !important;
        margin-top: 2rem;
    }

    /* 2. Main Card (Pill): Transform to vertical stack */
    .search-bar-pill {
        flex-direction: column !important;
        width: 75vw;
        height: auto !important;
        background-color: white !important;
        border: none !important;
        border-radius: 1.5rem !important;
        padding: 1.5rem !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
        align-items: stretch !important;
        gap: 0;
    }

    /* 3. Search Sections (Inputs) */
    .search-section {
        width: 100% !important;
        height: auto !important;
        padding: 1rem 0 !important; /* Vertical spacing for inputs */
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        align-items: flex-start !important;
    }

        /* 4. Special Handling for Sections containing the Button (Cars Tab)
       or the Last Input (Stays/Experiences) to remove borders */

        /* Remove border from the section BEFORE the button (usually the last input) */
        .search-section:nth-last-child(2) {
            border-bottom: none !important;
        }

        /* Remove border/padding from the very last section (if it's just the button wrapper like in Cars) */
        .search-section:last-of-type {
            border-bottom: none !important;
            padding-bottom: 0 !important;
            padding-right: 0 !important;
            /* If this section ONLY holds the button (Cars tab), remove vertical padding so button fits flush */
            padding-top: 0 !important;
            margin-top: 1.5rem; /* Add the gap here instead */
        }

    /* 5. Button Container: Force Layout */
    .search-btn-container {
        position: static !important; /* No absolute positioning */
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        display: block !important;
    }

    /* If the button is inside the "Guests" section (Stays Tab), 
       we need to separate it from the guest counter text */
    .search-section .search-btn-container {
        margin-top: 1.5rem !important;
    }

    /* Remove margin if the parent section already added it (Cars Tab wrapper) */
    .search-section:last-of-type > .search-btn-container {
        margin-top: 0 !important;
    }

    /* 6. Button Style: Wide Pill + Primary Color */
    .search-btn {
        width: 100% !important;
        height: 3.5rem !important;
        border-radius: 2rem !important;
        /* Reverted to Primary Color */
        background-color: var(--antologa-primary) !important;
        color: var(--antologa-white) !important;
        /* Optional: Soft shadow matching the primary color */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

        /* 7. Inject "Search" Text */
        .search-btn::after {
            content: "Search";
            margin-left: 0.5rem;
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            display: block;
        }

        .search-btn svg {
            font-size: 1.25rem;
        }
}