/* ============================================================
   WAJHA — UAE Tourism App
   Design System: White + Black + Gold
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
    --white: #FFFFFF;
    --off-white: #F8F7F4;
    --cream: #F2F0EB;
    --light-gray: #E8E6E1;
    --mid-gray: #B0ADA6;
    --dark-gray: #6B6862;
    --charcoal: #2D2B28;
    --near-black: #1A1917;
    --black: #0D0C0B;

    --gold: #C9A84C;
    --gold-light: #E2CC7E;
    --gold-dark: #A68A3A;
    --gold-glow: rgba(201, 168, 76, 0.25);
    --gold-subtle: rgba(201, 168, 76, 0.08);

    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;

    --quiet: #2ECC71;
    --moderate: #F39C12;
    --busy: #E74C3C;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-arabic: 'Amiri', serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.3s var(--ease-out);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

.hidden {
    display: none !important;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--charcoal);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--near-black);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    background: var(--light-gray);
    color: var(--mid-gray);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--dark-gray);
    padding: 10px 16px;
}

.btn-ghost:hover {
    background: var(--cream);
    color: var(--charcoal);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--light-gray);
    color: var(--charcoal);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: var(--gold-subtle);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--light-gray);
    height: 64px;
    transition: all var(--transition);
}

.navbar-container {
    max-width: 1250px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--charcoal);
    color: var(--gold);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--charcoal);
}

/* Nav Tabs — flex child on desktop, fixed bottom on mobile */
.nav-bottom-tabs {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    transition: all var(--transition);
}

.nav-bottom-tabs.auth-hidden {
    display: none !important;
}

.nav-bottom-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-bottom-tabs .nav-link:hover {
    color: var(--charcoal);
    background: var(--cream);
}

.nav-bottom-tabs .nav-link.active {
    color: var(--gold-dark);
    background: var(--gold-subtle);
}

.nav-bottom-tabs .nav-link.active svg {
    stroke: var(--gold-dark);
}

.nav-bottom-tabs .nav-link svg {
    width: 18px;
    height: 18px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--dark-gray);
    cursor: default;
}

.user-menu span {
    font-weight: 500;
}

.btn-signout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    color: var(--mid-gray);
    transition: all var(--transition);
}

.btn-signout:hover {
    background: var(--cream);
    color: var(--danger);
}

/* ---------- AUTH (Split Layout) ---------- */
.page-auth {
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
}

.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    width: 45%;
    background: linear-gradient(160deg, #0D0C0B 0%, #1A1917 40%, #0D0C0B 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 50px;
    overflow: hidden;
}

.auth-left canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.auth-left-content {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.auth-left-content h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.gold-text {
    color: var(--gold);
}

.auth-tagline {
    color: var(--mid-gray);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.auth-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 1;
}

.auth-skyline svg {
    width: 100%;
    height: 100%;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--gold-dark);
    margin-bottom: 24px;
    position: relative;
}

.auth-brand::before,
.auth-brand::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--light-gray);
}

.auth-brand::before {
    right: calc(50% + 50px);
}

.auth-brand::after {
    left: calc(50% + 50px);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--light-gray);
}

.auth-tab {
    flex: 1;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mid-gray);
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.auth-tab.active {
    color: var(--charcoal);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--charcoal);
}

.auth-tab:hover:not(.active) {
    color: var(--dark-gray);
}

.auth-card {
    animation: fadeInUp 0.4s var(--ease-out);
}

.auth-header {
    margin-bottom: 28px;
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark-gray);
    letter-spacing: 0.08em;
}

.form-group input {
    padding: 14px 16px;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--off-white);
    outline: none;
    transition: all var(--transition);
}

.form-group input::placeholder {
    color: var(--mid-gray);
}

.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: var(--white);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

.auth-divider span {
    font-size: 0.85rem;
    color: var(--mid-gray);
}

.btn-guest {
    background: var(--off-white);
    color: var(--dark-gray);
    border: 1.5px solid var(--light-gray);
    font-weight: 600;
}

.btn-guest:hover {
    background: var(--cream);
    border-color: var(--gold-light);
    color: var(--charcoal);
}

.auth-switch {
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.auth-switch a {
    font-weight: 600;
}

/* ---------- USER AVATAR ---------- */
.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-display);
    flex-shrink: 0;
}

/* ---------- PAGES GENERAL ---------- */
.page {
    padding-top: 64px;
    padding-bottom: 70px;
    min-height: 100vh;
}

/* ---------- STEPPER ---------- */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    background: var(--off-white);
    border-bottom: 1px solid var(--light-gray);
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: all var(--transition);
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.7;
}

.step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--mid-gray);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--mid-gray);
    transition: all var(--transition);
}

.step.active .step-circle {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.step.completed .step-circle {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--white);
}

.step span {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.step.active span {
    color: var(--charcoal);
    font-weight: 600;
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--light-gray);
    margin: 0 16px;
    position: relative;
    overflow: hidden;
}

.step.completed .step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--gold);
    animation: lineGrow 0.5s var(--ease-out) forwards;
}

@keyframes lineGrow {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ---------- PLAN STEPS ---------- */
.plan-step {
    display: none;
    padding: 40px 60px 100px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.5s var(--ease-out);
}

.plan-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.step-header p {
    color: var(--dark-gray);
    font-size: 1.05rem;
}

.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--light-gray);
}

.step-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- EMIRATES SELECTION (Photo Cards) ---------- */
.emirates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.emirate-card {
    position: relative;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
    height: 220px;
    border: 3px solid transparent;
}

.emirate-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.emirate-card.selected {
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

.emirate-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 3;
}

.emirate-card-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease-out);
}

.emirate-card:hover .emirate-card-img {
    transform: scale(1.08);
}

.emirate-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
}

.emirate-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.emirate-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 4px;
}

.emirate-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
}



/* ---------- ITINERARY TOOLBAR ---------- */
.itinerary-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.itinerary-hover-hint {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: var(--mid-gray);
}

.itinerary-hover-hint span:first-child {
    font-weight: 600;
    color: var(--dark-gray);
}

/* ---------- CALENDAR ---------- */
.dates-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.date-section h3,
.time-section h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.calendar-wrapper {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-header span {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--charcoal);
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--dark-gray);
    transition: all var(--transition);
}

