/* AI Panel Styles - Glassmorphism & Cyber Aesthetics */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --glass-bg: #000000;
    /* Solid black base */
    --glass-border: #1a1a1a;
    /* Subtle dark border */
    --neon-blue: #333333;
    /* Used for user bubbles / accents now */
    --neon-purple: #bd00ff;
    --text-primary: #eaeaea;
    --text-secondary: #888888;
}

#ai-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    /* Let clicks pass through to Globe */
    z-index: 10002;
}

/* ── Floating Bottom 3-Option Travel Search Bar ── */
.globe-bottom-search-wrapper,
.globe-top-search-wrapper {
    position: fixed;
    bottom: 44px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 860px;
    z-index: 2000;
    pointer-events: auto;
    animation: fadeInUpSearch 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-bottom-search-wrapper.hidden,
.globe-top-search-wrapper.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.globe-welcome-card.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.globe-search-bar-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-width: 0;
}

@keyframes fadeInUpSearch {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.globe-tri-search-bar {
    display: flex;
    align-items: center;
    background: rgba(11, 17, 28, 0.84);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    padding: 6px 8px 6px 12px;
    box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 4px;
}

.globe-tri-search-bar:focus-within,
.globe-tri-search-bar:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 20px 50px -6px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.18);
}

/* Travel Bot Badge */
.globe-bot-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 6px 12px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 9999px;
    user-select: none;
    flex-shrink: 0;
}

.bot-badge-sparkle {
    color: #38bdf8;
    font-size: 0.9rem;
    line-height: 1;
    animation: botPulse 3s ease-in-out infinite;
}

@keyframes botPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8)); }
}

.bot-badge-title {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e0f2fe;
    white-space: nowrap;
}

.bot-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.14);
    margin: 0 2px;
    flex-shrink: 0;
}

/* Individual Search Segment */
.search-segment {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
    min-width: 0;
    outline: none;
}

.search-segment:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-segment.active {
    background: rgba(56, 189, 248, 0.12);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.32);
}

.segment-icon {
    color: #38bdf8;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.search-segment.active .segment-icon,
.search-segment:hover .segment-icon {
    color: #7dd3fc;
}

.segment-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.segment-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    line-height: 1.2;
}

.segment-value {
    font-size: 0.86rem;
    font-weight: 500;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.segment-value.has-value {
    color: #38bdf8;
    font-weight: 600;
}

.segment-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 1px;
    flex-shrink: 0;
}

/* ── Popover Windows Base (Pops Upwards from Bottom Bar) ── */
.search-popover {
    position: absolute;
    bottom: calc(100% + 14px);
    top: auto;
    background: rgba(8, 14, 24, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1.5px solid rgba(0, 194, 255, 0.35);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 194, 255, 0.2);
    padding: 20px 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 10010;
    box-sizing: border-box;
    color: #ffffff;
}

.search-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.search-popover .popover-header,
.popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 0 8px 0;
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.popover-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.popover-title small {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    margin-left: 4px;
}

.popover-clear-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.2s;
}

.popover-clear-btn:hover {
    color: #ff6b6b;
}

.popover-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

.popover-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popover-footer .popover-clear-btn {
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.65);
}

.popover-footer .popover-clear-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.12);
}

.popover-footer .popover-done-btn {
    margin-left: auto;
}

.popover-done-btn {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popover-done-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

/* ── Specific Popovers ── */
/* 1. Destination Popover */
.dest-popover {
    width: 480px;
    left: 0;
}

.dest-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 32px;
    align-items: center;
}

.dest-empty-hint {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

.dest-chip {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.2s ease;
}

.dest-chip-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.dest-chip-remove:hover {
    color: #ffffff;
}

.dest-search-field-wrap {
    position: relative;
    width: 100%;
}

.dest-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.dest-input-wrap:focus-within {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.dest-input-wrap i {
    color: #38bdf8;
    font-size: 0.95rem;
}

.dest-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.dest-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Autocomplete Suggestions Dropdown */
.dest-suggestions-dropdown,
.dest-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(10, 18, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    padding: 5px;
    margin-top: 6px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), 0 0 14px rgba(56, 189, 248, 0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
}

/* Dropdown Row Item */
.dest-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 7px 10px;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.16s ease;
    width: 100%;
    box-sizing: border-box;
}

.dest-suggestion-item:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.25);
    transform: translateX(2px);
}

.dest-suggestion-item.selected {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
}

.dest-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.dest-item-flag {
    width: 32px;
    height: 24px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #cbd5e1;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.dest-suggestion-item:hover .dest-item-flag {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.dest-suggestion-item.selected .dest-item-flag {
    background: rgba(56, 189, 248, 0.24);
    border-color: rgba(56, 189, 248, 0.6);
    color: #ffffff;
}

.dest-item-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    overflow: hidden;
}

