
        :root[data-theme="dark"] {
            --bg-body: #040a14;
            --bg-sidebar: #071322;
            --bg-card: rgba(12, 28, 50, 0.75);
            --bg-card-hover: rgba(20, 42, 72, 0.85);
            --bg-glass: rgba(255, 255, 255, 0.05);
            --border-color: rgba(255, 255, 255, 0.12);
            --text-main: #f6f8fd;
            --text-muted: rgba(246, 248, 253, 0.65);
            --text-faint: rgba(246, 248, 253, 0.4);
            --bleu-france: #0055A4;
            --rouge-france: #EF4135;
            --blanc-france: #FFFFFF;
            --gold-accent: #F4C430;
            --gold-soft: #ff9e8d;
            --badge-bg: rgba(0, 85, 164, 0.25);
            --badge-border: rgba(0, 85, 164, 0.4);
            --badge-color: #64b5f6;
            --shadow-color: rgba(0, 0, 0, 0.5);
        }

        :root[data-theme="light"] {
            --bg-body: #f4f6fa;
            --bg-sidebar: #ffffff;
            --bg-card: #ffffff;
            --bg-card-hover: #f0f4fa;
            --bg-glass: rgba(0, 85, 164, 0.04);
            --border-color: rgba(0, 85, 164, 0.15);
            --text-main: #0a192f;
            --text-muted: #4a5568;
            --text-faint: #718096;
            --bleu-france: #0055A4;
            --rouge-france: #EF4135;
            --blanc-france: #FFFFFF;
            --gold-accent: #D4AF37;
            --gold-soft: #d94b36;
            --badge-bg: rgba(0, 85, 164, 0.08);
            --badge-border: rgba(0, 85, 164, 0.2);
            --badge-color: #0055A4;
            --shadow-color: rgba(0, 85, 164, 0.08);
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Work Sans', sans-serif;
            background: var(--bg-body);
            color: var(--text-main);
            min-height: 100vh;
            transition: background 0.3s ease, color 0.3s ease;
        }

        h1,
        h2,
        h3,
        h4 {
            font-family: 'Fraunces', serif;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        .app-container {
            display: flex;
            min-height: 100vh;
        }

        /* Sidebar */
        sidebar.app-sidebar {
            width: 270px;
            background: var(--bg-sidebar);
            border-right: 1px solid var(--border-color);
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            padding: 24px 18px;
            transition: transform 0.3s ease, background 0.3s ease;
            overflow-y: auto;
        }

        .sidebar-brand {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-color);
        }

        .brand-title {
            font-family: 'Fraunces', serif;
            font-size: 20px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tricolore-flag {
            display: inline-flex;
            width: 22px;
            height: 15px;
            border-radius: 2px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            flex-shrink: 0;
        }

        .tricolore-flag span {
            flex: 1;
            height: 100%;
        }

        .tricolore-flag .b-blue {
            background: var(--bleu-france);
        }

        .tricolore-flag .b-white {
            background: #FFFFFF;
        }

        .tricolore-flag .b-red {
            background: var(--rouge-france);
        }

        .theme-toggle-btn {
            background: var(--bg-glass);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            padding: 6px 12px;
            border-radius: 999px;
            cursor: pointer;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11px;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: 0.2s;
        }

        .theme-toggle-btn:hover {
            border-color: var(--rouge-france);
            background: rgba(239, 65, 53, 0.1);
        }

        .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
        }

        .nav-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            border-radius: 10px;
            color: var(--text-muted);
            text-decoration: none;
            font-size: 13.5px;
            font-weight: 500;
            transition: 0.2s;
        }

        .nav-item:hover,
        .nav-item.active {
            background: var(--bleu-france);
            color: #FFFFFF;
            box-shadow: 0 4px 12px rgba(0, 85, 164, 0.25);
        }

        .nav-item .count-badge {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 10px;
            background: rgba(255, 255, 255, 0.2);
            padding: 2px 7px;
            border-radius: 999px;
        }

        .nav-item:hover .count-badge,
        .nav-item.active .count-badge {
            background: #FFFFFF;
            color: var(--bleu-france);
        }

        .sidebar-footer {
            margin-top: auto;
            padding-top: 16px;
            border-top: 1px solid var(--border-color);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11px;
            color: var(--text-faint);
            text-align: center;
        }

        /* Main Workspace */
        main.main-content {
            margin-left: 270px;
            flex: 1;
            padding: 0;
            min-width: 0;
        }

        .hero-banner {
            position: relative;
            padding: 44px 40px 32px;
            background: radial-gradient(circle at 90% 10%, rgba(239, 65, 53, 0.15), transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(0, 85, 164, 0.2), transparent 50%);
            border-bottom: 1px solid var(--border-color);
        }

        .hero-banner .eyebrow {
            font-family: 'IBM Plex Mono', monospace;
            text-transform: uppercase;
            font-size: 11px;
            letter-spacing: 0.14em;
            color: var(--rouge-france);
            font-weight: 600;
            margin-bottom: 8px;
            display: block;
        }

        .hero-banner h1 {
            font-size: clamp(30px, 4vw, 46px);
            line-height: 1.05;
        }

        .hero-banner h1 em {
            font-style: italic;
            color: var(--rouge-france);
        }

        .hero-sub {
            margin-top: 8px;
            font-size: 14.5px;
            color: var(--text-muted);
            max-width: 680px;
            line-height: 1.5;
        }

        /* Hero Text Area Builder */
        .hero-builder-card {
            margin-top: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 18px;
            box-shadow: 0 8px 24px var(--shadow-color);
        }

        .hero-builder-card textarea {
            width: 100%;
            min-height: 90px;
            padding: 12px;
            border-radius: 12px;
            border: 1px dashed var(--border-color);
            background: var(--bg-body);
            color: var(--text-main);
            font-family: 'Work Sans', sans-serif;
            font-size: 13.5px;
            outline: none;
            transition: border-color 0.2s;
        }

        .hero-builder-card textarea:focus {
            border-color: var(--bleu-france);
        }

        /* Quick Samples Row */
        .quick-presets-bar {
            display: flex;
            gap: 8px;
            margin-top: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .preset-chip {
            background: var(--bg-glass);
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            padding: 5px 12px;
            border-radius: 999px;
            font-size: 11.5px;
            font-family: 'IBM Plex Mono', monospace;
            cursor: pointer;
            transition: 0.2s;
        }

        .preset-chip:hover {
            border-color: var(--bleu-france);
            color: var(--text-main);
        }

        /* Dashboard Counter Bar */
        .dash-stats-bar {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 12px;
            padding: 20px 40px;
            background: var(--bg-glass);
            border-bottom: 1px solid var(--border-color);
        }

        .stat-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 12px;
            border-radius: 12px;
            text-align: center;
            transition: 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            border-color: var(--bleu-france);
        }

        .stat-card .val {
            font-family: 'Fraunces', serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--rouge-france);
        }

        .stat-card .lbl {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 10px;
            text-transform: uppercase;
            color: var(--text-faint);
            margin-top: 2px;
        }

        .content-wrap {
            padding: 32px 40px;
        }

        /* Search Bar */
        .search-container {
            margin-bottom: 28px;
        }

        .search-input-wrap {
            position: relative;
        }

        .search-input-wrap input {
            width: 100%;
            padding: 14px 20px 14px 44px;
            border-radius: 999px;
            border: 1px solid var(--border-color);
            background: var(--bg-card);
            color: var(--text-main);
            font-family: 'Work Sans', sans-serif;
            font-size: 14px;
            outline: none;
            transition: 0.2s;
        }

        .search-input-wrap input:focus {
            border-color: var(--bleu-france);
            box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.15);
        }

        .search-input-wrap svg {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            stroke: var(--text-muted);
        }

        .search-status-bar {
            display: flex;
            justify-content: space-between;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11px;
            color: var(--text-faint);
            margin-top: 8px;
            padding: 0 8px;
        }

        /* Sections */
        section {
            margin-bottom: 48px;
            scroll-margin-top: 20px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 12px;
        }

        .section-header h2 {
            font-size: 26px;
        }

        .section-header p {
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* Map Section */
        #map-container-wrap {
            position: relative;
            width: 100%;
            height: 560px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
            overflow: hidden;
            box-shadow: 0 12px 36px var(--shadow-color);
        }

        #map {
            width: 100%;
            height: 100%;
        }

        .map-legend-overlay {
            position: absolute;
            bottom: 20px;
            right: 20px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 12px 16px;
            z-index: 999;
            box-shadow: 0 8px 24px var(--shadow-color);
            backdrop-filter: blur(10px);
            font-size: 12px;
            min-width: 200px;
        }

        .legend-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-family: 'IBM Plex Mono', monospace;
            font-weight: 600;
            margin-bottom: 8px;
            padding-bottom: 6px;
            border-bottom: 1px solid var(--border-color);
        }

        .legend-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .legend-item-row {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            color: var(--text-muted);
        }

        .legend-dot-badge {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
        }

        /* Compact Map Pins */
        .custom-pin-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .compact-map-pin {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
            border: 2px solid #ffffff;
            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
        }

        .compact-map-pin:hover {
            transform: scale(1.4);
            z-index: 9999 !important;
        }

        .pin-beach {
            background: linear-gradient(135deg, #0055A4, #0088ff);
            color: #ffffff;
        }

        .pin-town {
            background: linear-gradient(135deg, #EF4135, #ff6b5c);
            color: #ffffff;
        }

        .pin-food {
            background: linear-gradient(135deg, #F4C430, #ff9e8d);
            color: #ffffff;
        }

        .pin-sunset {
            background: linear-gradient(135deg, #ff5e62, #ff9966);
            color: #ffffff;
        }

        /* Item Cards */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .item-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 20px;
            position: relative;
            display: flex;
            flex-direction: column;
            transition: 0.25s ease;
        }

        .item-card:hover {
            transform: translateY(-4px);
            border-color: var(--bleu-france);
            box-shadow: 0 8px 24px var(--shadow-color);
        }

        .fav-heart-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            background: var(--bg-glass);
            border: 1px solid var(--border-color);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            color: var(--text-faint);
            cursor: pointer;
            transition: 0.2s;
        }

        .fav-heart-btn:hover,
        .fav-heart-btn.active {
            color: var(--rouge-france);
            border-color: var(--rouge-france);
            background: rgba(239, 65, 53, 0.15);
        }

        .item-card h3 {
            font-size: 18px;
            margin-bottom: 6px;
            padding-right: 36px;
        }

        .card-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .badge {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 6px;
            background: var(--badge-bg);
            border: 1px solid var(--badge-border);
            color: var(--badge-color);
        }

        .rating-badge {
            background: rgba(244, 196, 48, 0.15);
            border-color: rgba(244, 196, 48, 0.4);
            color: var(--gold-accent);
        }

        .tag-badge {
            background: rgba(239, 65, 53, 0.15);
            border-color: rgba(239, 65, 53, 0.4);
            color: var(--rouge-france);
        }

        .blurb {
            font-size: 13.5px;
            color: var(--text-muted);
            line-height: 1.45;
            margin-bottom: 12px;
            flex: 1;
        }

        .card-addr {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11px;
            color: var(--text-faint);
            margin-bottom: 12px;
        }

        .card-actions {
            display: flex;
            gap: 8px;
            margin-top: auto;
        }

        .card-btn {
            background: var(--bg-glass);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            padding: 7px 14px;
            border-radius: 8px;
            font-size: 12px;
            font-family: 'Work Sans', sans-serif;
            cursor: pointer;
            transition: 0.2s;
        }

        .card-btn:hover {
            border-color: var(--bleu-france);
            background: var(--bleu-france);
            color: #FFFFFF;
        }

        /* Chips Filter Row */
        .chips-row {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .chip-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            padding: 7px 14px;
            border-radius: 999px;
            font-size: 12.5px;
            font-family: 'Work Sans', sans-serif;
            cursor: pointer;
            transition: 0.2s;
        }

        .chip-btn:hover,
        .chip-btn.active {
            background: var(--bleu-france);
            color: #FFFFFF;
            border-color: var(--bleu-france);
            box-shadow: 0 4px 12px rgba(0, 85, 164, 0.25);
        }

        /* Widgets */
        .widget-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .widget {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 18px;
        }

        .widget h4 {
            font-size: 15px;
            margin-bottom: 14px;
            color: var(--text-main);
        }

        .chart-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
            font-size: 12px;
        }

        .chart-lbl {
            width: 90px;
            color: var(--text-muted);
            flex-shrink: 0;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11px;
        }

        .chart-track {
            flex: 1;
            height: 8px;
            background: var(--bg-glass);
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .chart-fill {
            height: 100%;
            background: var(--bleu-france);
            border-radius: 999px;
            transition: width 0.6s ease;
        }

        .chart-val {
            width: 30px;
            color: var(--text-faint);
            font-size: 11px;
            font-family: 'IBM Plex Mono', monospace;
        }

        /* Sunsets Grid */
        .sun-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 16px;
        }

        .sun-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 18px;
            transition: 0.2s;
        }

        .sun-card:hover {
            transform: translateY(-3px);
            border-color: var(--rouge-france);
        }

        .sun-card .tag {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 10.5px;
            text-transform: uppercase;
            color: var(--rouge-france);
        }

        /* Logistics & Itinerary */
        .itin-details-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 24px;
            box-shadow: 0 4px 16px var(--shadow-color);
        }

        .itin-details-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 14px;
        }

        .itin-detail-box {
            background: var(--bg-glass);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 12px 14px;
        }

        .itin-detail-box .lbl {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11px;
            color: var(--text-faint);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 6px;
        }

        .itin-detail-box .val {
            font-size: 13px;
            color: var(--text-main);
            white-space: pre-line;
            line-height: 1.4;
        }

        .itin-timeline {
            position: relative;
            padding-left: 32px;
        }

        .itin-timeline::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 8px;
            bottom: 8px;
            width: 2px;
            background: repeating-linear-gradient(0deg, var(--rouge-france) 0 6px, transparent 6px 12px);
        }

        .day-node {
            position: relative;
            padding-bottom: 24px;
        }

        .day-node::before {
            content: '';
            position: absolute;
            left: -32px;
            top: 4px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--bg-body);
            border: 2px solid var(--rouge-france);
        }

        .day-node .d-label {
            font-family: 'IBM Plex Mono', monospace;
            color: var(--rouge-france);
            font-size: 11px;
            text-transform: uppercase;
        }

        .day-node h4 {
            font-size: 18px;
            margin-top: 2px;
        }

        /* Modals */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(6px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
        }

        .modal-overlay.open {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            width: 100%;
            max-width: 580px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 24px;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .close-modal-btn {
            background: none;
            border: none;
            font-size: 20px;
            color: var(--text-muted);
            cursor: pointer;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 11.5px;
            color: var(--text-muted);
            margin-bottom: 6px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background: var(--bg-body);
            color: var(--text-main);
            font-family: 'Work Sans', sans-serif;
            font-size: 13.5px;
            outline: none;
        }

        /* Toast Message */
        #toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(30px);
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            padding: 10px 22px;
            border-radius: 999px;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 13px;
            opacity: 0;
            transition: 0.3s ease;
            z-index: 3000;
            pointer-events: none;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }

        #toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }
    