.cal-nav:hover {
    background: var(--cream);
    color: var(--charcoal);
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-days-header span {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.2s;
}

.cal-day:hover:not(.disabled):not(.empty) {
    background: var(--cream);
}

.cal-day.empty {
    cursor: default;
}

.cal-day.disabled {
    color: var(--light-gray);
    cursor: not-allowed;
}

.cal-day.today {
    font-weight: 700;
    color: var(--gold-dark);
}

.cal-day.selected {
    background: var(--gold);
    color: var(--white);
    font-weight: 600;
}

.cal-day.in-range {
    background: var(--gold-subtle);
    color: var(--gold-dark);
}

.cal-day.range-start {
    background: var(--gold);
    color: var(--white);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.cal-day.range-end {
    background: var(--gold);
    color: var(--white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.selected-dates-info {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--gold-subtle);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gold-dark);
    font-weight: 500;
}

/* ---------- TIME PICKER ---------- */
.time-desc {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.time-inputs {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.time-group {
    flex: 1;
}

.time-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.time-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--white);
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L6 8L9 5' stroke='%236B6862' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.time-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.time-separator {
    padding-bottom: 14px;
    color: var(--mid-gray);
    font-weight: 500;
}

/* ---------- PREFERENCES ---------- */
.prefs-container {
    max-width: 700px;
    margin: 0 auto;
}

.pref-section {
    margin-bottom: 36px;
}

.pref-section h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.pref-section>p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.pref-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pref-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
    user-select: none;
}

.pref-chip:hover {
    border-color: var(--gold-light);
    background: var(--gold-subtle);
}

.pref-chip.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.05));
    color: var(--gold-dark);
    box-shadow: var(--shadow-gold);
}

.pref-chip .chip-icon {
    font-size: 1.1rem;
}

/* ---------- ITINERARY ---------- */
.itinerary-loading {
    text-align: center;
    padding: 120px 20px;
}

.loading-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 32px;
}

.loading-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.itinerary-loading h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.itinerary-loading p {
    color: var(--dark-gray);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.loading-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 32px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-dots span:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Itinerary Results Styling (Premium) */
.itinerary-results {
    padding: 40px 0 80px;
    background: var(--white);
    /* Match body background */
}

.itinerary-info-cards-container {
    max-width: 1250px;
    margin: 0 auto 32px;
    padding: 0 40px;
}

.itinerary-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-card {
    background: var(--white);
    padding: 16px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #EBEBEB;
    transition: all 0.2s ease;
}

.info-card.clickable:hover {
    transform: translateY(-3px);
    border-color: var(--gold-light);
    box-shadow: 0 8px 20px rgba(198, 164, 86, 0.12);
    cursor: pointer;
}

.info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1px solid #EBEBEB;
    border-radius: 10px;
    background: #fafafa;
}

.info-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold-dark);
    stroke-width: 1.8;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-card-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.info-card-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1.2;
    white-space: nowrap;
}

.currency-toggle {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.6rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-top: 3px;
    text-align: left;
    outline: none;
    display: block;
}

.currency-toggle:hover {
    color: var(--gold-dark);
}

/* Header & Toolbar */
.itinerary-header {
    max-width: 1250px;
    margin: 32px auto 16px;
    padding: 0 40px;
    text-align: left;
}

.itinerary-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 6px;
    line-height: 1.1;
}

.gold-text {
    color: var(--gold-dark);
}

.itinerary-header p {
    color: var(--mid-gray);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.itinerary-toolbar-container {
    max-width: 1250px;
    margin: 0 auto 24px;
    padding: 0 40px;
    background: transparent;
    box-shadow: none;
    border: none;
}

.itinerary-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border: 1px solid #EBEBEB;
    border-radius: 14px;
    padding: 10px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.toolbar-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Day Cards */
.day-card {
    max-width: 1250px;
    margin: 0 auto 24px;
    padding: 0 40px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.day-card-inner {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #EBEBEB;
}

.day-header {
    background: #000;
    color: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.day-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.day-date {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.btn-dark {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.btn-dark:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--gold);
}

.itinerary-days {
    padding-top: 8px;
}

.btn-sm {
    padding: 5px 14px;
    font-size: 0.8rem;
}

/* Timeline & Place Items */
.place-timeline-item {
    display: flex;
    padding: 25px 30px;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    transition: background 0.2s ease;
}

.place-timeline-item:last-child {
    border-bottom: none;
}

.place-timeline-item:hover {
    background: rgba(198, 164, 86, 0.02);
}

.timeline-left {
    display: flex;
    position: relative;
    align-items: flex-start;
    flex-shrink: 0;
    width: 140px;
}

.time-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-right: 20px;
    padding-top: 15px;
    width: 70px;
    text-align: right;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 77px;
    top: 20px;
    bottom: -25px;
}

.marker-dot {
    width: 10px;
    height: 10px;
    background: var(--gold-dark);
    border-radius: 50%;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(198, 164, 86, 0.15);
}

.marker-line {
    width: 2px;
    flex: 1;
    background: #eaeaea;
    margin-top: 4px;
}

.place-timeline-item:last-child .timeline-marker {
    bottom: auto;
    /* Don't extend line on last item */
}

.place-timeline-item:last-child .marker-line {
    display: none;
}

.place-icon {
    width: 44px;
    height: 44px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-left: auto;
}

.place-details {
    flex: 1;
    padding-left: 20px;
    display: flex;
    justify-content: space-between;
}

.place-details-content {
    flex: 1;
}

.place-title-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.place-title-inline h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
}

.price-badge {
    color: var(--gold-dark);
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(198, 164, 86, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
}

.free-badge {
    color: #555;
    background: #f0f0f0;
}

.place-desc {
    color: var(--mid-gray);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 8px;
}

.place-tip-inline {
    font-size: 0.8rem;
    color: var(--gold-dark);
    margin-bottom: 8px;
}

.place-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-top: 8px;
}

.place-timeline-item:hover .place-actions {
    opacity: 1;
}

.action-btn {
    background: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--mid-gray);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: var(--charcoal);
    border-color: #d0d0d0;
    background: #f8f8f8;
}

.place-right-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: 15px;
    padding-top: 4px;
}

.crowd-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.duration-badge {
    color: var(--mid-gray);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Duration Input */
.duration-input {
    width: 40px;
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mid-gray);
    text-align: right;
    cursor: pointer;
    padding: 0;
}