.dest-item-info strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.dest-item-info small {
    font-size: 0.70rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.dest-item-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dest-item-check i {
    font-size: 0.62rem;
    line-height: 1;
    display: block;
}

.dest-suggestion-item:hover .dest-item-check {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    transform: scale(1.08);
}

.dest-suggestion-item.selected .dest-item-check {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.dest-suggestion-empty {
    padding: 16px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dest-suggestion-empty strong {
    color: #38bdf8;
}

.dest-suggestion-empty small {
    color: #64748b;
    font-size: 0.74rem;
}

/* 2. Dates & Calendar Popover */
.dates-popover {
    position: fixed !important;
    bottom: 96px !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    width: 440px;
    max-width: calc(100vw - 28px);
    z-index: 10040 !important; /* Floats above planner panel (10005) & initial search bar (2000) */
}

.dates-popover.active {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.cal-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cal-arrow-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.cal-arrow-btn:hover {
    background: rgba(0, 194, 255, 0.2);
    border-color: #00C2FF;
}

.cal-month-title {
    font-size: 0.90rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 120px;
    text-align: center;
}

.cal-presets-strip,
.calendar-quick-presets {
    display: flex;
    gap: 6px;
    margin: 8px 0 14px 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.cal-preset-btn {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.cal-preset-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #38bdf8;
    color: #ffffff;
}

.cal-weekdays-row,
.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.cal-days-grid,
.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-cell {
    height: 34px;
    border: none;
    background: transparent;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.84rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: 'Inter', sans-serif;
}

.cal-day-cell:hover:not(.cal-past) {
    background: rgba(255, 255, 255, 0.12);
}

.cal-day-cell.cal-past {
    color: rgba(255, 255, 255, 0.18);
    cursor: not-allowed;
}

.cal-day-cell.cal-selected {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
}

.cal-day-cell.cal-range-start {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cal-day-cell.cal-range-end {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.cal-day-cell.cal-in-range {
    background: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
    border-radius: 0;
}

.duration-summary-box,
.duration-summary {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    text-align: center;
}

.duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #38bdf8;
    font-weight: 700;
}

.dur-sep {
    color: rgba(255, 255, 255, 0.4);
}

.duration-range-text {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
}

.duration-instruction {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

/* 3. Travel Style Popover */
.type-popover {
    width: 520px;
    right: 0;
}

.travel-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.travel-type-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 12px;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.travel-type-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1.5px);
}

.travel-type-card.selected {
    background: rgba(14, 165, 233, 0.18);
    border-color: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.type-card-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.type-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.type-card-text strong {
    font-size: 0.84rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-card-text small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

.type-card-check {
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ── Prominent Globe Search Bar ── */
.globe-search-bar-wrapper {
    width: 100%;
    position: relative;
}

.globe-search-bar {
    display: flex;
    align-items: center;
    background: rgba(11, 15, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(0, 194, 255, 0.4);
    border-radius: 60px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 194, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 12px;
}

.globe-search-bar:focus-within {
    border-color: #00FFA6;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 255, 166, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.globe-search-icon {
    color: #00C2FF;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.globe-search-bar:focus-within .globe-search-icon {
    color: #00FFA6;
}

.globe-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 8px 0;
    min-width: 0;
}

.globe-search-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.globe-search-clear {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    transition: color 0.2s;
}

.globe-search-clear:hover {
    color: #ffffff;
}

.globe-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    padding: 9px 22px;
    border-radius: 9999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    outline: none;
    white-space: nowrap;
}

.globe-search-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    transform: translateY(-1px);
}

.globe-search-btn:active {
    transform: translateY(0) scale(0.98);
}

.globe-home-btn-standalone,
.globe-home-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10050; /* Always above chatbot panels and overlay */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 0;
    background: rgba(11, 17, 28, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: #f1f5f9;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 14px 40px -6px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.globe-home-btn-standalone i,
.globe-home-btn i {
    font-size: 1.15rem;
    color: #f1f5f9;
    line-height: 1;
    transition: color 0.2s, transform 0.25s ease;
}

.globe-home-btn-standalone:hover,
.globe-home-btn:hover {
    background: rgba(30, 58, 138, 0.25);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.25);
    text-decoration: none;
}

.globe-home-btn-standalone:hover i,
.globe-home-btn:hover i {
    color: #38bdf8;
}

.globe-home-btn-standalone:hover i,
.globe-home-btn:hover i {
    transform: scale(1.15);
}

.globe-home-btn-standalone:active,
.globe-home-btn:active {
    transform: translateY(0);
}






.hero-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-blue);
    color: white;
    padding: 10px 20px;
    /* Reduced padding */
    font-size: 1rem;
    /* Reduced from 1.2rem */
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: -15px; /* Moved slightly more to the left */
    text-decoration: none !important;
}

.hero-btn:hover {
    background: var(--neon-blue);
    color: black;
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--neon-blue);
}

/* ── Bottom Right Floating Tours Button ── */
.tours-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9900;
    height: 52px;
    padding: 0 20px 0 10px;
    border-radius: 50px;
    background: rgba(8, 18, 36, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid #00FFA6;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(0, 255, 166, 0.35), 0 0 20px rgba(0, 194, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    animation: tours-pulse 3s infinite ease-in-out;
}

.tours-floating-text {
    color: #FFFFFF;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(0, 255, 166, 0.4);
}

.tours-logo-badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.tours-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 255, 166, 0.6));
    transition: transform 0.35s ease;
}

