/* Simond-Inspired Aesthetic */
:root {
    /* Main Backgrounds */
    --bg-dark: #FFFFFF;
    --bg-card: #F9FAFB;

    /* Text */
    --text-primary: #1F2937;
    /* Dark Grey / Almost Black */
    --text-secondary: #4B5563;
    /* Medium Grey */

    /* Brand Colors */
    --accent: #0052CC;
    /* Simond-like Deep Technical Blue */
    --accent-hover: #003D99;
    --accent-glow: rgba(0, 82, 204, 0.15);

    /* Functional Colors */
    --gold: #EAB308;
    --border-color: #E5E7EB;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    min-height: 100vh;
    transition: padding 0.3s ease;
}

body.guide-mode-active {
    overflow: hidden !important;
}

/* We remove the complex app-container flex overhaul which was too fragile */
body.guide-mode-active .app-container {
    height: 100vh;
    overflow: hidden;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    /* Space between logo and hero/content */
    transition: all 0.3s ease;
}

body.guide-mode-active header {
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
}

body.guide-mode-active .hero {
    display: none;
    /* Hide hero in guide mode to save massive space */
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-primary);
}

.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.slogan {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0px;
    /* "Signature" style - slightly italic or just clean sans-serif */
    font-style: italic;
}

.breadcrumbs {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumbs span {
    color: var(--accent);
    cursor: pointer;
}

.breadcrumbs span:hover {
    text-decoration: underline;
}

/* View: Home */
.hero {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-image-container {
    width: 100%;
    max-width: 850px;
    height: 210px;
    margin: 0 auto 1.25rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 0.8s ease-out;
}

@media (max-width: 768px) {
    .hero-img {
        object-fit: contain;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.menu-container {
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.mode-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mode-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Media query for smaller screens: stack everything */
@media (max-width: 768px) {
    .mode-row {
        flex-direction: column;
        align-items: center;
    }

    .mode-card {
        width: 100%;
        max-width: 320px;
    }
}

.mode-card {
    flex: 0 1 280px;
    /* Force flexible but constrained width */
    background: white;
    padding: 0.75rem 1rem;
    /* Significantly reduced vertical padding */
    border-radius: 8px;
    /* Slightly rounder for premium feel */
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease-out;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    /* Reduced min-height */
}

.mode-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mode-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.mode-card h2 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mode-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Common Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.back-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.back-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #F0F9FF;
}

/* Grid Layouts */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Podium - Forced 3 columns */
.podium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 900px) {
    .podium-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 8px;
    overflow: visible;
    /* Needed for medals popping out */
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.card-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* medalist badges */
.rank-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 20;
    border: 3px solid currentColor;
}

.top-rank-1 {
    border: 2px solid #FFD700 !important;
    background: #FFFBF0;
}

.top-rank-2 {
    border: 2px solid #C0C0C0 !important;
    background: #F8F9FA;
}

.top-rank-3 {
    border: 2px solid #CD7F32 !important;
    background: #FAF4F0;
}

.top-rank-1 .rank-badge {
    color: #D4AF37;
    border-color: #FFD700;
}

.top-rank-2 .rank-badge {
    color: #71717A;
    border-color: #C0C0C0;
}

.top-rank-3 .rank-badge {
    color: #9A3412;
    border-color: #CD7F32;
}

/* Desire View */
.desire-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.desire-intro {
    background: #F8FAFC;
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
    text-align: left;
    width: 100%;
}

.desire-intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.filters-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.section-divider-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-grid,
.desires-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.filter-group.full-width {
    grid-column: span 2;
    margin-bottom: 1.5rem;
}

@media (max-width: 850px) {

    .weather-grid,
    .desires-grid {
        grid-template-columns: 1fr;
    }

    .filter-group.full-width {
        grid-column: span 1;
    }
}

.filter-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    background: #F3F4F6;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.checkbox-item:hover {
    background: white;
    border-color: var(--accent);
    color: var(--accent);
}

.checkbox-item input {
    accent-color: var(--accent);
    width: 1rem;
    height: 1rem;
}

.sidebar-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
}

.action-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 82, 204, 0.2);
}

.action-btn-large {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 82, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.action-btn-large:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.3);
}

.action-btn-large:active {
    transform: translateY(0);
}

