:root {
    --primary: #0066FF;
    --secondary: #FF3366;
    --accent: #00D9B5;
    --dark: #0A0E27;
    --slate: #1E293B;
    --gray: #64748B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gold: #F59E0B;
    --border: #E2E8F0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ==================== NAVIGATION ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF !important;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: rotate(-10deg);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 auto;
}

.nav-links a {
    color: var(--slate);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
}

.nav-links a:hover { color: var(--primary); }

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-cta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-shrink: 0;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
    color: var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* ==================== COUNTRY SELECTOR ==================== */
.country-select {
    height: 42px;
    padding: 0 2.5rem 0 1rem;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
    color: var(--slate);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    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='%231E293B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    min-width: 90px;
    display: flex;
    align-items: center;
}

.country-select:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.country-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.country-select option {
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--white);
    color: var(--slate);
}

/* Responsive */
@media (max-width: 768px) {
    .country-select {
        height: 38px;
        padding: 0 2rem 0 0.75rem;
        font-size: 0.85rem;
        min-width: 75px;
        background-size: 10px;
        background-position: right 0.6rem center;
    }
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 102, 255, 0.5);
}

/* ==================== SEARCH SECTION ==================== */
.search-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0A0E27 0%, #1E293B 100%);
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.search-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.search-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.search-box {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.search-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    transition: all 0.3s;
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--light);
}

.btn-search {
    align-self: flex-end;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 102, 255, 0.5);
}

.quick-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ==================== SPORTS SECTION ==================== */
.sports-section {
    padding: 80px 0;
    background: var(--light);
}

/* ==================== FIXED: SECTION TOP LAYOUT ==================== */
.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(255, 51, 102, 0.05));
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(10px);
    gap: 2rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin: 0;
    flex: 1;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin: 0;
    max-width: none;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
    white-space: nowrap;
}

.view-all-link:hover {
    gap: 0.8rem;
}

.sports-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
}

.sports-grid:active {
    cursor: grabbing;
}

.sports-grid::-webkit-scrollbar {
    display: none;
}

.sports-scroll-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
    transition: all 0.3s;
}

.scroll-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.left {
    left: -20px;
}

.scroll-btn.right {
    right: -20px;
}

.sport-card {
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--white), var(--light));
    border: 2px solid rgba(0, 102, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.sports-grid:active .sport-card {
    pointer-events: none;
}

.sport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.sport-card:hover::before {
    opacity: 1;
}

.sport-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2);
    border-color: transparent;
}

.sport-card > * {
    position: relative;
    z-index: 1;
}

.sport-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.sport-card:hover .sport-icon {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

.sport-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.sport-card:hover .sport-name {
    color: white;
}

.sport-count {
    font-size: 0.9rem;
    color: var(--gray);
    transition: color 0.3s;
}

.sport-card:hover .sport-count {
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== FEATURED VENUES ==================== */
.venues-section {
    padding: 80px 0;
    margin-top: -120px;
    background: var(--light);
}

.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.venue-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.venue-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.venue-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.venue-card:hover .venue-image img {
    transform: scale(1.1);
}

.venue-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.venue-badge.featured {
    background: var(--gold);
}

.venue-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--slate);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.venue-wishlist:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.venue-info {
    padding: 1.5rem;
}

.venue-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.venue-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.venue-location {
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.venue-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--gold), #F59E0B);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.venue-amenities {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.amenity-item i {
    color: var(--accent);
}

.venue-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--light);
}

.venue-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
}

.price-amount span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
}

.btn-book {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    display: inline-block;
    text-decoration: none;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.4);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .search-box {
        grid-template-columns: 1fr 1fr;
    }

    .btn-search {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .sports-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .venues-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .search-title {
        font-size: 2rem;
    }

    .search-box {
        grid-template-columns: 1fr;
        padding: 1.2rem;
    }

    .section-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }

    .view-all-link {
        align-self: flex-end;
    }

    .section-title {
        font-size: 2rem;
    }

    .sports-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .sport-card {
        padding: 1.5rem 1rem;
    }

    .sport-icon {
        font-size: 2.5rem;
    }

    .venues-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .search-title {
        font-size: 1.6rem;
    }

    .search-subtitle {
        font-size: 1rem;
    }

    .quick-filters {
        gap: 0.5rem;
    }

    .filter-chip {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .section-top {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}