.tours-logo-svg {
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

.tours-floating-btn:hover {
    background: rgba(11, 25, 48, 0.95);
    border-color: #00FFA6;
    box-shadow: 0 8px 35px rgba(0, 255, 166, 0.65), 0 0 30px rgba(0, 194, 255, 0.5);
    transform: translateY(-4px) scale(1.04);
}

.tours-floating-btn:hover .tours-logo-img,
.tours-floating-btn:hover .tours-logo-svg {
    transform: scale(1.15) rotate(-8deg);
}

@keyframes tours-pulse {
    0%, 100% {
        box-shadow: 0 4px 25px rgba(0, 255, 166, 0.35), 0 0 20px rgba(0, 194, 255, 0.25);
    }
    50% {
        box-shadow: 0 6px 35px rgba(0, 255, 166, 0.6), 0 0 30px rgba(0, 194, 255, 0.4);
    }
}

@media (max-width: 768px) {
    .tours-floating-btn {
        bottom: 20px;
        right: 20px;
        height: 46px;
        padding: 0 16px 0 8px;
        gap: 10px;
    }
    .tours-floating-text {
        font-size: 0.8rem;
    }
    .tours-logo-badge {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 400px) {
    .tours-floating-btn {
        right: 12px;
        bottom: 16px;
        padding: 0 12px 0 6px;
        gap: 8px;
    }
    .tours-floating-text {
        font-size: 0.75rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.ai-panel {
    position: absolute;
    top: 20px;
    bottom: 24px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 94%;
    max-width: 860px;
    background: #000000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(2, 132, 199, 0.15);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    height: auto;
}

/* Local Guide Panel */
#info-panel {
    top: 20px;
    bottom: 24px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 94%;
    max-width: 860px;
    height: auto;
}

/* Trip Planner Panel */
#planner-panel {
    top: 20px;
    bottom: 24px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 94%;
    max-width: 860px;
    height: auto;
}

/* Maximized/Minimized states removed as per user request */

/* Resize Handle (Moved to Top-Left) */
.resize-handle {
    position: absolute;
    top: 0;
    /* Move to Top */
    left: 0;
    /* Move to Left */
    right: auto;
    bottom: auto;
    width: 20px;
    height: 20px;
    /* Gradient direction changed for top-left visual */
    background: linear-gradient(135deg, var(--neon-blue) 50%, transparent 50%);
    cursor: nwse-resize;
    opacity: 0.5;
    transition: 0.2s;
    border-top-left-radius: 16px;
    /* Match panel corner */
    border-bottom-right-radius: 0;
    z-index: 100;
    /* Ensure clickable */
}

.resize-handle:hover {
    opacity: 1;
}

/* Minimized state removed */

.ai-panel.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(0.97);
    pointer-events: none;
    display: none !important;
}

/* Header */
.panel-header {
    padding: 15px 20px;
    background: transparent;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative; /* FIX: required for z-index to take effect */
    z-index: 101;
}

.panel-header span {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    transition: 0.2s;
    pointer-events: auto; /* FIX: explicitly ensure buttons receive click events */
    position: relative;   /* FIX: ensure button sits in its own stacking context */
    z-index: 102;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Chat Area */
.chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Messages */
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.message.bot {
    background: #1a1a1a;
    color: #eaeaea;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Ensure headings and bold text inside bot messages are readable */
.message.bot b, 
.message.bot strong {
    color: #90E0EF; /* Lite Blue for emphasis */
    font-weight: 700;
}

.message.bot h1, 
.message.bot h2, 
.message.bot h3, 
.message.bot h4 {
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.message.bot ul,
.message.bot ol {
    margin: 8px 0 8px 18px;
    padding: 0;
}

.message.bot li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.message.user {
    background: #2a2a2a;
    color: #eaeaea;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Area */
.panel-input-area {
    padding: 15px;
    background: transparent;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.panel-input-area input {
    flex: 1;
    background: transparent;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.ghost-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
}

.ghost-input-wrapper input {
    width: 100%;
}

.ghost-input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    color: rgba(255, 255, 255, 0.3) !important;
    pointer-events: none;
    background-color: transparent !important;
}

.panel-input-area input:not(.ghost-input) {
    z-index: 2;
    background-color: transparent !important;
}

.panel-input-area input:focus {
    border-color: #555;
}

.panel-input-area button {
    background: #1a1a1a;
    border: 1px solid #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-input-area button:hover {
    background: #2a2a2a;
}

.panel-input-area button:disabled {
    background: #111;
    border-color: #222;
    color: #555;
    cursor: not-allowed;
}

/* Status Bar */
.connection-status {
    padding: 8px 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
}

#status-dot,
#planner-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
    transition: 0.3s;
}

.status-online {
    background: #00ff88 !important;
    box-shadow: 0 0 8px #00ff88;
}

.status-offline {
    background: #ff4444 !important;
}

/* NEW: Thinking Status */
.status-thinking {
    background: #ffaa00 !important;
    box-shadow: 0 0 10px #ffaa00;
    animation: breathe 1.5s infinite ease-in-out;
}

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Action Buttons in Chat (Destination Suggestions) */
.planner-action-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #eaeaea;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    font-weight: 500;
    margin-right: 8px;
}

.planner-action-btn:hover {
    background: #2a2a2a;
    border-color: #555;
    color: #ffffff;
}

/* ========================================================
   CHATBOT IN-CHAT ITINERARY & SEARCH SUMMARY STYLES
   ======================================================== */

.message.itinerary-card-message {
    max-width: 98% !important;
    width: 98% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-left: 0 !important;
}

.message.itinerary-card-message::before {
    display: none !important;
}

.message.search-summary-message {
    max-width: 95% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.message.search-summary-message::before {
    display: none !important;
}

/* User Search Summary Card */
.search-request-summary {
    background: linear-gradient(135deg, rgba(14, 30, 50, 0.95), rgba(10, 20, 36, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 212, 255, 0.12);
    color: #e2e8f0;
}

.search-request-summary .req-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neon-blue, #00d4ff);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-request-summary .req-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.search-request-summary .req-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
}

.search-request-summary .req-tag.dest {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
    color: #38bdf8;
}

.search-request-summary .req-tag.duration {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.search-request-summary .req-tag.style {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

/* Chatbot Itinerary Card */
.planner-itinerary-chat-card {
    background: linear-gradient(160deg, rgba(16, 24, 40, 0.95), rgba(11, 15, 25, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 16px;
    padding: 16px;
    margin: 4px 0 10px 0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 212, 255, 0.1);
    color: #e2e8f0;
    font-family: inherit;
    animation: popIn 0.35s ease;
}

.itinerary-card-hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.itinerary-card-hero .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.itinerary-card-hero .badge-style {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: #00d4ff;
}

.itinerary-card-hero .badge-duration {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.itinerary-main-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 6px 0;
    background: linear-gradient(135deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.itinerary-summary-text {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0 0 10px 0;
}

.itinerary-highlights-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.highlight-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

/* Toolbar */
.itinerary-card-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 2px;
}

.itinerary-card-toolbar .toolbar-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.toggle-all-days-btn {
    background: none;
    border: none;
    color: var(--neon-blue, #00d4ff);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: 0.2s;
}

.toggle-all-days-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    text-decoration: underline;
}

/* Days List Accordion */
.itinerary-chat-days-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) rgba(255, 255, 255, 0.04);
}

.itinerary-chat-days-list::-webkit-scrollbar {
    width: 4px;
}

.itinerary-chat-days-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

.chat-day-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.chat-day-item:hover {
    border-color: rgba(0, 212, 255, 0.25);
}

.chat-day-item.is-open {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.35);
}

.chat-day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.chat-day-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.chat-day-badge {
    background: linear-gradient(135deg, #00d4ff, #0284c7);
    color: #031322;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.chat-day-info {
    flex: 1;
    min-width: 0;
}

.chat-day-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-day-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 1px;
}

.chat-day-chevron {
    font-size: 0.85rem;
    color: #64748b;
    transition: transform 0.25s ease;
}

.chat-day-item.is-open .chat-day-chevron {
    transform: rotate(180deg);
    color: #00d4ff;
}

/* Day Body / Slots */
.chat-day-body {
    max-height: 0;
    padding: 0 12px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.25s ease, padding 0.25s ease;
}

.chat-day-item.is-open .chat-day-body {
    max-height: 1000px;
    padding: 8px 12px 12px 12px;
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transition: max-height 0.35s ease-in-out, opacity 0.3s ease, padding 0.25s ease;
}

.chat-slot-item {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.chat-slot-item:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.slot-time-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    min-width: 78px;
    flex-shrink: 0;
    padding-top: 2px;
}

.slot-details {
    flex: 1;
    min-width: 0;
}

.slot-activity-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.slot-map-link {
    font-size: 0.72rem;
    font-weight: 500;
    color: #00d4ff;
    text-decoration: none;
    margin-left: 4px;
    display: inline-block;
    transition: color 0.2s;
}

.slot-map-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.slot-activity-desc {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.35;
    margin-top: 3px;
}

/* Action Buttons */
.itinerary-chat-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding-top: 4px;
}

.itinerary-chat-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    box-sizing: border-box;
    text-align: center;
    font-family: inherit;
}

.itinerary-chat-action-btn.map-btn {
    background: linear-gradient(135deg, #00d4ff, #0284c7);
    color: #031322;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.25);
}

.itinerary-chat-action-btn.map-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

/* Generate PDF button */
.itinerary-chat-action-btn.pdf-btn {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(29, 78, 216, 0.22));
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #bae6fd;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.15);
}

.itinerary-chat-action-btn.pdf-btn:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.30), rgba(29, 78, 216, 0.34));
    border-color: rgba(56, 189, 248, 0.6);
    color: #e0f2fe;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.30);
    transform: translateY(-1px);
}

