/**
 * Location Cards & Sidebar Styles
 * Based on Figma design (node 812:21757)
 */

/* ========================================
   CSS ISOLATION - Reset inherited styles
   ======================================== */
.owl-store-locator,
.owl-store-locator *,
.owl-store-locator *::before,
.owl-store-locator *::after {
    box-sizing: border-box;
}

/* ========================================
   SIDEBAR CONTAINER
   ======================================== */
.owl-store-locator .map_sidebar {
    background-color: #ECF2FF;
    padding: 165px 20px 20px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #11254C #ECF2FF;

    @media(min-width: 768px) {
        padding: 20px;
    }

    @media(min-width: 1024px) {
        width: 450px;
    }

    @media(min-width: 1300px) {
        width: 580px;
        padding: 40px;
    }
}

/* WebKit browsers (Chrome, Safari, Edge) scrollbar */
.owl-store-locator .map_sidebar::-webkit-scrollbar {
    width: 6px;
}

.owl-store-locator .map_sidebar::-webkit-scrollbar-track {
    background: #ECF2FF;
    border-radius: 3px;
}

.owl-store-locator .map_sidebar::-webkit-scrollbar-thumb {
    background-color: #11254C;
    border-radius: 3px;
}

.owl-store-locator .map_sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #0a1a3a;
}

/* Sidebar Title */
.owl-store-locator .sidebar-title {
    font-family: 'Core Sans DS', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 18px;
    line-height: 31px;
    letter-spacing: 1.26px;
    color: #11254C;
    margin: 0;
}

/* ========================================
   SEARCH INPUT
   ======================================== */
.owl-store-locator .search_location_form {
    position: relative;
}

.owl-store-locator .search_location_form label {
    display: none;
}

.owl-store-locator .search-input-wrapper {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 4px;
    box-shadow: 2px 2px 4px 0px rgba(184, 182, 182, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    position: relative;
}

.owl-store-locator .search-input-wrapper .search_location_input {
    border-color: transparent;
    background: transparent;
    flex: 1;
    font-family: 'Core Sans DS', sans-serif;
    font-size: 16px;
    outline: none;
    padding: 12px 16px;
    height: auto;
    color: #222A6C;
    font-weight: 600;
    line-height: normal;
    border-radius: 4px;
}

.owl-store-locator .search-input-wrapper .search_location_input:focus {
    border-color: #222A6C;
}

.owl-store-locator .search-input-wrapper .search_location_input::placeholder {
    color: #888888;
}

.owl-store-locator .search-input-wrapper .search_location_button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   USE MY LOCATION BUTTON
   ======================================== */
.owl-store-locator .use-my-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #11254C;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    padding: 8px 16px;
    padding-top: 11px;
    font-family: 'Core Sans DS', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 16px;
    color: #8BC750;
    letter-spacing: 1.26px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    width: auto;
    align-self: center;
    margin-top: 14px;
    margin-bottom: 0;
    transition: background-color 0.2s ease;
}

.owl-store-locator .use-my-location i {
    flex-shrink: 0;
    font-size: 16px;
}

.owl-store-locator .use-my-location:hover {
    background-color: #1a3566;
}

.owl-store-locator .locator-text {
    font-family: 'Core Sans DS', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 13.33px;
    color: #11254C;
    letter-spacing: 1.26px;
    text-align: center;
    line-height: 1;
    margin-bottom: 18px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.owl-store-locator .locator-text-link {
    color: #11254C;
    text-decoration: underline;
}

/* ========================================
   NEARBY LOCATIONS TEXT
   ======================================== */
.owl-store-locator .nearby-locations-text {
    font-family: 'Core Sans DS', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 18px;
    color: #11254C;
    letter-spacing: 1.26px;
    line-height: 31px;
    margin: 0 0 20px 0;
}

/* ========================================
   STATE SELECTION CARD
   ======================================== */
.owl-store-locator .state-selection-card {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 4px;
    box-shadow: 2px 2px 4px 0px rgba(184, 182, 182, 0.15);
    padding: 20px;
}

.owl-store-locator .state-section {
    width: 100%;
}

.owl-store-locator .state-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.owl-store-locator .state-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.owl-store-locator .state-name {
    font-family: 'Core Sans DS', sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 18px;
    line-height: 31px;
    letter-spacing: 1.26px;
    color: #11254C;
}

.owl-store-locator .state-count {
    font-family: 'Core Sans DS', sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 18px;
    line-height: 31px;
    letter-spacing: 1.26px;
    color: #11254C;
}

.owl-store-locator .state-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.owl-store-locator .state-toggle.expanded .state-chevron {
    transform: rotate(180deg);
}

.owl-store-locator .state-divider {
    border: none;
    border-top: 1px solid #F0F0F0;
    margin: 20px 0;
}

.owl-store-locator .state-locations {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    @media(max-width: 767px) {
        gap: 20px;
    }
}

/* ========================================
   LOCATION CARD
   ======================================== */
.owl-store-locator .location-card {
    background: #FFFFFF;
    border: 1px solid #11254C;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.owl-store-locator .location-card:hover,
.owl-store-locator .location-card.active {
    box-shadow: 2px 2px 8px 0px rgba(34, 42, 108, 0.2);
}

/* Status Tag */
.owl-store-locator .status-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 24px;
}

.owl-store-locator .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.owl-store-locator .status-tag.status-open .status-dot {
    background-color: #0B7B69;
}

.owl-store-locator .status-tag.status-closing-soon .status-dot,
.owl-store-locator .status-tag.status-opening-soon .status-dot {
    background-color: #F47A21;
}

.owl-store-locator .status-tag.status-closed .status-dot {
    background-color: #D32F2F;
}

.owl-store-locator .status-text {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.16;
    color: #003A5D;
}

/* Phase 1 / Phase 2 Status Badges */
.owl-store-locator .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 10px;
    border-radius: 9999px;
    width: fit-content;
}