.duration-input:focus {
    outline: none;
    color: var(--gold-dark);
}

.place-swap-actions a,
.place-swap-actions button {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.place-swap-actions a:hover,
.place-swap-actions button:hover {
    color: var(--gold);
}

.place-info .place-desc {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

.crowd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.crowd-badge.quiet {
    background: rgba(46, 204, 113, 0.1);
    color: var(--quiet);
}

.crowd-badge.moderate {
    background: rgba(243, 156, 18, 0.1);
    color: var(--moderate);
}

.crowd-badge.busy {
    background: rgba(231, 76, 60, 0.1);
    color: var(--busy);
}

.live-pulse {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.live-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.crowd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.crowd-dot.quiet {
    background: var(--quiet);
}

.crowd-dot.moderate {
    background: var(--moderate);
}

.crowd-dot.busy {
    background: var(--busy);
}

.place-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: flex-end;
}

.btn-reroll {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--mid-gray);
    transition: all var(--transition);
}

.btn-reroll:hover {
    background: var(--cream);
    color: var(--gold-dark);
}

.btn-navigate {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--charcoal);
    color: var(--white);
    transition: all var(--transition);
}

.btn-navigate:hover {
    background: var(--near-black);
    transform: translateY(-1px);
}

/* ---------- EXPLORE PAGE ---------- */
.explore-hero {
    background: linear-gradient(135deg, var(--charcoal), var(--near-black));
    padding: 60px 40px 40px;
    text-align: center;
    color: var(--white);
}

.explore-hero h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold-light);
}

.explore-hero p {
    color: var(--mid-gray);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.explore-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    margin: 0 auto;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.explore-search-bar:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.explore-search-bar svg {
    color: var(--mid-gray);
    flex-shrink: 0;
}

.explore-search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 1rem;
}

.explore-search-bar input::placeholder {
    color: var(--mid-gray);
}

.explore-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    border-bottom: 1px solid var(--light-gray);
    background: var(--white);
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-select {
    padding: 8px 32px 8px 14px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--charcoal);
    background: var(--white);
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 4L5 6.5L7.5 4' stroke='%236B6862' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-select:focus {
    border-color: var(--gold);
}

.filter-right {
    color: var(--gold-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 32px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---------- LOCATION CARD (PHOTO-FREE) ---------- */
.location-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--gold);
}

.location-card-header {
    height: 120px;
    background: linear-gradient(145deg, var(--charcoal), var(--near-black));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.location-card:hover .location-card-header {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
}

.card-emirate-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 2;
}

.card-type-icon {
    font-size: 3rem;
    color: var(--gold);
    transition: transform 0.4s var(--ease-out);
}

.location-card:hover .card-type-icon {
    transform: scale(1.1);
    color: var(--white);
}

.location-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
    line-height: 1.2;
}

.location-card-body .card-desc {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.location-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-info-summary {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mid-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-card-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-card-nav:hover {
    color: var(--charcoal);
    transform: translateX(4px);
}

/* Modals (Photo-Free) */
.modal-content-wrapper.photo-free {
    padding: 0;
}

.modal-details-header {
    padding: 80px 40px 40px;
    background: var(--off-white);
    text-align: center;
    color: var(--charcoal);
    position: relative;
    border-bottom: 1px solid var(--light-gray);
}

.modal-emirate-tag {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold-dark);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.modal-icon-large {
    font-size: 4rem;
    margin-bottom: 24px;
}

.modal-details-header h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    margin-bottom: 12px;
    line-height: 1.1;
}

.modal-type-rating {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

.modal-main-description {
    padding: 40px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--charcoal);
    border-bottom: 1px solid var(--light-gray);
}

.modal-expert-section {
    padding: 40px;
}

.modal-expert-section h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.modal-grid-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-item .label-text {
    display: block;
    font-size: 0.75rem;
    color: var(--mid-gray);
    margin-bottom: 6px;
    font-weight: 700;
}

.info-item div {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
}

.modal-action-bar {
    padding: 20px 40px 40px;
    display: flex;
    gap: 20px;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    flex-shrink: 0;
}

/* Live Parking UI */
.modal-parking-section {
    padding: 20px 40px 40px;
    background: var(--off-white);
    border-bottom: 1px solid var(--light-gray);
}

.parking-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.parking-header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.parking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.parking-slot {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

.parking-slot:hover {
    transform: translateY(-2px);
}

.slot-id {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mid-gray);
    text-transform: uppercase;
}

.slot-status-indicator {
    min-width: 100px;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.slot-status-indicator.vacant {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 2px solid #2ecc71;
    position: relative;
}

.slot-status-indicator.vacant::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid #2ecc71;
    animation: parkingPulse 2s infinite;
}

.slot-status-indicator.occupied {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 2px solid #e74c3c;
}

.slot-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
}

@keyframes parkingPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Live Crowds UI */
.modal-crowd-section {
    padding: 20px 40px 40px;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
}

.crowd-container {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--off-white);
    padding: 25px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--light-gray);
}

.crowd-chart-box {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crowd-circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: var(--light-gray);
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease, stroke 0.6s ease;
}

.crowd-lvl-low {
    stroke: #2ecc71;
}

.crowd-lvl-med {
    stroke: #f39c12;
}

.crowd-lvl-high {
    stroke: #e74c3c;
}

.percentage {
    fill: var(--charcoal);
    font-family: var(--font-display);
    font-size: 0.5em;
    font-weight: 800;
    text-anchor: middle;
}

.crowd-stats {
    flex: 1;
}

.crowd-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--mid-gray);
}

.crowd-val {
    font-weight: 800;
    color: var(--charcoal);
}

.crowd-bar-bg {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.crowd-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.8s var(--ease-out), background 0.8s ease;
}

.crowd-status-text {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animations and Colors */
.bg-low {
    background: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

.bg-med {
    background: #f39c12;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
}

.bg-high {
    background: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
}

.text-low {
    color: #27ae60;
}

.text-med {
    color: #d35400;
}

.text-high {
    color: #c0392b;
}

.btn-nav-full {
    flex: 2;
    height: 60px;
    justify-content: center;
    font-size: 1.1rem;
}

.card-rating svg {
    color: var(--gold);
}

.location-card-body {
    padding: 16px 20px 20px;
}

.card-emirate {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.location-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.location-card-body .card-desc {
    font-size: 0.85rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.card-best-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--mid-gray);
}

.card-parking {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--mid-gray);
    margin-top: 6px;
}

/* ---------- MODAL ---------- */


.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

#location-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 1000px;
    width: 80%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s var(--ease-out);
}

