/*
 * Gym Habit - World-Class Fitness UI
 * Modern, Vibrant, Eye-Catching Design
 */

/* ============================================================================
   CSS VARIABLES - NEW DESIGN SYSTEM
   ============================================================================ */
:root {
    /* Primary Navy - Updated to #0c53a0 */
    --navy-900: #0a4485;
    --navy-800: #0c53a0;
    --navy-700: #0d5cae;
    --navy-600: #1a6cc2;
    --navy-100: #E3F2FD;
    --navy-50: #F0F8FF;

    /* Accent Orange */
    --orange: #E86A33;
    --orange-light: #FFF4EF;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Legacy mappings */
    --primary: var(--navy-800);
    --primary-dark: var(--navy-900);
    --secondary: var(--orange);
    --bg-base: var(--gray-50);
    --bg-card: var(--white);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-500);
    --text-white: var(--white);

    /* Shadows - Blue Tinted */
    --shadow-sm: 0 2px 8px rgba(0, 86, 179, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 86, 179, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 86, 179, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 86, 179, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 86, 179, 0.4);
    --shadow-card-hover: 0 12px 40px rgba(0, 86, 179, 0.3);

    /* Spacing - Reduced by 25% for better density */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 24px;    /* Was 32px */
    --space-2xl: 36px;   /* Was 48px */
    --space-3xl: 48px;   /* Was 64px */
    --space-4xl: 72px;   /* Was 96px */

    /* Breakpoints */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Typography - NEW DESIGN SYSTEM */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Source Serif 4', Georgia, serif;

    /* Font Sizes */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 17px;
    --text-xl: 22px;
    --text-2xl: 32px;

    /* Legacy mappings */
    --font-body: var(--font-primary);
    --font-size-xs: var(--text-xs);
    --font-size-sm: var(--text-sm);
    --font-size-base: var(--text-base);
    --font-size-lg: var(--text-lg);
    --font-size-xl: var(--text-xl);
    --font-size-2xl: var(--text-2xl);

    /* Font Weights */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================================
   CONTAINER
   ============================================================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 1023px) {
    .container { padding: 0 20px; }
}

@media (max-width: 767px) {
    .container { padding: 0 16px; }
}

@media (max-width: 479px) {
    .container { padding: 0 12px; }
}

/* ============================================================================
   HEADER - MODERN & CLEAN
   ============================================================================ */
.header {
    background: #F5F5F7;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
    gap: var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-habit {
    font-size: 28px;
    font-weight: 900;
    color: #1a1d2e;
    letter-spacing: 1px;
}

.logo-tagline {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
    font-weight: 400;
}

.page-title {
    display: none;
}

/* Mobile header optimization */
@media (max-width: 767px) {
    .header-content {
        padding: var(--space-md) 0;
    }

    .logo-image {
        height: 48px;
    }

    .logo-habit {
        font-size: 24px;
    }

    .logo-tagline {
        font-size: 10px;
    }
}

/* ============================================================================
   HERO SECTION - NEW DESIGN WITH SEARCH CARD
   ============================================================================ */
.hero {
    background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%);
    position: relative;
    overflow: visible;
    padding: 48px 0 72px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 106, 51, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
    margin-bottom: 40px;
}

.hero-label {
    font-size: var(--text-xs);
    color: var(--orange);
    letter-spacing: 2px;
    font-weight: var(--font-semibold);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--orange);
    margin-right: 8px;
    vertical-align: middle;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 500px;
}

/* Search Card - White Overlay */
.search-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    margin-top: -80px;
}

/* Responsive search card */
@media (max-width: 1023px) {
    .search-card {
        max-width: 600px;
    }
}

@media (max-width: 767px) {
    .search-card {
        max-width: 100%;
        padding: 24px;
        margin-top: -60px;
    }
}

@media (max-width: 479px) {
    .search-card {
        padding: 20px;
        border-radius: 12px;
    }
}

.search-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1d2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon {
    color: #6b7280;
}