/* Talk to Expert button */
.itinerary-chat-action-btn.expert-wa-btn {
    background: linear-gradient(135deg, #1db954, #128C7E);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.2);
}

.itinerary-chat-action-btn.expert-wa-btn:hover {
    background: linear-gradient(135deg, #17a349, #0f7a6e);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.38);
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .itinerary-chat-actions {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {

    #info-panel,
    #planner-panel,
    #detailed-itinerary-widget {
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        transform: none !important;
        margin: 0 !important;
        box-shadow: none !important;
        z-index: 10020 !important;
    }

    #detailed-itinerary-widget.active {
        z-index: 10030 !important;
    }

    .panel-header {
        display: none !important;
    }

    .chat-content {
        padding: 15px;
        padding-top: calc(env(safe-area-inset-top, 10px) + 18px) !important;
        gap: 12px;
    }

    .panel-input-area {
        padding: 10px 15px 5px 15px;
    }

    .connection-status {
        padding: 5px 20px 20px 20px;
        padding-bottom: calc(env(safe-area-inset-bottom, 10px) + 12px) !important;
    }

    #info-panel.minimized,
    #planner-panel.minimized {
        height: 60px !important;
        bottom: 0 !important;
        top: auto !important;
        border-radius: 12px 12px 0 0 !important;
    }

    /* Optimized Maximized State for Mobile */
    .ai-panel.maximized {
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
    }

    /* Hide the floating bubble on mobile to clear the input area */
    #itinerary-restore-btn {
        display: none !important;
    }

    /* Show the header-integrated itinerary link on mobile */
    #planner-itinerary-btn:not(.hidden) {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(0, 255, 166, 0.1);
        border: 1px solid rgba(0, 255, 166, 0.3);
        border-radius: 8px;
        margin-right: 5px;
        animation: pulse-green 2s infinite;
    }

    @keyframes pulse-green {
        0% { box-shadow: 0 0 0 0 rgba(0, 255, 166, 0.4); }
        70% { box-shadow: 0 0 0 6px rgba(0, 255, 166, 0); }
        100% { box-shadow: 0 0 0 0 rgba(0, 255, 166, 0); }
    }

    /* Floating Top 3-Option Search Bar & Standalone Home Button Mobile Styles */
    .globe-top-search-wrapper {
        top: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 16px) !important;
        max-width: 440px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .globe-search-bar-container {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        position: relative !important;
    }

    .globe-tri-search-bar {
        width: 100% !important;
        border-radius: 9999px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 4px 5px 4px 8px !important;
        height: 46px !important;
        gap: 2px !important;
        box-sizing: border-box !important;
        background: rgba(11, 17, 28, 0.88) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
    }

    .globe-bot-badge {
        padding: 4px 7px !important;
        gap: 4px !important;
    }

    .globe-bot-badge .bot-badge-title {
        font-size: 0.68rem !important;
        letter-spacing: 0 !important;
    }

    .bot-divider {
        display: block !important;
        height: 16px !important;
    }

    .search-segment {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 4px 6px !important;
        border-radius: 30px !important;
        overflow: hidden !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .search-segment .segment-content {
        align-items: center !important;
        width: 100% !important;
    }

    .search-segment .segment-label {
        display: none !important; /* Hide tiny duplicate label on mobile for ultra-clean single row */
    }

    .search-segment .segment-value {
        font-size: 0.76rem !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: rgba(255, 255, 255, 0.92) !important;
        text-align: center !important;
    }

    .search-segment .segment-value.has-value {
        color: #38bdf8 !important;
    }

    .segment-divider {
        display: block !important;
        height: 18px !important;
        width: 1px !important;
        background: rgba(255, 255, 255, 0.18) !important;
        margin: 0 1px !important;
        flex-shrink: 0 !important;
    }

    .globe-tri-search-bar .globe-search-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4) !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .globe-tri-search-bar .globe-search-btn .btn-label {
        display: none !important;
    }

    .globe-tri-search-bar .globe-search-btn .btn-sparkle {
        display: inline-block !important;
        font-size: 0.95rem !important;
        line-height: 1 !important;
        color: #ffffff !important;
    }

    .globe-tri-search-bar .globe-search-btn i {
        font-size: 0.88rem !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    /* Standalone Home Button on Mobile (Separated from search bar) */
    .globe-home-btn-standalone {
        position: fixed !important;
        top: 14px !important;
        right: 14px !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 50% !important;
        background: rgba(11, 17, 28, 0.92) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 16px rgba(56, 189, 248, 0.22) !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        text-decoration: none !important;
        z-index: 10050 !important; /* Floats above full-screen mobile chatbot panel */
    }

    .globe-home-btn-standalone .home-btn-text,
    .globe-home-btn-standalone span {
        display: none !important;
    }

    .globe-home-btn-standalone i {
        font-size: 1.05rem !important;
        color: #f1f5f9 !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    .search-popover,
    .dest-popover,
    .type-popover {
        position: absolute !important;
        bottom: calc(100% + 10px) !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 20px !important;
        padding: 14px 12px !important;
        transform: translateY(8px) !important;
        background: rgba(11, 17, 28, 0.96) !important;
        border: 1px solid rgba(56, 189, 248, 0.3) !important;
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(56, 189, 248, 0.18) !important;
    }

    .dates-popover {
        position: fixed !important;
        bottom: 84px !important;
        top: auto !important;
        left: 50% !important;
        right: auto !important;
        width: calc(100% - 20px) !important;
        max-width: 380px !important;
        max-height: calc(100vh - 110px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 20px !important;
        padding: 14px 12px !important;
        transform: translateX(-50%) translateY(8px) !important;
        background: rgba(11, 17, 28, 0.96) !important;
        border: 1px solid rgba(56, 189, 248, 0.3) !important;
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(56, 189, 248, 0.18) !important;
        z-index: 10040 !important;
    }

    .search-popover.active,
    .dest-popover.active,
    .type-popover.active {
        transform: translateY(0) !important;
    }

    .dates-popover.active {
        transform: translateX(-50%) translateY(0) !important;
    }

    .dest-suggestions-dropdown,
    .dest-suggestions-list {
        display: none;
        flex-direction: column !important;
        gap: 2px !important;
        max-height: 200px !important;
        padding: 4px !important;
    }

    .dest-suggestion-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 6px 8px !important;
        height: auto !important;
        min-height: 42px !important;
    }

    .dest-item-flag {
        width: 28px !important;
        height: 22px !important;
        min-width: 28px !important;
        font-size: 0.68rem !important;
    }

    .dest-item-check {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        font-size: 0.62rem !important;
    }

    .travel-types-grid {
        grid-template-columns: 1fr !important;
        max-height: 240px !important;
    }
}

/* =========================================
   NEW: FORM OVERLAY STYLES
   ========================================= */

.form-overlay {
    position: absolute;
    top: 45px;
    /* Below header */
    left: 0;
    width: 100%;
    height: calc(100% - 45px);
    /* Full height minus header */
    background: #000000;
    /* Updated to match black modern UI */
    backdrop-filter: blur(15px);
    z-index: 20;
    padding: 20px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.form-overlay.hidden {
    display: none;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.form-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--neon-blue);
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: white;
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding-right: 5px;
    /* Space for scrollbar */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Inputs & Selects */
textarea,
select,
input[type="number"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    width: 100%;
}

textarea {
    resize: none;
    height: 80px;
}

textarea:focus,
select:focus,
input:focus {
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Options (Dark) */
select option {
    background: #0f172a;
    color: white;
}

/* Submit Button */
.submit-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, var(--neon-blue), #2563eb);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}


/* 
=========================================
   NEW: SALES MODE STYLES (Suggest Package)
========================================= 
*/

.sparkle-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    /* Gold tint */
    color: #ffd700;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
    animation: pulse-gold 3s infinite;
}

.sparkle-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* 
=========================================
   INDIA LOCAL TRIP BADGE — Pinned above input
========================================= 
*/

.local-trip-badge-container {
    padding: 10px 14px 6px;
    display: flex;
    justify-content: center;
    animation: slideUpFade 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    flex-shrink: 0;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.local-trip-btn {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.12), rgba(19, 136, 8, 0.12));
    border: 1px solid rgba(255, 153, 0, 0.65);
    color: #ffaa33;
    padding: 9px 20px;
    border-radius: 24px;
    font-size: 0.88rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
    animation: pulse-india 2.2s infinite;
    box-shadow: 0 0 14px rgba(255, 153, 0, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.local-trip-btn:hover {
    background: rgba(255, 153, 0, 0.22);
    box-shadow: 0 0 28px rgba(255, 153, 0, 0.5), 0 0 5px rgba(19, 136, 8, 0.3);
    transform: translateY(-2px);
    color: #ffc055;
    border-color: rgba(255, 153, 0, 0.9);
}

@keyframes pulse-india {
    0%   { box-shadow: 0 0 0 0   rgba(255, 153, 0, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(255, 153, 0, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(255, 153, 0, 0);    }
}

/* Sales Mode Chat Styling */
.sales-mode-active {
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1) !important;
}

.message.sales-agent {
    background: rgba(40, 30, 10, 0.6);
    border-left: 3px solid #ffd700;
    color: #fff;
}

.package-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
}

.package-card h4 {
    color: #ffd700;
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.package-card p {
    font-size: 0.9rem;
    color: #ddd;
    margin: 0 0 10px 0;
}

.book-now-btn {
    background: #ffd700;
    color: #000;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
    width: 100%;
}

.book-now-btn:hover {
    background: #ffed4a;
    transform: scale(1.02);
}

/* 
=========================================
   NEW: VOICE INPUT STYLES (STT)
========================================= 
*/

.mic-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-secondary) !important;
    font-size: 1rem;
    transition: all 0.3s ease !important;
}

.mic-btn:hover {
    color: var(--neon-blue) !important;
    border-color: var(--neon-blue) !important;
    background: rgba(0, 212, 255, 0.1) !important;
    transform: scale(1.05) !important;
}

.mic-listening {
    color: #ff2e63 !important;
    border-color: #ff2e63 !important;
    background: rgba(255, 46, 99, 0.15) !important;
    animation: mic-pulse 1.5s infinite !important;
    transform: scale(1.1) !important;
}

@keyframes mic-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 46, 99, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 46, 99, 0);
    }
}

