/* ============================================
   MAUI TRIP 2026 - Hawaiian Tropical Theme
   Aesthetic: Luxury Resort meets Ocean Breeze
   ============================================ */

/* Google Fonts - loaded in HTML */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* CSS Variables - Hawaiian Palette */
:root {
    /* Ocean Blues */
    --ocean-deep: #0c4a6e;
    --ocean: #0369a1;
    --ocean-light: #0ea5e9;
    --lagoon: #06b6d4;
    --seafoam: #5eead4;

    /* Sunset Palette */
    --sunset-coral: #fb7185;
    --sunset-orange: #fb923c;
    --sunset-gold: #fbbf24;
    --sunset-pink: #f472b6;

    /* Tropical Greens */
    --palm: #15803d;
    --jungle: #22c55e;
    --fern: #86efac;

    /* Sand & Neutrals */
    --sand-light: #fef7ed;
    --sand: #fef3c7;
    --sand-dark: #fde68a;
    --coconut: #fafaf9;
    --driftwood: #78716c;
    --volcanic: #292524;

    /* Semantic Colors */
    --primary: var(--ocean);
    --primary-light: var(--ocean-light);
    --primary-dark: var(--ocean-deep);
    --accent: var(--sunset-coral);
    --accent-warm: var(--sunset-orange);
    --success: var(--jungle);
    --danger: #dc2626;

    /* Text Colors */
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;
    --text-inverse: #fafaf9;

    /* Backgrounds */
    --bg-base: var(--sand-light);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-elevated: #ffffff;
    --bg-overlay: rgba(12, 74, 110, 0.4);

    /* Layout Heights */
    --header-height: 72px;
    --filter-height: 92px;
    --category-height: 56px;
    --nav-height: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Shadows - warm tinted */
    --shadow-sm: 0 1px 2px rgba(251, 113, 133, 0.08);
    --shadow: 0 4px 12px rgba(12, 74, 110, 0.08), 0 2px 4px rgba(251, 113, 133, 0.04);
    --shadow-md: 0 8px 24px rgba(12, 74, 110, 0.12), 0 4px 8px rgba(251, 113, 133, 0.06);
    --shadow-lg: 0 16px 48px rgba(12, 74, 110, 0.16), 0 8px 16px rgba(251, 113, 133, 0.08);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);

    /* Radii */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Base Styles
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle wave pattern background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(251, 113, 133, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Header - Sunset Gradient with Wave
   ============================================ */

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg,
        var(--ocean-deep) 0%,
        var(--ocean) 40%,
        var(--lagoon) 70%,
        var(--seafoam) 100%);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 480px) {
    .app-header {
        padding: 0 16px;
    }
}

@media (min-width: 768px) {
    .app-header {
        padding: 0 24px;
    }
}

.app-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    margin: 0;
}

@media (min-width: 400px) {
    .app-header h1 {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .app-header h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }
}

.trip-dates {
    font-size: 0.625rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    display: none;
}

@media (min-width: 360px) {
    .trip-dates {
        display: inline-block;
        font-size: 0.625rem;
        padding: 2px 6px;
    }
}

@media (min-width: 480px) {
    .trip-dates {
        font-size: 0.6875rem;
        padding: 3px 10px;
    }
}

@media (min-width: 768px) {
    .trip-dates {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}

/* ============================================
   Unified Filter Bar
   ============================================ */

.unified-filter-bar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: var(--filter-height);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--sand-light) 100%);
    z-index: 999;
    box-shadow: 0 2px 8px rgba(12, 74, 110, 0.08);
    display: flex;
    flex-direction: column;
}

.filter-row {
    flex-shrink: 0;
}

.filter-row-categories {
    height: 48px;
    border-bottom: 1px solid rgba(12, 74, 110, 0.08);
}

.filter-row-tags {
    height: 44px;
    background: rgba(254, 247, 237, 0.5);
}

.filter-row-tags .filter-chip {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.filter-row-tags .chip-icon {
    font-size: 0.875rem;
}

.filter-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    height: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.tag-row-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 4px;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent 0%, var(--sand-dark) 50%, transparent 100%);
    flex-shrink: 0;
    margin: 0 4px;
}

