/* ==================== HEADER ==================== */

.header {
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
    align-items: flex-start;
    padding: 1rem 4rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    z-index: 988;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-height: 100px;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.header-content-logo {
    margin-right: auto;
    max-width: 280px;
    max-height: 280px;
    width: auto;
    height: auto;
    cursor: pointer;
}

.header-content-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

/* ==================== HEADER BUTTONS ==================== */

/* Secondary Button (Phone) */
.hdr-sec-btn {
    display: flex;

}

.hdr-sec-btn button {
    font-family: 'PlusJakartaSans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    background-color: #FFFFFF;
    color: #0F0F0F;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hdr-sec-btn button:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

.hdr-sec-btn button img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Primary Button (Login) */
.hdr-prm-btn {
    display: flex;
    margin-left: 0.6rem;
}

.hdr-prm-btn button {
    font-family: 'PlusJakartaSans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #B704F6;
    color: #EEFDFD;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hdr-prm-btn button:hover {
    background-color: #9D03D1;
}

.hdr-phn-mbl-btn {
    background-color: #B704F6;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 1rem;
}

/* Make the icon inside WHITE */
.hdr-phn-mbl-btn img {
    width: 20px;
    height: 20px;
    /* Convert any colored icon to white */
    filter: brightness(0) invert(1);
}

/* ==================== CLICKABLE CUSTOM INPUT ==================== */

/* .custom-input.location-clickable .input-container,
.custom-input .input-container[onclick] {
    cursor: pointer;
}

.custom-input input[readonly] {
    cursor: pointer;
    pointer-events: none;
    user-select: none;
}

.custom-input input[readonly]:focus {
    outline: none;
} */

/* ==================== SELECT LOCATION WIDGET ==================== */

.select-location-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* padding: 1.5rem; */
    box-sizing: border-box;
    min-height: 300px;
    max-height: 70vh;
    overflow-y: auto;
}

.select-location-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.select-location-spacer {
    flex: 1;
}

.select-location-divider {
    width: 100%;
    height: 1px;
    background-color: #E5E7EB;
    margin: 1.5rem 0;
}

.select-location-content {
    display: flex;
    width: 100%;
    gap: 1rem;
}

.select-location-spacer-side {
    flex: 1;
}

.select-location-grid {
    flex: 6;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    row-gap: 1.5rem;
    justify-content: center;
}

/* ==================== LOCATION TILE ==================== */

.location-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.location-tile:hover {
    transform: translateY(-3px);
}

.location-tile-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #F3F4F6;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    background-size: cover;
    background-position: center;
}

.location-tile-circle.selected {
    border-color: #B704F6;
}

.location-tile-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #0F0F0F;
    text-align: center;
    font-family: 'PlusJakartaSans', sans-serif;
}

.location-tile-title.selected {
    color: #B704F6;
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */

/* Desktop Large - 1440px and above */
@media (min-width: 1440px) {
    .header {
        padding: 1rem 5rem;
    }

    .header-content-logo {
        max-width: 300px;
    }

    .header-content-nav {
        gap: 2rem;
    }
}

/* Desktop - 1200px to 1439px */
@media (min-width: 1200px) and (max-width: 1439px) {
    .header {
        padding: 1rem 3.5rem;
    }

    .header-content-nav {
        gap: 1.75rem;
    }
}

/* Tablet Large - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .header {
        padding: 0.875rem 2.5rem;
    }

    .header-content-logo {
        max-width: 240px;
    }

    .header-content-nav {
        gap: 1.25rem;
    }

    .hdr-sec-btn button,
    .hdr-prm-btn button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .hdr-sec-btn button img {
        width: 18px;
        height: 18px;
    }
}

/* Tablet - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .header {
        padding: 0.75rem 2rem;
    }

    .header-content-logo {
        max-width: 220px;
    }

    .header-content-nav {
        gap: 1rem;
    }

    /* Hide search and location on tablet */
    .header-content-nav .custom-input-container:nth-child(1),
    .header-content-nav .custom-input-container:nth-child(2) {
        display: none;
    }

    .hdr-sec-btn button,
    .hdr-prm-btn button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* Mobile - 767px and below */
@media (max-width: 767px) {
    .header {
        padding: 0.75rem 1.5rem;
    }

    .header-content-logo {
        max-width: 180px;
        margin-right: auto;
    }

    /* HIDE ALL NAVIGATION ITEMS ON MOBILE - ONLY LOGO VISIBLE */
    .header-content-nav {
        display: none;
    }

    .hdr-prm-btn {
        display: flex;
        margin-right: 0.4rem;
    }

    /* Optional: Add hamburger menu button here if needed */
    .header-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
    }

    .select-location-widget {
        padding: 1rem;
    }

    .select-location-spacer-side {
        display: none;
    }

    .select-location-grid {
        gap: 1.5rem;
        row-gap: 1rem;
    }

    .location-tile-circle {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Mobile Small - 479px and below */
@media (max-width: 479px) {
    .header {
        padding: 0.625rem 1rem;
    }

    .header-content-logo {
        max-width: 160px;
    }
}

/* Mobile Extra Small - 360px and below */
@media (max-width: 360px) {
    .header {
        padding: 0.5rem 0.75rem;
    }

    .header-content-logo {
        max-width: 140px;
    }
}