/* Audio Visualizer / Waveform */
#audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 20px;
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    /* Don't block clicks */
}

#audio-visualizer.active {
    opacity: 1;
}

.bar {
    width: 3px;
    height: 3px;
    /* Default height */
    background: #ff2e63;
    border-radius: 3px;
    background: linear-gradient(to top, #ff2e63, #bd00ff);
    transition: height 0.05s ease;
}

/* 
=========================================
   NEW: DETAILED ITINERARY WIDGET (MODERN RESPONSIVE UX)
========================================= 
*/

#detailed-itinerary-widget {
    top: 50px;
    left: 20px;
    right: auto;
    width: 820px;
    height: 720px;
    max-height: 88vh;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: #0b0f19;
    border-radius: 16px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
    z-index: 2100;
    overflow: hidden;
}

.itinerary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 50px;
    gap: 12px;
}

#itinerary-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* View Switcher Tabs */
.itinerary-view-tabs {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3px;
    gap: 3px;
}

.itinerary-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.itinerary-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.itinerary-tab-btn.active {
    background: #0077b6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.4);
}

/* Itinerary Layout */
.itinerary-layout {
    display: flex;
    flex-direction: row;
    height: calc(100% - 50px);
    width: 100%;
    background: #0b0f19;
    position: relative;
    overflow: hidden;
}

/* Default Split Mode on Desktop */
.itinerary-layout.view-split .itinerary-timeline {
    width: 45%;
    min-width: 320px;
    height: 100%;
    display: block;
}

.itinerary-layout.view-split .itinerary-map-container {
    flex: 1;
    height: 100%;
    display: block;
}

/* Full Plan Mode */
.itinerary-layout.view-timeline .itinerary-timeline {
    width: 100% !important;
    max-width: 720px;
    margin: 0 auto;
    height: 100%;
    display: block;
    border-right: none;
}

.itinerary-layout.view-timeline .itinerary-map-container {
    display: none !important;
}

/* Full Map Mode */
.itinerary-layout.view-map .itinerary-timeline {
    display: none !important;
}

.itinerary-layout.view-map .itinerary-map-container {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Timeline Container */
.itinerary-timeline {
    height: 100%;
    overflow-y: auto;
    padding: 18px 20px 80px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    scrollbar-color: var(--neon-blue) transparent;
}

.timeline-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--neon-blue);
    font-size: 0.9rem;
    gap: 15px;
}

/* Map Container */
.itinerary-map-container {
    height: 100%;
    position: relative;
    background: #181e2b;
}

#itinerary-map {
    width: 100%;
    height: 100%;
    background-color: #181e2b;
    z-index: 10;
}

/* Floating Switcher on Mobile/Narrow */
.itinerary-mobile-floating-switch {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

.itinerary-floating-pill {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 212, 255, 0.45);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s ease;
}

.itinerary-floating-pill:hover {
    background: rgba(0, 119, 182, 0.9);
    border-color: #00d4ff;
    transform: scale(1.04);
}

/* Responsive Styles for <= 900px */
@media (max-width: 900px) {
    #detailed-itinerary-widget {
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* By default on mobile/narrow: DO NOT squish 50%/50%! Show full timeline or full map */
    .itinerary-layout {
        flex-direction: column !important;
    }

    .itinerary-layout.view-split .itinerary-timeline,
    .itinerary-layout.view-timeline .itinerary-timeline {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        padding-bottom: 90px !important;
    }

    .itinerary-layout.view-split .itinerary-map-container,
    .itinerary-layout.view-timeline .itinerary-map-container {
        display: none !important;
    }

    .itinerary-layout.view-map .itinerary-timeline {
        display: none !important;
    }

    .itinerary-layout.view-map .itinerary-map-container {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    .itinerary-mobile-floating-switch {
        display: block !important;
    }
}

/* Timeline Card Design */
.timeline-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(3px);
    border-color: rgba(0, 212, 255, 0.35);
}

.timeline-content .time {
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.timeline-content .activity {
    color: #f8fafc;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.timeline-content .location {
    color: #34d399;
    font-size: 0.86rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.timeline-content .maps-link {
    color: #38bdf8;
    margin-left: 6px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.timeline-content .maps-link:hover {
    color: #ffffff;
}
    font-size: 0.75rem;
    color: #4ade80;
    /* Green tint */
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.wikipedia-attribution {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 5px;
    display: block;
    font-style: italic;
}

.timeline-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    /* Hidden until loaded */
}

/* MapLibre Popup overrides for Glassmorphism */
.maplibregl-popup-content {
    background: rgba(15, 23, 42, 0.95) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-blue);
    border-radius: 12px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
    padding: 15px !important;
    font-family: inherit;
}

.maplibregl-popup-tip {
    border-top-color: var(--neon-blue) !important;
}

.itinerary-day-header {
    color: var(--electric-blue);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(0, 194, 255, 0.2);
    padding-bottom: 5px;
    font-weight: 700;
}

.wiki-snippet {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    line-height: 1.4;
    transition: 0.3s;
}

.wiki-snippet em {
    font-style: italic;
    opacity: 0.9;
}

/* Timeline Custom Nodes */
.timeline-node {
    display: flex;
    position: relative;
    padding-bottom: 25px;
}

.timeline-node::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(to bottom,
            rgba(0, 212, 255, 0.5) 0,
            rgba(0, 212, 255, 0.5) 4px,
            transparent 4px,
            transparent 8px);
    z-index: 1;
}

.timeline-node:last-child::before {
    display: none;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid var(--neon-blue);
    margin-right: 15px;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid var(--neon-blue);
    /* Remove default tip shadow/border mix */
}

.leaflet-popup-content h4 {
    margin: 0 0 5px 0;
    color: var(--neon-blue);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.leaflet-popup-content p {
    margin: 0;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
}

/* 
=========================================
   PHASE 2 — KOCHI LOCAL EXPLORER (FULL SCREEN)
=========================================
*/
/* Full viewport overlay */
.kochi-explorer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    z-index: 20000; /* Boosted to stay above global nav */
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    transform: translateY(calc(100% + 100px));
    transition: transform 0.5s cubic-bezier(0.34, 1.20, 0.64, 1);
    pointer-events: none;
    visibility: hidden;
}

.kochi-explorer-overlay.kochi-explorer-visible {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* Header bar */
.kochi-explorer-header {
    height: 64px; /* Increased slightly for better spacing */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #050505;
    border-bottom: 1px solid rgba(0, 255, 166, 0.15);
    flex-shrink: 0;
}

.kochi-explorer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* Allow shrinking */
}