.anchor-btn {
    background: white;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    white-space: nowrap;
    margin: 0 0.25rem;
}

.anchor-btn:hover {
    background: var(--accent);
    color: white;
}

.distance-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.5rem 1rem;
    /* Added horizontal padding so it doesn't touch the very edge */
    /* space for scrollbar/shadow if needed */
}

@media (min-width: 768px) {
    .distance-buttons {
        justify-content: center;
    }
}

.secondary-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.secondary-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #F0F9FF;
}

/* Slider Improvements */
.slider-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem 0;
}

.slider-helper-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

#cost-slider,
#distance-slider {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #E5E7EB 0%, #E5E7EB 4%, transparent 4%, transparent 24%, #E5E7EB 24%, #E5E7EB 26%, transparent 26%, transparent 49%, #E5E7EB 49%, #E5E7EB 51%, transparent 51%, transparent 74%, #E5E7EB 74%, #E5E7EB 76%, transparent 76%, transparent 96%, #E5E7EB 96%, #E5E7EB 100%);
    background-color: #F3F4F6;
    border-radius: 4px;
    appearance: none;
    margin: 0.5rem 0;
}

#cost-slider::-webkit-slider-thumb,
#distance-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.placeholder-msg {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
    grid-column: 1/-1;
    background: #F9FAFB;
    border-radius: 4px;
    font-style: italic;
}

.anchor-btn:disabled,
.anchor-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    /* Override hidden if active */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top-btn.hidden {
    display: none;
    /* Changed from just opacity to display none to prevent clicks */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-to-top-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

/* Modal - NEW VERTICAL LAYOUT */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: white;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    /* Vertical */
}

.modal-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modal-sidebar {
    width: 100%;
    height: 350px;
    /* Big header image */
    background: #F3F4F6;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.modal-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-main {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    text-transform: uppercase;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modal-quote {
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
    padding: 1.5rem;
    background: #F9FAFB;
    border-left: 4px solid var(--accent);
    border-radius: 2px;
    margin-bottom: 2rem;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.modal-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.stat-pill {
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.stat-pill.feature-tag {
    background: #EFF6FF;
    border-color: var(--accent);
    color: var(--accent);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    /* Visible on image */
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.close-modal:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

/* Charts (Technical Look) */
.charts-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.chart-box {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.chart-title {
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Chart Grid & Bars */
.chart-body {
    display: flex;
    gap: 0.5rem;
    height: 120px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-secondary);
    padding-bottom: 1.6rem;
    /* Space for month labels */
    text-align: right;
    min-width: 30px;
}

.chart-grid {
    flex: 1;
    position: relative;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    /* Darker grey for visibility */
}

.chart-bars-layer {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 1;
    padding: 0 4px;
    width: 100%;
}

.chart-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    width: 100%;
}

.chart-bar-fill {
    width: 80%;
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
    min-height: 1px;
}

.chart-bar-label {
    position: absolute;
    bottom: -22px;
    font-size: 0.6rem;
    color: var(--text-secondary);
    width: 100%;
    text-align: center;
    font-weight: 700;
}

.modal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
}

/* Ensure empty filters don't take space */
.filters:empty,
.filters[style*="display: none"],
#top-controls:empty,
#top-controls[style*="display: none"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute;
    visibility: hidden;
    pointer-events: none;
}

/* Aggressive fix for Top Destinations gap */
#view-top {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.view.hidden {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Banner for Near Me Page */
.banner-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.near-me-banner {
    width: 100%;
    height: 230px !important;
    object-fit: cover;
    display: block;
}


/* Travel Module */
.travel-module {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.travel-module h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.travel-distance {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    border-left: 3px solid var(--accent);
}

.travel-trigger {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 4px;
}

.travel-search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.travel-search-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.travel-search-btn:active {
    transform: translateY(0);
}

.travel-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}


.travel-placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    background: white;
    border-radius: 4px;
    border: 1px dashed var(--border-color);
}

.transport-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.transport-card {
    background: white;
    padding: 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.transport-card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-2px);
}

.transport-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.transport-icon {
    font-size: 2rem;
}

.transport-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.transport-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.transport-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.transport-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.per-person {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-style: italic;
}

.carbon-container {
    position: relative;
}

