/* ===================================
   Enhanced Home Page Styles
   =================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-search-box {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease;
}

/* Advanced Search Bar */
.advanced-search-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 30%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.25rem;
    pointer-events: none;
}

.hero-search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 1.063rem;
    transition: var(--transition);
    background: var(--gray-50);
}

.hero-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.hero-search-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.063rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Category Badges in Hero */
.hero-categories {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-category-badge {
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}

.hero-category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

/* Filter Section */
.filter-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-100);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.clear-filters-btn {
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.clear-filters-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

/* Filter Groups */
.filter-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label i {
    color: var(--primary-color);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Category Filter Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-pill {
    padding: 0.625rem 1.25rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.category-pill:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.results-count strong {
    color: var(--primary-color);
    font-weight: 800;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.view-btn {
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.125rem;
}

.view-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.view-btn:hover:not(.active) {
    color: var(--gray-900);
}

/* Features Section - Enhanced */
.features-section {
    background: linear-gradient(135deg, #E3F2FD 0%, #F1F8E9 100%);
    padding: 5rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 157, 213, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 192, 67, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
}

.features-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    color: #1976D2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.features-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #3B9DD5, #7BC043);
    margin: 1.5rem auto 3rem auto;
    border-radius: 10px;
    animation: expandWidth 1s ease 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 157, 213, 0.05), rgba(123, 192, 67, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 48px rgba(59, 157, 213, 0.2);
    border-color: #3B9DD5;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3B9DD5 0%, #7BC043 100%);
    border-radius: 50%;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 8px 24px rgba(59, 157, 213, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 12px 32px rgba(59, 157, 213, 0.5);
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #7BC043 0%, #3B9DD5 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover .feature-icon::before {
    opacity: 0.3;
    animation: pulseGlow 1.5s ease-in-out infinite;
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1976D2;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-title {
    color: #3B9DD5;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Statistics Section - Enhanced */
.stats-section {
    background: linear-gradient(135deg, #1976D2 0%, #3B9DD5 50%, #7BC043 100%);
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    padding: 4rem 0;
    margin-top: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced Footer */
.enhanced-footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--black) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #88c043 0%, #3394d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-link i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.95rem;
    transition: var(--transition);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #ec4899;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .filter-groups {
        display: flow !important;
          
    }
    .filter-actions-group  {
        display: flex;
        margin-top: 1rem;
        align-items: normal;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }

    .advanced-search-container {
        flex-direction: column;
    }

    .hero-search-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .filter-section {
        padding: 1.25rem 1rem;
    }

    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-groups {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* About Us Section */
.about-us-section {
    position: relative;
    overflow: hidden;
}

.about-us-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 157, 213, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-title {
    animation: fadeInLeft 0.8s ease;
}

.about-description {
    animation: fadeInLeft 1s ease;
}

.about-features {
    animation: fadeInLeft 1.2s ease;
}

.about-us-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 157, 213, 0.4);
}

.about-us-section .carousel-item img {
    transition: transform 0.5s ease;
}

.about-us-section .carousel-item:hover img {
    transform: scale(1.05);
}

.about-us-section .carousel-control-prev,
.about-us-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(59, 157, 213, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.about-us-section .carousel-control-prev {
    left: 20px;
}

.about-us-section .carousel-control-next {
    right: 20px;
}

.about-us-section .carousel-control-prev:hover,
.about-us-section .carousel-control-next:hover {
    opacity: 1;
    background: rgba(59, 157, 213, 1);
    transform: translateY(-50%) scale(1.1);
}

.about-us-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(59, 157, 213, 0.5);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.about-us-section .carousel-indicators button.active {
    background-color: #3B9DD5;
    width: 30px;
    border-radius: 6px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 992px) {
    .about-us-section {
        padding: 3rem 0 !important;
    }
    
    .about-title {
        font-size: 2rem !important;
    }
    
    .about-description {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    .about-us-section .carousel-item img {
        height: 300px !important;
    }
    
    .about-us-section .carousel-control-prev,
    .about-us-section .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .about-us-section .carousel-control-prev {
        left: 10px;
    }
    
    .about-us-section .carousel-control-next {
        right: 10px;
    }
}

/* Branches Map Section */
.branches-map-section {
    position: relative;
    overflow: hidden;
}

.branches-title {
    animation: fadeInUp 0.8s ease;
}

.branches-subtitle {
    animation: fadeInUp 1s ease;
}

.branch-map-card {
    transition: all 0.3s ease;
}

.branch-map-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.branch-map-container {
    position: relative;
}

.branch-map-container iframe {
    transition: transform 0.3s ease;
}

.branch-map-card:hover .branch-map-container iframe {
    transform: scale(1.02);
}

.branch-header {
    transition: all 0.3s ease;
}

.branch-map-card:hover .branch-header {
    background: linear-gradient(135deg, #3B9DD5, #7BC043) !important;
    color: white;
}

.branch-map-card:hover .branch-header h3,
.branch-map-card:hover .branch-header p {
    color: white !important;
}

.branch-map-card:hover .branch-header i {
    color: white !important;
}

.branch-footer .btn {
    transition: all 0.3s ease;
}

.branch-footer .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(59, 157, 213, 0.4);
}

.contact-card {
    animation: fadeInUp 1.2s ease;
}

.contact-card a:hover {
    text-decoration: underline !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .branches-title {
        font-size: 2rem !important;
    }
    
    .branches-subtitle {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    .branch-map-container {
        height: 300px !important;
    }
    
    .branches-map-section {
        padding: 3rem 0 !important;
    }
}

/* Load More Button */
#loadMoreBtn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 157, 213, 0.3);
}

#loadMoreBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 157, 213, 0.5);
}

#loadMoreBtn:active {
    transform: translateY(-1px);
}

#loadMoreBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#loadMoreContainer {
    margin: 3rem 0;
}

#loadingIndicator .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

@media (max-width: 768px) {
    #loadMoreBtn {
        padding: 0.6rem 2rem !important;
        font-size: 0.95rem;
    }
}

/* ===================================
   Enhanced Filter Styles
   =================================== */

.enhanced-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(124, 58, 237, 0.1);
}

.filter-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title i {
    color: #7c3aed;
}

.filter-results-count {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-toggle-btn {
    background: transparent;
    border: 2px solid #7c3aed;
    color: #7c3aed;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.filter-toggle-btn:hover {
    background: #7c3aed;
    color: white;
}

.filter-toggle-btn.active i {
    transform: rotate(180deg);
}

.filter-form {
    transition: all 0.3s ease;
}

.filter-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label i {
    color: #7c3aed;
    font-size: 1rem;
}

.modern-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237c3aed' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.modern-select:hover {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.modern-select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Price Range Filter */
.price-filter-group {
    grid-column: span 2;
}

.price-range-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.price-separator {
    color: var(--gray-500);
    font-weight: 600;
}

.price-range-slider {
    position: relative;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin: 1rem 0;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.6);
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.4);
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
}

.apply-filters-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.apply-filters-btn:active {
    transform: translateY(0);
}

.filter-actions-group {
    display: flex;
    align-items: flex-end;
}

.clear-filters-btn {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-300);
}

.clear-filters-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

/* Responsive */
@media (max-width: 992px) {
    .filter-groups {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .price-filter-group {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .filter-section {
        padding: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .filter-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .filter-title {
        font-size: 1.1rem !important;
        margin: 0;
    }
    
    .filter-title i {
        font-size: 1.2rem !important;
    }
    
    .filter-actions {
        gap: 0.5rem;
    }
    
    .filter-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        min-width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    
    .filter-toggle-btn i {
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }
    
    .filter-toggle-btn.active i {
        transform: rotate(180deg);
    }
    
    .clear-filters-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .filter-groups {
        display: none;
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid rgba(124, 58, 237, 0.1);
    }
    
    .filter-groups.active {
        display: grid !important;
    }
    
    .filter-group {
        width: 100%;
        gap: 0.5rem;
    }
    
    .filter-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .filter-select,
    .modern-select {
        width: 100%;
        padding: 0.75rem 2.5rem 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .price-filter-group {
        grid-column: span 1 !important;
        width: 100%;
    }
    
    .price-range-container {
        width: 100%;
    }
    
    .price-input-group {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .price-input {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .price-separator {
        display: none;
    }
    
    .price-range-slider {
        width: 100%;
        margin: 0.75rem 0;
    }
    
    .price-display {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    
    .filter-actions-group {
        grid-column: span 1 !important;
        width: 100%;
    }
    
    .apply-filters-btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .filter-section {
        padding: 0.875rem !important;
        border-radius: 12px;
    }
    
    .filter-header {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .filter-title {
        font-size: 1rem !important;
    }
    
    .filter-title i {
        font-size: 1rem !important;
    }
    
    .filter-toggle-btn {
        padding: 0.4rem 0.6rem;
        min-width: 36px;
        height: 36px;
    }
    
    .clear-filters-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .filter-groups {
        gap: 0.875rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .filter-label {
        font-size: 0.85rem;
    }
    
    .filter-select,
    .modern-select {
        padding: 0.625rem 2.25rem 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .price-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .apply-filters-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