.kochi-brand-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #00FFA6;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kochi-brand-coords {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kochi-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.kochi-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Split body */
.kochi-explorer-body {
    flex: 1;
    display: flex;
    min-height: 0; /* Important for flex children scrolling */
}

/* Left sidebar */
.kochi-explorer-sidebar {
    width: 420px;
    background: #0d0d0d;
    border-right: 1px solid rgba(0, 255, 166, 0.15);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.kochi-sidebar-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #00FFA6 transparent;
}

.kochi-sidebar-messages p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.kochi-sidebar-messages strong {
    color: #00FFA6;
}

/* Budget Toggle Styles */
.kochi-budget-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.budget-btn {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.budget-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.budget-btn.active {
    background: rgba(0, 255, 166, 0.12);
    border-color: #00FFA6;
    color: #00FFA6;
    box-shadow: 0 0 15px rgba(0, 255, 166, 0.1);
}

/* Action Buttons for Chat Flow */
.chat-action-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.action-btn {
    width: 100%;
    padding: 10px;
    background: rgba(0, 255, 166, 0.1);
    border: 1px solid rgba(0, 255, 166, 0.3);
    border-radius: 12px;
    color: #00FFA6;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.action-btn:hover {
    background: rgba(0, 255, 166, 0.2);
    transform: translateX(5px);
}

.action-btn i {
    margin-right: 8px;
}

/* Chat input area at bottom of sidebar */
.kochi-sidebar-input-area {
    padding: 16px 18px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    display: flex;
    gap: 10px;
}

.kochi-sidebar-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 11px 18px;
    color: white;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
}

.kochi-sidebar-input-area input:focus {
    border-color: #00FFA6;
    background: rgba(0, 255, 166, 0.05);
    box-shadow: 0 0 12px rgba(0, 255, 166, 0.12);
}

.kochi-sidebar-input-area button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #00FFA6;
    border: none;
    color: #000;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.kochi-sidebar-input-area button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 166, 0.4);
}

.kochi-sidebar-input-area button:active {
    transform: scale(0.95);
}

/* Right map wrapper */
.kochi-explorer-map-wrap {
    flex: 1;
    position: relative;
    background: #111; /* fallback while loading */
}

/* Map fills wrapper absolutely to guarantee sizing */
#kochi-local-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .kochi-explorer-header {
        padding: 0 12px;
        height: 60px;
    }
    
    .kochi-brand-title {
        font-size: 0.9rem;
    }
    
    .kochi-brand-coords {
        font-size: 0.65rem;
    }
    
    .kochi-back-btn {
        display: none; /* Hide for mobile as requested to declutter header */
    }

    .kochi-explorer-body {
        flex-direction: column-reverse; /* Map on top, chat on bottom */
    }
    
    .kochi-explorer-sidebar {
        width: 100%;
        height: 45%; /* Slightly more space for chat */
        border-right: none;
        border-top: 1px solid rgba(0, 255, 166, 0.15);
    }
    
    .kochi-explorer-map-wrap {
        height: 55%;
        flex: none;
    }
    
    .kochi-sidebar-messages {
        padding: 15px;
    }
    
    .budget-btn {
        padding: 8px 10px;
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
    
    .kochi-sidebar-input-area {
        padding: 12px 15px;
    }
    
    #booking-controls {
        bottom: 12px !important;
        width: 90% !important;
    }
    
    #send-whatsapp-btn {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        width: 100%;
        justify-content: center;
    }
}

/* Pulsing Location Marker (Unchanged) */
.kochi-user-pin {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kochi-pin-dot {
    width: 12px; height: 12px;
    background: #00FFA6;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative; z-index: 2;
    box-shadow: 0 0 8px rgba(0, 255, 166, 0.8);
}
.kochi-pin-pulse {
    position: absolute;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(0, 255, 166, 0.25);
    animation: kochiPinPulse 2s ease-out infinite;
    top: 0; left: 0;
}
@keyframes kochiPinPulse {
    0%   { transform: scale(0.3); opacity: 1; }
    70%  { transform: scale(1);   opacity: 0; }
    100% { transform: scale(1);   opacity: 0; }
}

/* =========================================
   KOCHI SLOT CHAT — CHIP BUTTONS
   ========================================= */

.kochi-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.kochi-chip {
    background: rgba(0, 255, 166, 0.08);
    border: 1px solid rgba(0, 255, 166, 0.35);
    color: #00FFA6;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.kochi-chip:hover {
    background: rgba(0, 255, 166, 0.20);
    border-color: #00FFA6;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 255, 166, 0.25);
}

.kochi-chip:active {
    transform: translateY(0);
}

/* =========================================
   SEND TO DRIVER BUTTON — States
   ========================================= */

/* DISABLED (default): monochrome / locked */
#send-whatsapp-btn:disabled {
    background: linear-gradient(135deg, #3a3a3a 0%, #1e1e1e 100%);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(1);
    opacity: 0.7;
}

/* ENABLED (itinerary ready): full green */
#send-whatsapp-btn:not(:disabled) {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    filter: grayscale(0);
    opacity: 1;
    animation: wa-btn-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#send-whatsapp-btn:not(:disabled):hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

#send-whatsapp-btn:not(:disabled):active {
    transform: translateY(0) scale(0.98);
}

@keyframes wa-btn-appear {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* Floating Restore Button Styles */
.floating-restore-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid #00FFA6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10005;
    box-shadow: 0 0 20px rgba(0, 255, 166, 0.3), inset 0 0 10px rgba(0, 255, 166, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    animation: floating-bounce 3s infinite ease-in-out;
}

.floating-restore-btn:hover {
    transform: scale(1.1) translateY(-8px);
    background: #000;
    border-color: #ffffff;
    box-shadow: 0 0 35px rgba(0, 255, 166, 0.7);
}

.floating-restore-btn.hidden {
    opacity: 0;
    transform: scale(0.5) translateY(50px);
    pointer-events: none;
}

.floating-restore-btn span {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

/* 
=========================================
   PRINT OPTIMIZATION
========================================= 
*/
@media print {
    /* Hide everything except the itinerary widget */
    body * {
        visibility: hidden !important;
    }

    #detailed-itinerary-widget, 
    #detailed-itinerary-widget * {
        visibility: visible !important;
    }

    #detailed-itinerary-widget {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        border: none !important;
        box-shadow: none !important;
        background: white !important;
        color: black !important;
        display: block !important;
    }

    .panel-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid #333 !important;
    }

    .panel-controls,
    .itinerary-view-tabs,
    .itinerary-mobile-floating-switch {
        display: none !important; /* Hide controls while printing */
    }

    .itinerary-layout {
        display: block !important; /* Stack map and timeline */
        height: auto !important;
        background: white !important;
    }

    .itinerary-timeline {
        width: 100% !important;
        height: auto !important;
        border-right: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .itinerary-map-container {
        width: 100% !important;
        height: 400px !important;
        margin-top: 20px !important;
        page-break-before: always;
        display: block !important;
    }

    .timeline-node {
        page-break-inside: avoid;
    }

    .timeline-content {
        background: white !important;
        border: 1px solid #ddd !important;
        color: black !important;
    }

    .timeline-title, .itinerary-day-header, .activity {
        color: #000 !important;
    }

    .wiki-snippet, .location {
        color: #444 !important;
    }

    .itinerary-top-gallery {
        display: none !important; /* Gallery usually prints poorly */
    }
    
    .floating-restore-btn, .navbar, #hero-overlay, .top-right-branding, .globe-top-navbar {
        display: none !important;
    }
}

 @keyframes floating-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* --- Itinerary Widget: Google Maps Integration --- */
