/* Locations Section — Shared styles for city pages */
/* Extracted from index.html locations section */

.locations {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.locations-container {
    max-width: 1200px;
    margin: 0 auto;
}

.location-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto 30px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.location-search input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.location-search button {
    padding: 15px 25px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.location-search button:hover {
    opacity: 0.9;
}

/* Horizontal Tabs */
.locations-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.locations-tabs .tab-btn {
    padding: 12px 25px;
    border: none;
    background: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.locations-tabs .tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.locations-tabs .tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow-red);
}

.locations-tabs .tab-btn i {
    font-size: 0.85rem;
}

/* Carousel Wrapper */
.locations-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.locations-carousel {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.locations-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
    padding: 10px 5px;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: var(--white);
    color: var(--dark);
}

/* Map Container */
.locations-map-container {
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
    position: relative;
    background: #e5e3df;
}

.locations-map {
    width: 100% !important;
    height: 400px !important;
    border-radius: 20px;
    display: block;
}

.map-popup {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    max-width: 200px;
}

.map-popup h5 {
    margin: 0 0 5px 0;
    color: var(--dark);
    font-weight: 600;
}

.map-popup p {
    margin: 3px 0;
    color: var(--gray);
    font-size: 0.8rem;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--primary-purple);
}

/* Location Cards */
.location-card {
    min-width: 340px;
    max-width: 340px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.location-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-purple));
    position: relative;
    overflow: hidden;
}

.location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-card-image .placeholder-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 4rem;
}

.location-card-image .verified-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    color: var(--success);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.location-card-content {
    padding: 20px;
}

.location-card h4 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-card .location-address {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.location-card .location-address i {
    color: var(--primary-red);
    margin-top: 3px;
}

.location-programs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.program-chip {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--dark);
}

.program-chip.more {
    background: var(--primary-red);
    color: white;
}

.location-stats {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

.location-stats span {
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.location-stats i {
    color: var(--primary-red);
}

.location-actions {
    display: flex;
    gap: 8px;
}

.location-actions .action-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.location-actions .btn-call {
    background: #f5f5f5;
    color: var(--dark);
}

.location-actions .btn-call:hover {
    background: var(--primary-red);
    color: white;
}

.location-actions .btn-whatsapp {
    background: #25D366;
    color: white;
}

.location-actions .btn-whatsapp:hover {
    background: #128C7E;
}

.location-actions .btn-directions {
    background: #4285F4;
    color: white;
    padding: 10px 12px;
    flex: 0;
}

.location-actions .btn-details {
    flex: 1;
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.location-actions .btn-details:hover {
    background: linear-gradient(135deg, #B91C1C, #7B1FA2);
    text-decoration: none;
    color: white;
}

/* Loading & No Results */
.locations-loading {
    min-width: 100%;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.locations-loading i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    display: block;
}

.no-locations-msg {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-locations-msg.show {
    display: block;
}

.no-locations-msg i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 15px;
    display: block;
}

.locations-cta {
    text-align: center;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.locations-cta p {
    color: var(--gray);
    margin-bottom: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .locations-tabs {
        gap: 10px;
    }
    .locations-tabs .tab-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .location-card {
        min-width: 300px;
        max-width: 300px;
    }
    .locations-carousel-wrapper {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-btn.prev,
    .carousel-btn.next {
        display: none;
    }
    .locations-carousel-wrapper {
        padding: 0;
    }
    .location-card {
        min-width: 280px;
        max-width: 280px;
    }
    .locations-tabs .tab-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    .locations-tabs .tab-btn i {
        display: none;
    }
    .locations-map {
        height: 300px !important;
    }
}
