/**
 * WON Store Locator - Frontend Responsive Styles with Dynamic CSS Tokens
 */

.won-store-locator-wrapper {
    --won-primary: #047b67;
    --won-secondary: #006e19;
    --won-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #161c20;
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.won-store-locator-wrapper * {
    box-sizing: border-box;
}

/* Header & Search Bar */
.won-sl-header {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: var(--won-radius);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.won-sl-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.won-sl-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #c3c5d9;
    border-radius: var(--won-radius);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.won-sl-search-input:focus {
    border-color: var(--won-primary);
    box-shadow: 0 0 0 3px rgba(4, 123, 103, 0.15);
}

.won-sl-btn-geo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f0fdf9;
    color: var(--won-primary);
    border: 1px solid var(--won-primary);
    border-radius: var(--won-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.won-sl-btn-geo:hover {
    background: var(--won-primary);
    color: #ffffff;
}

.won-sl-filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.won-chip {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    background: #f0f2f5;
    color: #434656;
    border-radius: 9999px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.won-chip.active {
    background: var(--won-primary);
    color: #ffffff;
    font-weight: 600;
}

/* Main Container (Map + List Layout) */
.won-sl-main-container {
    display: flex;
    gap: 16px;
    height: 600px;
}

.won-sl-list-panel {
    flex: 0 0 40%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.won-sl-map-panel {
    flex: 1;
    height: 100%;
    border-radius: var(--won-radius);
    border: 1px solid #dcdcde;
    overflow: hidden;
}

/* Location Card */
.won-location-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--won-radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.won-location-card:hover, .won-location-card.selected {
    border-color: var(--won-primary);
    box-shadow: 0 4px 12px rgba(4, 123, 103, 0.12);
}

.won-location-card h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--won-primary);
}

.won-location-card .won-loc-address {
    font-size: 13px;
    color: #434656;
    margin-bottom: 8px;
    line-height: 1.4;
}

.won-location-card .won-loc-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #737688;
    margin-bottom: 12px;
}

/* CTA Buttons */
.won-cta-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.won-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--won-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.won-cta-btn i {
    font-size: 13px;
}

.won-cta-btn-primary {
    background: var(--won-primary);
    color: #ffffff;
}

.won-cta-btn-primary:hover {
    filter: brightness(0.9);
}

.won-cta-btn-secondary {
    background: var(--won-secondary);
    color: #ffffff;
}

.won-cta-btn-secondary:hover {
    filter: brightness(0.9);
}

.won-cta-btn-outline {
    background: transparent;
    border: 1px solid var(--won-primary);
    color: var(--won-primary);
}

.won-cta-btn-outline:hover {
    background: var(--won-primary);
    color: #ffffff;
}

/* Mobile Drawer Layout */
@media (max-width: 768px) {
    .won-sl-main-container {
        flex-direction: column;
        height: 500px;
    }
    .won-sl-list-panel {
        flex: 1;
    }
}

/* ==========================================================================
   Meat & Meet Brand Showcase Slider Layout Styles
   ========================================================================== */
.won-layout-brand-showcase {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 15px;
}

.won-showcase-filter-bar {
    margin-bottom: 24px;
}

.won-showcase-brand-header {
    margin: 15px 0 25px 0;
    padding: 0 10px;
}

.won-brand-title-box {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.won-brand-title-box .won-icon-box-img {
    width: 40px;
    height: auto;
    flex-shrink: 0;
}

.won-brand-title-box .won-icon-box-img img {
    width: 100%;
    height: auto;
    display: block;
}

.won-brand-heading {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #111827;
    text-transform: uppercase;
}

/* Slider Component */
.won-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px;
}

.won-showcase-slider {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    will-change: transform;
}

.won-store-slide {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Slide Left Column (Store Info) */
.won-slide-info-col {
    flex: 0 0 35%;
    max-width: 35%;
    padding: 10px 20px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.won-store-title-wrap {
    margin-bottom: 4px;
}

.won-store-opening-date {
    display: block;
    color: #999899;
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 2px;
}

.won-store-main-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.won-store-main-title .badge-prefix {
    font-size: 80%;
    font-weight: 600;
    margin-right: 4px;
    color: #4b5563;
}

/* Info Icon Rows */
.won-store-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.won-store-info-icon {
    width: 30px;
    flex-shrink: 0;
    padding-top: 2px;
}

.won-store-info-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.won-store-info-content {
    flex: 1;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.45;
}

.won-store-info-content p {
    margin: 0;
}

.won-store-info-content a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.won-store-info-content a:hover {
    color: var(--won-primary);
    text-decoration: underline;
}

.won-store-search-map-link {
    color: #999899 !important;
    font-weight: 500;
}

.won-store-search-map-link:hover {
    color: #111827 !important;
}

/* Google Maps Iframe Container */
.won-store-iframe-wrapper {
    width: 100%;
    height: 235px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-top: 8px;
    background: #f3f4f6;
}

.won-store-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Slide Right Column (Gallery Grid) */
.won-slide-gallery-col {
    flex: 0 0 65%;
    max-width: 65%;
    padding: 0 10px;
    box-sizing: border-box;
}

.won-store-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

.won-gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #1f2937;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.won-gallery-item.won-gallery-item-featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.won-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.won-gallery-item .won-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
}

.won-gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.won-gallery-item:hover .won-gallery-overlay {
    background: rgba(0, 0, 0, 0);
}

/* Slider Nav Arrows */
.won-slider-nav {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.65);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.won-slider-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.won-slider-nav svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.won-slider-prev {
    left: 8px;
}

.won-slider-next {
    right: 8px;
}

.won-slider-next svg {
    transform: rotate(180deg);
}

.won-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Slider Dots */
.won-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.won-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.won-slider-dot.active {
    background: #111827;
    width: 24px;
    border-radius: 5px;
}

/* Lightbox Modal */
.won-lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.won-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.won-lightbox-modal img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.won-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .won-slide-info-col {
        flex: 0 0 45%;
        max-width: 45%;
    }
    .won-slide-gallery-col {
        flex: 0 0 55%;
        max-width: 55%;
    }
    .won-store-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .won-slide-info-col {
        flex: 0 0 100%;
        max-width: 100%;
        order: 2;
        padding: 20px 5px 10px 5px;
    }
    .won-slide-gallery-col {
        flex: 0 0 100%;
        max-width: 100%;
        order: 1;
        padding: 0 5px;
    }
    .won-store-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        min-height: auto;
    }
    .won-gallery-item.won-gallery-item-featured {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }
    .won-slider-nav {
        width: 36px;
        height: 36px;
    }
    .won-slider-nav svg {
        width: 18px;
        height: 18px;
    }
}

