/**
 * Store Locator Styles
 * assets/css/store-locator.css
 */

.esl-store-locator-wrapper {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.esl-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 600px;
}

.esl-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.esl-search-input:focus {
    outline: none;
    border-color: #000;
}

.esl-search-btn {
    padding: 12px 30px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.esl-search-btn:hover {
    background: #333;
}

.esl-content-wrapper {
    gap: 0;
    position: relative;
}

.esl-store-list {
    width: 350px;
    max-height: 600px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.esl-store-count {
    padding: 15px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.esl-store-count span {
    color: #000;
    font-size: 16px;
}

.esl-stores-container {
    padding: 10px 0;
}

.esl-store-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.esl-store-item:hover,
.esl-store-item.active {
    background: #f8f8f8;
}

.esl-store-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.esl-store-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.esl-store-status {
    display: inline-block;
    padding: 3px 8px;
    background: #34c759;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.esl-store-status.closed {
    background: #ff3b30;
}

.esl-store-status.twenty-four-seven {
    background: #007aff;
}

.esl-store-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.esl-store-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.esl-store-contact a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.esl-store-contact a:hover {
    opacity: 0.7;
}

.esl-store-contact i,
.esl-store-contact svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    flex-shrink: 0;
}

.esl-store-hours {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
    color: #666;
}

.esl-map-container {
    position: relative;
}

.esl-map {
    width: 100%;
    border: 1px solid #e5e5e5;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background-color: #ffffff;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 250px;
}

.leaflet-popup-tip {
    background-color: #ffffff;
}

.esl-popup-content {
    padding: 15px;
    color: #333333;
}

.esl-popup-content img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 4px;
}

.esl-popup-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
}

.esl-popup-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.esl-popup-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.esl-popup-contact a {
    color: #007aff;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.esl-popup-contact a:hover {
    text-decoration: underline;
}

.esl-popup-contact i,
.esl-popup-contact svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    flex-shrink: 0;
}

.esl-popup-hours {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
    color: #666;
}

.esl-popup-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}

.esl-popup-btn:hover {
    background: #333;
    color: #fff;
}

/* Custom marker icon */
.esl-marker-icon {
    background: #000;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.esl-marker-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Scrollbar styling */
.esl-store-list::-webkit-scrollbar {
    width: 8px;
}

.esl-store-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.esl-store-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.esl-store-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .esl-content-wrapper {
        flex-direction: column !important;
    }
    
    .esl-store-list {
        width: 100%;
        max-height: 400px;
        margin-bottom: 20px;
    }
    
    .esl-search-box {
        flex-direction: column;
    }
    
    .esl-search-btn {
        width: 100%;
    }
}