.owl-store-locator .status-badge.status-coming-soon {
    background-color: #E8EDF5;
    border: 1px solid rgba(17, 37, 76, 0.18);
}

.owl-store-locator .status-badge.status-coming-soon svg path {
    fill: #11254C;
}

.owl-store-locator .status-badge.status-coming-soon .status-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: #11254C;
    white-space: nowrap;
}

.owl-store-locator .status-badge.status-opening-soon {
    background-color: #FEF0E3;
    border: 1px solid rgba(244, 122, 33, 0.25);
}

.owl-store-locator .status-badge.status-opening-soon svg path {
    fill: #C85E0D;
}

.owl-store-locator .status-badge.status-opening-soon .status-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: #C85E0D;
    white-space: nowrap;
}

/* Location Title */
.owl-store-locator .location-title {
    font-family: 'Core Sans DS', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 26px;
    line-height: 31px;
    letter-spacing: 1.26px;
    text-transform: uppercase;
    color: #11254C;
    margin: 0;
}

/* Divider */
.owl-store-locator .location-card .divider {
    border: none;
    border-top: 1px solid #F0F0F0;
    margin: 0;
}

/* Detail Row */
.owl-store-locator .detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.owl-store-locator .detail-left,
.owl-store-locator .detail-right {
    font-family: 'Core Sans DS', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #393939;

    @media(max-width: 767px) {
        font-size: 12px;
    }
}

.owl-store-locator .detail-right a {
    color: #393939;
    text-decoration: none;
}

.owl-store-locator .detail-right a:hover {
    text-decoration: underline;
}

/* Hours Toggle Row */
.owl-store-locator .hours-toggle-row {
    position: relative;
}

.owl-store-locator .hours-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'Core Sans DS', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #393939;

    @media(max-width: 767px) {
        font-size: 12px;
    }
}

.owl-store-locator .hours-toggle .chevron-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.owl-store-locator .hours-toggle.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* Hours Dropdown */
.owl-store-locator .hours-dropdown {
    display: none;
}

.owl-store-locator .hours-dropdown.show {
    display: block;
}

.owl-store-locator .hours-dropdown .hour {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-family: 'Core Sans DS', sans-serif;
    font-size: 16px;
    color: #393939;
}

.owl-store-locator .hours-dropdown .hour.today {
    font-weight: 700;
    color: #11254C;
}

.owl-store-locator .hours-dropdown .hour .day {
    flex: 1;
}

.owl-store-locator .hours-dropdown .hour .time {
    text-align: right;
}

.owl-store-locator .hours-dropdown .hour .time.closed-text {
    color: #D32F2F;
}

/* Button Group */
.owl-store-locator .button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}

.owl-store-locator .button-group>* {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-family: 'Core Sans DS', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1.26px;
    text-transform: uppercase;
    border-radius: 50px;
    padding: 9.4px 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.owl-store-locator .btn-directions {
    background: #FFFFFF;
    border: 1px solid #11254C;
    color: #11254C;
}

.owl-store-locator .btn-directions:hover {
    background: #FFCF31;
}

.owl-store-locator .btn-directions svg {
    flex-shrink: 0;
}

.owl-store-locator .btn-view-club {
    background: #11254C;
    border: 1px solid #11254C;
    color: #8BC750;
}

.owl-store-locator .btn-view-club:hover {
    background: #223F79;
}

/* ========================================
   RADAR AUTOCOMPLETE OVERRIDES
   ======================================== */
.owl-store-locator .radar-autocomplete-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.owl-store-locator .radar-autocomplete-results-list {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #F0F0F0;
    background: #FFFFFF;
    padding: 16px;
    box-shadow: 2px 2px 4px 0px rgba(184, 182, 182, 0.15);
    margin-top: 4px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1023.98px) {

    .owl-store-locator .location-title {
        font-size: 22px;
    }

    .owl-store-locator .button-group>* {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .owl-store-locator .detail-row {
        gap: 4px;
    }

    .owl-store-locator .detail-right {
        align-self: flex-end;
    }
}