/* City Toggle Buttons */
.city-toggles {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.city-toggle {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.city-toggle svg {
    width: 16px;
    height: 16px;
}

.city-toggle:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.city-toggle.active {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: var(--white);
}

.city-toggle:focus {
    outline: 2px solid var(--navy-600);
    outline-offset: 2px;
}

/* Search Input Group */
.search-input-group {
    position: relative;
    margin-bottom: 16px;
}

.location-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.search-input-modern {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1d2e;
    outline: none;
    transition: all 0.2s ease;
}

.search-input-modern::placeholder {
    color: #9ca3af;
}

.search-input-modern:focus {
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
    background: var(--white);
}

/* Search Button */
.search-btn-modern {
    width: 100%;
    padding: 16px 24px;
    background: var(--navy-800);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: var(--font-primary);
}

.search-btn-modern:hover {
    background: var(--navy-700);
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(26, 39, 68, 0.12);
}

.search-btn-modern:active {
    transform: scale(0.98);
}

.search-btn-modern svg {
    stroke: #ffffff;
}

/* Helper Text */
.search-helper {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Custom Suggestions Dropdown */
.custom-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 12px 32px rgba(15, 26, 46, 0.12);
    border: 1px solid var(--gray-200);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 12px 16px;
    font-size: var(--text-base);
    color: var(--gray-700);
    border-top: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: var(--font-primary);
}

.suggestion-item:first-child {
    border-top: none;
}

.suggestion-item:hover {
    background-color: var(--navy-50);
    color: var(--navy-800);
}

.suggestion-item:active {
    background-color: var(--navy-100);
}

/* Tablet and below */
@media (max-width: 1023px) {
    .hero {
        padding: 40px 0 120px 0;
    }

    .hero-title {
        font-size: 36px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero {
        padding: 30px 0 100px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .search-card {
        padding: 24px;
        max-width: 100%;
        margin-top: -60px;
    }

    .city-toggles {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .city-toggle {
        flex-shrink: 0;
        min-width: auto;
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ============================================================================
   SECTION TITLES
   ============================================================================ */
.section-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title::after {
    display: none;
}

/* ============================================================================
   BRAND FILTERS - MODERN CHIPS
   ============================================================================ */
.brands-section {
    padding: var(--space-sm) 0;  /* Minimal padding */
    background: var(--bg-card);
}

.brands-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-md);
    margin-top: var(--space-sm);  /* Reduced spacing */
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: var(--space-sm);
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.brands-grid::-webkit-scrollbar {
    display: none;
}

.brand-chip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.brand-chip-icon {
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-chip-text {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--text-primary);
    white-space: nowrap;
}

.brand-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--navy-800);
}

.brand-chip.active {
    background: var(--navy-800);
    border-color: var(--navy-800);
    box-shadow: 0 4px 16px rgba(26, 39, 68, 0.3);
    transform: translateY(-1px);
}

.brand-chip.active .brand-chip-text {
    color: var(--white);
    font-weight: var(--font-semibold);
}

/* Responsive padding for sections */
@media (max-width: 767px) {
    .brands-section {
        padding: var(--space-xs) 0;  /* Absolute minimal padding on mobile */
    }

    .brand-chip {
        padding: 6px 12px;  /* Compact padding on mobile */
    }

    .brand-chip-icon {
        font-size: 24px;
    }

    .brand-chip-text {
        font-size: var(--font-size-sm);
    }
}

/* ============================================================================
   POPULAR AREAS - QUICK LINKS
   ============================================================================ */
.popular-areas-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: var(--space-sm);
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.popular-areas-grid::-webkit-scrollbar {
    display: none;
}

.area-chip {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.area-chip-icon {
    font-size: 18px;
    line-height: 1;
}

.area-chip-text {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: white;
    white-space: nowrap;
}

.area-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.area-chip:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .area-chip {
        padding: 8px 12px;
    }

    .area-chip-icon {
        font-size: 16px;
    }

    .area-chip-text {
        font-size: 12px;
    }
}

/* ============================================================================
   LOCATION SEARCH INPUT
   ============================================================================ */
.search-input-wrapper {
    display: flex;
    gap: var(--space-sm);
    align-items: stretch;
}

.location-search-input {
    flex: 1;
    padding: 16px 20px;
    font-size: var(--font-size-base);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    transition: all var(--transition-base);
    font-family: var(--font-body);
}

.location-search-input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.location-search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    padding: 16px 32px;
    font-size: var(--font-size-base);
    font-weight: 700;
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .search-input-wrapper {
        flex-direction: column;
    }

    .location-search-input {
        padding: 14px 16px;
        font-size: var(--font-size-sm);
    }

    .search-btn {
        padding: 14px 24px;
        width: 100%;
    }
}

/* ============================================================================
   LOCATION SECTION - VIBRANT
   ============================================================================ */
.gyms-section {
    padding: var(--space-xl) 0;  /* Reduced from 3xl to xl */
}

.location-section {
    background: linear-gradient(135deg, #0056B3 0%, #1e40af 100%);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    margin-top: var(--space-md);
    margin-bottom: var(--space-3xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.location-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.location-icon {
    font-size: 48px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.location-text h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.location-text p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
    .gyms-section {
        padding: var(--space-sm) 0;  /* Ultra minimal padding on mobile */
    }

    .location-section {
        padding: var(--space-md);  /* Reduced padding on mobile */
        margin-bottom: var(--space-lg);  /* Less margin */
    }

    .location-section h3 {
        font-size: var(--font-size-lg) !important;
        margin-bottom: var(--space-sm) !important;
    }

    .popular-areas-grid {
        gap: var(--space-xs);
    }

    .area-chip {
        padding: 6px 10px;
    }
}

/* ============================================================================
   BUTTONS - GRADIENT & VIBRANT
   ============================================================================ */
.btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-card);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn:active {
    transform: translateY(-1px);
}

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

/* ============================================================================
   GYM GRID
   ============================================================================ */
.gym-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

@media (max-width: 768px) {
    .gym-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);  /* Reduced gap for better mobile density */
    }
}

/* ============================================================================
   GYM CARDS - CLEAN MODERN DESIGN (Based on Reference)
   ============================================================================ */
.gym-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    border: 1px solid #d1d5db;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.gym-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--navy-600);
}

/* Card Header with Icon */
.gym-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.gym-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 28px;
}

.gym-card-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Badges */
.gym-card-badge {
    display: inline-block;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--text-white);
    border-radius: 0;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gym-distance-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #1e2a47 0%, #2d3e5f 100%);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

/* Partner Badge - Used in cards and modal */
.gym-partner-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Card Body */
.gym-card-body {
    padding: 0;
}

.gym-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1d2e;
    margin-bottom: 4px;
    line-height: 1.3;
}

