/* Store Page and Modal Styles */
/* Split-screen layout matching the provided image design */

/* Store Modal Styles */
.store-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.modal-header {
    padding: 25px 25px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
}

.closest-store-info h4 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 20px;
    line-height: 1.3;
}

.modal-body .store-distance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.modal-body .store-distance i {
    color: var(--gold-primary);
    font-size: 0.9rem;
}

.modal-body .store-distance span {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.store-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

.store-status i {
    color: #4CAF50;
    font-size: 0.9rem;
}

.store-status span {
    color: #4CAF50;
    font-size: 0.95rem;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-show-map {
    background: var(--gold-primary);
    color: var(--color-dark);
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-show-map:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.btn-all-stores {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-all-stores:hover {
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Store Page Styles - Split Layout */
.stores-page {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 100px;
}

/* Main Split Section */
.stores-main-section {
    display: flex;
    height: calc(100vh - 100px);
    background: var(--bg-primary);
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
    margin-bottom:50px;
}

/* Left Panel - Store Details */
.stores-left-panel {
    width: 45%;
    
    display: flex;
    flex-direction: column;
    height: calc(100vh - 100px);
}

/* Fixed Header Section */
.stores-header-fixed {
    padding: 40px 50px 0;
    background: var(--bg-primary);
    flex-shrink: 0;
}

/* Scrollable Store List Container */
.stores-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 30px 50px 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 196, 48, 0.6) rgba(255, 255, 255, 0.1);
    margin: auto;
    
}

/* Custom Scrollbar for Webkit browsers */
.stores-list-container::-webkit-scrollbar {
    width: 6px;
}

.stores-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.stores-list-container::-webkit-scrollbar-thumb {
    background: rgba(244, 196, 48, 0.6);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.stores-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 196, 48, 0.8);
}

/* Right Panel - Map */
.stores-map-panel {
    width: 55%;
    position: relative;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--gold-primary);
}

.breadcrumb .separator {
    color: var(--text-muted);
    font-weight: 300;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Stores Title Section */
.stores-title-section {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.stores-title-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -1px;
}

.stores-count {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.stores-subtitle {
    color: var(--gold-primary);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 40px;
}

/* Search Section */
.stores-search-section {
    margin: 40px 0 0;
}

.search-container {
    position: relative;
    max-width: 100%;
}

.store-search-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 50px 15px 20px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.store-search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.store-search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Closest Store Card */
.closest-store-card {
    background: var(--bg-secondary);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    background: var(--bg-secondary);
    margin-bottom: 30px;
}

/* Regular Store Cards */
.store-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.store-card:hover {
    background: var(--bg-primary);
    border-color: var(--border-color);
    transform: translateX(5px);
}

.store-badge {
    background: var(--gold-primary);
    color: var(--color-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: inline-block;
}

.store-address {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 15px;
    line-height: 1.3;
}

.store-tags {
    margin-bottom: 20px;
}

.store-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 8px;
}

.store-tag.showroom {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.store-tag.warehouse {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.store-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.store-distance,
.store-phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-distance i,
.store-phone i {
    color: var(--gold-primary);
    font-size: 0.9rem;
    width: 16px;
}

.store-distance span,
.store-phone span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.store-hours {
    margin-bottom: 30px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0;
}

.hours-row .day {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.hours-row .hours {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hours-row .hours.appointment {
    color: #ff6b6b;
    font-weight: 500;
}

.store-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-get-directions {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-get-directions:hover {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-go-to-store {
    background: var(--gold-primary);
    color: var(--color-dark);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-go-to-store:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

/* Map Container */
.map-container {
    position: relative;
    width: 90%;
    height: 65%;
    border-radius: 12px;
    overflow: hidden;
    margin: 270px auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stores-map {
    width: 100%;
    height: 100%;
    border: none;
}

.stores-map iframe {
    border-radius: 0;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.map-view-toggle {
    display: flex;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.map-toggle {
    padding: 8px 16px;
    border: none;
    background: #fff;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #eee;
}

.map-toggle:last-child {
    border-right: none;
}

.map-toggle.active {
    background: #4285f4;
    color: #fff;
}

.map-toggle:hover:not(.active) {
    background: #f5f5f5;
}

.map-fullscreen {
    background: #fff;
    border: none;
    width: 40px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.map-fullscreen:hover {
    background: #f5f5f5;
}

.map-fullscreen i {
    color: #666;
    font-size: 0.9rem;
}

/* Map Attribution */
.map-attribution {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stores-main-section {
        flex-direction: column;
        height: auto;
        max-width: 100%;
        margin: 0;
        justify-content: flex-start;
    }
    
    .stores-left-panel,
    .stores-map-panel {
        width: 100%;
    }
    
    .stores-left-panel {
        height: auto;
        max-height: 60vh;
    }
    
    .map-container {
        width: 95%;
        height: 80%;
    }
    
    .stores-header-fixed {
        padding: 30px 30px 0;
    }
    
    .stores-list-container {
        padding: 20px 30px 30px;
        max-height: 50vh;
    }
    
    .stores-map-panel {
        height: 400px;
        min-height: 400px;
    }
    
    .stores-title-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .stores-page {
        padding-top: 80px;
    }
    
    .stores-main-section {
        height: auto;
        max-width: 100%;
        margin: 0;
    }
    
    .stores-left-panel {
        height: auto;
        max-height: 50vh;
    }
    
    .stores-header-fixed {
        padding: 20px 20px 0;
    }
    
    .stores-list-container {
        padding: 15px 20px 20px;
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .stores-map-panel {
        height: 300px;
        min-height: 300px;
    }
    
    .map-container {
        width: 98%;
        height: 90%;
    }
    
    .stores-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stores-title-section h1 {
        font-size: 2.5rem;
    }
    
    .store-details {
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .closest-store-info h4 {
        font-size: 1.2rem;
    }
    
    .map-controls {
        top: 10px;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .stores-title-section h1 {
        font-size: 2rem;
    }
    
    .store-address {
        font-size: 1.2rem;
    }
    
    .closest-store-card,
    .store-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .stores-header-fixed {
        padding: 15px 15px 0;
    }
    
    .stores-list-container {
        padding: 15px 15px 15px;
    }
    
    .stores-map-panel {
        height: 250px;
        min-height: 250px;
    }
    
    .map-container {
        width: 100%;
        height: 95%;
    }
}