.day-route-btn {
    display: inline-flex;
    align-items: center;
    margin: 5px 0 20px 0;
    font-size: 0.8rem;
    color: #eaeaea !important;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(52, 168, 83, 0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.day-route-btn i {
    font-size: 1rem;
    margin-right: 10px;
    color: #00FFA6;
    transition: transform 0.3s ease;
}

.day-route-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.25), rgba(52, 168, 83, 0.25));
    border-color: #00FFA6;
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(0, 255, 166, 0.25);
}

.day-route-btn:hover i {
    transform: scale(1.2) rotate(-5deg);
    color: #fff !important;
}

.location a.maps-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 166, 0.1);
    border: 1px solid rgba(0, 255, 166, 0.3);
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    transition: all 0.2s ease;
    color: #00FFA6 !important;
}

.location a.maps-link:hover {
    background: rgba(0, 255, 166, 0.2);
    border-color: #00FFA6;
    transform: translateY(-1px) scale(1.1);
    box-shadow: 0 0 8px rgba(0, 255, 166, 0.4);
}

.location a.maps-link i {
    font-size: 0.7rem;
}

/* ══════════════════════════════════════════════════════════════
   ITINERARY ACTION BAR — PDF Download + Talk to Expert
══════════════════════════════════════════════════════════════ */
.itinerary-action-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 28px 0 12px 0;
    padding: 20px 20px 16px 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.07) 0%, rgba(37, 211, 102, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.itinerary-action-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14,165,233,0.06), rgba(37,211,102,0.04));
    border-radius: 16px;
    pointer-events: none;
}

.itinerary-action-bar-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2px;
}

/* Shared button base */
.itin-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.itin-action-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.06);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: inherit;
}

.itin-action-btn:hover::after {
    opacity: 1;
}

/* PDF Download button */
.itin-pdf-btn {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(29, 78, 216, 0.20) 100%);
    border: 1px solid rgba(56, 189, 248, 0.38) !important;
    color: #bae6fd;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.12);
}

.itin-pdf-btn svg {
    stroke: #7dd3fc;
    flex-shrink: 0;
}

.itin-pdf-btn:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.28) 0%, rgba(29, 78, 216, 0.30) 100%);
    border-color: rgba(56, 189, 248, 0.65) !important;
    color: #e0f2fe;
    box-shadow: 0 6px 28px rgba(14, 165, 233, 0.28);
    transform: translateY(-2px);
}

.itin-pdf-btn:active {
    transform: translateY(0) scale(0.98);
}

/* WhatsApp / Talk to Expert button */
.itin-wa-btn {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    border: 1px solid rgba(37, 211, 102, 0.4) !important;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.22);
}

.itin-wa-btn svg {
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.6));
}

.itin-wa-btn:hover {
    background: linear-gradient(135deg, #0f7a6e 0%, #1db954 100%);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.40);
    color: #ffffff;
    transform: translateY(-2px);
}

.itin-wa-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ── Print stylesheet: Only show itinerary timeline content ── */
@media print {
    body:not(.printing-itinerary) * {
        visibility: hidden;
    }
    body.printing-itinerary *:not(.detailed-itinerary-widget):not(.itinerary-timeline):not(.itinerary-timeline *) {
        visibility: hidden !important;
        position: absolute !important;
    }
    body.printing-itinerary .detailed-itinerary-widget,
    body.printing-itinerary .itinerary-timeline,
    body.printing-itinerary .itinerary-timeline * {
        visibility: visible !important;
        position: relative !important;
    }
    body.printing-itinerary .detailed-itinerary-widget {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: #fff !important;
        color: #000 !important;
        z-index: 999999 !important;
        box-shadow: none !important;
        border: none !important;
    }
    body.printing-itinerary .panel-header,
    body.printing-itinerary .itinerary-map-container,
    body.printing-itinerary .itinerary-action-bar,
    body.printing-itinerary .itinerary-view-tabs,
    body.printing-itinerary .itinerary-floating-switch {
        display: none !important;
    }
    body.printing-itinerary .itinerary-timeline {
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px !important;
        background: #fff !important;
        color: #111 !important;
        overflow: visible !important;
    }
}

/* ==========================================================================
   PDF ITINERARY DELIVERY MODAL (Email & WhatsApp Verification)
   ========================================================================== */

.pdf-delivery-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 16, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdf-delivery-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.pdf-delivery-modal {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(165deg, rgba(17, 24, 39, 0.96) 0%, rgba(11, 15, 25, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(2, 132, 199, 0.22);
    padding: 28px 24px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    position: relative;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow: hidden;
}

.pdf-delivery-backdrop.is-active .pdf-delivery-modal {
    transform: scale(1) translateY(0);
}

.pdf-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.pdf-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: scale(1.08);
}

.pdf-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.pdf-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pdf-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #ffffff;
    line-height: 1.25;
}

.pdf-modal-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

.pdf-modal-trip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px 12px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #e2e8f0;
}

/* ── STEP 1: CHOICE VIEW ── */
.pdf-delivery-step-choice {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdf-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.pdf-option-card:hover {
    transform: translateY(-2px);
}

.pdf-option-mail:hover {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(2, 132, 199, 0.12);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
}

.pdf-option-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.7);
    background: rgba(37, 211, 102, 0.12);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.pdf-option-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.pdf-option-mail .pdf-option-icon {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.pdf-option-whatsapp .pdf-option-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.pdf-option-text {
    flex: 1;
}

.pdf-option-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-option-arrow {
    color: #64748b;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.pdf-option-card:hover .pdf-option-arrow {
    transform: translateX(4px);
    color: #ffffff;
}

.pdf-option-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.35;
}

.pdf-direct-download-row {
    margin-top: 10px;
    text-align: center;
}

.pdf-direct-link {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 6px;
}

.pdf-direct-link:hover {
    color: #38bdf8;
}

/* ── STEP 2: FORM VIEWS (Email & WhatsApp) ── */
.pdf-delivery-step-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pdf-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pdf-back-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.pdf-back-btn:hover {
    color: #ffffff;
}