.carbon-bar,
.carbon-bar-zero {
    height: 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: width 0.3s ease;
}

.carbon-bar {
    background: linear-gradient(90deg, #10B981 0%, #EAB308 50%, #EF4444 100%);
}

.carbon-bar-zero {
    background: #10B981;
    width: 5% !important;
    /* Show a small green bar for zero emissions */
}

.carbon-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.travel-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.travel-footer small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .near-me-banner {
        height: 140px !important;
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    .mode-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .podium-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .distance-buttons {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        padding: 0 1rem;
    }
}

/* ==========================================================================
   Dynamic Guide View Styles
   ========================================================================== */

#view-guide:not(.hidden) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 5000;
    display: flex !important;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

#view-guide .section-header {
    display: flex !important;
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

#view-guide .section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.guide-header {
    padding: 0.75rem 1.5rem;
    /* Compact */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    position: relative;
    z-index: 2001;
}



.guide-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    margin-right: 3rem;
    /* Space for close btn */
}

.breadcrumb-item {
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 500;
}

.breadcrumb-item:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--border-color);
    margin: 0 0.25rem;
}

.breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 700;
    cursor: default;
}

.guide-theme-filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.guide-theme-filters::-webkit-scrollbar {
    display: none;
}

.guide-theme-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.step-badge.optional {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-style: italic;
    text-transform: none;
    font-weight: 400;
}

/* Collapsible Filter Sections */
.filter-content {
    max-height: 1000px;
    /* High enough for content */
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out, margin 0.3s ease-out;
    opacity: 1;
}

.filter-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    pointer-events: none;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    opacity: 0.5;
}

.collapsed+.filter-content .toggle-icon,
/* This is not right if toggle-icon is inside header */
.collapsible-header.active .toggle-icon {
    transform: rotate(-90deg);
}

/* Correction for toggle icon rotation when collapsed */
.collapsible-header .toggle-icon {
    transform: rotate(0deg);
}

.collapsible-header.is-collapsed .toggle-icon {
    transform: rotate(-180deg);
}

.guide-theme-badge:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
}

.guide-theme-badge.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.guide-swipe-container {
    flex: 1;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    background: var(--bg-main);
    width: 100%;
    margin: 0;
    min-height: 0;
    /* Crucial for nested flex */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.guide-swipe-container::-webkit-scrollbar {
    display: none;
}

.guide-card-wrapper {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    box-sizing: border-box;
}

.guide-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 80vh;
    /* Reduced from 90 to fit headers */
    position: relative;
    margin: 0;
}

/* Niveau 0 : 2 photos 450x800 */
.guide-card.level-0 {
    flex-direction: row;
}

.guide-img-left,
.guide-img-right {
    width: 220px;
    /* Even smaller photos */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.guide-content-center {
    flex: 1;
    min-width: 300px;
    padding: 1.5rem 3rem;
    /* Restored to original airier padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: hidden;
    /* No scroll inside cards if possible */
    text-align: center;
    gap: 1.5rem;
}

/* Niveaux > 0 : 1 photo carrée à gauche */
.guide-card.level-1 {
    flex-direction: row;
    max-width: 1000px;
    /* slightly smaller reading area */
    height: 70vh;
    align-items: center;
    /* Center horizontally within the wrapper */
}

.guide-img-square {
    width: 35%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.guide-content-right {
    width: 65%;
    padding: 2rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    gap: 1.25rem;
}

/* Typography and content elements */
.guide-title {
    font-size: 1.25rem;
    /* Even smaller */
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.level-0 .guide-title {
    font-size: 1.4rem;
}

.guide-theme-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: rgba(0, 82, 204, 0.1);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    align-self: flex-start;
    /* For level-1 */
    cursor: pointer;
    transition: background 0.2s;
}

.level-0 .guide-theme-tag {
    align-self: center;
    /* For level-0 */
}

.guide-theme-tag:hover {
    background: rgba(0, 82, 204, 0.2);
}

.guide-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    /* Slightly tighter than 1.6 */
    color: var(--text-secondary);
    margin-bottom: 1rem;
    white-space: pre-line;
    text-align: justify;
    /* Justify for all cards */
    hyphens: auto;
}

.level-0 .guide-desc {
    font-size: 0.9rem;
}

/* Explore children button (Niveau 0->1 or 1->2 transitions) */
.guide-explore-btn {
    margin-top: 0.5rem;
    align-self: center;
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 15px -4px rgba(0, 82, 204, 0.35);
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    display: inline-block;
    text-decoration: none;
}

.level-1 .guide-explore-btn {
    align-self: flex-start;
}

.guide-explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 82, 204, 0.5);
}

