/* ================================================
   AGENT MEGA DRIVE V3 — Table-First Design
   Two-column layout: sidebar + full-width table
   ================================================ */

/* ---- Tokens ---- */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bg: #f5f3ef;
    --surface: #ffffff;
    --surface-hover: #faf9f7;
    --sidebar-bg: #1B2A4A;
    --sidebar-text: #c7cdd6;
    --sidebar-active: #c4953a;
    --text: #1a1a1a;
    --text-secondary: #3a3a3a;
    --text-tertiary: #999;
    --border: #e5e2dc;
    --gold: #C4A265;
    --gold-text: #b89555;
    --gold-bg: linear-gradient(135deg, #C4A265 0%, #d4b87a 100%);
    --bg-dark: #1B2A4A;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --transition: 0.2s ease;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow: hidden;
}

/* ---- Skip navigation link (a11y) ---- */
.skip-nav {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 8px 16px;
    background: #c4953a;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.skip-nav:focus {
    left: 0 !important;
}

/* ---- Focus-visible indicator (a11y) ---- */
*:focus-visible {
    outline: 2px solid #c4953a;
    outline-offset: 2px;
}

/* ---- Two-column shell ---- */
.app-shell {
    display: grid;
    grid-template-columns: 200px 1fr;
    height: 100vh;
    overflow: hidden;
    border-top: 3px solid var(--gold);
}

/* ================================================
   SIDEBAR
   ================================================ */
.col-regions {
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.regions-header {
    padding: 20px 16px 12px;
}

.regions-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.3;
}

