/* ==========================================================================
   MASTER DIRECTORY UI & VARIABLES
   ========================================================================== */
:root { 
    --primary-orange: #FF6B00; 
    --hover-orange: #e36d19;
    --dark-glass: rgba(23, 22, 22, 0.85); 
    --transition-smooth: all 0.3s ease;
}

body { 
    background: linear-gradient(rgba(15, 15, 15, 0.85), rgba(15, 15, 15, 0.95)), url('../images/updated_img/LandingHeroIMG.png') no-repeat center center fixed !important; 
    background-size: cover !important; 
    color: #fff; 
    font-family: 'Raleway', sans-serif; 
    display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   GLOBAL OVERRIDES (KILLING BOOTSTRAP & BROWSER BLUE)
   -------------------------------------------------------------------------- */
a { color: var(--primary-orange); transition: var(--transition-smooth); text-decoration: none; }
a:hover { color: var(--hover-orange); text-decoration: none; }

/* Target absolutely every input, button, and select tag to vanish the blue */
.form-control:focus, .form-select:focus, .btn:focus, .nav-link:focus, 
input:focus, button:focus, select:focus, .bc-select:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25) !important;
    outline: none !important;
}

/* Because the crumb selector is borderless, a glowing box-shadow looks weird, 
   so we strip its focus ring completely flat and clean */
