/**
 * Partner Stores - Frontend Styles
 */

/* Main wrapper */
.partner-stores-wrapper {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.partner-stores-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

/* Map styles */
#stores-map {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

/* Stores list */
.stores-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.stores-list::-webkit-scrollbar {
    width: 8px;
}

.stores-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.stores-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.stores-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Region group */
.region-group {
    margin-bottom: 30px;
}

.region-title {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* Store card */
.store-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.store-content {
    display: flex;
    gap: 15px;
}

.store-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.store-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.store-info {
    flex-grow: 1;
}

.store-name {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.store-location,
.store-address {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.store-location i,
.store-address i {
    font-size: 18px;
    color: #3498db;
    margin-top: 2px;
}

.store-website {
    margin-top: 10px;
}

.store-website .btn {
    font-size: 13px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.store-website .btn i {
    font-size: 16px;
}

/* Map popup styles */
.leaflet-popup-content {
    margin: 10px;
}

.store-popup h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.store-popup p {
    margin: 5px 0;
    font-size: 13px;
    color: #555;
}

.store-popup a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.store-popup a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 767px) {
    .partner-stores-wrapper {
        padding: 20px 0;
    }

    .partner-stores-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    #stores-map {
        height: 300px !important;
        margin-bottom: 20px;
    }

    .stores-list {
        max-height: none;
        overflow-y: visible;
    }

    .store-content {
        flex-direction: column;
    }

    .store-image {
        width: 100%;
        height: 120px;
    }

    .region-title {
        font-size: 20px;
    }

    .store-name {
        font-size: 16px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #stores-map {
        height: 400px !important;
    }
}

/* Material Icons fallback */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}
