/* Store Locator Styles v2.0 - Phase 2 */

.store-locator-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-panel {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.search-panel .form-control {
    color: #1e293b !important;
    background-color: #ffffff !important;
}

.search-panel select.form-control,
.search-panel select.form-control option {
    color: #1e293b !important;
    background: white !important;
    background-color: #ffffff !important;
}

.search-panel input.form-control {
    color: #1e293b !important;
    background: white !important;
    background-color: #ffffff !important;
}

.store-distance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    color: #0d9488;
    font-weight: 600;
    margin-top: 0.25rem;
}

.store-distance i {
    font-size: 12px;
}

.btn-favorite,
.btn-share {
    padding: 0.75rem 1rem;
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-favorite.active {
    background: #fef2f2;
    border-color: #f87171;
    color: #dc2626;
}

.btn-favorite.active i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.btn-share:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

.btn-view-map {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-success {
    color: #16a34a !important;
    font-weight: 600;
}

.text-danger {
    color: #dc2626 !important;
    font-weight: 600;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

#use-location-btn {
    min-width: 44px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-status {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0fdfa;
    border-radius: 12px;
    border: 1px solid #99f6e4;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #0d9488;
    font-size: 14px;
    font-weight: 500;
}

.loading-spinner i {
    font-size: 1.25rem;
}

.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.map-wrapper {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.store-map {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.stores-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.store-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: #0d9488;
}

.store-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.store-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-card-title i {
    color: #0d9488;
    font-size: 1.25rem;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
}

.store-rating i {
    font-size: 1rem;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.store-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 14px;
    color: #64748b;
}

.store-info-item i {
    color: #0d9488;
    width: 16px;
    margin-top: 2px;
}

.store-info-item a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 500;
}

.store-info-item a:hover {
    text-decoration: underline;
}

.store-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-view-map {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-call {
    padding: 0.75rem 1rem;
    background: white;
    color: #0d9488;
    border: 2px solid #0d9488;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: #0d9488;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.no-results-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #fef3c7;
    border-radius: 16px;
    border: 2px solid #fbbf24;
    margin: 2rem 0;
}

.no-results-state i {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.no-results-state h3 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.no-results-state p {
    color: #b45309;
    font-size: 14px;
}

/* Ad Modal */
.ad-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.ad-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.ad-countdown {
    font-size: 48px;
    font-weight: 700;
    color: #0d9488;
    margin: 1.5rem 0;
    font-family: 'Outfit', sans-serif;
}

.ad-message {
    color: #64748b;
    font-size: 14px;
    margin-top: 1rem;
}

.ad-container-slot {
    min-height: 250px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

/* Teal color utilities */
.bg-teal {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.bg-teal-light {
    background: #ccfbf1;
    color: #0f766e;
}

.text-teal {
    color: #0d9488;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .results-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .map-wrapper {
        position: relative;
        top: 0;
        order: 2;
    }
    
    .store-map {
        height: 400px;
    }
    
    .stores-list {
        order: 1;
    }
    
    .search-panel {
        padding: 1.5rem;
    }
    
    .store-actions {
        flex-direction: column;
    }
    
    .btn-call {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .store-card {
        padding: 1rem;
    }
    
    .store-map {
        height: 300px;
    }
    
    .ad-modal-content {
        padding: 1.5rem;
    }
    
    .ad-countdown {
        font-size: 36px;
    }
}