.regions-header-tagline {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

.regions-branding {
    padding: 110px 16px 10px;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.regions-branding .brand-powered {
    display: block;
    font-size: 10px;
    color: var(--sidebar-text);
    opacity: 0.5;
    text-decoration: none;
    margin-bottom: 2px;
}

.regions-branding .brand-powered:hover {
    opacity: 0.8;
    color: var(--gold-text);
}

.regions-branding p {
    font-size: 9px;
    color: var(--sidebar-text);
    opacity: 0.35;
    margin: 0;
}

.regions-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 16px 2px;
    margin-top: 0;
    opacity: 0.8;
}

.welcome-tagline {
    font-style: italic;
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    font-family: var(--font);
    font-size: 18px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-logo span {
    color: var(--gold);
}

.brand-app {
    font-size: 10px;
    font-weight: 600;
    color: var(--sidebar-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-powered {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    opacity: 1;
    margin-top: 6px;
    transition: opacity 0.2s;
}

.brand-powered {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color var(--transition);
    display: block;
    margin-top: 6px;
}

.regions-search {
    padding: 12px 12px 4px;
}

.regions-filter {
    width: 100%;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font);
    font-size: 12px;
    transition: border-color var(--transition);
}

.regions-filter:focus:not(:focus-visible) {
    outline: none;
}

.regions-filter:focus {
    border-color: var(--gold);
}

.regions-filter::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.regions-nav {
    flex: 1;
    overflow-y: auto;
    padding: 32px 8px 8px;
}

.regions-nav::-webkit-scrollbar {
    width: 4px;
}

.regions-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.region-group-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sidebar-active);
    padding: 14px 8px 4px;
    cursor: pointer;
    user-select: none;
}

.region-group-label:hover {
    color: var(--gold);
}

.region-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.region-group-label.collapsed .region-chevron {
    transform: rotate(-90deg);
}

.region-group-items {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease;
}

.region-group-items.collapsed {
    max-height: 0;
}

.region-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 8px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.region-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.region-btn.active {
    background: rgba(196, 149, 58, 0.15);
    color: white;
    font-weight: 600;
}

.region-btn .count {
    font-size: 10px;
    color: var(--sidebar-text);
    opacity: 0.6;
}

/* Country with city sub-items */
.region-country {
    position: relative;
}

.region-country *:focus:not(:focus-visible) {
    outline: none;
}

.country-arrow {
    color: var(--gold);
    font-size: 14px;
    margin-left: 5px;
    opacity: 0.8;
}

.region-country.expanded .country-arrow {
    opacity: 1;
}

/* City sub-items — hidden by default */
.region-city-items {
    display: none;
}

.region-country.expanded .region-city-items {
    display: block;
}

.region-city-btn {
    font-size: 12px;
    padding-left: 20px;
    opacity: 0.85;
}

.city-bullet {
    color: var(--gold);
    font-size: 8px;
    margin-right: 3px;
    flex-shrink: 0;
}

/* How to Book special button */
.how-to-book-btn {
    justify-content: flex-start;
    margin-bottom: 12px;
    padding: 9px 10px;
    border: 1px solid rgba(196, 149, 58, 0.3);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-weight: 600;
}

.how-to-book-btn:hover {
    background: rgba(196, 149, 58, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.how-to-book-btn.active {
    background: rgba(196, 149, 58, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.regions-footer {
    padding: 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
}

.sidebar-copyright {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    margin: 6px 0 0;
}

.regions-footer a {
    color: var(--gold);
    text-decoration: none;
}

.regions-footer-sub {
    margin-top: 6px;
    opacity: 0.8;
}

/* ---- Sidebar Tab Bar ---- */
.sidebar-tabs {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px 8px;
    background: none;
    border: none;
    border-top: 2px solid transparent;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-tab:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-tab.active {
    color: var(--gold);
    border-top-color: var(--gold);
    background: rgba(196, 149, 58, 0.06);
}

.sidebar-tab svg {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sidebar-tab.active svg {
    opacity: 1;
    stroke: var(--gold);
}

/* Concierge inline (in main content area) */
.concierge-inline {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 80px);
}

/* ---- Suggest Property ---- */
.suggest-property-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(196, 149, 58, 0.12);
    color: var(--gold);
    border: 1px dashed rgba(196, 149, 58, 0.4);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.suggest-property-btn:hover {
    background: rgba(196, 149, 58, 0.25);
    border-color: var(--gold);
}

.suggest-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.suggest-card {
    background: #1a1d27;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    color: #e8e9ed;
    max-height: 90vh;
    overflow-y: auto;
}

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

.suggest-header h3 {
    font-size: 18px;
    color: #e8c87a;
}

.suggest-close {
    background: none;
    border: none;
    color: #8b8f9a;
    font-size: 24px;
    cursor: pointer;
}

.suggest-close:hover {
    color: #fff;
}

.suggest-sub {
    font-size: 13px;
    color: #8b8f9a;
    margin-bottom: 20px;
    line-height: 1.5;
}

.suggest-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.suggest-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.suggest-group input,
.suggest-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: #13151c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #e8e9ed;
    font-family: var(--font);
    font-size: 14px;
    transition: border-color 0.2s;
}

.suggest-group input:focus,
.suggest-group textarea:focus {
    border-color: #c4953a;
}

.suggest-group input:focus:not(:focus-visible),
.suggest-group textarea:focus:not(:focus-visible) {
    outline: none;
}

.suggest-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.suggest-submit {
    padding: 12px;
    background: linear-gradient(135deg, #c4953a 0%, #d4a94a 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s;
}

.suggest-submit:hover {
    transform: translateY(-1px);
}

.suggest-submit:active {
    transform: translateY(0);
}

.suggest-success {
    color: #22c55e;
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

.suggest-error {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

/* ================================================
   MAIN CONTENT AREA
   ================================================ */
.col-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ---- Mega Header ---- */
.mega-header {
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--sidebar-bg);
}

/* Combined platforms + popular row */
.mega-header-combined {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.mega-header-combined .main-title {
    margin-right: auto;
}

.mega-header-combined::-webkit-scrollbar {
    display: none;
}

.mega-header .mega-header-combined .platforms-label,
.mega-header .mega-header-combined .popular-label {
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.combined-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 12px;
    flex-shrink: 0;
}

.combined-divider.popular-divider {
    margin-left: auto;
}

/* ---- Dark header text overrides ---- */
.mega-header .mega-header-logo {
    color: #fff;
}

.mega-header .mega-header-title {
    color: #fff;
}

.mega-header .mega-header-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.mega-header .main-title {
    color: #fff;
}

.mega-header .main-count {
    color: rgba(255, 255, 255, 0.5);
}

.mega-header .platforms-label,
.mega-header .popular-label {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.mega-header .platform-chip {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.mega-header .platform-chip:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: rgba(196, 149, 58, 0.2) !important;
}

.mega-header .popular-chip {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.mega-header .popular-chip:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: rgba(196, 149, 58, 0.1) !important;
}

.mega-header .popular-chip.active {
    background: var(--gold) !important;
    color: #0f1a30 !important;
    border-color: var(--gold) !important;
    font-weight: 600;
}

.mega-header .search-wrapper input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mega-header .search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mega-header .search-wrapper svg {
    color: rgba(255, 255, 255, 0.4);
}

.mega-header .trip-select {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mega-header .mega-header-user {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.mega-header .mega-header-top {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.mega-header .mega-header-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.mega-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px 22px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.mega-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mega-header-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.mega-header-logo span {
    color: var(--gold);
}

.mega-header-logo:hover {
    opacity: 0.85;
}

.mega-header-brand-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-header-brand-names {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-header-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 300;
}

.mega-header-partner {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.2s;
    white-space: nowrap;
}

.mega-header-partner:hover {
    color: var(--gold);
}

.mega-header-tagline {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mega-header-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.mega-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.mega-header .mega-header-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.mega-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    max-width: 600px;
    justify-content: flex-end;
}

.mega-header-actions .search-wrapper {
    flex: 1;
    max-width: 380px;
    position: relative;
}

.search-clear-btn,
.tier-clear-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}

.search-clear-btn:hover,
.tier-clear-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.tier-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tier-wrapper .trip-select {
    padding-right: 28px;
}

.mega-header-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
}

.mega-header-back:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Header navigation tabs (How to Book, Research, Concierge) */
.header-nav-tabs {
    display: flex;
    gap: 2px;
    margin-left: auto;
    align-items: center;
    flex-shrink: 0;
}

.header-nav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.header-nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.header-nav-btn.active {
    color: var(--gold);
    background: rgba(196, 149, 58, 0.12);
}

.header-nav-btn svg {
    flex-shrink: 0;
}

/* Combined row: title + platforms + popular */
.mega-header-combined .main-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.01em;
    min-width: 180px;
}

.mega-header-combined .main-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
    margin-right: 4px;
}

.platforms-label {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.platform-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(196, 149, 58, 0.06);
}

.platform-chip img {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    object-fit: contain;
}

/* Row 3: Popular brands */
.mega-header-popular {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mega-header-popular::-webkit-scrollbar {
    display: none;
}

.popular-label {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 4px;
}

.popular-chip {
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

.popular-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(196, 149, 58, 0.06);
}

.popular-chip.active {
    border-color: var(--gold);
    background: var(--gold);
    color: #fff;
}

.main-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Booking Assistant button */
.mega-assistant-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--gold);
    background: rgba(196, 149, 58, 0.08);
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.mega-assistant-btn:hover {
    background: var(--gold);
    color: #fff;
}

/* ---- Profile Dropdown ---- */
.profile-dropdown {
    position: relative;
}

.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: rgba(196, 149, 58, 0.12);
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    padding: 0;
}

.profile-avatar:hover {
    background: var(--gold);
    color: #fff;
}

.profile-menu {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    overflow: hidden;
}

.profile-menu.open {
    display: block;
}

.profile-menu-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.profile-menu-name {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.profile-menu-email {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.profile-menu-divider {
    height: 1px;
    background: var(--border);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.profile-menu-item:hover {
    background: rgba(196, 149, 58, 0.06);
    color: var(--gold);
}

.profile-menu-item.active {
    color: var(--gold);
    background: rgba(196, 149, 58, 0.08);
}

.profile-menu-item svg {
    flex-shrink: 0;
}

/* ---- Favorites Heart ---- */
.fav-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.fav-btn:hover {
    color: #e74c3c;
    transform: scale(1.15);
}

.fav-btn.favorited {
    color: #e74c3c;
}

.fav-btn.favorited svg {
    fill: #e74c3c;
}

/* ---- My Account Modal ---- */


/* ---- Trip Survey Modal ---- */
.trip-survey-modal {
    max-height: 85vh;
    overflow-y: auto;
}

.trip-survey-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    padding: 0 24px 8px;
}

.trip-survey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Star ratings */
.trip-stars {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.trip-star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s, transform 0.1s;
    user-select: none;
}

.trip-star:hover {
    transform: scale(1.15);
}

.trip-star.active {
    color: var(--gold);
}

/* Yes/No toggle buttons */
.trip-toggle-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.trip-toggle {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.15s;
}

.trip-toggle.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* I Stayed Here button */
.trip-log-btn {
    background: transparent !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
}

.trip-log-btn:hover {
    background: var(--gold) !important;
    color: #fff !important;
}

/* Text area */
.trip-survey-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    resize: vertical;
}

/* Share button variant */
.trip-share-btn {
    background: transparent !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
}

.trip-share-btn:hover {
    background: rgba(196, 149, 58, 0.1) !important;
}

.trip-share-success {
    text-align: center;
    color: #16a34a;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
}

.trip-share-success.hidden {
    display: none;
}

.main-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.main-count {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.main-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
}

.search-wrapper {
    position: relative;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--transition);
}

.search-input:focus {
    border-color: var(--gold);
}

.search-input:focus:not(:focus-visible) {
    outline: none;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.trip-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--surface);
    cursor: pointer;
}

.trip-select:focus:not(:focus-visible) {
    outline: none;
}

/* ---- Empty state ---- */
.main-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    color: var(--text-tertiary);
    padding: 40px 20px;
}

.main-empty.hidden {
    display: none;
}

.empty-icon {
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.empty-sub {
    font-size: 13px;
    color: var(--text-tertiary);
    max-width: 300px;
}

/* ---- Strategic Pathways Infographic ---- */
.pathways-infographic {
    margin-top: 40px;
    max-width: 700px;
    width: 100%;
}

.pathways-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    text-align: center;
}

.pathways-diagram {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .pathways-infographic {
        max-width: 100%;
    }
}

/* ---- Welcome state (no region selected) ---- */
.welcome-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.welcome-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.welcome-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}

.welcome-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 28px;
    max-width: 400px;
}

/* Booking Assistant blurb */
.welcome-assistant-blurb {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 520px;
    margin: 24px auto 0;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    text-align: left;
}

.assistant-blurb-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.assistant-blurb-text strong {
    font-size: 14px;
    color: var(--text);
    display: block;
    margin-bottom: 6px;
}

.assistant-blurb-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.welcome-hints {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    max-width: 860px;
    margin: 0 auto;
}

.welcome-hint {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    line-height: 1.4;
}

/* Subtle disclaimer text */
.welcome-disclaimer {
    max-width: 480px;
    margin: 28px auto 0;
    font-size: 11px;
    color: #bbb;
    line-height: 1.5;
    font-style: italic;
    letter-spacing: 0.01em;
}

/* Sidebar heading label (unused — now using regions-header-title) */
.sidebar-section-label {
    display: none;
}

/* Welcome "Built by Agents" section */
.welcome-section {
    max-width: 520px;
    margin-bottom: 32px;
    text-align: center;
}

.welcome-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.welcome-section-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Feature cards grid */
.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 640px;
    margin-bottom: 32px;
}

.welcome-feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 22px 16px 18px;
    text-align: center;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.welcome-feature:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.welcome-feature-icon {
    margin-bottom: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-feature h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1B2A4A;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.welcome-feature p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 600px) {
    .welcome-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ---- How to Book / Pathways Page ---- */
.pathways-page {
    padding: 40px 32px;
    max-width: 860px;
    margin: 0 auto;
}

.pathways-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.pathways-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pathways-page-divider {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.pathway-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pathway-panel:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.pathway-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.pathway-panel-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.pathway-panel h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.pathway-panel p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 700px) {
    .pathways-page-grid {
        grid-template-columns: 1fr;
    }

    .pathways-page {
        padding: 24px 16px;
    }
}

/* ================================================
   TABLE
   ================================================ */
.main-table-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px 32px;
}

.main-table-wrap::-webkit-scrollbar {
    width: 6px;
}

.main-table-wrap::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 6px;
}

.tbl-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

.mega-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.mega-table thead th {
    position: sticky;
    top: 0;
    background: var(--surface);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

/* Info tooltip bubble */
.info-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--text-secondary);
    color: var(--text-secondary);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    cursor: help;
    margin-left: 5px;
    vertical-align: middle;
    flex-shrink: 0;
    transition: all 0.15s;
}

