/* ===== VARIABLES ===== */
:root {
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 25, 0.7);
    --bg-card-hover: rgba(30, 30, 40, 0.9);

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;

    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;

    --blur-xl: 30px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0) 100%);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.logo-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.btn-primary-small {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-small:hover {
    background: white;
    color: black;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: zoomOut 20s infinite alternate;
    z-index: -2;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 10%, rgba(5, 5, 7, 0.7) 50%, rgba(5, 5, 7, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    margin-top: -5vh;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title .accent {
    font-family: var(--font-accent);
    font-style: italic;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.4s;
}

.counter {
    color: white;
    font-weight: 700;
}

.btn-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s forwards 1s;
    transition: color 0.3s ease;
}

.btn-scroll:hover {
    color: white;
}

.arrow-down {
    animation: bounce 2s infinite;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* ===== APP SECTION ===== */
.app-section {
    padding: 4rem 0 8rem;
    background: var(--bg-dark);
}

.app-header {
    text-align: center;
    margin-bottom: 4rem;
}

.app-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.separator {
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0 auto;
    border-radius: 2px;
}

/* SEARCH INTERFACE */
.search-interface {
    background: #101014;
    border-radius: var(--radius-xl);
    padding: 2px;
    /* Gradient Border Trick */
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.filters-container {
    background: #101014;
    border-radius: calc(var(--radius-xl) - 2px);
    padding: 3rem;
}

.search-principal {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 200px;
}

.input-group.grow {
    flex: 1.5;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-wrapper,
.select-wrapper {
    position: relative;
    background: #1a1a20;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.input-wrapper:hover,
.select-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: #202028;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-wrapper input,
.select-wrapper select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

/* TAG FILTERS */
.filter-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tag-checkbox input {
    display: none;
}

.tag-content {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.check-icon {
    opacity: 0;
    width: 0;
    transition: all 0.2s ease;
}

.tag-checkbox input:checked+.tag-content {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    color: #60a5fa;
    padding-left: 1rem;
}

.tag-checkbox input:checked+.tag-content .check-icon {
    opacity: 1;
    width: auto;
    margin-right: 0.2rem;
}

/* BUTTON GLOW */
.btn-search-glow {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-search-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

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

/* RESULTS GRID (Redesign) */
.results-area {
    margin-top: 3rem;
    padding: 0 2rem 2rem;
}

.stats-bar {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stat-highlight {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    background-clip: text;
    -webkit-background-clip: text;
    color: white;
}

.stat-location {
    color: var(--accent-blue);
    font-weight: 600;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* RESULT CARD PREMIUM */
.result-card {
    background: #1a1a20;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-8px);
    background: #1f1f26;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ===== CRAZY LOADER ===== */
.crazy-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.crazy-loader-overlay.active {
    opacity: 1;
}

.crazy-loader-content {
    text-align: center;
}

.crazy-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-blue);
    margin: 0 auto 2rem;
    animation: spin 1s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.5);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.crazy-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    max-width: 600px;
    line-height: 1.4;
    animation: pulseText 2s infinite;
}

@keyframes pulseText {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.card-title h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    /* Bigger title for Enseigne */
    line-height: 1.3;
    margin-bottom: 0.2rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.card-type {
    display: block;
    /* Ensure it checks a new line */
    font-size: 0.9rem;
    color: var(--accent-blue);
    /* Highlight equipment type */
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Simplified badges style */
.badge-public {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.badge-private {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
}

.badge-free {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.badge-accessible {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.badge-transport {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
}

.card-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #52525b;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.card-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.activity-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: #101014;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #d1d5db;
}

.card-amenities {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.amenity.available {
    color: var(--text-main);
}

.amenity.unavailable {
    opacity: 0.3;
}

/* LOAD MORE */
.btn-load-more {
    display: block;
    margin: 4rem auto 0;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: white;
    color: black;
}

/* FOOTER */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #52525b;
}

.footer span {
    font-weight: 700;
    color: white;
}

/* LOADER */
.loader-container {
    padding: 4rem;
    display: flex;
    justify-content: center;
}

.loader-pulse {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
        opacity: 0.8;
    }

    80%,
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ===== MODAL & FORMS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1a1a20;
    width: 90%;
    max-width: 550px;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-form input[type="text"],
.modal-form select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.modal-form input:focus,
.modal-form select:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

/* Fix for Select Options visibility */
select option {
    background-color: #1a1a20;
    color: white;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 12px;
}

.label-text {
    font-size: 0.9rem;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* ADMIN LINK */
.admin-link-container {
    text-align: center;
    padding: 2rem;
    opacity: 0.1;
    /* Discrete */
    transition: opacity 0.3s;
}

.admin-link-container:hover {
    opacity: 0.8;
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .search-principal {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for demo */
}