.pdf-form-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.pdf-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdf-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdf-form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.pdf-form-input:focus {
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.pdf-form-input::placeholder {
    color: #64748b;
}

/* WhatsApp Phone Layout */
.pdf-phone-row {
    display: flex;
    gap: 8px;
}

.pdf-country-code-select {
    width: 130px;
    flex-shrink: 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 12px 8px;
    color: #ffffff;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.pdf-country-code-select:focus {
    border-color: #25D366;
}

.pdf-country-code-select option {
    background: #0f172a;
    color: #ffffff;
}

.pdf-phone-input {
    flex: 1;
}

.pdf-phone-input:focus {
    border-color: #25D366 !important;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.25) !important;
}

/* Status / Alert feedback */
.pdf-status-banner {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.pdf-status-banner.is-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.pdf-status-banner.is-checking {
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
}

.pdf-status-banner.is-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.pdf-spinner-inline {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: pdfSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes pdfSpin {
    to { transform: rotate(360deg); }
}

/* Submit buttons */
.pdf-submit-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdf-submit-mail {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
}

.pdf-submit-mail:hover:not(:disabled) {
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.55);
}

.pdf-submit-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.pdf-submit-wa:hover:not(:disabled) {
    background: linear-gradient(135deg, #20ba59 0%, #0e7266 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.pdf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── STEP 3: SUCCESS VIEW ── */
.pdf-delivery-step-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.pdf-success-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.16);
    border: 2px solid #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #22c55e;
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.3);
    animation: pdfSuccessPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pdfSuccessPop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.pdf-success-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.pdf-success-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.pdf-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.pdf-btn-open-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
}

.pdf-btn-open-wa:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.pdf-btn-open-brochure {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-btn-open-brochure:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #38bdf8;
}

.pdf-btn-done {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.84rem;
    cursor: pointer;
    padding: 6px;
    text-decoration: underline;
}

.pdf-btn-done:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    .pdf-delivery-modal {
        padding: 22px 18px;
        border-radius: 20px;
    }
    .pdf-modal-title {
        font-size: 1.25rem;
    }
    .pdf-phone-row {
        flex-direction: column;
    }
    .pdf-country-code-select {
        width: 100%;
    }
}

/* ── Sleek 3-Segment Search Bar Pill (Generator Bar) ── */
.planner-generator-bar {
    background: transparent;
    padding: 10px 14px 14px 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    box-sizing: border-box;
    width: 100%;
}

.pgen-tri-search-pill {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 480px;
    background: rgba(9, 15, 26, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    padding: 4px 5px 4px 14px;
    box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.14);
    gap: 4px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.pgen-tri-search-pill:hover,
.pgen-tri-search-pill:focus-within {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.25);
}

.pgen-pill-segment {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgen-segment-dest {
    flex: 1.1;
    position: relative;
}

/* ── Suggestions Dropdown for Chat Itinerary Generator Bar ── */
.pgen-suggestions-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 260px;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(8, 15, 28, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(56, 189, 248, 0.38);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.8), 0 0 16px rgba(56, 189, 248, 0.15);
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
}

.pgen-suggestions-dropdown::-webkit-scrollbar {
    width: 4px;
}
.pgen-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border-radius: 4px;
}

.pgen-suggestion-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.15s ease;
    outline: none;
}

.pgen-suggestion-row:hover,
.pgen-suggestion-row:focus {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.35);
}

.pgen-sugg-flag {
    width: 28px;
    height: 22px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    color: #e2e8f0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.pgen-suggestion-row:hover .pgen-sugg-flag {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.pgen-sugg-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.pgen-sugg-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgen-sugg-region {
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgen-sugg-add-icon {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(56, 189, 248, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.1);
    transition: all 0.15s ease;
}

.pgen-suggestion-row:hover .pgen-sugg-add-icon {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.35);
    transform: scale(1.08);
}

.pgen-segment-days {
    flex: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 9999px;
    padding: 4px 8px;
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
}

.pgen-segment-days:hover {
    background: rgba(56, 189, 248, 0.14);
}

.pgen-segment-days.active {
    background: rgba(56, 189, 248, 0.24);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.pgen-days-preview {
    font-size: 0.84rem;
    font-weight: 600;
    color: #38bdf8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.pgen-days-preview i {
    font-size: 0.8rem;
    color: #38bdf8;
    opacity: 0.95;
}

.pgen-segment-vibe {
    flex: 1.3;
}

.pgen-pill-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #38bdf8;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    padding: 4px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgen-pill-input::placeholder {
    color: #38bdf8;
    opacity: 0.8;
}

.pgen-pill-select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #38bdf8;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align-last: center;
    padding: 4px 2px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgen-pill-select option {
    background: #0b1526;
    color: #ffffff;
    padding: 6px;
    text-align: left;
}

.pgen-pill-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.16);
    margin: 0 2px;
    flex-shrink: 0;
}

.pgen-circle-search-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.45);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.pgen-circle-search-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.65), 0 0 14px rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

.pgen-circle-search-btn:active {
    transform: scale(0.96);
}

.pgen-sparkle-icon {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    color: #ffffff;
}

@media (max-width: 480px) {
    .pgen-tri-search-pill {
        padding: 4px 4px 4px 10px;
    }
    .pgen-pill-input,
    .pgen-pill-select {
        font-size: 0.76rem;
    }
    .pgen-circle-search-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* ── Clean Single-Message Itinerary Schedule Flow ── */
.clean-single-message {
    padding: 16px 16px 14px 16px !important;
    background: linear-gradient(180deg, rgba(13, 23, 42, 0.94) 0%, rgba(9, 14, 26, 0.98) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.08) !important;
}

.itinerary-schedule-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 16px 0;
    max-height: none !important;
    overflow: visible !important;
}

.itin-simple-day {
    background: rgba(17, 28, 52, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.itin-simple-day:hover {
    background: rgba(22, 36, 66, 0.7);
    border-color: rgba(56, 189, 248, 0.24);
}

.itin-simple-day-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.itin-day-pill {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.itin-day-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    flex: 1;
    min-width: 120px;
}

.itin-day-city {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    margin-left: auto;
}

.itin-simple-day-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.itin-simple-slot {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(8, 15, 28, 0.6);
    border-radius: 8px;
    padding: 8px 10px;
    border-left: 2px solid rgba(56, 189, 248, 0.5);
}

.itin-slot-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    padding-top: 1px;
}

.itin-slot-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.itin-slot-title {
    font-size: 0.82rem;
    color: #f8fafc;
    font-weight: 600;
    line-height: 1.35;
}

.itin-inline-loc {
    font-size: 0.74rem;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 1px;
    transition: color 0.15s ease;
}

.itin-inline-loc:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.itin-inline-desc {
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-top: 2px;
    opacity: 0.9;
}

/* Destination Segment Globe Click Pulse */
@keyframes segmentHighlightPulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.05);
        background: rgba(56, 189, 248, 0.28) !important;
        box-shadow: inset 0 0 0 1.5px rgba(56, 189, 248, 0.8), 0 0 16px rgba(56, 189, 248, 0.45);
    }
    100% {
        transform: scale(1);
    }
}

.segment-highlight-pulse {
    animation: segmentHighlightPulse 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── Itinerary Generating Loader (contained inside circle button) ─── */

/* Spinning ring state applied directly to the button */
.pgen-circle-search-btn.pgen-loading {
    pointer-events: none;
    background: linear-gradient(135deg, #0369a1 0%, #1e3a8a 100%);
    box-shadow: 0 2px 12px rgba(2, 132, 199, 0.5);
}

/* Hide the sparkle icon while loading */
.pgen-circle-search-btn.pgen-loading .pgen-sparkle-icon {
    display: none;
}

/* The spinning ring inserted into the button during loading */
.pgen-btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    animation: pgenBtnSpin 0.7s linear infinite;
    flex-shrink: 0;
}

/* Inner glow dot in the centre of the ring */
.pgen-btn-spinner::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #38bdf8;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pgenBtnGlow 1s ease-in-out infinite alternate;
    box-shadow: 0 0 6px 2px rgba(56, 189, 248, 0.8);
}

@keyframes pgenBtnSpin {
    to { transform: rotate(360deg); }
}

@keyframes pgenBtnGlow {
    from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.7); }
    to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.2); }
}