/**
 * Store Locator Frontend Styles
 *
 * Styles matching the reference design with clean, modern appearance
 *
 * @package StoreLocator
 * @since 1.0.0
 */

/* Main Container */
.store-locator-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Location List (Left Side) */
.store-locator-list {
    flex: 0 0 40%;
    width: 40%;
    overflow-y: auto;
    max-height: 650px;
    padding: 25px 25px 25px 25px;
    background-color: #fff;
    border-radius: 27px;
}

/* Custom scrollbar */
.store-locator-list {
    scrollbar-color: #ff5a3c #f2f2f2;
    scrollbar-gutter: stable;
}

.store-locator-list::-webkit-scrollbar {
    width: 8px;
    margin-right: 10px;
}

.store-locator-list::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 4px;
    margin-right: 10px;
}

.store-locator-list::-webkit-scrollbar-thumb {
    background: #ff5a3c;
    border-radius: 4px;
}

.store-locator-list::-webkit-scrollbar-thumb:hover {
    background: #e54d31;
}

/* Location Card */
.location-card {
    background: #ffffff;
    border: 1px solid #E3C59A;
    border-radius: 27px;
    padding: 20px 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.location-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #E53E3E;
}

.location-card.active {
    border: 2px solid #E53E3E;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
    background: #fff8f8;
}

/* Location Content */
.location-content {
    flex: 1;
    min-width: 0;
    padding: 10px;
}

.location-info {
    width: 100%;
}

.location-name {
    font-family: "Lilita One", Sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #000000;
    margin: 0px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1;
}

.location-address {
    font-size: 14px;
    color: #333333;
    margin: 0;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-icon {
    flex-shrink: 0;
    vertical-align: middle;
}

.address-text {
    flex: 1;
    font-family: "Lato", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    display: inherit;
}

/* Location Arrow */
.location-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.location-card:hover .location-arrow {
    transform: translateX(3px);
}

.location-card.active .location-arrow {
    transform: scale(1.1);
}

/* Map Container (Right Side) */
.store-locator-map-container {
    flex: 0 0 60%;
    width: 60%;
    height: 650px;
}

.store-locator-map {
    width: 100%;
    height: 100%;
    min-height: 650px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* No Locations Message */
.no-locations {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-size: 16px;
}

/* Error Message */
.store-locator-error {
    padding: 20px;
    text-align: center;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .store-locator-container {
        gap: 15px;
        padding: 15px;
    }

    .store-locator-list {
        flex: 0 0 350px;
        max-width: 350px;
    }

    .location-card {
        padding: 16px;
    }

    .location-name {
        font-size: 15px;
    }

    .location-address {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .store-locator-container {
        flex-direction: column;
        padding: 10px;
    }

    .store-locator-list {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        max-height: 400px;
        order: 2;
        margin-top: 15px;
    }

    .store-locator-map-container {
        order: 1;
        width: 100%;
    }

    .store-locator-map {
        min-height: 400px;
    }

    .location-card {
        padding: 15px;
        margin-bottom: 10px;
    }

    .location-name {
        font-size: 14px;
    }

    .location-address {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .store-locator-container {
        padding: 8px;
        gap: 10px;
    }

    .location-card {
        padding: 12px;
    }

    .location-pin-icon {
        width: 14px;
        height: 18px;
    }

    .location-name {
        font-size: 13px;
    }

    .location-address {
        font-size: 12px;
    }

    .location-arrow {
        width: 28px;
        height: 28px;
    }

    .store-locator-map {
        min-height: 350px;
    }
}

/* Print Styles */
@media print {
    .store-locator-container {
        display: block;
    }

    .store-locator-map-container {
        display: none;
    }

    .location-card {
        page-break-inside: avoid;
    }

    .location-arrow {
        display: none;
    }
}
