:root {
    --bg-primary: #0f1316;
    --bg-secondary: #161c22;
    --bg-surface: #1e262f;
    --accent-gold: #D4AF37;
    --text-main: #f5f7fa;
    --text-muted: #8e9fae;
    --border-color: #2a3541;
    --success-green: #2ecc71;
    --danger-red: #e74c3c;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header UI Elements */
.main-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    flex-shrink: 0;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 33%;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bee-logo {
    width: 36px;
    height: 36px;
}

.brand-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

.search-bar input {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 14px;
    color: var(--text-main);
    width: 220px;
    font-size: 13px;
}

.header-center {
    width: 34%;
    text-align: center;
}

.domain-identity {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.header-right {
    justify-content: flex-end;
}

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

.user-profile-block {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--bg-surface);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
}

.user-meta { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 600; }
.loyalty-tier { color: var(--accent-gold); font-size: 11px; }

/* Mobile Navigation Bar Object */
.mobile-toggle-bar {
    display: none;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    height: 50px;
}

.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.toggle-btn.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
}

/* App Core Viewport Layout Split */
.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.sidebar {
    width: 380px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    flex-shrink: 0;
}

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

h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; color: #fff; margin-bottom: 12px;}
.route-points { display: flex; flex-direction: column; gap: 12px; }
.point-item { display: flex; gap: 12px; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.dot.green { background-color: var(--success-green); }
.dot.gold { background-color: var(--accent-gold); }
.dot.red { background-color: var(--danger-red); }
.point-item p { font-size: 11px; color: var(--text-muted); }
.metrics { margin-top: 12px; font-size: 12px; border-top: 1px solid var(--border-color); padding-top: 10px; color: var(--text-muted); }
.metrics span { color: var(--accent-gold); font-weight: 600; }

.subtitle { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.stop-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.stop-item { display: flex; gap: 10px; font-size: 12px; padding: 8px; border-radius: 4px; }
.stop-item.active { background-color: rgba(212, 175, 55, 0.04); }
.stop-item label span { display: block; font-size: 11px; color: var(--text-muted); }

.hotel-details-card .stay-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--border-color); margin-bottom: 12px; font-size: 12px; }
.stay-tabs .tab { padding-bottom: 6px; color: var(--text-muted); cursor: pointer; }
.stay-tabs .tab.active { color: var(--accent-gold); border-bottom: 2px solid var(--accent-gold); }
.stay-info h4 { font-size: 13px; color: #fff; }
.hotel-loc { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.stay-grid { display: flex; gap: 20px; font-size: 11px; margin-bottom: 12px; }
.stay-grid label { display: block; color: var(--text-muted); }
.card-actions { display: flex; gap: 8px; }
.card-actions button { flex: 1; padding: 8px; border-radius: 4px; font-size: 11px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background-color: var(--accent-gold); color: #000; }
.btn-secondary { background-color: var(--bg-surface); color: #fff; border: 1px solid var(--border-color) !important; }

/* Real Map Layer Engine Dimensions */
.map-viewport {
    flex: 1;
    position: relative;
}

#map-engine {
    width: 100%;
    height: 100%;
    background-color: #111;
}

/* Custom Leaflet Map Pin Override Modifications */
.custom-html-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.map-hotel-pin {
    background-color: #000;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.map-partner-pin {
    background-color: var(--bg-surface);
    border: 1px solid var(--accent-gold);
    font-size: 14px;
}

.map-public-pin {
    background-color: #1a2f3b;
    border: 1px solid #3498db;
    font-size: 13px;
}

/* High-Impact Golden Path Trajectory Animation Styling */
.animated-beeline-path {
    stroke-dasharray: 8, 6;
    animation: dashflight 30s linear infinite;
}

@keyframes dashflight {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Leaflet Pop-up Aesthetics Override */
.leaflet-popup-content-wrapper {
    background-color: var(--bg-secondary) !important;
    color: #fff !important;
    border: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
}
.leaflet-popup-tip { background-color: var(--bg-secondary) !important; }

/* ---------------------------------------------------------------- */
/* RESPONSIVE SCALING LAYOUT ENGINE (480px to 900px Viewport Logic) */
/* ---------------------------------------------------------------- */
@media stroke and (max-width: 900px) {
    .main-header {
        padding: 0 16px;
    }
    .search-bar, .user-profile-block {
        display: none; /* Strip non-vital layout fluff to maximize tracking viewports */
    }
    .header-left, .header-right {
        width: 20%;
    }
    .header-center {
        width: 60%;
    }
    .domain-identity {
        font-size: 20px;
    }
    
    .mobile-toggle-bar {
        display: flex; /* Activate bottom-edge mobile workspace button controls */
    }

    .app-container {
        flex-direction: column;
    }

    /* Convert standard horizontal flex-splits into layered canvas objects */
    .sidebar {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0; left: 0;
        z-index: 500; /* Drop directly over top of map layer when toggled */
        display: flex;
    }

    .sidebar.hidden {
        display: none !important;
    }

    .map-viewport {
        width: 100%;
        height: 100%;
    }
}