/* Progress Indicator */
.guide-progress {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2002;
    backdrop-filter: blur(4px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.guide-overlay.open .guide-progress {
    opacity: 1;
}

/* Placeholder for no items */
.guide-empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 4rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {

    .guide-img-left,
    .guide-img-right {
        width: 300px;
    }

    .guide-card.level-1 {
        height: 80vh;
        /* More height on tablets */
    }
}

@media (max-width: 768px) {
    .guide-header {
        padding: 0.75rem 1rem;
    }

    /* On mobile, the swipe container itself keeps horizontal snapping
       but each card wrapper scrolls vertically if needed */
    .guide-swipe-container {
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        min-height: 0;
        /* Important for flex child in columns */
        align-items: flex-start;
    }

    .guide-card-wrapper {
        padding: 0.75rem;
        align-items: flex-start;
        overflow-y: auto;
        height: 100%;
        scroll-snap-stop: always;
    }

    .guide-card {
        flex-direction: column !important;
        height: auto;
        min-height: unset;
        max-height: none;
        overflow-y: visible;
        border-radius: 12px;
    }

    .guide-card.level-0,
    .guide-card.level-1 {
        display: block;
        /* Ensure natural vertical flow */
    }

    .guide-img-left,
    .guide-img-right,
    .guide-img-square {
        width: 100% !important;
        height: auto !important;
        max-height: 250px;
        aspect-ratio: 16/9;
        position: relative;
        z-index: 1;
    }

    .guide-content-center,
    .guide-content-right {
        width: 100% !important;
        padding: 1.5rem 1.25rem 3rem !important;
        /* Extra bottom padding for buttons */
        position: relative;
        z-index: 2;
        background: white;
        overflow-y: visible !important;
        text-align: left !important;
    }

    .guide-title {
        font-size: 1.75rem !important;
        margin-top: 0.5rem;
    }

    .level-0 .guide-title {
        text-align: left !important;
        font-size: 1.9rem !important;
    }

    .guide-theme-tag {
        margin-bottom: 1rem;
        align-self: flex-start !important;
    }

    .guide-desc {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }

    .guide-explore-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Guide Conclusion Screen */
.conclusion-wrapper {
    align-items: center !important;
    overflow-y: hidden !important;
    display: flex !important;
    padding: 0 !important;
}

.guide-conclusion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    max-width: 950px;
    width: 95%;
    margin: 0 auto;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-height: 94vh;
    overflow: hidden;
}

.conclusion-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.conclusion-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.similar-destinations-section {
    text-align: left;
    margin-top: 0;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .similar-grid {
        grid-template-columns: 1fr;
    }
}

.similar-card {
    background: #F9FAFB;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.similar-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.similar-card-img {
    height: 100px;
    width: 100%;
    object-fit: cover;
}

.similar-card-body {
    padding: 0.5rem;
}

.similar-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.similar-card-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.stats-box {
    background: #F0F9FF;
    /* Soft blue */
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    margin-top: 0.25rem;
    border: 1px solid #BAE6FD;
    /* Light blue border */
}

.citation-inline {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.75rem;
}

.citation-text-inline {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    font-weight: 400;
}

.citation-author-inline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.stats-text {
    font-size: 1.1rem;
    line-height: 1.4;
}

.stats-highlight {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.3rem;
}

/* Hide conclusion from print */
@media print {


    .guide-conclusion,
    .guide-progress,
    .back-btn,
    .action-btn,
    #guide-map-card-wrapper {
        display: none !important;
    }
}

/* Guide Map Card */
.guide-map-card {
    display: flex !important;
    flex-direction: column !important;
    height: 70vh;
    padding: 0 !important;
    overflow: hidden;
    background: white;
}

.guide-map-header {
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    text-align: left;
}

.guide-map-header .guide-title {
    margin: 0;
    font-size: 1.5rem;
}

.guide-map-header p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.guide-map-body {
    flex: 1;
    width: 100%;
    position: relative;
    min-height: 300px;
}

#guide-interactive-map {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .guide-map-card {
        height: 500px !important;
        margin-bottom: 2rem;
    }

    .guide-map-header {
        padding: 1.25rem 1rem;
    }
}

