/**
 * Outlets / Store Locator Widget Styles
 */

.ami-outlets-locator-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: #fdf5c9;
    border-radius: 24px;
    padding: 40px 35px 35px;
    box-sizing: border-box;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

/* Header & Title */
.ami-outlets-locator-header {
    text-align: center;
    margin-bottom: 28px;
}

.ami-outlets-locator-title {
    font-family: var(--e-global-typography-accent-font-family, inherit);
    color: #4b2313;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.ami-outlets-locator-subtitle {
    font-family: var(--e-global-typography-text-font-family, inherit);
    color: #6d4b38;
    font-size: 16px;
    margin: 0;
}

/* Top Filters Container */
.ami-outlets-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}

.ami-filter-dropdown-wrap {
    position: relative;
    flex: 0 1 calc(33.33% - 15px);
    min-width: 180px;
    max-width: 100%;
    height: auto;
}

/* Main Content Grid */
.ami-outlets-content-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 35px;
    align-items: stretch;
}

/* Left: Map Container */
.ami-outlets-map-container {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background-color: #e4e0d7;
    min-height: 420px;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ami-outlets-map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    transition: opacity 0.3s ease;
}

.ami-outlets-map-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.ami-outlets-map-loader.is-loading {
    opacity: 1;
    pointer-events: auto;
}

.ami-map-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(100, 69, 54, 0.2);
    border-top-color: #4b2313;
    border-radius: 50%;
    animation: ami-spin 0.8s linear infinite;
}

@keyframes ami-spin {
    to { transform: rotate(360deg); }
}

/* Right: List & Navigation Container */
.ami-outlets-list-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 420px;
}

.ami-outlets-list-scroll {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 12px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 69, 54, 0.2) transparent;
}

.ami-outlets-list-scroll::-webkit-scrollbar {
    width: 5px;
}

.ami-outlets-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(100, 69, 54, 0.2);
    border-radius: 10px;
}

.ami-outlets-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* Outlet Item Card */
.ami-outlet-card {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(109, 75, 56, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 6px;
    background-color: transparent;
}

.ami-outlet-card:last-child {
    border-bottom: none;
}

.ami-outlet-card:hover {
    background-color: rgba(255, 255, 255, 0.45);
    transform: translateX(4px);
}

.ami-outlet-card.is-active {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

.ami-outlet-name {
    font-family: var(--e-global-typography-accent-font-family, inherit);
    font-size: 20px;
    font-weight: 700;
    color: #4b2313;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.ami-outlet-card.is-active .ami-outlet-name {
    color: #b73e21;
}

.ami-outlet-address {
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 13.5px;
    line-height: 1.5;
    color: #644536;
    margin: 0;
}

.ami-outlet-phone {
    font-family: var(--e-global-typography-text-font-family, inherit);
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #b73e21;
}

/* Empty State */
.ami-outlets-empty-state {
    font-family: var(--e-global-typography-text-font-family, inherit);
    padding: 40px 20px;
    text-align: center;
    color: #6d4b38;
    font-size: 15px;
    font-weight: 500;
}

/* Bottom Navigation Controls */
.ami-outlets-nav-controls {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 15px;
    padding-top: 10px;
}

.ami-outlets-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #ff4b72;
    background: #ffffff;
    color: #ff4b72;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 6px rgba(255, 75, 114, 0.15);
}

.ami-outlets-nav-btn:hover:not(:disabled) {
    background: #ff4b72;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 75, 114, 0.3);
}

.ami-outlets-nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.ami-outlets-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #cca5b2;
    color: #cca5b2;
}

.ami-outlets-nav-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .ami-outlets-content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ami-outlets-map-container {
        min-height: 350px;
        height: 350px;
    }

    .ami-outlets-list-wrapper {
        min-height: auto;
    }

    .ami-outlets-list-scroll {
        max-height: 320px;
    }
}

@media (max-width: 767px) {
    .ami-outlets-locator-wrapper {
        padding: 25px 18px 20px;
        border-radius: 18px;
    }

    .ami-outlets-locator-title {
        font-size: 26px;
    }

    .ami-outlets-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }

    .ami-filter-dropdown-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        margin: 0;
    }

    .ami-filter-select {
        height: 44px;
        min-height: 44px;
        line-height: normal;
        margin: 0;
    }

    .ami-outlets-map-container {
        min-height: 280px;
        height: 280px;
    }
}