#location-modal-body {
    flex: 1;
    overflow-y: auto;
}

#location-modal-footer {
    flex-shrink: 0;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-gray);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.modal-close:hover {
    background: var(--white);
    color: var(--charcoal);
}

.modal-hero-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.modal-body-content {
    padding: 28px 32px 32px;
}

.modal-body-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.modal-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 24px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h4 {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.parking-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.parking-stat {
    padding: 16px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    text-align: center;
}

.parking-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
}

.parking-stat .stat-label {
    font-size: 0.8rem;
    color: var(--mid-gray);
    margin-top: 4px;
}

.best-times-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.best-time-tag {
    padding: 6px 14px;
    background: var(--gold-subtle);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.cultural-tips-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
}

.cultural-tips-list .modal-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border: none;
    background: transparent;
}

.cultural-tips-list .item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
}

.cultural-tips-list .item-content {
    font-size: 0.85rem;
    color: var(--mid-gray);
    line-height: 1.4;
}

/* ---------- TRIPS PAGE ---------- */
.trips-header {
    padding: 48px 40px 32px;
    text-align: center;
}

.trips-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.trips-header p {
    color: var(--dark-gray);
    font-size: 1.05rem;
}

.trips-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    padding: 0 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.trip-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.trip-card:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.trip-card-content {
    padding: 28px;
}

.trip-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.trip-card-header-row h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
}

.trip-card-days {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--gold-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.trip-card-dates {
    font-size: 0.9rem;
    color: var(--mid-gray);
    margin-bottom: 24px;
}

.trip-card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.trip-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.trip-stat svg {
    color: var(--gold);
}

.trip-card-emirates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emirate-tag {
    padding: 4px 12px;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.trip-card:hover .emirate-tag {
    background: var(--gold-subtle);
    border-color: rgba(201, 168, 76, 0.2);
    color: var(--gold-dark);
}

.trips-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--dark-gray);
}

.trips-empty svg {
    color: var(--mid-gray);
    margin-bottom: 16px;
}

.trips-empty h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.trip-detail {
    padding: 24px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- CHAT PAGE ---------- */
.chat-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: calc(100vh - 64px);
}

.chat-sidebar {
    padding: 32px 24px;
    border-right: 1px solid var(--light-gray);
    background: var(--off-white);
    overflow-y: auto;
}

.chat-sidebar h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.chat-sidebar>p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin-bottom: 24px;
}

.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--charcoal);
    text-align: left;
    transition: all var(--transition);
    background: var(--white);
}

.chat-suggestion:hover {
    border-color: var(--gold);
    background: var(--gold-subtle);
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 80%;
    animation: fadeInUp 0.3s var(--ease-out);
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.chat-message.assistant .chat-avatar {
    background: var(--charcoal);
    color: var(--gold);
    font-family: var(--font-display);
}

.chat-message.user .chat-avatar {
    background: var(--gold);
    color: var(--white);
}

.chat-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.6;
}

.chat-message.assistant .chat-bubble {
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    color: var(--charcoal);
}

.chat-message.user .chat-bubble {
    background: var(--charcoal);
    color: var(--white);
}

.chat-bubble ul {
    list-style: none;
    margin: 8px 0;
}

.chat-bubble li {
    padding: 2px 0;
}

.chat-bubble li::before {
    content: "•";
    color: var(--gold);
    margin-right: 8px;
    font-weight: 700;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    border-top: 1px solid var(--light-gray);
    background: var(--white);
}

.chat-input-bar input {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition);
}

.chat-input-bar input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.btn-send {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mid-gray);
}

/* ---------- TOAST ---------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--charcoal);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s var(--ease-out);
    min-width: 280px;
}

/* ---------- LIVE MAP SIDEBAR TOGGLE (mobile) ---------- */
.livemap-sidebar-toggle {
    display: none;
}

/* ---------- PWA INSTALL BANNER ---------- */
.pwa-install-banner {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 20px;
    border-radius: 16px;
    background: rgba(13, 12, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideUpFade 0.4s var(--ease-out);
    white-space: nowrap;
}

.pwa-install-banner.pwa-banner-visible {
    display: flex;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.pwa-install-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.pwa-install-text svg {
    stroke: var(--gold);
    flex-shrink: 0;
}

.pwa-install-text strong {
    color: var(--gold);
}

.pwa-install-btn {
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
    transform: translateY(-1px);
}

.pwa-dismiss-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.pwa-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
    .pwa-install-banner {
        bottom: 68px;
        left: 12px;
        right: 12px;
        transform: none;
        border-radius: 14px;
    }

    @keyframes slideUpFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--danger);
}

.toast.info {
    border-left: 3px solid var(--info);
}

/* ============================================================
   WAJHA — Live Map Section
   Full-screen interactive map with dark sidebar
   ============================================================ */

.page-livemap {
    height: calc(100vh - 64px);
    overflow: hidden;
    background: var(--black);
}