.info-tip:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.15);
}

.info-tip .info-bubble {
    display: none;
    position: fixed;
    width: 280px;
    padding: 12px 14px;
    background: #1B2A4A;
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    pointer-events: none;
}

.info-tip .info-bubble::after {
    display: none;
}

.info-tip:hover .info-bubble {
    display: block;
}

.mega-table thead .th-chevron {
    width: 36px;
    padding: 8px 2px;
    text-align: center;
}

.mega-table thead .th-includes {
    width: 16%;
    padding-right: 12px;
}

.mega-table thead .th-badge {
    text-align: center;
    width: 8%;
    padding: 12px 8px;
}

.mega-table thead .th-tier {
    width: 7%;
    text-align: right;
    padding-right: 24px;
}

.mega-table thead .th-fav {
    width: 36px;
    text-align: center;
    padding: 12px 6px;
}

.td-fav {
    width: 36px;
    text-align: center;
    padding: 8px 6px !important;
}

.mega-table thead .th-discount {
    width: 12%;
    text-align: center;
    padding: 12px 12px;
}

.mega-table thead .th-perks {
    width: 17%;
}

.mega-table thead .th-restrictions {
    width: 17%;
}

.mega-table thead .th-brand {
    width: 12%;
}

/* Region header in global search */
.tbl-region-header td {
    background: rgba(196, 149, 58, 0.08);
    border-bottom: 1px solid rgba(196, 149, 58, 0.2);
    border-left: 3px solid var(--gold);
    padding: 10px 14px;
    font-size: 13px;
}

.region-header-name {
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}

.region-header-count {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-left: 8px;
}

/* ---- Table rows ---- */
.tbl-row {
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
}

.tbl-row:hover {
    background: rgba(196, 149, 58, 0.04);
}

.tbl-row.expanded {
    background: rgba(196, 149, 58, 0.06);
    position: relative;
    z-index: 2;
}

/* When any row is expanded, dim all non-expanded rows */
.main-table-wrap.has-expanded .tbl-row:not(.expanded) {
    opacity: 0.55;
}

.main-table-wrap.has-expanded .tbl-row:not(.expanded):hover {
    opacity: 0.85;
    background: rgba(196, 149, 58, 0.04);
}

/* Expanded row detail area stays fully visible */
.main-table-wrap.has-expanded .detail-row {
    opacity: 1;
}

.tbl-row td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.tbl-row.expanded td {
    border-bottom-color: transparent;
}

/* Chevron */
.td-chevron {
    width: 36px;
    text-align: center;
    padding: 0 2px;
}

.row-chevron {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: transform 0.2s, color 0.2s;
    width: 14px;
    flex-shrink: 0;
}

.row-chevron.open {
    transform: rotate(90deg);
    color: var(--gold-text);
}

.compare-check-all {
    width: 13px;
    height: 13px;
    accent-color: var(--gold);
    cursor: pointer;
}

/* Brand cell */
/* Row checkbox for comparison */
.row-check-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
}

.row-compare-check {
    width: 15px;
    height: 15px;
    accent-color: var(--gold);
    cursor: pointer;
}

.tbl-row.compared {
    background: rgba(196, 149, 58, 0.06);
}

.brand-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tbl-logo {
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
}

.tbl-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.tbl-logo.logo-initial {
    background: #f0ede8;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border-color: #e5e2dc;
}

.brand-name {
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}

.td-brand {
    overflow: visible;
}

/* Includes column */
.td-includes {
    color: var(--text-secondary);
    font-size: 12px;
    max-width: 200px;
}

.td-discount {
    text-align: center;
}

.discount-value {
    color: var(--gold);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

/* Perks column */
.td-perks {
    font-size: 11px;
    color: var(--text-secondary);
    max-width: 200px;
}

.perks-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

/* Restrictions column */
.td-restrictions {
    font-size: 11px;
    color: var(--text-secondary);
    max-width: 180px;
}

.restrictions-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

/* Badge columns */
.td-badge {
    text-align: center;
}

.badge-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}

.badge-dot.yes {
    background: #16a34a;
    color: white;
}

