/* ==========================================================================
   FlexIndia - Gym Directory Modern Stylesheet
   ========================================================================== */

/* ===== HERO SECTION ===== */
.gyms-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 70%, #060d1f 100%);
    color: var(--white);
    text-align: center;
    padding: 150px 0 85px;
    overflow: hidden;
}

/* Background Ambient Orbs */
.gyms-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.18;
    pointer-events: none;
    animation: floatOrb 10s ease-in-out infinite alternate;
}

.gyms-hero-orb.orb-left {
    width: 450px;
    height: 450px;
    background: #3b82f6;
    top: -120px;
    left: -150px;
}

.gyms-hero-orb.orb-right {
    width: 400px;
    height: 400px;
    background: #60a5fa;
    bottom: -120px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.1); }
}

.gyms-hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    padding: 3.2rem 2.8rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.gyms-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1.4rem;
    text-transform: uppercase;
}

.gyms-hero-tag i {
    font-size: 0.9rem;
    color: #ffffff !important;
}

.gyms-hero-content h1 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.15;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.gyms-hero-content p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stats Bar */
.hero-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff !important;
    backdrop-filter: blur(5px);
}

.stat-item i {
    color: #ffffff !important;
    font-size: 0.95rem;
}

.stat-item span {
    color: #ffffff !important;
}

.stat-item span.highlight {
    color: #ffffff !important;
    font-weight: 800;
}

/* Search Bar */
.gym-search-bar {
    display: grid;
    grid-template-columns: 2fr 1.4fr auto;
    gap: 0.8rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.7rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    max-width: 840px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.15);
}

.search-input-group i {
    color: #ffffff !important;
    font-size: 1rem;
}

.search-input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff !important;
    font-size: 0.95rem;
    width: 100%;
}

.search-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input-group select {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff !important;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
}

.search-input-group select option {
    background: #0f172a;
    color: #ffffff;
    padding: 0.5rem;
}

.gym-search-bar button {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff !important;
}

.gym-search-bar button i {
    color: #ffffff !important;
}

/* ===== HOW FITS PASS WORKS SECTION ===== */
.fits-pass-process {
    background: #0b1329;
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.2rem;
}

.section-header-center .section-tag {
    display: inline-block;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    padding: 0.35rem 1rem;
    border-radius: 50px;
}

.section-header-center h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-header-center p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.process-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.8rem 1.6rem;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.15);
}

.process-step-num {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.35) !important;
    line-height: 1;
    user-select: none;
    letter-spacing: -1px;
}

.process-card:hover .process-step-num {
    color: rgba(255, 255, 255, 0.6) !important;
}

.process-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.process-card:hover .process-icon {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
}

.process-card:hover .process-icon i {
    color: var(--white);
    transform: scale(1.1);
}