.category-chips {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1.5px solid rgba(12, 74, 110, 0.15);
    border-radius: var(--radius-full);
    background: white;
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-chip .chip-icon {
    font-size: 1rem;
    line-height: 1;
}

.filter-chip .chip-label {
    line-height: 1;
}

.filter-chip:hover {
    border-color: var(--ocean-light);
    background: var(--sand-light);
    transform: translateY(-1px);
}

.filter-chip:active {
    transform: scale(0.96);
}

/* Active state for category chips */
.filter-chip.active {
    background: linear-gradient(135deg, var(--ocean) 0%, var(--lagoon) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.filter-chip.active .chip-icon {
    filter: brightness(1.2);
}

/* Special filter chips (Kids, Accessible) */
.filter-chip.special {
    background: var(--sand);
    border-color: rgba(251, 113, 133, 0.2);
}

.filter-chip.special:hover {
    border-color: var(--sunset-coral);
    background: #fff5f5;
}

.filter-chip.special.active {
    background: linear-gradient(135deg, var(--sunset-coral) 0%, var(--sunset-orange) 100%);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.35);
}

/* Tag filter chips container */
.tag-filter-chips {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Filter divider */
.filter-divider {
    color: var(--text-muted);
    font-size: 0.875rem;
    opacity: 0.4;
    flex-shrink: 0;
}

/* Tag filter chips */
.filter-chip.tag-filter {
    border-color: var(--chip-color, #6b7280);
    color: var(--chip-color, #6b7280);
    background: white;
}

.filter-chip.tag-filter:hover {
    background: var(--chip-bg, rgba(107, 114, 128, 0.1));
    border-color: var(--chip-color, #6b7280);
}

.filter-chip.tag-filter.active {
    background: var(--chip-color, #6b7280);
    color: white;
    border-color: var(--chip-color, #6b7280);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--chip-color, #6b7280) 50%, transparent);
}

.filter-chip.tag-filter .chip-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 1px 5px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    margin-left: 4px;
}

.filter-chip.tag-filter.active .chip-count {
    background: rgba(255, 255, 255, 0.35);
}

/* Active filter count badge */
.active-filter-count {
    display: none;
    position: absolute;
    top: 4px;
    right: 12px;
    background: var(--sunset-coral);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(251, 113, 133, 0.3);
}

.active-filter-count.visible {
    display: block;
}

/* Category chip with count */
.filter-chip .chip-count {
    font-size: 0.6875rem;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 2px;
}

.filter-chip.active .chip-count {
    opacity: 0.9;
}

@media (min-width: 480px) {
    .filter-scroll {
        padding: 8px 16px;
        gap: 10px;
    }

    .filter-chip {
        padding: 8px 14px;
        font-size: 0.875rem;
        gap: 8px;
    }

    .filter-chip .chip-icon {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .filter-scroll {
        padding: 10px 24px;
        gap: 12px;
    }

    .filter-chip {
        padding: 8px 16px;
    }
}

/* ============================================
   Category Bar
   ============================================ */

.category-bar {
    position: fixed;
    top: calc(var(--header-height) + var(--filter-height));
    left: 0;
    right: 0;
    height: var(--category-height);
    background: linear-gradient(180deg, var(--coconut) 0%, var(--sand-light) 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    overflow-x: auto;
    z-index: 998;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-sm);
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-pill:active {
    transform: scale(0.96);
}

.category-pill.active {
    background: currentColor;
    border-color: currentColor;
    box-shadow: var(--shadow-md), 0 4px 16px currentColor;
}

.category-pill.active .cat-name,
.category-pill.active .cat-count {
    color: white;
}

.category-pill .cat-icon {
    font-size: 1.125rem;
}

.category-pill .cat-name {
    color: var(--text-primary);
    transition: color 0.3s;
}

.category-pill .cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    position: fixed;
    top: calc(var(--header-height) + var(--filter-height));
    left: 0;
    right: 0;
    bottom: calc(var(--nav-height) + var(--safe-bottom));
    overflow: hidden;
    background: var(--bg-base);
}

.view {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.view.active {
    display: block;
    animation: fadeIn 0.3s var(--ease-smooth);
}

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

/* ============================================
   Bottom Navigation
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 10px;
    border-top: 1px solid rgba(251, 191, 36, 0.15);
    z-index: 1000;
    box-shadow: 0 -8px 32px rgba(12, 74, 110, 0.08);
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--ocean-light), var(--lagoon));
    border-radius: var(--radius-full);
    transition: transform 0.3s var(--ease-bounce);
}

.nav-btn:active {
    transform: scale(0.92);
}

.nav-btn.active {
    color: var(--ocean);
}

.nav-btn.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-btn.active .nav-icon {
    transform: scale(1.15);
}

.nav-icon {
    font-size: 1.625rem;
    transition: transform 0.3s var(--ease-bounce);
}

.nav-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

/* Saved/Favorites button - ensure heart aligns with other icons */
.nav-btn[data-view="favoritesView"] .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.625rem; /* Match other nav-icons height */
}

.nav-btn[data-view="favoritesView"].active .nav-icon {
    filter: drop-shadow(0 2px 4px rgba(229, 62, 62, 0.5));
}

/* ============================================
   List View
   ============================================ */

.list-container {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}

.list-group {
    margin-bottom: 24px;
}

.list-group-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ocean-deep);
    letter-spacing: 0.5px;
    padding: 12px 8px;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, var(--bg-base) 0%, rgba(254, 247, 237, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    border-bottom: 2px solid var(--sand-dark);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.list-group-title:hover {
    background: linear-gradient(180deg, var(--sand-light) 0%, rgba(254, 247, 237, 0.98) 100%);
}

.list-group-title:active {
    background: var(--sand);
}

.list-group-title .collapse-icon {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    width: 16px;
    text-align: center;
}

.list-group-content {
    transition: max-height 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
}

.list-group.collapsed .list-group-content {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.list-group:not(.collapsed) .list-group-content {
    max-height: none;
    opacity: 1;
}

/* ============================================
   Search View
   ============================================ */

.search-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: linear-gradient(180deg, var(--coconut) 0%, var(--bg-base) 100%);
}

#searchInput {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--sand-dark);
    border-radius: var(--radius-xl);
    background: var(--bg-elevated);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-sm);
}

#searchInput::placeholder {
    color: var(--text-muted);
}

#searchInput:focus {
    border-color: var(--ocean-light);
    box-shadow: var(--shadow), 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    margin-top: 16px;
    -webkit-overflow-scrolling: touch;
}

.search-hint {
    color: var(--text-muted);
    text-align: center;
    padding: 48px 24px;
    font-size: 1rem;
}

.search-hint::before {
    content: '🔍';
    display: block;
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ============================================
   Favorites View
   ============================================ */

.favorites-container {
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 64px 24px;
    font-size: 1rem;
    line-height: 1.6;
}

.empty-state::before {
    content: '💝';
    display: block;
    font-size: 3rem;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   Hana View
   ============================================ */

#hanaView {
    display: none;
    flex-direction: column;
    height: 100%;
}

#hanaView.active {
    display: flex;
}

.hana-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--palm) 0%, var(--jungle) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.hana-header::before {
    content: '🌴';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.3;
}

.hana-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hana-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 0.9;
}

.hana-route {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: var(--bg-base);
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   Utilities
   ============================================ */

.hidden {
    display: none !important;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--ocean-light);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--ocean-light);
    color: white;
}

/* ============================================
   Responsive - Tablet & Desktop
   ============================================ */

@media (min-width: 768px) {
    :root {
        --header-height: 80px;
        --filter-height: 100px;
        --category-height: 64px;
        --nav-height: 80px;
    }

    .app-header h1 {
        font-size: 1.875rem;
    }

    .app-header::after {
        font-size: 2rem;
        right: 120px;
    }

    .trip-dates {
        font-size: 0.9375rem;
        padding: 8px 20px;
    }

    .filter-btn {
        padding: 10px 24px;
        font-size: 0.9375rem;
    }

    .category-pill {
        padding: 10px 20px;
        font-size: 0.9375rem;
    }

    .nav-icon {
        font-size: 1.75rem;
    }

    .nav-label {
        font-size: 0.75rem;
    }

    .list-container,
    .search-container,
    .favorites-container {
        padding: 24px;
    }
}

/* Desktop - 14" laptop and larger */
@media (min-width: 1024px) {
    /* Default split position - can be changed via JS on :root */
    :root {
        --split-position: 50%;
    }

    body {
        display: grid;
        grid-template-columns: var(--split-position) 1fr;
        grid-template-rows: var(--header-height) 1fr;
    }

    .app-header {
        grid-column: 1 / -1;
        padding: 0 32px;
    }

    .app-header h1 {
        font-size: 2rem;
    }

    .unified-filter-bar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: var(--split-position);
        min-width: 280px;
    }

    .main-content {
        position: fixed;
        top: calc(var(--header-height) + var(--filter-height));
        left: 0;
        width: var(--split-position);
        min-width: 280px;
        bottom: calc(var(--nav-height) + var(--safe-bottom));
    }

    /* Resize handle */
    .resize-handle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: var(--header-height);
        bottom: 0;
        width: 16px;
        left: calc(var(--split-position) - 8px);
        background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.05) 50%, transparent 100%);
        cursor: col-resize;
        z-index: 1500;
        transition: background 0.2s;
    }

    .resize-handle:hover,
    .resize-handle.dragging {
        background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.15) 50%, transparent 100%);
    }

    .resize-grip {
        width: 6px;
        height: 60px;
        background: linear-gradient(180deg, var(--ocean-light), var(--lagoon));
        border-radius: var(--radius-full);
        transition: all 0.2s var(--ease-smooth);
        box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    }

    .resize-handle:hover .resize-grip,
    .resize-handle.dragging .resize-grip {
        height: 80px;
        width: 8px;
        box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
    }

    /* Map takes the right portion on desktop */
    #mapView {
        position: fixed !important;
        top: var(--header-height) !important;
        left: var(--split-position) !important;
        right: 0 !important;
        bottom: 0 !important;
        width: auto !important;
        display: block !important;
        z-index: 100;
        border-left: 1px solid rgba(251, 191, 36, 0.2);
    }

    #mapView #map {
        height: 100% !important;
    }

    /* On desktop, map is always visible on right, content views on left */
    /* View switching works normally - active class controls visibility */

    .bottom-nav {
        width: var(--split-position);
        min-width: 280px;
        border-radius: 0 var(--radius-xl) 0 0;
    }

    .list-group-title {
        font-size: 1.125rem;
    }

    .list-container,
    .search-container,
    .favorites-container {
        padding: 32px;
        max-width: 600px;
    }
}

/* Extra wide screens */
@media (min-width: 1440px) {
    .app-header {
        padding: 0 48px;
    }

    .filter-bar,
    .category-bar {
        padding: 0 48px;
    }

    .list-container,
    .search-container,
    .favorites-container {
        padding: 40px;
    }
}