/* Tier pill */
.tier-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    white-space: nowrap;
}

.tier-pill.tier-luxury {
    border-color: #d4a94a;
    color: #8b6914;
    background: rgba(196, 149, 58, 0.06);
}

.tier-pill.tier-upscale {
    border-color: var(--border);
    color: var(--text-secondary);
}

.tier-pill.tier-midrange {
    border-color: var(--border);
    color: var(--text-tertiary);
}

.tier-pill.tier-budget {
    border-color: var(--border);
    color: var(--text-tertiary);
}

.td-tier {
    text-align: right;
    padding-right: 16px;
}

/* ================================================
   EXPANDED ROW
   ================================================ */
.tbl-detail-row td {
    padding: 0 12px 16px;
    background: var(--surface);
    border-bottom: 2px solid var(--gold);
}

.expanded-content {
    padding: 16px 16px 20px 48px;
}

.expanded-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 700px;
}

.expanded-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.expanded-stat {
    flex: 1;
    min-width: 180px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

.expanded-stat-wide {
    flex: 2;
    max-width: 600px;
}

.expanded-section {
    min-width: 0;
}

.expanded-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.expanded-discount {
    font-size: 20px;
    font-weight: 700;
    background: var(--gold-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expanded-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: break-word;
}

.expanded-text.training-req {
    color: #b45309;
}

.expanded-text.training-no {
    color: #16a34a;
    font-weight: 500;
}

/* Sub-brand chips in expanded */
.expanded-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.exp-chip {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.exp-chip.linked {
    cursor: pointer;
}

.exp-chip.linked:hover {
    border-color: var(--gold);
    color: var(--gold-text);
    background: #faf8f5;
}

/* Inline link + promo code */
.inline-link {
    color: var(--gold-text);
    text-decoration: underline;
    word-break: break-all;
}

.promo-code {
    display: inline-block;
    padding: 1px 6px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 3px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: #92400e;
    font-weight: 600;
}

/* ---- Booking Guide + Map Layout ---- */
.booking-guide-map-wrapper {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

.booking-guide-map-wrapper .booking-guide {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.hotel-map-container {
    flex: 1 1 380px;
    min-height: 320px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    background: var(--surface);
}

/* Scale down Google Maps controls (zoom, fullscreen) */
.hotel-map-container .gm-bundled-control,
.hotel-map-container .gm-fullscreen-control {
    transform: scale(0.75);
    transform-origin: top right;
}

/* Hide only copyright bar */
.hotel-map-container .gm-style-cc {
    display: none !important;
}

.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    color: var(--muted);
    font-size: 13px;
}

.map-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: mapSpin 0.8s linear infinite;
}

@keyframes mapSpin {
    to {
        transform: rotate(360deg);
    }
}

.map-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

.map-hotel-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 900px) {
    .booking-guide-map-wrapper {
        flex-direction: column;
    }

    .hotel-map-container {
        flex: none;
        width: 100%;
        min-height: 220px;
    }
}

/* ---- Booking Guide Card ---- */
.booking-guide {
    background: rgba(196, 149, 58, 0.06);
    border: 1px solid rgba(196, 149, 58, 0.25);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.booking-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-guide-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-portal-link {
    font-size: 12px;
    color: var(--gold);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(196, 149, 58, 0.4);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.booking-portal-link:hover {
    background: rgba(196, 149, 58, 0.15);
    border-color: var(--gold);
}

/* Codes */
.booking-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.booking-code-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.booking-code-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.booking-code-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.booking-code-value:hover {
    border-color: var(--gold);
    background: rgba(196, 149, 58, 0.08);
}

.booking-code-value code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.booking-code-value .copy-icon {
    font-size: 12px;
    color: var(--muted);
    transition: color 0.15s;
}

.booking-code-value:hover .copy-icon {
    color: var(--gold);
}

.booking-code-value .copied-text {
    display: none;
    font-size: 11px;
    color: #22c55e;
    font-weight: 600;
}

.booking-code-value.copied .copy-icon {
    display: none;
}

.booking-code-value.copied code {
    display: none;
}

.booking-code-value.copied .copied-text {
    display: inline;
}

.booking-code-value.copied {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

/* Steps */
.booking-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.booking-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.step-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.step-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

/* Tips */
.booking-tips {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(196, 149, 58, 0.15);
}

.booking-tip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.tip-icon {
    flex-shrink: 0;
    font-size: 12px;
}

.tip-text {
    font-size: 12px;
}

/* Action buttons in expanded */
.expanded-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
    gap: 16px;
    flex-wrap: wrap;
}

.expanded-actions {
    display: flex;
    gap: 10px;
}

.expanded-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.expanded-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0 4px;
    margin-top: 8px;
}

.expanded-contact-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.expanded-contact-links .brand-link-item {
    font-size: 11px;
    padding: 2px 0;
}

/* Inline contact row under Agent Discount */
.expanded-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.expanded-contact-row .brand-link-item {
    font-size: 11px;
    color: var(--text-secondary);
    text-decoration: none;
}

.expanded-contact-row .brand-link-item:hover {
    color: var(--gold);
}

/* Social pills row — horizontal under stats */
.expanded-socials-row {
    display: flex;
    gap: 8px;
    padding: 8px 24px 4px;
    flex-wrap: wrap;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 16px;
    background: rgba(196, 149, 58, 0.08);
    border: 1px solid rgba(196, 149, 58, 0.15);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.social-pill:hover {
    background: rgba(196, 149, 58, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.brand-link-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    white-space: nowrap;
    transition: all 0.2s;
}

.brand-link-item:hover {
    color: var(--gold-text);
    border-color: var(--gold);
    background: rgba(196, 149, 58, 0.06);
}

.brand-link-item.social-link {
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
}

.btn-action.primary {
    background: var(--gold-bg);
    color: white;
}

.btn-action.primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-action.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action.secondary svg {
    pointer-events: none;
    flex-shrink: 0;
}

.btn-action.secondary:hover {
    border-color: var(--gold);
    color: var(--gold-text);
}

/* ================================================
   COMPARE BAR
   ================================================ */
.compare-bar {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: var(--sidebar-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 100;
    transition: bottom 0.3s ease;
}

.compare-bar.visible {
    bottom: 24px;
}

.compare-bar span {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.compare-bar .compare-count-badge {
    background: var(--gold);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.compare-bar button {
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.compare-bar .btn-compare {
    background: var(--gold);
    color: white;
}

.compare-bar .btn-compare:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.compare-bar .btn-compare-clear {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.compare-bar .btn-compare-clear:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ================================================
   MODALS (compare + email)
   ================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

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

.modal-close:hover {
    color: var(--text);
}

/* Compare cards layout */
.compare-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 8px 0;
}

.compare-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}

.compare-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(196, 149, 58, 0.03);
}

.compare-card-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compare-card-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.compare-card-body {
    padding: 6px 0;
}

.compare-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 16px;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

.compare-val {
    font-size: 13px;
    color: var(--text);
    text-align: right;
}

.compare-discount {
    color: var(--gold-text);
    font-weight: 700;
}

.prop-name {
    font-weight: 700;
    font-size: 15px;
}

.tier-indicator {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.tier-indicator.tier-luxury {
    background: linear-gradient(135deg, #f5e6c8, #e8d4a0);
    color: #8b6914;
}

.tier-indicator.tier-upscale {
    background: #e0e7ff;
    color: #3730a3;
}

.tier-indicator.tier-midrange {
    background: #e0f2fe;
    color: #0369a1;
}

.tier-indicator.tier-budget {
    background: #f0f0f0;
    color: #666;
}

/* ---- Email modal ---- */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.email-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.email-field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.email-field input,
.email-field textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    color: var(--text);
    transition: border-color var(--transition);
}

.email-field input:focus,
.email-field textarea:focus {
    border-color: var(--gold);
}

.email-field input:focus:not(:focus-visible),
.email-field textarea:focus:not(:focus-visible) {
    outline: none;
}

.email-textarea {
    resize: vertical;
    min-height: 120px;
}

.email-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.btn-copy-email,
.btn-send-email {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
}

.btn-copy-email {
    background: var(--gold-bg);
    color: white;
    border: none;
}

.btn-copy-email:hover {
    filter: brightness(1.1);
}

.btn-send-email {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-send-email:hover {
    border-color: var(--gold);
    color: var(--gold-text);
}

/* ================================================
   HAMBURGER (hidden on desktop)
   ================================================ */
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    transition: border-color var(--transition);
}

.hamburger-btn:hover {
    border-color: var(--gold);
}

/* ================================================
   SIDEBAR BACKDROP (mobile only)
   ================================================ */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 49;
}

.sidebar-backdrop.visible {
    display: block;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* --- Tablet & small desktop (≤ 900px) --- */
@media (max-width: 900px) {

    /* Switch to single-column */
    .app-shell {
        grid-template-columns: 1fr;
    }

    /* Sidebar: slide-in overlay from left */
    .col-regions {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .col-regions.open {
        transform: translateX(0);
    }

    /* Show hamburger */
    .hamburger-btn {
        display: flex;
    }

    /* Stack header on mobile */
    .mega-header-top {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 14px;
        gap: 8px;
    }

    .mega-header-brand {
        gap: 8px;
        align-items: center;
    }

    /* Keep title inline but smaller */
    .mega-header-title {
        font-size: 1rem;
    }

    /* Hide the divider bar on mobile */
    .mega-header-divider {
        display: none;
    }

    .mega-header-partner,
    .mega-header-sep,
    .mega-header-tagline {
        display: none;
    }

    .mega-header-actions {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .mega-header-actions .search-wrapper {
        max-width: 100%;
        flex: 1 1 200px;
    }

    .mega-header-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 14px;
        gap: 8px;
    }

    /* Hide popular properties on mobile — too crowded */
    .popular-label,
    .popular-chip,
    .popular-divider {
        display: none;
    }

    .mega-header-combined {
        padding: 8px 14px;
        gap: 6px;
    }

    .mega-header-popular {
        padding: 8px 14px;
    }

    .mega-assistant-btn span {
        display: none;
    }

    .main-title {
        font-size: 18px;
    }

    /* Table horizontal scroll */
    .main-table-wrap {
        padding: 0 8px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mega-table {
        min-width: 580px;
    }

    /* Expanded content - full width, reduce padding */
    .expanded-content {
        padding: 12px 12px 16px 12px;
    }

    .expanded-stats {
        flex-direction: column;
    }

    .expanded-stat {
        max-width: none;
        min-width: 0;
    }

    /* Booking guide overflow */
    .booking-guide {
        padding: 12px 14px;
    }

    .booking-guide-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-codes {
        flex-direction: column;
        gap: 8px;
    }

    .booking-code-item {
        flex-wrap: wrap;
    }

    /* Compare bar - wrap on small screens */
    .compare-bar {
        left: 12px;
        right: 12px;
        transform: none;
        padding: 10px 14px;
    }

    .compare-bar.visible {
        bottom: 12px;
    }

    .compare-bar-inner {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .compare-bar-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .compare-bar-actions .btn-compare {
        flex: 1;
    }

    /* Expanded actions wrap */
    .expanded-actions {
        flex-wrap: wrap;
    }

    /* Welcome state */
    .welcome-state {
        padding: 24px 16px;
    }

    .welcome-hints {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* Modal full-width on mobile */
    .modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 20px;
    }

    /* Compare cards single column */
    .compare-cards {
        grid-template-columns: 1fr;
    }

    /* Allow body scroll on mobile */
    body {
        overflow: auto;
    }

    .col-main {
        overflow: visible;
        min-height: 100vh;
    }
}

/* --- Small tablet / large phone (≤ 768px) --- */
@media (max-width: 768px) {

    /* (1) Sidebar: narrower overlay on smaller screens */
    .col-regions {
        width: 220px;
    }

    .region-group-label {
        font-size: 12px;
        padding: 6px 12px;
    }

    .region-btn {
        font-size: 12px;
        padding: 5px 12px 5px 20px;
    }

    /* (2) Brand cards / expanded content: stack vertically */
    .expanded-stats {
        flex-direction: column;
        gap: 8px;
    }

    .expanded-chips {
        gap: 4px;
    }

    .expanded-actions {
        flex-direction: column;
        gap: 8px;
    }

    .expanded-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .booking-guide-map-wrapper {
        flex-direction: column;
    }

    .hotel-map-container {
        flex: none;
        width: 100%;
        min-height: 200px;
    }

    .booking-codes {
        flex-direction: column;
        gap: 6px;
    }

    .compare-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* (3) Region map: fill screen width */
    .region-map-container {
        width: 100%;
        height: 50vh;
        min-height: 280px;
        border-radius: 0;
    }

    .region-map-wrapper {
        margin-left: -8px;
        margin-right: -8px;
        width: calc(100% + 16px);
    }

    /* (4) Text sizes: readable on mobile */
    .mega-header-title {
        font-size: 0.9rem;
    }

    .main-title {
        font-size: 16px;
    }

    .main-count {
        font-size: 11px;
    }

    .mega-table th {
        font-size: 11px;
        padding: 8px 6px;
    }

    .mega-table td {
        font-size: 12px;
        padding: 8px 6px;
    }

    .expanded-content {
        padding: 10px 10px 14px 10px;
        font-size: 13px;
    }

    .booking-guide {
        padding: 10px 12px;
        font-size: 13px;
    }

    .modal-content {
        width: 96%;
        padding: 16px;
    }

    .modal-content h2,
    .modal-content h3 {
        font-size: 16px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .welcome-subtitle {
        font-size: 13px;
    }
}

/* --- Phone (≤ 600px) --- */
@media (max-width: 600px) {

    .mega-table thead .th-includes,
    .mega-table .td-includes {
        display: none;
    }

    .mega-table thead .th-badge,
    .mega-table .td-badge {
        width: auto;
        padding: 8px 4px;
    }

    .mega-table thead .th-tier,
    .mega-table .td-tier {
        width: auto;
        padding: 8px 6px;
    }

    .mega-table thead .th-brand {
        width: auto;
        min-width: 100px;
    }

    .mega-table thead .th-discount {
        width: auto;
        min-width: 80px;
    }

    .main-title {
        font-size: 16px;
    }

    .main-count {
        font-size: 12px;
    }

    .expanded-content {
        padding: 10px 8px 14px 8px;
    }

    /* Email modal fields */
    .email-actions {
        flex-direction: column;
    }
}

/* ================================================
   AUTH GATE — Login Overlay
   ================================================ */
.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', -apple-system, sans-serif;
}

.auth-gate.hidden {
    display: none;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    margin: 20px;
}

.auth-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-text);
    letter-spacing: -0.5px;
}

.auth-logo span {
    font-weight: 300;
    color: var(--muted);
}

.auth-title {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-field label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-field input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a2e;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-text-fill-color: #1a1a2e;
}

.auth-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 149, 58, 0.15);
}

.auth-field input:focus:not(:focus-visible) {
    outline: none;
}

.auth-field input::placeholder {
    color: var(--text-tertiary);
}

.auth-error {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #fca5a5;
}

.auth-error.visible {
    display: block;
}

.auth-success {
    text-align: center;
    padding: 16px 0;
    color: #86efac;
    font-size: 14px;
}

.auth-btn {
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.auth-btn:hover {
    background: #d4a94a;
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.auth-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--gold-text);
}

.auth-link-muted {
    color: var(--text-tertiary);
}

.auth-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Logout button in sidebar */
.btn-logout {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    border-color: #ef4444;
    color: #fca5a5;
}

/* =============================== */
/* AI Booking Assistant Panel      */
/* =============================== */
.assistant-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.assistant-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.assistant-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
}

.assistant-panel.open {
    right: 0;
}

.assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--surface), var(--surface-hover));
}

.assistant-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--gold);
}

.assistant-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assistant-clear {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.assistant-clear:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.assistant-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.assistant-close:hover {
    color: var(--text-primary);
}

.assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.assistant-welcome {
    text-align: center;
    padding: 40px 20px 20px;
}

.assistant-welcome-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.assistant-welcome h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.assistant-welcome p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.assistant-starters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 8px 0;
}

.starter-chip {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-hover);
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.starter-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

/* Messages */
.msg-user,
.msg-assistant {
    max-width: 90%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.6;
    word-wrap: break-word;
}

.msg-user {
    align-self: flex-end;
    background: var(--gold);
    color: #1a1a1a;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.msg-assistant {
    align-self: flex-start;
    background: var(--surface-hover);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.msg-assistant p {
    margin: 0 0 8px;
}

.msg-assistant p:last-child {
    margin: 0;
}

.msg-assistant strong {
    color: var(--gold);
}

.msg-assistant ul,
.msg-assistant ol {
    margin: 4px 0;
    padding-left: 18px;
}

.msg-assistant li {
    margin: 2px 0;
}

.msg-assistant code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.msg-actions {
    display: flex;
    justify-content: flex-start;
    padding: 2px 0 8px;
}

.msg-email-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.msg-email-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Typing indicator */
.typing-indicator {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 14px 18px;
    background: var(--surface-hover);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Input bar */
.assistant-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.assistant-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-hover);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 13px;
    transition: border-color 0.2s;
}

.assistant-input:focus {
    border-color: var(--gold);
}

.assistant-input:focus:not(:focus-visible) {
    outline: none;
}

.assistant-input::placeholder {
    color: var(--text-secondary);
}

.assistant-send {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: var(--gold);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.assistant-send:hover {
    background: var(--gold-hover);
    transform: scale(1.05);
}

.assistant-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile */
@media (max-width: 768px) {
    .assistant-panel {
        width: 100vw;
        right: -100vw;
        max-width: none;
    }
}

/* ---- Region Map Toggle ---- */
.view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px;
    vertical-align: middle;
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 26px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
}

.view-toggle-btn.active {
    background: rgba(196, 149, 58, 0.25);
    color: #c4953a;
}

/* Region Map Wrapper */
.region-map-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.region-map-wrapper.hidden {
    display: none !important;
}

.view-toggle.hidden {
    display: none !important;
}

.region-map-container {
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 350px;
    max-height: 700px;
    border-radius: 0;
    overflow: hidden;
}

/* Map pin labels — readable on any map tile */
.map-pin-label {
    background: rgba(20, 30, 50, 0.85);
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 4px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.region-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 8px 16px;
    background: #1a2332;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: opacity 0.2s;
    user-select: none;
}

.legend-item:hover {
    opacity: 0.8;
}

.legend-item.dimmed {
    opacity: 0.3;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-count {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

/* Mobile: taller map */
@media (max-width: 768px) {
    .region-map-container {
        height: 50vh;
        min-height: 300px;
    }

    .region-map-legend {
        gap: 8px 14px;
        padding: 10px 14px;
        font-size: 11px;
    }

    .view-toggle {
        margin-left: 8px;
    }
}

/* ================================================
   PROPERTY-LEVEL LIST VIEW (hotel cards from map data)
   ================================================ */
.property-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border, rgba(255, 255, 255, 0.06));
}

.pl-card {
    display: flex;
    gap: 14px;
    padding: 12px 16px;
    background: var(--surface, #1e2a3a);
    cursor: pointer;
    transition: background 0.15s;
    align-items: flex-start;
}

.pl-card:hover {
    background: var(--surface-hover, #243346);
}

.pl-photo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
}

.pl-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pl-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pl-brand-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline;
}

.pl-rate-badge {
    display: inline;
    margin-left: 6px;
}

.pl-verified {
    font-size: 9px;
    font-weight: 600;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 1px 6px;
    border-radius: 3px;
}

.pl-unverified {
    font-size: 9px;
    font-weight: 600;
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
    padding: 1px 6px;
    border-radius: 3px;
}

.pl-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-location {
    font-size: 11px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.5));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-rating {
    font-size: 11px;
    color: var(--gold, #c4953a);
    font-weight: 600;
}

.pl-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.pl-action {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    white-space: nowrap;
}

.pl-action:hover {
    border-color: var(--gold, #c4953a);
    color: var(--gold, #c4953a);
}

.pl-action-primary {
    background: var(--gold, #c4953a);
    color: #1a1a1a;
    border-color: var(--gold, #c4953a);
    font-weight: 600;
}

.pl-action-primary:hover {
    background: var(--gold-hover, #b8892e);
    border-color: var(--gold-hover, #b8892e);
    color: #1a1a1a;
}

.pl-book-btn {
    font-size: 10px;
    font-weight: 500;
    color: var(--gold, #c4953a);
    text-decoration: none;
    cursor: pointer;
    margin-top: 2px;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.pl-book-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Mobile: property list */
@media (max-width: 768px) {
    .pl-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .pl-photo {
        width: 56px;
        height: 56px;
    }

    .pl-name {
        font-size: 13px;
    }
}

/* ================================================
   BRAND PROPERTY DETAIL (inline in brand card)
   ================================================ */
.brand-property-detail {
    margin-top: 10px;
    border: 1px solid #e8e0d4;
    border-radius: 10px;
    background: #faf7f2;
    overflow: hidden;
    animation: bpdSlideIn 0.2s ease-out;
}

@keyframes bpdSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bpd-header {
    display: flex;
    justify-content: flex-end;
    padding: 6px 10px;
    background: #f5f0e8;
    border-bottom: 1px solid #e8e0d4;
}

.bpd-close {
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11px;
    color: #888;
    cursor: pointer;
    font-family: Inter, sans-serif;
    transition: all 0.15s;
}

.bpd-close:hover {
    border-color: #c4953a;
    color: #c4953a;
}

.bpd-body {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    align-items: flex-start;
}

.bpd-photo {
    width: 140px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.bpd-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bpd-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bpd-sub-brand {
    font-size: 10px;
    font-weight: 700;
    color: #c4953a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bpd-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.bpd-address,
.bpd-city {
    font-size: 12px;
    color: #666;
}

.bpd-rating {
    font-size: 12px;
    color: #c4953a;
    font-weight: 600;
}

.bpd-badge {
    margin-top: 2px;
}

.bpd-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.bpd-btn {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    font-family: Inter, sans-serif;
    white-space: nowrap;
}

.bpd-btn:hover {
    border-color: #c4953a;
    color: #c4953a;
}

.bpd-btn-primary {
    background: #c4953a;
    color: #fff;
    border-color: #c4953a;
    font-weight: 600;
}

.bpd-btn-primary:hover {
    background: #b8892e;
    border-color: #b8892e;
    color: #fff;
}

.bpd-voip-tip {
    font-size: 9px;
    color: #aaa;
    font-style: italic;
    margin-top: 3px;
}

@media (max-width: 768px) {
    .bpd-body {
        flex-direction: column;
        gap: 10px;
    }

    .bpd-photo {
        width: 100%;
        height: 140px;
    }
}


/* ================================================
   PIN DETAIL MODAL (property card from map click)
   ================================================ */
.pin-detail-card {
    max-width: 380px;
    width: 92%;
    padding: 0;
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    position: relative;
}

.pin-detail-card .pin-detail-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.15s;
}

.pin-detail-card .pin-detail-close:hover {
    background: #fff;
    color: #111;
    transform: scale(1.1);
}

#pinDetailBody {
    padding: 0;
}

#pinDetailBody>div {
    padding: 12px;
    max-width: 100%;
}

/* Photo in pin detail modal — taller */
#pinDetailBody div[style*="height:120px"] {
    height: 180px !important;
}

#pinDetailBody img[style*="height:120px"] {
    height: 180px !important;
}

@media (max-width: 768px) {
    .pin-detail-card {
        max-width: 95%;
        margin: 0 auto;
    }
}

/* ================================================
   IFRAME MODAL (Zillow-style in-app browser)
   ================================================ */
.iframe-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.iframe-modal-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.iframe-modal-container {
    width: 92vw;
    max-width: 1100px;
    height: 85vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s ease;
}

.iframe-modal-overlay.visible .iframe-modal-container {
    transform: scale(1) translateY(0);
}

.iframe-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--sidebar-bg, #1a202c);
    color: #fff;
    flex-shrink: 0;
    min-height: 44px;
}

.iframe-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.iframe-modal-title span {
    font-family: var(--font, 'Outfit', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iframe-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.iframe-modal-ext-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.15s;
}

.iframe-modal-ext-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold, #c4953a);
}

.iframe-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

.iframe-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.iframe-modal-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f5f0e8;
}

.iframe-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Loading spinner */
.iframe-modal-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f5f0e8;
    z-index: 2;
    transition: opacity 0.3s;
}

.iframe-modal-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

.iframe-spinner-ring {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(196, 149, 58, 0.2);
    border-top-color: var(--gold, #c4953a);
    border-radius: 50%;
    animation: iframe-spin 0.8s linear infinite;
}

@keyframes iframe-spin {
    to {
        transform: rotate(360deg);
    }
}

.iframe-modal-spinner span {
    font-family: var(--font, 'Outfit', sans-serif);
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* Mobile: full-screen modal */
@media (max-width: 768px) {
    .iframe-modal-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-width: none;
    }
}

/* ===== RESEARCH PANEL ===== */
.research-btn {
    display: flex;
    align-items: center;
}

/* ---- Research Panel — Hero Image Design ---- */
.research-panel {
    padding: 0;
    max-width: none;
    margin: 0;
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Full-bleed travel hero image */
.research-panel:not(.hidden)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/research-watermark.png') no-repeat center 40%;
    background-size: cover;
    opacity: 0.85;
    z-index: 0;
}

/* All children above the hero image */
.research-panel>* {
    position: relative;
    z-index: 1;
}

/* Frosted glass card for header + form */
.research-panel>.research-header,
.research-panel>.tp-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 28px 36px;
    max-width: 860px;
    width: 100%;
    box-sizing: border-box;
}

.research-panel>.research-header {
    margin-top: 40px;
    border-radius: 16px 16px 0 0;
    padding-bottom: 8px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

.research-panel>.tp-form {
    border-radius: 0 0 16px 16px;
    margin-bottom: 40px;
    padding-top: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* Season context bar — also in the card */
.research-panel>.season-context {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-width: 860px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 40px;
    border-radius: 0 0 16px 16px;
    padding: 12px 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* When season context exists, tp-form loses bottom radius */
.research-panel>.tp-form:has(+ .season-context) {
    border-radius: 0;
    margin-bottom: 0;
}

.research-panel.hidden {
    display: none;
}

.research-header {
    margin-bottom: 28px;
}

.research-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.research-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Search bar — clean white, no heavy border */
.research-search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 4px 4px 4px 14px;
    margin-bottom: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.research-search-bar:focus-within {
    border-color: #c4953a;
    box-shadow: 0 0 0 3px rgba(196, 149, 58, 0.08);
}

.research-search-icon {
    color: #bbb;
    flex-shrink: 0;
}

.research-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 10px 10px;
    background: transparent;
    color: #1a1a1a;
}

.research-search-input::placeholder {
    color: #bbb;
}

.research-search-btn {
    background: #1B2A4A;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.research-search-btn:hover {
    background: #263d66;
}

.research-search-btn:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
}

/* ---- Trip Planner Form — Clean & Minimal ---- */
.tp-form {
    margin-bottom: 28px;
}

.tp-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.tp-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.tp-field-grow {
    flex: 1;
}

.tp-field-full {
    flex: 1 1 100%;
}

.tp-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #aaa;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tp-select {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tp-select:focus {
    outline: none;
    border-color: #1B2A4A;
    box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
}

.tp-dates {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-date-input {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    flex: 1;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tp-date-input:focus {
    outline: none;
    border-color: #1B2A4A;
    box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
}

.tp-date-input::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

.tp-date-sep {
    color: #ccc;
    font-size: 14px;
    flex-shrink: 0;
}

.tp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tp-chip:hover {
    border-color: #bbb;
    color: #333;
    background: #fafafa;
}

.tp-chip.active {
    background: #1B2A4A;
    border-color: #1B2A4A;
    color: #fff;
    box-shadow: 0 1px 4px rgba(27, 42, 74, 0.2);
}

.tp-chip.active svg {
    stroke: #fff;
}

.tp-chip svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.tp-chip.active svg {
    opacity: 1;
}

/* Season banner — subtle, informational */
.tp-season-banner {
    background: #f7f5f0;
    border: 1px solid #e8e4da;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-season-banner:empty {
    display: none;
}

.tp-season-banner svg {
    flex-shrink: 0;
    stroke: #999;
}

/* ---- In-Page Concierge ---- */
.concierge-inline {
    padding: 40px 36px 0;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
}

.concierge-inline.hidden {
    display: none;
}

.concierge-inline-header {
    margin-bottom: 24px;
    flex-shrink: 0;
}

.concierge-inline-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.concierge-inline-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.6;
}

.concierge-inline-chat {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 16px;
}

.concierge-inline-welcome {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #f7f5f0;
    border: 1px solid #e8e4da;
    border-radius: 10px;
    margin-bottom: 16px;
}

.concierge-inline-welcome svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.concierge-inline-welcome p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.concierge-inline-starters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.concierge-starter {
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.concierge-starter:hover {
    border-color: #c4953a;
    color: #1a1a1a;
    background: #fffdf8;
}

.concierge-inline-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.concierge-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.concierge-msg.user {
    align-self: flex-end;
    background: #1B2A4A;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.concierge-msg.assistant {
    align-self: flex-start;
    background: #f5f3ee;
    color: #333;
    border-bottom-left-radius: 4px;
}

.concierge-msg.assistant p {
    margin: 0 0 8px;
}

.concierge-msg.assistant p:last-child {
    margin-bottom: 0;
}

.concierge-msg.assistant ul,
.concierge-msg.assistant ol {
    padding-left: 18px;
    margin: 4px 0;
}

.concierge-msg.typing {
    color: #999;
    font-style: italic;
}

.concierge-inline-input-wrap {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid #e8e4da;
    flex-shrink: 0;
    background: var(--main-bg, #f0ede6);
}

.concierge-inline-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s;
}

.concierge-inline-input:focus {
    border-color: #1B2A4A;
}

.concierge-inline-input::placeholder {
    color: #bbb;
}

.concierge-inline-send {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: #1B2A4A;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.concierge-inline-send:hover {
    background: #263d66;
}

/* Source cards — light, clean, card-style */
.research-sources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.research-source-card {
    background: #fff;
    border: 1px solid #e8e4da;
    border-radius: 10px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
    transition: all 0.15s ease;
}

.research-source-card[data-source="reddit"] {
    cursor: pointer;
}

.research-source-card[data-source="reddit"]:hover {
    border-color: #c4953a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.research-source-icon {
    color: #1B2A4A;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ede6;
    border-radius: 10px;
}

.research-source-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px 0;
}

.research-source-info p {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #999;
    margin: 0;
}

.research-source-badge {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
}

.research-source-badge.live {
    background: rgba(52, 211, 153, 0.12);
    color: #22c55e;
}

.research-source-badge.soon {
    background: #f5f3ee;
    color: #aaa;
}

/* Results */
.research-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.research-loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-family: var(--font, 'Inter', sans-serif);
    font-size: 13px;
}

.research-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e1d8;
    border-top-color: #c4953a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 8px;
}

.research-empty {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-family: var(--font, 'Inter', sans-serif);
    font-size: 13px;
}

.research-result-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 18px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.research-result-card:hover {
    border-color: #c4953a;
    box-shadow: 0 2px 8px rgba(196, 149, 58, 0.1);
}

.research-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.research-result-sub {
    font-family: var(--font, 'Inter', sans-serif);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c4953a;
    background: rgba(196, 149, 58, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.research-result-score {
    font-family: var(--font, 'Inter', sans-serif);
    font-size: 10px;
    color: #999;
}

.research-result-date {
    font-family: var(--font, 'Inter', sans-serif);
    font-size: 10px;
    color: #bbb;
    margin-left: auto;
}

.research-result-title {
    font-family: var(--font, 'Outfit', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.research-result-title a {
    color: inherit;
    text-decoration: none;
}

.research-result-title a:hover {
    color: #c4953a;
}

.research-result-comment {
    font-family: var(--font, 'Inter', sans-serif);
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    background: #faf8f4;
    border-left: 3px solid #c4953a;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    margin-top: 8px;
}

.research-result-comment strong {
    color: #c4953a;
    font-weight: 600;
}

.research-result-snippet {
    font-family: var(--font, 'Inter', sans-serif);
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin-top: 4px;
}

.research-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.research-results-label {
    font-family: var(--font, 'Outfit', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.research-results-query {
    font-family: var(--font, 'Inter', sans-serif);
    font-size: 11px;
    color: #aaa;
}

@media (max-width: 768px) {
    .research-panel {
        padding: 20px 16px;
    }

    .research-sources {
        grid-template-columns: 1fr;
    }

    .research-search-bar {
        flex-wrap: nowrap;
    }
}

/* ===== Profile Onboarding / Edit Modal ===== */
#profileModalOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#profileModalOverlay.visible {
    display: flex;
}

#profileModalOverlay .profile-modal {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    background: #1a2332;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
}

.profile-modal-header {
    padding: 24px 28px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-modal-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0f1723;
    background: linear-gradient(135deg, #c4953a, #d4a84a);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.profile-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.profile-modal-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

.profile-modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.profile-modal-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.profile-modal-body {
    padding: 20px 28px;
    overflow-y: auto;
    flex: 1;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-field.full-width {
    grid-column: 1 / -1;
}

.profile-field label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.35);
}

.profile-field input,
.profile-field select,
.profile-field textarea {
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.15s;
}

.profile-field input:focus,
.profile-field select:focus,
.profile-field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(196, 149, 58, 0.15);
}

.profile-field input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.profile-field textarea {
    resize: vertical;
    min-height: 44px;
}

.profile-modal-footer {
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-save-status {
    font-size: 12px;
    color: #4ECDC4;
    flex: 1;
}

.profile-save-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, #c4953a, #d4a84a);
    color: #0f1723;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
}

.profile-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 149, 58, 0.3);
}

.profile-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-modal {
        max-width: 100%;
    }
}