.livemap-layout {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Sidebar */
.livemap-sidebar {
    width: 380px;
    height: 100%;
    background: #0d0c0b;
    border-right: 1px solid rgba(201, 168, 76, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.livemap-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.livemap-sidebar-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 4px;
}

.livemap-count {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tabs */
.livemap-tabs {
    display: flex;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.livemap-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 4px;
    color: var(--mid-gray);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.livemap-tab.active {
    color: var(--gold);
}

.livemap-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

/* Search */
.livemap-search {
    padding: 16px 20px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.livemap-search svg {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mid-gray);
    pointer-events: none;
}

.livemap-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 10px 10px 40px;
    color: var(--white);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.livemap-search input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    outline: none;
}

/* Panel & List */
.livemap-panel {
    flex: 1;
    overflow-y: auto;
    display: none;
    padding: 10px 0;
}

.livemap-panel.active {
    display: block;
}

.livemap-list {
    display: flex;
    flex-direction: column;
}

.livemap-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.livemap-item:hover {
    background: rgba(201, 168, 76, 0.05);
}

.livemap-item.active {
    background: rgba(201, 168, 76, 0.1);
    border-left: 3px solid var(--gold);
    box-shadow: inset 5px 0 15px rgba(201, 168, 76, 0.05);
}

.livemap-item.active .livemap-item-name {
    color: var(--gold);
}

.livemap-item-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.livemap-item-info {
    flex: 1;
    min-width: 0;
}

.livemap-item-name {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.livemap-item-sub {
    color: var(--mid-gray);
    font-size: 0.75rem;
}

.livemap-item-chevron {
    color: rgba(255, 255, 255, 0.2);
    margin-left: 12px;
}

/* My Plan Section */
.livemap-plan-header {
    padding: 20px;
    background: linear-gradient(to bottom, rgba(201, 168, 76, 0.05), transparent);
}

.livemap-plan-header h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 4px;
}

.livemap-plan-header p {
    color: var(--mid-gray);
    font-size: 0.8rem;
}

.livemap-day-tabs {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    overflow-x: auto;
}

.livemap-day-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.livemap-day-tab.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    font-weight: 600;
}

.livemap-plan-number {
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 12px;
    flex-shrink: 0;
}

.livemap-crowd-header {
    padding: 16px 20px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar Bottom Bar */
.livemap-bottom {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
    background: #0d0c0b;
}

.livemap-bottom-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.livemap-bottom-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.livemap-bottom-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.livemap-bottom-primary:hover {
    background: #b89740;
    transform: translateY(-2px);
}

/* Map Area */
.livemap-map-area {
    flex: 1;
    position: relative;
}

.livemap-container {
    width: 100%;
    height: 100%;
}

.livemap-top-bar {
    position: absolute;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    display: flex;
    gap: 12px;
}

.livemap-badge {
    background: rgba(13, 12, 11, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.livemap-badge-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Route Stats Bar */
.livemap-stats-bar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(13, 12, 11, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.5s var(--ease-out);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: var(--mid-gray);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Leaflet Overrides */
.lm-marker,
.lm-route-marker {
    background: none !important;
    border: none !important;
}

.lm-marker-pin {
    width: 38px;
    height: 38px;
    background: rgba(30, 28, 25, 0.92);
    border: 2.5px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(201, 168, 76, 0.15);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lm-marker-pin span {
    font-size: 1.15rem;
    line-height: 1;
    display: block;
}

.lm-marker:hover .lm-marker-pin {
    transform: scale(1.2);
    border-color: var(--white);
    box-shadow: 0 5px 20px rgba(201, 168, 76, 0.5);
}

.lm-route-number {
    width: 32px;
    height: 32px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 3px solid var(--black);
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.6);
    transition: all 0.2s ease;
}

.lm-route-number:hover {
    transform: scale(1.2);
    z-index: 2000;
}

/* Popups */
.lm-popup {
    padding: 4px;
}

.lm-popup h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--white);
}

.lm-popup-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.75rem;
    color: var(--mid-gray);
}

.lm-popup p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 12px;
}

.leaflet-popup-content-wrapper {
    background: #1a1918 !important;
    color: var(--white) !important;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 12px !important;
}

.leaflet-popup-tip {
    background: #1a1918 !important;
    border: 1px solid rgba(201, 168, 76, 0.3);
}

/* Protect Leaflet internal elements from mobile CSS overrides */
.leaflet-popup-content,
.leaflet-popup-content div,
.leaflet-popup-content p,
.leaflet-popup-content span,
.leaflet-popup-content h4,
.leaflet-popup-content a {
    max-width: none !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
}

.leaflet-popup-content-wrapper {
    max-width: none !important;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
    max-width: none !important;
    height: auto !important;
}

.leaflet-marker-icon svg,
.leaflet-marker-icon img {
    max-width: none !important;
}

/* Ensure Leaflet div icons aren't constrained */
.lm-marker,
.lm-marker div,
.lm-route-marker,
.lm-route-marker div {
    max-width: none !important;
    overflow: visible !important;
}

/* Responsive Fixes */
@media (max-width: 900px) {
    .livemap-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 320px;
        transform: translateX(-100%);
    }

    .livemap-sidebar.open {
        transform: translateX(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .livemap-stats-bar {
        width: 90%;
        gap: 20px;
        padding: 10px 16px;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .navbar {
        padding: 0 16px;
        height: 54px;
        /* Remove backdrop-filter so child position:fixed works relative to viewport */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-bottom-tabs {
        /* Break out of navbar → fixed to bottom of viewport */
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        z-index: 2500;
        display: flex !important;
        flex: none;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid var(--light-gray);
        border-bottom: none;
        padding: 8px 0 env(safe-area-inset-bottom, 4px);
        height: 60px;
        gap: 0;
    }

    .nav-bottom-tabs .nav-link {
        flex-direction: column;
        gap: 3px;
        font-size: 0.7rem;
        padding: 6px 8px;
        white-space: nowrap;
        background: none !important;
        border-radius: 0;
    }

    .nav-bottom-tabs .nav-link svg {
        width: 20px;
        height: 20px;
    }

    .page {
        padding-bottom: 70px;
    }

    .plan-step {
        padding: 24px 20px 80px;
    }

    .emirates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dates-container {
        grid-template-columns: 1fr;
    }

    .explore-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .explore-filters {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .chat-container {
        grid-template-columns: 1fr;
    }

    .chat-sidebar {
        display: none;
    }

    .stepper {
        padding: 16px 20px;
        overflow-x: auto;
    }

    .step-line {
        width: 40px;
    }

    .trips-list {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
    }
}

/* ============================================================
   NEW: PLAN MAKER ENHANCEMENTS
   ============================================================ */

/* Hidden Gem Toggle */
.pref-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--light-gray);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.pref-toggle-card:hover {
    border-color: var(--gold);
    background: var(--off-white);
}

.pref-toggle-info strong {
    display: block;
    font-size: 1rem;
    color: var(--charcoal);
}

.pref-toggle-info p {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin: 0;
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--gold);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}



/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 520px;
    border-radius: 20px;
    position: relative;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 32px 32px 0;
    flex-shrink: 0;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--charcoal);
    margin: 0 0 8px;
}

.modal-header p {
    font-size: 0.875rem;
    color: var(--mid-gray);
    line-height: 1.5;
    margin: 0 0 20px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px 16px;
}

.modal-footer {
    padding: 16px 32px 24px;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
}

.modal-footer .btn-dark {
    background: #111;
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-footer .btn-dark:hover {
    background: #000;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #e9e9e9;
    color: #222;
}

/* Cultural tips in modal */
.cultural-tips-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cultural-tips-list .modal-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cultural-tips-list .modal-item:last-child {
    border-bottom: none;
}

.cultural-tips-list .item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--charcoal);
}

.cultural-tips-list .item-content {
    font-size: 0.82rem;
    color: var(--mid-gray);
    line-height: 1.45;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.modal-body li:last-child {
    border-bottom: none;
}

.packing-checklist {
    display: flex;
    flex-direction: column;
}

.packing-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: background 0.2s ease;
}

.packing-item:last-child {
    border-bottom: none;
}

.packing-item:hover {
    background: #fafafa;
}

.packing-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold-light);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    flex-shrink: 0;
}