/* ==============================================
   NEAR ME – Mode Toggle (Destinations / Sites)
   ============================================== */
.near-me-toggle-container {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem;
    background: #F3F4F6;
    border-radius: 8px;
    padding: 4px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.near-me-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.near-me-toggle-btn.active {
    background: white;
    color: var(--accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.near-me-toggle-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

/* ==============================================
   NEAR ME – Tag Filter Bar
   ============================================== */
.near-me-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.near-me-tag-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.near-me-tag-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #F0F9FF;
}

.near-me-tag-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 82, 204, 0.25);
}

/* ==============================================
   NEAR ME – Site Cards
   ============================================== */
.site-card {
    border-radius: 8px;
}

.site-card .card-image {
    height: 160px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.site-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.site-card:hover .card-image img {
    transform: scale(1.04);
}

.site-card .card-content {
    padding: 1rem 1.25rem 1.25rem;
}

/* Distance badge shown on site card top-right */
.near-me-dist-badge {
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

/* Theme / tag badge */
.site-theme-badge {
    display: inline-block;
    background: #F0F9FF;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

.site-card .card-desc {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==============================================
   DESIRE – Continent Filter
   ============================================== */
.desire-continent-filter {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.desire-continent-filter p {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* --- SUR LA ROUTE (ON THE ROAD) --- */
/* --- SUR LA ROUTE (ON THE ROAD) --- */
.otr-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.otr-intro {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
    text-align: left;
}

.otr-intro p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.otr-search-panel {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.otr-search-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.otr-search-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
}

.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 999;
    max-height: 280px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-card, #f5f5f5);
}

.result-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.result-details {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.otr-results-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.otr-map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    height: 500px;
}

#otr-map {
    width: 100%;
    height: 100%;
}

.otr-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.otr-sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.otr-sites-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.otr-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: #F9FAFB;
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.otr-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.otr-placeholder p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
    text-align: left;
}

.search-result-item:hover {
    background: #f8fafc;
}

@media (max-width: 850px) {
    .otr-search-panel {
        grid-template-columns: 1fr;
    }

    .otr-results-layout {
        grid-template-columns: 1fr;
    }
}

/* --- OTR LIST ENHANCEMENTS --- */
.otr-list-card {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 1rem;
}

.otr-list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent);
}

.otr-card-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.otr-card-info {
    flex: 1;
    min-width: 0;
}

.otr-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.otr-card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.otr-card-arrow {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
}

.otr-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.otr-popup .leaflet-popup-content {
    margin: 0;
    padding: 10px;
}

/* Step Badges for Filters */
.step-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    vertical-align: middle;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

/* Leaflet Custom Pins */
.custom-pin {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pin-container {
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

.pin-inner {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Focus Suppression for Guide Navigation */
body.guide-mode-active *:focus {
    outline: none !important;
    box-shadow: none !important;
}

#guide-swipe-container:focus {
    outline: none !important;
}

/* Ensure cards are snap-locked */
.guide-card-wrapper {
    scroll-snap-stop: always;
}

/* Guide Navigation Overlay */
.guide-nav-overlay {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 1000;
    pointer-events: none;
    /* Allow interaction with guide cards behind the overlay area */
}

.guide-nav-btn {
    pointer-events: auto;
    /* Re-enable for buttons */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-nav-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 82, 204, 0.3);
}

.guide-nav-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.nav-arrow {
    font-size: 1.5rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .guide-nav-overlay {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }

    .guide-nav-btn {
        width: 50px;
        height: 50px;
    }
}

/* Nearby Destinations Card */
.guide-nearby-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .guide-nearby-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

.guide-nearby-card {
    text-align: center;
}

.conclusion-home-link:hover,
.stats-text button:hover {
    opacity: 0.7;
}

/* Refinement for Nearby Destinations Layout */
.guide-nearby-card .similar-grid {
    margin-top: 0.5rem;
}