/* Where to Buy Page Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    margin-bottom: 0;
}

.hero-content {
    padding-right: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    font-weight: 600;
}

.hero-image {
    text-align: center;
    padding-left: 2rem;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Search Section */
.search-section {
    background: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-input-group {
    position: relative;
    margin-bottom: 0;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 10;
}

.search-input {
    padding-left: 2.5rem;
    border-radius: 12px;
    border: 2px solid #d1d5db;
    font-size: 1rem;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-select {
    border-radius: 12px;
    border: 2px solid #d1d5db;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    background: #f8fafc;
}

/* Map Section */
.map-section {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

.map-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

.store-map {
    height: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
}

/* Ensure Leaflet container is properly sized */
.store-map .leaflet-container {
    height: 100%;
    width: 100%;
}

/* Map loading placeholder */
.map-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.map-loading-placeholder.hidden {
    display: none;
}

/* Hide Leaflet attribution but keep OpenStreetMap attribution */
.store-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
}

.store-map .leaflet-control-attribution a[href*="leafletjs.com"] {
    display: none;
}

/* Style the remaining attribution */
.store-map .leaflet-control-attribution {
    font-size: 11px;
    line-height: 1.2;
    color: #666;
}

.map-legend {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
}

.legend-marker.active {
    background: #3b82f6;
}

/* Custom Leaflet Marker */
.custom-marker {
    background: #3b82f6;
    border-radius: 50%;
    color: white;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    width: 30px !important;
    height: 30px !important;
    line-height: 1 !important;
}

.custom-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.custom-marker i {
    font-size: 14px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
}

/* Map Popup */
.map-popup {
    min-width: 250px;
}

.popup-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.popup-address {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.popup-contact {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.popup-contact a {
    color: #3b82f6;
    text-decoration: none;
}

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

.popup-contact a[target="_blank"]:after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
}

.popup-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

/* Store List Section */
.stores-section {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    height: fit-content;
    max-height: 700px;
    display: flex;
    flex-direction: column;
}

.stores-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stores-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.stores-count {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
}

.stores-list {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    max-height: 580px;
}

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

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

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

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

/* Store Card */
.store-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.store-card:last-child {
    margin-bottom: 0;
}

.store-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.store-info {
    flex: 1;
}

.store-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.store-location {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.store-details {
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.contact-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.store-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.store-actions .btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

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

/* No Stores */
.no-stores {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.no-stores i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-stores h4 {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.no-stores p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 4rem 0;
    color: white;
}

.support-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.support-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.support-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.support-actions .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.support-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.support-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-color: #3b82f6;
}

.support-actions .btn-outline-primary {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.support-actions .btn-outline-primary:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content,
    .hero-image {
        padding: 0;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .map-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .map-controls {
        width: 100%;
        justify-content: center;
    }
    
    .stores-section {
        margin-top: 2rem;
        max-height: none;
    }
    
    .stores-list {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .search-card {
        padding: 1rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .store-map {
        height: 400px;
    }
    
    .map-legend {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .store-actions {
        flex-direction: column;
    }
    
    .store-actions .btn {
        min-width: auto;
        flex: none;
    }
    
    .support-title {
        font-size: 1.5rem;
    }
    
    .support-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .support-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .search-section {
        padding: 1rem 0;
    }
    
    .search-card {
        border-radius: 12px;
    }
    
    .map-section,
    .stores-section {
        border-radius: 12px;
    }
    
    .store-map {
        height: 350px;
    }
    
    .store-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .store-header {
        gap: 0.75rem;
    }
    
    .store-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .store-name {
        font-size: 1rem;
    }
}

/* CTA Section Styles (match about page) */
.cta-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.cta-section h3 {
    font-weight: 600;
}

.cta-section .btn {
    font-weight: 500;
    padding: 12px 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