.packing-item input[type="checkbox"]:checked {
    background: var(--gold);
    border-color: var(--gold);
}

.packing-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.packing-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.item-desc {
    font-size: 0.8rem;
    color: var(--mid-gray);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Action modal (time/note editing) */
.modal-action-content {
    max-width: 420px;
}

.action-modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #EBEBEB;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal);
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    margin-top: 4px;
}

.action-modal-input:focus {
    border-color: var(--gold);
    background: white;
}

.btn-action-cancel {
    flex: 1;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #EBEBEB;
    background: white;
    color: var(--mid-gray);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-cancel:hover {
    background: #f5f5f5;
}

.btn-action-confirm {
    flex: 1;
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: #111;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-confirm:hover {
    background: var(--gold-dark);
}

/* AI Spinner overlay */
.ai-spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

.ai-spinner-overlay.hidden {
    display: none;
}

.ai-spinner-box {
    background: white;
    border-radius: 20px;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.ai-spinner-box p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0;
}

/* ============================================================
   MOBILE RESPONSIVE — Phone (max-width: 600px)
   Tuned for Samsung Galaxy A36 (412px viewport)
   ============================================================ */
@media (max-width: 600px) {

    /* ---------- GLOBAL ---------- */
    * {
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;
        width: 100vw;
    }

    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    span,
    li,
    a,
    label,
    td,
    th {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Scope div overflow to pages only, not Leaflet */
    .page div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    h1 {
        font-size: 1.25rem !important;
    }

    h2 {
        font-size: 1.1rem !important;
    }

    h3 {
        font-size: 1rem !important;
    }

    p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .page img,
    .page video,
    .page canvas,
    .page iframe {
        max-width: 100%;
        height: auto;
    }

    /* Don't override Leaflet map SVGs/icons with height:auto! 
       Leaflet markers rely on precise inline dimensions. */
    .leaflet-container img,
    .leaflet-container svg,
    .leaflet-container canvas {
        max-width: none !important;
    }

    /* ---------- BUTTONS (compact) ---------- */
    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .btn-full {
        padding: 12px;
    }

    /* ---------- NAVBAR (compact top bar) ---------- */
    .navbar {
        height: 46px;
        padding: 0 10px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }

    .navbar-container {
        padding: 0 12px;
        gap: 8px;
    }

    .nav-left {
        flex-shrink: 0;
    }

    .nav-right {
        flex-shrink: 0;
    }

    /* Bottom tab bar on mobile */
    .nav-bottom-tabs {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        z-index: 2500;
        display: flex !important;
        flex: none;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid var(--light-gray);
        padding: 4px 0 env(safe-area-inset-bottom, 4px);
        height: 56px;
    }

    .nav-bottom-tabs .nav-link {
        flex-direction: column;
        gap: 1px;
        font-size: 0.6rem;
        padding: 4px 2px;
        background: none !important;
        border-radius: 0;
    }

    .nav-bottom-tabs .nav-link svg {
        width: 20px;
        height: 20px;
    }

    .user-menu #user-display-name {
        display: none;
    }

    .user-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .logo-text {
        font-size: 1rem !important;
    }

    .btn-signout {
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--charcoal);
    }

    .btn-signout svg {
        width: 16px;
        height: 16px;
    }

    /* Toast above bottom nav on mobile */
    .toast-container {
        bottom: 80px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    /* Live Map sidebar toggle button for mobile */
    .livemap-sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 1600;
        background: rgba(13, 12, 11, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(201, 168, 76, 0.4);
        color: var(--white);
        padding: 10px 16px;
        border-radius: 30px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        transition: all 0.3s ease;
    }

    .livemap-sidebar-toggle:hover,
    .livemap-sidebar-toggle:active {
        background: rgba(201, 168, 76, 0.9);
        color: var(--black);
    }

    .livemap-sidebar-toggle svg {
        width: 16px;
        height: 16px;
    }

    /* ---------- AUTH PAGE ---------- */
    .page-auth {
        padding-bottom: 0 !important;
        /* No bottom nav on auth */
    }

    .auth-split {
        flex-direction: column;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 20px 16px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 60px;
    }

    .auth-container {
        max-width: 100%;
        width: 100%;
    }

    .auth-brand {
        font-size: 0.7rem;
        margin-bottom: 16px;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .auth-tab {
        font-size: 0.85rem;
        padding: 10px 0;
    }

    .auth-header {
        margin-bottom: 20px;
    }

    .auth-header h1 {
        font-size: 1.3rem !important;
    }

    .auth-header p {
        font-size: 0.85rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 0.7rem;
    }

    .form-group input,
    .form-group select {
        font-size: 16px;
        /* Prevents iOS/Android zoom */
        padding: 10px 12px;
    }

    .auth-form {
        gap: 0;
    }

    .auth-divider {
        margin: 12px 0;
    }

    /* ---------- PAGES GENERAL ---------- */
    .page {
        padding-top: 46px;
        padding-bottom: 62px;
    }

    /* ---------- PLAN TRIP ---------- */
    .stepper {
        padding: 8px 10px;
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .step span {
        font-size: 0.55rem;
        display: none;
        /* Hide text labels to save space */
    }

    .step.active span {
        display: inline;
        /* Show only active label */
    }

    .step-circle {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .step-line {
        width: 20px;
    }

    .plan-step {
        padding: 12px 12px 70px !important;
    }

    .step-header {
        margin-bottom: 14px;
    }

    .step-header h1 {
        font-size: 1.2rem !important;
    }

    .step-header p {
        font-size: 0.8rem;
    }

    .step-actions {
        padding: 10px 0;
        gap: 6px;
        margin-top: 20px;
    }

    .step-actions-right {
        gap: 4px;
        flex-wrap: wrap;
    }

    /* Emirates grid */
    .emirates-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        max-width: 100%;
    }

    .emirate-card {
        height: 120px;
    }

    .emirate-card-content {
        padding: 10px;
    }

    .emirate-name {
        font-size: 0.9rem;
    }

    .emirate-tagline {
        font-size: 0.55rem;
    }

    .emirate-card.selected::after {
        width: 22px;
        height: 22px;
        top: 8px;
        right: 8px;
        font-size: 0.65rem;
    }

    /* Dates & Calendar */
    .dates-container {
        grid-template-columns: 1fr !important;
        gap: 12px;
        max-width: 100%;
    }

    .date-section h3,
    .time-section h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .calendar-wrapper {
        padding: 10px;
    }

    .calendar-header {
        margin-bottom: 12px;
    }

    .calendar-header span {
        font-size: 0.85rem;
    }

    .calendar-days-header span {
        font-size: 0.6rem;
    }

    .calendar-day {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .time-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .time-separator {
        display: none;
    }

    .time-select {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .selected-dates-info {
        font-size: 0.8rem;
        padding: 8px;
    }

    /* Preferences */
    .prefs-container {
        gap: 12px;
        max-width: 100%;
    }

    .pref-section {
        margin-bottom: 16px;
    }

    .pref-section h3 {
        font-size: 1rem;
    }

    .pref-section>p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .pref-chips {
        gap: 6px;
    }

    .pref-chip {
        font-size: 0.75rem;
        padding: 6px 12px;
        gap: 5px;
    }

    .pref-chip .chip-icon {
        font-size: 0.9rem;
    }

    .pref-toggle-card {
        padding: 12px 14px;
    }

    .pref-toggle-info strong {
        font-size: 0.85rem;
    }

    .pref-toggle-info p {
        font-size: 0.75rem;
    }

    /* Itinerary */
    .itinerary-loading {
        padding: 60px 16px;
    }

    .loading-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .loading-ring {
        width: 60px;
        height: 60px;
    }

    .itinerary-info-cards-container {
        padding: 0 12px;
    }

    .itinerary-info-cards {
        flex-direction: column;
        gap: 8px;
    }

    .info-card {
        width: 100%;
        padding: 12px;
    }

    .info-card-label {
        font-size: 0.6rem;
    }

    .info-card-value {
        font-size: 0.95rem;
    }

    .itinerary-header {
        padding: 0 12px;
    }

    .itinerary-header h1 {
        font-size: 1.15rem !important;
    }

    .itinerary-toolbar-container {
        padding: 0 12px;
    }

    .itinerary-toolbar {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .toolbar-left {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .toolbar-left .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        font-size: 0.7rem;
        padding: 7px 8px;
    }

    .btn-gold {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .itinerary-days {
        padding: 0 8px;
    }

    .day-card {
        padding: 10px;
        margin-bottom: 8px;
    }

    .stop-card {
        padding: 8px;
    }

    .itinerary-hover-hint {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.65rem;
        padding: 6px 0;
    }

    #itinerary-summary {
        font-size: 0.75rem;
    }

    .currency-toggle {
        font-size: 0.7rem;
    }

    /* ---------- EXPLORE PAGE ---------- */
    .explore-hero {
        padding: 16px 12px 16px;
    }

    .explore-hero h1 {
        font-size: 1.2rem !important;
        margin-bottom: 4px;
    }

    .explore-hero p {
        font-size: 0.8rem;
        margin-bottom: 14px;
    }

    .explore-search-bar {
        max-width: 100%;
        padding: 10px 14px;
        gap: 8px;
    }

    .explore-search-bar input {
        font-size: 16px;
    }

    .explore-search-bar svg {
        width: 16px;
        height: 16px;
    }

    .explore-filters {
        flex-direction: column;
        gap: 6px;
        padding: 8px 12px;
    }

    .filter-left {
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .filter-left>svg {
        display: none;
    }

    .filter-left>span {
        display: none;
    }

    .filter-select {
        font-size: 0.75rem;
        padding: 6px 24px 6px 10px;
        flex: 1;
    }

    .filter-right {
        font-size: 0.75rem;
    }

    .explore-grid {
        grid-template-columns: 1fr !important;
        padding: 10px 12px;
        gap: 10px;
    }

    .location-card {
        padding: 14px;
    }

    /* ---------- MY TRIPS ---------- */
    .trips-header {
        padding: 16px 12px;
    }

    .trips-header h1 {
        font-size: 1.2rem !important;
    }

    .trips-list {
        grid-template-columns: 1fr !important;
        padding: 0 12px 70px;
        gap: 10px;
    }

    /* ---------- AI CHAT ---------- */
    .chat-container {
        grid-template-columns: 1fr !important;
        height: calc(100vh - 46px - 56px);
    }

    .chat-sidebar {
        display: none;
    }

    .chat-main {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
    }

    .chat-input-bar {
        padding: 8px 10px;
        gap: 8px;
    }

    .chat-input-bar input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .chat-bubble {
        max-width: 88%;
        font-size: 0.82rem;
        padding: 10px 12px;
    }

    .chat-bubble p,
    .chat-bubble li {
        font-size: 0.82rem;
    }

    .chat-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .chat-suggestion {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    /* ---------- LIVE MAP ---------- */
    .page-livemap {
        padding-top: 46px;
        padding-bottom: 0;
    }

    .livemap-layout {
        flex-direction: column;
        height: calc(100vh - 46px);
    }

    .livemap-sidebar {
        position: fixed;
        left: 0;
        top: 46px;
        bottom: 56px;
        width: 100% !important;
        z-index: 2200;
        transform: translateX(-100%);
        transition: transform 0.3s var(--ease-out);
    }

    .livemap-sidebar.open {
        transform: translateX(0);
    }

    .livemap-map-area {
        flex: 1;
        width: 100%;
        min-height: 250px;
    }

    .livemap-top-bar {
        top: 6px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .livemap-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .livemap-stats-bar {
        width: 94%;
        gap: 10px;
        padding: 8px 10px;
        bottom: 62px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        align-items: center;
    }

    .stat-value {
        font-size: 0.8rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }

    .livemap-sidebar-header h2 {
        font-size: 1rem;
    }

    .livemap-search input {
        font-size: 16px;
    }

    /* ---------- MODALS ---------- */
    .modal-content {
        width: 94%;
        max-height: 85vh;
        border-radius: 14px;
    }

    .modal-header {
        padding: 16px 16px 0;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .modal-header p {
        font-size: 0.8rem;
    }

    .modal-body {
        padding: 0 16px 10px;
    }

    .modal-footer {
        padding: 10px 16px 14px;
    }

    .modal-action-content {
        max-width: 94%;
    }

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        top: 12px;
        right: 12px;
    }

    /* ---------- AI SPINNER ---------- */
    .ai-spinner-box {
        padding: 24px 20px;
        width: 80%;
    }

    .ai-spinner-box p {
        font-size: 0.8rem;
    }

    /* ---------- LOCATION DETAIL MODAL ---------- */
    #location-modal .modal-content {
        width: 96%;
        max-height: 88vh;
    }

    /* ========== ITINERARY TIMELINE FIX ========== */
    /* Stack timeline items vertically so text doesn't get cut off */
    .place-timeline-item {
        flex-direction: column;
        padding: 12px 14px;
        gap: 6px;
    }

    .timeline-left {
        width: 100%;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .time-label {
        width: auto;
        text-align: left;
        margin-right: 8px;
        padding-top: 0;
        font-size: 0.8rem;
    }

    .timeline-marker {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        flex-direction: row;
        align-items: center;
    }

    .marker-line {
        display: none;
    }

    .place-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
        margin-left: 0;
        border-radius: 8px;
    }

    .place-details {
        padding-left: 0;
        flex-direction: column;
        width: 100%;
        min-width: 0;
    }

    .place-details-content {
        width: 100%;
        min-width: 0;
    }

    .place-title-inline {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 4px;
    }

    .place-title-inline h4 {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .price-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .place-desc {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .place-tip-inline {
        font-size: 0.72rem;
    }

    /* Show actions always on mobile (no hover on touch screens) */
    .place-actions {
        opacity: 1 !important;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 6px;
        min-width: 0;
    }

    .action-btn {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .place-right-info {
        margin-left: 0;
        margin-top: 6px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .crowd-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .duration-badge {
        font-size: 0.65rem;
    }

    /* Day card header — stack on mobile */
    .day-header {
        flex-direction: column;
        padding: 12px 14px;
        gap: 6px;
        align-items: flex-start;
    }

    .day-title {
        font-size: 1rem;
    }

    .day-meta {
        gap: 10px;
        flex-wrap: wrap;
    }

    .day-date {
        font-size: 0.8rem;
    }

    .btn-dark {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .day-card {
        padding: 0 4px;
    }

    /* ========== TIME PICKER FIX ========== */
    .time-inputs {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .time-group {
        width: 100%;
    }

    .time-group label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .time-select {
        width: 100% !important;
        font-size: 16px;
        padding: 10px 14px;
    }

    .time-separator {
        display: none !important;
    }

    .time-desc {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    /* ========== LIVE MAP — BOTTOM BAR & SIDEBAR ========== */
    .livemap-bottom {
        position: fixed;
        bottom: 56px;
        left: 0;
        right: 0;
        z-index: 2300;
        padding: 10px 12px;
        gap: 8px;
        background: rgba(13, 12, 11, 0.95);
        backdrop-filter: blur(10px);
    }

    /* Close button for sidebar on mobile */
    .livemap-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 10;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        color: var(--white);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .livemap-sidebar-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .livemap-bottom-btn {
        font-size: 0.7rem;
        padding: 8px;
    }

    /* Map marker sizing */
    .lm-marker-pin {
        width: 34px;
        height: 34px;
    }

    .lm-marker-pin span {
        font-size: 1rem;
    }

    .lm-route-number {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    /* Tabs inside sidebar */
    .livemap-tabs {
        display: flex;
        gap: 0;
    }

    .livemap-tab {
        flex: 1;
        text-align: center;
        font-size: 0.7rem;
        padding: 10px 8px;
    }

    /* ========== MY TRIPS DETAIL FIX ========== */
    .trip-detail {
        padding: 0 4px;
        overflow-x: hidden;
    }

    /* Hide the static HTML back button when trip detail is showing
       (JS renders its own back button inside) */
    .trip-detail>.btn-ghost {
        display: none;
    }

    .trip-detail .itinerary-results {
        padding: 0 !important;
    }

    .trip-detail .itinerary-header {
        padding: 0 8px;
    }

    .trip-detail .itinerary-days {
        padding: 0 4px;
    }

    .trip-detail .btn-gold {
        margin: 0 8px 16px;
        width: calc(100% - 16px);
    }

    /* ========== EXPLORE CARD MOBILE ========== */
    .location-card-header {
        height: 80px;
    }

    .card-type-icon {
        font-size: 2rem;
    }

    .card-emirate-badge {
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    .location-card-body {
        padding: 14px;
    }

    .location-card-body h3 {
        font-size: 1.1rem;
    }

    .location-card-body .card-desc {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }

    .location-card-footer {
        padding: 12px 14px;
    }

    /* ========== MODAL DETAILS (Photo-Free) ========== */
    .modal-details-header {
        padding: 50px 20px 24px;
    }

    .modal-details-header h2 {
        font-size: 1.5rem !important;
    }

    .modal-emirate-tag {
        top: 20px;
        left: 16px;
        font-size: 0.7rem;
    }

    .modal-icon-large {
        font-size: 2.5rem;
        margin-bottom: 14px;
    }

    .modal-main-description {
        padding: 20px;
        font-size: 0.95rem;
    }

    .modal-expert-section {
        padding: 20px;
    }

    .modal-grid-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ========== ITINERARY RESULTS CONTAINER ========== */
    .itinerary-results {
        padding: 16px 0 60px;
    }

    .itinerary-info-cards-container {
        padding: 0 8px;
        margin-bottom: 16px;
    }

    .itinerary-info-cards {
        grid-template-columns: 1fr;
    }

    .itinerary-header {
        margin: 12px auto 8px;
        padding: 0 8px;
    }

    .itinerary-toolbar-container {
        padding: 0 8px;
        margin-bottom: 12px;
    }

    .itinerary-toolbar {
        padding: 8px 10px;
        border-radius: 10px;
    }
}