.gym-location {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pricing Section - CLEAN & VISIBLE */
.gym-pricing {
    background: #f3f4f6;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gym-pricing-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gym-pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.gym-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1d2e;
}

.gym-price-period {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Amenities - Pill Style (Single Line) */
.gym-amenities {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}

.amenity-tag {
    padding: 6px 12px;
    background: #f9fafb;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.amenity-tag.amenity-more {
    background: #e5e7eb;
    color: #374151;
    font-weight: 600;
}

@media (max-width: 767px) {
    .amenity-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Card Footer */
.gym-card-footer {
    padding: 0;
    margin-top: auto;
}

.gym-card-cta {
    width: 100%;
    padding: 12px 18px;
    background: var(--navy-800);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(12, 83, 160, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gym-card-cta:hover {
    background: var(--navy-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 83, 160, 0.3);
}

/* Mobile optimization for gym cards */
@media (max-width: 767px) {
    .gym-card {
        padding: 14px;
        border-radius: 12px;
        border: 1px solid #d1d5db;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .gym-card-header {
        gap: 10px;
        margin-bottom: 10px;
    }

    .gym-card-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .gym-name {
        font-size: 16px;
    }

    .gym-location {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .gym-pricing {
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    .gym-pricing-label {
        font-size: 10px;
    }

    .gym-price {
        font-size: 18px;
    }

    .gym-amenities {
        margin-bottom: 12px;
    }

    .gym-card-cta {
        padding: 11px 16px;
        font-size: 13px;
    }
}

/* ============================================================================
   MODAL
   ============================================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-lg);
    opacity: 1;
    transition: opacity var(--transition-base);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp var(--transition-base);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid var(--bg-base);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.modal-header h2 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.modal-header .gym-partner-badge {
    font-size: 10px;
    padding: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-base);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--secondary);
    color: var(--text-white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.modal-section {
    margin-bottom: 12px;
}

.modal-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.modal-section p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

/* Mobile-optimized full-screen modal */
@media (max-width: 767px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 95vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin: 0;
    }

    /* Keyboard avoidance - reduce height when input is focused */
    .modal-content:has(input:focus, textarea:focus) {
        max-height: 85vh;
    }

    .modal-header {
        padding: 12px;
    }

    .modal-body {
        padding: 12px;
    }

    .modal-header h2 {
        font-size: 14px;
    }
}

/* ============================================================================
   SUBSCRIPTION PLANS - COMPACT CARDS
   ============================================================================ */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.plan-card {
    padding: 10px 8px;
    background: var(--bg-base);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.plan-card > * {
    position: relative;
    z-index: 1;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-card.selected {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px) scale(1.05);
}

.plan-card.selected::before {
    opacity: 0.1;
}

.plan-duration {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.plan-card.selected .plan-duration {
    color: var(--primary);
}

.plan-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.plan-card.selected .plan-total {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-monthly {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.plan-discount {
    display: inline-block;
    padding: 2px 6px;
    background: var(--energy-gradient);
    color: var(--text-white);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    margin-top: 4px;
}

.plan-savings {
    font-size: 10px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 2px;
}

/* Mobile optimization for plan cards */
@media (max-width: 767px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 12px;
    }

    .plan-card {
        padding: 8px 6px;
    }

    .plan-duration {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .plan-total {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .plan-monthly {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .plan-discount {
        padding: 1px 5px;
        font-size: 8px;
        margin-top: 3px;
    }
}

/* ============================================================================
   FORM - MODERN SECTIONS
   ============================================================================ */
.form-section {
    background: rgba(0, 86, 179, 0.03);
    border: 1px solid rgba(0, 86, 179, 0.1);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.form-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-section-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.form-label.required::after {
    content: ' *';
    color: var(--secondary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 86, 179, 0.2);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    line-height: 1.4;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.1);
}

.form-input[readonly] {
    background: var(--bg-base);
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 60px;
}

.form-hint {
    display: block;
    font-size: 10px;
    color: var(--text-light);
    margin-top: var(--space-xs);
}

.form-actions {
    margin-top: var(--space-md);
}

.form-actions .btn {
    width: 100%;
    padding: var(--space-sm);
    background: var(--primary);
    color: var(--text-white);
    font-size: var(--font-size-sm);
}

/* ============================================================================
   TOAST NOTIFICATION
   ============================================================================ */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transform: translateX(400px);
    transition: transform var(--transition-base);
    z-index: 3000;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.toast-icon {
    font-size: var(--font-size-xl);
}

.toast-message {
    font-weight: 600;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    background: var(--text-primary);
    color: var(--text-white);
    text-align: center;
    padding: var(--space-2xl) 0;
    margin-top: var(--space-4xl);
}

.footer p {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

@media (max-width: 767px) {
    .footer {
        margin-top: var(--space-2xl);  /* 36px on mobile */
    }
}

/* ============================================================================
   LOADING & ERROR STATES
   ============================================================================ */
.loading {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

.error {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--secondary);
    font-size: var(--font-size-base);
    background: rgba(245, 87, 108, 0.1);
    border-radius: var(--radius-md);
    border: 2px solid rgba(245, 87, 108, 0.2);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.hidden {
    display: none !important;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .page-title {
        font-size: var(--font-size-lg);
    }

    .location-content {
        flex-direction: column;
        text-align: center;
    }

    .location-info {
        flex-direction: column;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: var(--space-md);
        max-height: 95vh;
    }

    .toast {
        right: var(--space-md);
        left: var(--space-md);
        bottom: var(--space-md);
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gym-card {
    animation: fadeIn 0.5s ease-out backwards;
}

.gym-card:nth-child(1) { animation-delay: 0.05s; }
.gym-card:nth-child(2) { animation-delay: 0.1s; }
.gym-card:nth-child(3) { animation-delay: 0.15s; }
.gym-card:nth-child(4) { animation-delay: 0.2s; }
.gym-card:nth-child(5) { animation-delay: 0.25s; }
.gym-card:nth-child(6) { animation-delay: 0.3s; }
