/* =================================================================
   Shops Page Styles
   ================================================================= */

.shops-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--white);
    min-height: calc(100vh - 50px - 100px);
}

.shops-header {
    background-color: var(--navy);
    padding: 40px;
    text-align: center;
}

.shops-header h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.shops-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.shops-content {
    display: flex;
    min-height: 600px;
}

.shops-sidebar {
    width: 400px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.search-box {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-primary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--navy);
}

.filter-buttons {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--navy);
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--navy);
    color: var(--white);
}

.store-count {
    padding: 15px 20px;
    font-size: 12px;
    color: var(--gray);
    border-bottom: 1px solid #eee;
}

.store-list {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.store-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.store-item:hover {
    background-color: #f9f9f9;
}

.store-item.active {
    background-color: #f0f4ff;
    border-left: 3px solid var(--navy);
}

.store-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 5px;
}

.store-address {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}

.store-island {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--navy);
    padding: 3px 8px;
    margin-top: 8px;
    border-radius: 2px;
}

.map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Custom map markers */
.custom-marker {
    background-color: var(--navy);
    border: 2px solid var(--white);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.leaflet-popup-content-wrapper {
    border-radius: 4px;
}

.leaflet-popup-content {
    margin: 12px 15px;
    font-family: var(--font-primary);
}

.popup-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 5px;
}

.popup-address {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}

.popup-directions {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.popup-directions:hover {
    text-decoration: underline;
}

/* No results */
.no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray);
}

.no-results p {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .shops-content {
        flex-direction: column;
    }

    .shops-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .store-list {
        max-height: 300px;
    }

    #map {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .shops-header {
        padding: 30px 20px;
    }

    .shops-header h1 {
        font-size: 1.5rem;
    }

    .filter-buttons {
        padding: 10px 15px;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
}