.bc-select:focus {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* --------------------------------------------------------------------------
   DROPDOWN "GOD MODE" DARK THEME NUKE (CATCHES ALL PLUGINS)
   -------------------------------------------------------------------------- */
/* 1. Native Selects */
select, .form-select, .sheet-select, .bc-select {
    color-scheme: dark !important; 
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}
select option { background-color: #1a1a1a !important; color: #ffffff !important; }

/* 2. Select2 Plugin (Broad Targeting) */
[class^="select2"] {
    background-color: transparent !important;
}
.select2-container .select2-selection {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.select2-container .select2-selection .select2-selection__rendered {
    color: #fff !important;
}
.select2-dropdown, 
.select2-container--open .select2-dropdown {
    background-color: #1a1a1a !important;
    border: 1px solid var(--primary-orange) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
}
.select2-search input, 
.select2-search__field {
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
}
.select2-search input:focus, 
.select2-search__field:focus {
    border-color: var(--primary-orange) !important;
}
.select2-results, 
.select2-results__options {
    background-color: #1a1a1a !important;
}
.select2-results__option {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    padding: 10px 15px !important;
}
/* The Blue Killer */
.select2-results__option[aria-selected="true"],
.select2-results__option--highlighted,
.select2-results__option:hover {
    background-color: var(--primary-orange) !important;
    color: #fff !important;
}

/* 3. Chosen.js Plugin (Just in case it's not Select2) */
.chosen-container .chosen-drop,
.chosen-container .chosen-results {
    background-color: #1a1a1a !important;
    border: 1px solid var(--primary-orange) !important;
}
.chosen-container .chosen-search input {
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
.chosen-container .chosen-results li {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.chosen-container .chosen-results li.highlighted {
    background-color: var(--primary-orange) !important;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   HEADER & HUB CONTROLS (Fixing the Open Space)
   -------------------------------------------------------------------------- */
.go-back-btn { position: absolute; top: 30px; left: 40px; z-index: 10; color: #aaa; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; transition: var(--transition-smooth); }
.go-back-btn:hover { color: #fff; }

.hub-content-box { background: var(--dark-glass); border: 1px solid rgba(255,255,255,0.1); border-radius: 40px; padding: 40px 50px; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); position: relative; z-index: 1; box-shadow: 0 30px 60px rgba(0,0,0,0.5); max-width: 1400px; margin: 0 auto 40px auto; width: 100%; }

.hub-title-main, .hub-subtitle, .location-wizard-container, .sort-pill-container, .search-pill {
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hub-title-main { font-family: 'Raleway', sans-serif; font-weight: 700; letter-spacing: 1px; font-size: 2.2rem; text-transform: uppercase; text-align: center; margin-bottom: 5px; }
.hub-subtitle { font-family: 'Raleway', sans-serif; font-size: 1rem; color: #ccc; text-align: center; margin-bottom: 15px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   LOCATION WIZARD (DESKTOP BREADCRUMB & MOBILE BOTTOM SHEET)
   -------------------------------------------------------------------------- */
.location-wizard-container { margin-bottom: 15px; text-align: center; }

.breadcrumb-builder { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; padding: 8px 15px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.bc-crumb { background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; color: #ccc; display: flex; align-items: center; gap: 8px; }
.bc-crumb span { color: #fff; }
.bc-crumb .reset-step { color: var(--primary-orange); cursor: pointer; transition: 0.2s; }
.bc-crumb .reset-step:hover { color: #fff; transform: scale(1.1); }
.bc-arrow { color: #555; font-size: 0.8rem; }
.bc-select { background: transparent; border: none; color: var(--primary-orange); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; cursor: pointer; outline: none; }
.bc-select option { background: #111; color: #fff; }

.offcanvas-bottom.wizard-sheet { background: var(--dark-glass); backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.1); border-radius: 25px 25px 0 0; color: #fff; height: auto; max-height: 80vh; }
.sheet-step { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sheet-step h6 { font-size: 0.8rem; color: #aaa; text-transform: uppercase; margin-bottom: 8px; }
.sheet-select { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 12px; border-radius: 8px; }

/* --------------------------------------------------------------------------
   FRONTEND SORT CONTROLS & SEARCH PILL
   -------------------------------------------------------------------------- */
.sort-pill-container { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 30px; padding: 5px; display: inline-flex; justify-content: center; gap: 5px; margin-bottom: 15px; width: fit-content; }
.btn-sort-pill { background: transparent; border: none; color: #aaa; font-size: 0.75rem; font-weight: 700; padding: 8px 18px; border-radius: 20px; transition: var(--transition-smooth); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-sort-pill:hover { color: #fff; }
.btn-sort-pill.active { background: var(--primary-orange); color: #fff !important; }

.search-pill { background: #fff; border-radius: 50px; padding: 2px 4px 2px 45px; margin-bottom: 30px; display: flex; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); position: relative; }
.search-pill i.fa-search { position: absolute; left: 20px; color: #888; }
.search-pill input { border: none; background: transparent; padding: 10px 0; font-size: 1rem; color: #333; width: 100%; outline: none; font-weight: 600; }

/* --------------------------------------------------------------------------
   TAB UI STYLING (STRICT ROW CENTERING & WIDTH CONTROL)
   -------------------------------------------------------------------------- */
.nav-tabs { border-bottom: none !important; display: flex; flex-wrap: nowrap; justify-content: center; gap: 15px; max-width: 800px; margin: 0 auto 30px auto !important; padding-left: 0; position: relative; z-index: 20; }

.nav-tabs .nav-item { 
    flex: 1; 
    max-width: 250px; 
}

.nav-tabs .nav-link { 
    position: relative;          
    color: #fff !important; 
    background: rgba(255,255,255,0.05) !important; 
    border: 1px solid rgba(255,255,255,0.1) !important; 
    border-radius: 8px !important; 
    padding: 12px 15px !important; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: var(--transition-smooth); 
    opacity: 0.6; 
    display: flex;                
    align-items: center;          
    justify-content: center;      
    text-align: center; 
    width: 100%; 
}

.nav-tabs .nav-link:hover, .nav-tabs .nav-link.active { opacity: 1; color: #fff !important; background: rgba(255,255,255,0.1) !important; }
.nav-tabs .nav-link.active { border: 2px solid #fff !important; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.nav-tabs .nav-link.active::after { content: ''; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background-color: var(--primary-orange); border-radius: 3px; display: block; }

/* --------------------------------------------------------------------------
   LAZY LOAD PREPARATION (DOM CARDS)
   -------------------------------------------------------------------------- */
.card-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    content-visibility: auto;
    will-change: opacity, transform;
}

.card-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   STATION CARDS
   -------------------------------------------------------------------------- */
.station-card { background: #111111; border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; transition: all 0.3s ease; height: 100%; }
.station-card:hover { border-color: var(--primary-orange); box-shadow: 0 10px 25px rgba(255, 107, 0, 0.15); transform: translateY(-5px); }
.station-card-title { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-card-img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
.station-info-row { display: flex; align-items: center; font-size: 0.8rem; margin-bottom: 6px; color: #aaa; }
.station-info-row i { color: var(--primary-orange); width: 20px; text-align: center; margin-right: 6px; }
.station-btn-stack { margin-top: auto; padding-top: 15px; display: flex; flex-direction: column; gap: 8px; }
.btn-station { display: block; width: 100%; padding: 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; text-align: center; text-decoration: none !important; transition: all 0.3s ease; }
.btn-station-dark { background: #1a1a1a; color: #fff !important; border: 1px solid rgba(255,255,255,0.1); }
.btn-station-orange { background: var(--primary-orange); color: #fff !important; border: 1px solid var(--primary-orange); }
.card-badge-container { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 5; pointer-events: none; }
.status-badge { padding: 5px 12px; border-radius: 50px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.badge-verified, .badge-basic { background: rgba(0,0,0,0.8); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.badge-verified i { color: #3498db; }
.badge-featured { background: var(--primary-orange); color: #fff; }
.lightstone-mini-panel { background: #0a0a0a; border-radius: 8px; margin-bottom: 5px; border: 1px solid rgba(255, 255, 255, 0.1); padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }
.lightstone-mini-panel span { color: #fff; font-size: 0.75rem; font-weight: 700; }
.lightstone-mini-panel img { height: 26px; border-radius: 4px; background: #fff; padding: 2px 6px; }


/* --------------------------------------------------------------------------
   RESPONSIVE OVERRIDES (MOBILE FIXES)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hub-content-box { padding: 50px 20px 30px; border-radius: 25px; margin-top: 20px; }
    .hub-title-main { font-size: 1.5rem !important; }
    .nav-tabs { width: 100% !important; overflow-x: auto; padding-bottom: 10px !important; }
    .nav-tabs .nav-item { min-width: 110px; }
    .nav-tabs .nav-link { font-size: 0.6rem !important; padding: 10px 5px !important; }

    /* --- MOBILE UI REMOVALS --- */
    /* Aggressively kills all variations of the badges on mobile */
    .card-badge-container, 
    .status-badge, 
    .badge-verified, 
    .badge-featured, 
    .badge-basic { 
        display: none !important; 
        visibility: hidden !important; 
        opacity: 0 !important; 
    }

    /* --- MOBILE LOGO REDUCTION --- */
    .navbar-brand img, 
    .site-logo img, 
    .header-logo img, 
    header img { 
        max-width: 180px !important; 
        max-height: 40px !important; 
        object-fit: contain; 
    }
}