.process-icon i {
    font-size: 1.4rem;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.process-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.process-card p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ===== GYM DIRECTORY SECTION ===== */
.gym-directory {
    background: #0f172a;
    padding: 6rem 0;
}

/* Quick Location Chips Bar */
.location-chips-wrapper {
    margin-bottom: 3rem;
}

.location-chips-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-chips-title i {
    color: var(--blue-light);
}

.location-chips {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.4rem 0.2rem 1rem 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.location-chips::-webkit-scrollbar {
    height: 4px;
}

.location-chips::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
}

.location-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.location-chip.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: var(--blue-bright);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* Directory Control Header */
.directory-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.result-count-info {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.result-count-info span {
    color: var(--blue-light);
    font-weight: 800;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
}

.filter-tag.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: var(--blue-bright);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* Gym Grid Layout */
.gyms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

@media (min-width: 1200px) {
    .gyms-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .gyms-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 640px) and (max-width: 991px) {
    .gyms-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 639px) {
    .gyms-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Gym Card Design */
.gym-card {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gym-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(59, 130, 246, 0.15);
}

.gym-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.gym-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gym-card:hover .gym-image img {
    transform: scale(1.08);
}

.gym-badge {
    position: absolute;
    top: 12px !important;
    left: 12px !important;
    bottom: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--blue-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    z-index: 2;
    white-space: nowrap;
}

.gym-rating-badge {
    position: absolute;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fbbf24;
    padding: 0.28rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.gym-rating-badge i {
    font-size: 0.72rem;
    color: #fbbf24;
    line-height: 1;
}

.gym-rating-badge span {
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}

.gym-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.gym-card:hover .gym-overlay {
    opacity: 1;
}

.gym-overlay i {
    font-size: 2.5rem;
    color: var(--white);
    transform: scale(0.5);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gym-card:hover .gym-overlay i {
    transform: scale(1);
}

.gym-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gym-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.gym-card:hover .gym-info h3 {
    color: var(--blue-light);
}

.gym-location {
    font-size: 0.85rem;
    color: var(--blue-light);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gym-location i {
    font-size: 0.95rem;
}

.gym-description {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.gym-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.gym-features span {
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.gym-card:hover .gym-features span {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.15);
    color: var(--white);
}

.gym-features span i {
    color: var(--blue-light);
    font-size: 0.8rem;
}

.gym-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: auto;
    width: 100%;
}

.gym-card-actions .btn {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.65rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 12px;
    gap: 0.35rem;
    white-space: nowrap;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.gym-card-actions .btn i {
    font-size: 0.78rem;
    flex-shrink: 0;
}

.gym-card-actions .book-now-app-btn {
    background: var(--blue-bright);
    color: var(--white);
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.gym-card-actions .book-now-app-btn:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.gym-card-actions .btn-outline-pricing {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.gym-card-actions .btn-outline-pricing:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Empty State Container */
.no-results-state {
    display: none;
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(15, 23, 42, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-state i {
    font-size: 4rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.no-results-state h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.no-results-state p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.no-results-state .btn-reset {
    background: var(--blue-bright);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.no-results-state .btn-reset:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .gyms-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .gym-search-bar {
        grid-template-columns: 1fr;
        border-radius: 26px;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .search-input-group {
        border-radius: 50px;
        padding: 0.65rem 1.1rem;
    }
}

@media (max-width: 768px) {
    .gyms-hero {
        padding: 100px 0 40px !important;
    }

    .gyms-hero-title {
        font-size: clamp(1.8rem, 6vw, 2.3rem) !important;
        margin-bottom: 0.6rem !important;
    }

    .gyms-hero-subtitle {
        font-size: 0.92rem !important;
        margin-bottom: 1.5rem !important;
    }

    .gyms-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    .gym-card {
        border-radius: 18px !important;
    }

    .gym-image {
        height: 180px !important;
    }

    .gym-info {
        padding: 1.2rem 1rem !important;
    }

    .gym-info h3 {
        font-size: 1.15rem !important;
    }

    .gym-card-actions {
        gap: 0.5rem !important;
    }

    .gym-card-actions .btn {
        padding: 0.65rem 0.4rem !important;
        font-size: 0.78rem !important;
    }
}

@media (max-width: 576px) {
    .gyms-hero-content {
        padding: 1.5rem 1rem !important;
        border-radius: 20px !important;
    }
    
    .hero-stats-bar {
        gap: 0.4rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .stat-item {
        padding: 0.3rem 0.65rem !important;
        font-size: 0.74rem !important;
    }
    
    .directory-control-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.8rem !important;
    }
    
    .filter-tags {
        justify-content: flex-start !important;
        gap: 0.4rem !important;
        overflow-x: auto !important;
        padding-bottom: 0.4rem !important;
        scrollbar-width: none !important;
    }
    .filter-tags::-webkit-scrollbar {
        display: none !important;
    }

    .filter-tag {
        font-size: 0.76rem !important;
        padding: 0.35rem 0.8rem !important;
    }
}
