/* LuxuryTravelCentral - Theme System */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: rgba(22, 27, 34, 0.85);
    --bg-card-hover: rgba(30, 37, 48, 0.9);
    --bg-input: #0d1117;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #1a3a5c;
    --accent-light: #1f4d7a;
    --highlight: #c9384a;
    --highlight-light: #e94560;
    --highlight-glow: rgba(201, 56, 74, 0.25);
    --safe: #3fb950;
    --safe-bg: rgba(63, 185, 80, 0.1);
    --warning: #d29922;
    --warning-bg: rgba(210, 153, 34, 0.1);
    --orange: #db6d28;
    --orange-bg: rgba(219, 109, 40, 0.1);
    --info: #58a6ff;
    --info-bg: rgba(88, 166, 255, 0.08);
    --gold: #c9a84c;
    --gold-bg: rgba(201, 168, 76, 0.08);
    --border: rgba(48, 54, 61, 0.8);
    --border-light: rgba(68, 76, 86, 0.6);
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f6f8fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(246, 248, 250, 0.95);
    --bg-input: #ffffff;
    --text-primary: #1f2328;
    --text-secondary: #57606a;
    --text-muted: #8b949e;
    --accent: #dae7f5;
    --accent-light: #c8ddf0;
    --highlight: #1e4d7b;
    --highlight-light: #2563a8;
    --highlight-glow: rgba(30, 77, 123, 0.15);
    --safe: #1a7f37;
    --safe-bg: rgba(26, 127, 55, 0.08);
    --warning: #9a6700;
    --warning-bg: rgba(154, 103, 0, 0.08);
    --orange: #bc4c00;
    --orange-bg: rgba(188, 76, 0, 0.08);
    --info: #0969da;
    --info-bg: rgba(9, 105, 218, 0.06);
    --gold: #9a6700;
    --gold-bg: rgba(154, 103, 0, 0.06);
    --border: rgba(208, 215, 222, 0.9);
    --border-light: rgba(175, 184, 193, 0.5);
    --shadow: 0 8px 32px rgba(140, 149, 159, 0.15);
    --shadow-sm: 0 2px 8px rgba(140, 149, 159, 0.1);
}
[data-theme="light"] body::before { opacity: 0.04; filter: blur(3px) brightness(1.5); }
[data-theme="light"] body::after { background: radial-gradient(ellipse at 50% 30%, rgba(200, 220, 240, 0.2) 0%, transparent 70%); }
[data-theme="light"] .header { background: rgba(255, 255, 255, 0.92); }
[data-theme="light"] .tabs { background: rgba(255, 255, 255, 0.88); }
[data-theme="light"] .deals-table td { border-bottom-color: rgba(0,0,0,0.04); }
[data-theme="light"] .deals-table tr:hover td { background: rgba(0,0,0,0.02); }
[data-theme="light"] .deal-card-footer { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .deal-score-badge.good { color: #1f2328; }
[data-theme="light"] .table-score.good { color: #1f2328; }
[data-theme="light"] .admin-btn.success { color: white; }
[data-theme="light"] .featured-filters { background: rgba(255, 255, 255, 0.85); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .filter-chip { background: rgba(0,0,0,0.04); color: var(--text-secondary); border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .filter-chip:hover { background: rgba(0,0,0,0.08); color: var(--text-primary); }
[data-theme="light"] .filter-chip.active { background: rgba(30, 77, 123, 0.15); color: #1e4d7b; }
[data-theme="light"] .filter-chip.dest.active { background: rgba(0, 100, 200, 0.12); color: #0066cc; }
[data-theme="light"] .filter-chip-label { color: var(--text-muted); }
[data-theme="light"] .filter-chip-clear { background: rgba(0,0,0,0.06); color: var(--text-muted); }
[data-theme="light"] .filter-select, [data-theme="light"] .filter-input { background: #fff; border-color: rgba(0,0,0,0.15); color: var(--text-primary); }
[data-theme="light"] .filter-select option { background: #fff; color: var(--text-primary); }
[data-theme="light"] .stat-card.highlight { background: linear-gradient(135deg, rgba(30, 77, 123, 0.12), rgba(30, 77, 123, 0.06)); border-color: rgba(30, 77, 123, 0.3); }
[data-theme="light"] .stat-card.highlight .stat-value { color: #1e4d7b; }
[data-theme="light"] .stat-card.highlight .stat-label { color: #1e4d7b; }
[data-theme="light"] select, [data-theme="light"] .featured-filters select { background: #fff !important; color: #1f2328 !important; border: 1px solid rgba(0,0,0,0.15); }
[data-theme="light"] .featured-filters .filter-chip-label { color: var(--text-secondary); }

/* Theme toggle button */
.theme-toggle {
    background: none; border: 1px solid var(--border);
    color: var(--text-secondary); padding: 0.35rem 0.55rem; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 1rem; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
}
.theme-toggle:hover { border-color: var(--highlight); color: var(--text-primary); }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* Cockpit background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('cockpit-bg.jpg') center/cover no-repeat;
    opacity: 0.12;
    filter: blur(2px);
    z-index: -2;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(26, 58, 92, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
.header {
    background: rgba(13, 17, 23, 0.92);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}
.header.nav-hidden { transform: translateY(-100%); }

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }

.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--highlight), var(--highlight-light));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 700; color: white;
    letter-spacing: -0.5px;
    box-shadow: 0 2px 12px var(--highlight-glow);
}

.logo h1 {
    font-size: 1.15rem; font-weight: 700; letter-spacing: -0.3px;
    color: var(--text-primary);
}

.logo .tagline {
    font-size: 0.65rem; color: var(--text-muted); display: block;
    margin-top: -1px; letter-spacing: 0.2px;
}

.header-controls {
    display: flex; align-items: center; gap: 0.6rem;
}

/* Notification bell */
.notif-btn {
    position: relative; background: none; border: 1px solid var(--border);
    color: var(--text-secondary); padding: 0.35rem 0.55rem; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 1rem; transition: all 0.2s;
}
.notif-btn:hover { border-color: var(--highlight); color: var(--text-primary); }
.notif-badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--highlight); color: white; font-size: 0.55rem;
    font-weight: 700; min-width: 15px; height: 15px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}
.notif-badge.hidden { display: none; }

/* User menu */
.user-menu { display: flex; align-items: center; gap: 0.4rem; }
.user-btn {
    background: var(--accent); border: 1px solid var(--border);
    color: var(--text-primary); padding: 0.35rem 0.75rem; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.78rem; font-weight: 500; transition: all 0.2s;
}
.user-btn:hover { background: var(--accent-light); }
.user-btn.login { background: var(--highlight); border-color: var(--highlight); color: #fff; }
.user-btn.login:hover { background: #b32e40; }
.user-btn.logout { background: transparent; }
/* Register button - high contrast outline */
.user-btn:not(.login):not(.logout) {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
}
.user-btn:not(.login):not(.logout):hover {
    background: var(--gold);
    color: #0d1117;
}

/* Tabs */
.tabs {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1.5rem;
    display: flex; gap: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(13, 17, 23, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky; top: 52px; z-index: 99;
    overflow-x: auto;
    transition: transform 0.3s ease, top 0.3s ease;
}

.tab {
    background: none; border: none; border-bottom: 2px solid transparent;
    color: var(--text-muted); padding: 0.65rem 1.1rem;
    cursor: pointer; font-size: 0.8rem; font-weight: 500;
    transition: all 0.2s; white-space: nowrap;
    letter-spacing: 0.1px;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--highlight-light); border-bottom-color: var(--highlight-light); }
.tab .tab-lock { font-size: 0.65rem; margin-left: 0.25rem; opacity: 0.5; }

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Main */
.main { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1.5rem; }

/* Stats bar */
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem; margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.85rem 0.75rem; text-align: center;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-light); }
.stat-card.highlight { 
    border-color: var(--accent); 
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(233, 69, 96, 0.05));
}
.stat-card.highlight .stat-value { color: var(--accent); }

.stat-value {
    font-size: 1.4rem; font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.65rem; color: var(--text-muted); margin-top: 0.15rem;
    text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500;
}

/* Section headers */
.section-header {
    font-size: 0.95rem; font-weight: 600; margin: 1.25rem 0 0.75rem;
    padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-secondary);
}

/* Deal cards */
.deals-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0.75rem; margin-bottom: 1.25rem;
}

.deal-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: all 0.25s ease;
    position: relative;
    backdrop-filter: blur(8px);
}
.deal-card:hover {
    border-color: rgba(201, 56, 74, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.deal-card.exceptional { border-left: 3px solid var(--highlight); }
.deal-card.great { border-left: 3px solid var(--orange); }
.deal-card.good { border-left: 3px solid var(--warning); }

.deal-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.8rem 1rem 0.4rem;
}

.deal-route {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 1.05rem; font-weight: 700; letter-spacing: -0.2px;
}
.deal-arrow { color: var(--text-muted); font-size: 0.85rem; }

.deal-score-badge {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 0.8rem; font-weight: 800;
}
.deal-score-badge.exceptional { background: var(--highlight); color: white; box-shadow: 0 0 12px var(--highlight-glow); }
.deal-score-badge.great { background: var(--orange); color: white; }
.deal-score-badge.good { background: var(--warning); color: #0d1117; }

.deal-cities {
    padding: 0 1rem;
    display: flex; justify-content: space-between;
    font-size: 0.72rem; color: var(--text-muted);
}

.deal-card-body { padding: 0.65rem 1rem; }

.deal-price-row {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 0.4rem;
}

.deal-price {
    font-size: 1.5rem; font-weight: 800; color: var(--safe);
}
.deal-price .currency { font-size: 0.95rem; font-weight: 600; }

.deal-savings {
    font-size: 0.75rem; font-weight: 600; color: var(--highlight-light);
    background: rgba(201, 56, 74, 0.1); padding: 0.12rem 0.45rem;
    border-radius: 10px;
}

.deal-normal-price {
    font-size: 0.72rem; color: var(--text-muted);
    text-decoration: line-through; margin-bottom: 0.4rem;
}

.deal-meta {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.25rem; font-size: 0.75rem; color: var(--text-secondary);
}
.deal-meta-item { display: flex; align-items: center; gap: 0.3rem; }
.deal-meta-icon { font-size: 0.8rem; opacity: 0.6; }

/* Booking Links Container */
.deal-book-links {
    display: flex; gap: 0.5rem; margin: 0.5rem 1rem 0; padding: 0;
}
.deal-book-link {
    flex: 1; text-align: center; padding: 0.5rem 0.6rem;
    border-radius: 8px;
    background: rgba(201, 56, 74, 0.15); color: var(--highlight-light);
    font-size: 0.72rem; font-weight: 600; text-decoration: none;
    letter-spacing: 0.2px; transition: background 0.2s, transform 0.15s;
    border: 1px solid rgba(201, 56, 74, 0.25);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deal-book-link:hover {
    background: rgba(201, 56, 74, 0.28); transform: translateY(-1px);
}
/* Airline direct link - primary style */
.deal-book-link.airline-link {
    background: rgba(88, 166, 255, 0.15); border-color: rgba(88, 166, 255, 0.3);
    color: var(--info);
}
.deal-book-link.airline-link:hover {
    background: rgba(88, 166, 255, 0.28);
}
/* Google Flights link - secondary when airline available */
.deal-book-link.google-link.secondary {
    background: rgba(100, 116, 139, 0.12); border-color: rgba(100, 116, 139, 0.25);
    color: var(--text-muted);
}
.deal-book-link.google-link.secondary:hover {
    background: rgba(100, 116, 139, 0.22); color: var(--text);
}
/* Tier-based colors for single button (no airline link) */
.deal-card.great .deal-book-link:not(.airline-link) { background: rgba(255, 152, 0, 0.12); border-color: rgba(255, 152, 0, 0.25); color: var(--orange); }
.deal-card.great .deal-book-link:not(.airline-link):hover { background: rgba(255, 152, 0, 0.22); }
.deal-card.good .deal-book-link:not(.airline-link) { background: rgba(255, 193, 7, 0.1); border-color: rgba(255, 193, 7, 0.2); color: var(--warning); }
.deal-card.good .deal-book-link:not(.airline-link):hover { background: rgba(255, 193, 7, 0.18); }

.deal-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 1rem; border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.12);
}

.deal-source { font-size: 0.68rem; color: var(--text-muted); flex: 1; min-width: 0; }
.deal-share-btn {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 0.72rem; padding: 0.1rem 0.2rem; transition: color 0.2s;
}
.deal-share-btn:hover { color: var(--info); }
.deal-tier {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
    padding: 0.12rem 0.45rem; border-radius: 8px; letter-spacing: 0.4px;
}
.deal-tier.exceptional { background: rgba(201, 56, 74, 0.12); color: var(--highlight-light); }
.deal-tier.great { background: var(--orange-bg); color: var(--orange); }
.deal-tier.good { background: var(--warning-bg); color: var(--warning); }

.deal-header-right {
    display: flex; align-items: center; gap: 0.4rem;
    flex-shrink: 0;
}

.deal-class-badge {
    font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
    padding: 0.12rem 0.4rem; border-radius: 4px;
    letter-spacing: 0.5px;
}
.deal-class-badge.business { background: var(--info-bg); color: var(--info); }
.deal-class-badge.first { background: rgba(168, 85, 247, 0.12); color: #a78bfa; }

/* Filters */
.filters-bar {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 0.85rem; padding: 0.65rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.filter-group { display: flex; flex-direction: column; gap: 0.15rem; }
.filter-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }

.filter-select, .filter-input {
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); padding: 0.35rem 0.55rem; border-radius: var(--radius-sm);
    font-size: 0.78rem; min-width: 115px;
}
.filter-select:focus, .filter-input:focus {
    outline: none; border-color: var(--info);
}

.filter-btn {
    background: var(--highlight); color: white; border: none;
    padding: 0.35rem 0.9rem; border-radius: var(--radius-sm);
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    align-self: flex-end; transition: all 0.2s;
}
.filter-btn:hover { background: #b32e40; }
.filter-btn.clear { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.filter-btn.clear:hover { border-color: var(--text-secondary); color: var(--text-secondary); }

/* Deals table */
.deals-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}

.deals-table th {
    background: rgba(0, 0, 0, 0.2); padding: 0.55rem 0.7rem;
    text-align: left; font-size: 0.68rem; text-transform: uppercase;
    color: var(--text-muted); letter-spacing: 0.4px; font-weight: 600;
    border-bottom: 1px solid var(--border); cursor: pointer;
    white-space: nowrap;
}
.deals-table th:hover { color: var(--text-primary); }
.deals-table th[data-sort] { cursor: pointer; user-select: none; transition: color 0.15s; }
.deals-table th[data-sort]:hover { color: var(--highlight-light); }
.deals-table th .sort-arrow { margin-left: 0.3rem; font-size: 0.6rem; opacity: 0.4; transition: opacity 0.15s, transform 0.15s; }
.deals-table th[data-sort]:hover .sort-arrow { opacity: 0.7; }
.deals-table th.sorted .sort-arrow { opacity: 1; color: var(--highlight-light); }
.deals-table th.sorted.asc .sort-arrow { transform: rotate(180deg); }
.deals-table th.sorted { color: var(--highlight-light); }

.deals-table td {
    padding: 0.55rem 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.025);
    font-size: 0.8rem; vertical-align: middle;
}
.deals-table tr:hover td { background: var(--bg-card-hover); }

.table-score {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    font-size: 0.72rem; font-weight: 700;
}
.table-score.exceptional { background: var(--highlight); color: white; }
.table-score.great { background: var(--orange); color: white; }
.table-score.good { background: var(--warning); color: #0d1117; }

.table-price { font-weight: 700; color: var(--safe); }
.table-savings { font-size: 0.68rem; color: var(--highlight-light); }
.table-class { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; }
.table-class.business { color: var(--info); }
.table-class.first { color: #a78bfa; }

.table-link {
    color: var(--info); text-decoration: none; font-size: 0.72rem;
}
.table-link:hover { text-decoration: underline; }

/* Auth forms */
.auth-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75); z-index: 200;
    align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.auth-overlay.active { display: flex; }

.auth-modal {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; width: 90%; max-width: 380px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.auth-title {
    font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem;
    color: var(--text-primary); letter-spacing: -0.2px;
}
.auth-subtitle { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.auth-field { margin-bottom: 0.85rem; }
.auth-field label { display: block; font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 0.25rem; font-weight: 500; }
.auth-field input {
    width: 100%; background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); padding: 0.55rem 0.75rem; border-radius: var(--radius-sm);
    font-size: 0.85rem; transition: border-color 0.2s;
}
.auth-field input:focus { outline: none; border-color: var(--info); }

.auth-submit {
    width: 100%; background: var(--highlight); color: white; border: none;
    padding: 0.6rem; border-radius: var(--radius-sm); font-size: 0.85rem;
    font-weight: 600; cursor: pointer; margin-top: 0.4rem; transition: all 0.2s;
}
.auth-submit:hover { background: #b32e40; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-switch {
    text-align: center; margin-top: 0.85rem; font-size: 0.78rem; color: var(--text-muted);
}
.auth-switch a {
    color: var(--highlight-light); text-decoration: none; cursor: pointer;
}
.auth-switch a:hover { text-decoration: underline; }

.auth-close {
    position: absolute; top: 1rem; right: 1rem; background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
}

.auth-error { color: var(--highlight-light); font-size: 0.78rem; margin-top: 0.4rem; }

/* Alerts section */
.alerts-list { margin-top: 0.85rem; }

.alert-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.7rem 0.9rem; margin-bottom: 0.4rem;
    display: flex; align-items: center; justify-content: space-between;
    backdrop-filter: blur(8px);
}

.alert-info { flex: 1; }
.alert-route { font-weight: 600; font-size: 0.85rem; }
.alert-details { font-size: 0.72rem; color: var(--text-muted); }

.alert-remove {
    background: none; border: 1px solid var(--border); color: var(--text-muted);
    padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); cursor: pointer;
    font-size: 0.72rem; transition: all 0.2s;
}
.alert-remove:hover { border-color: var(--highlight); color: var(--highlight-light); }

.alert-form {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem; margin-top: 0.85rem; padding: 0.85rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
}

.alert-form input, .alert-form select {
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); padding: 0.35rem 0.55rem; border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

/* Admin panel */
.admin-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.85rem; margin-bottom: 1.25rem;
}

.admin-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.85rem;
    backdrop-filter: blur(8px);
}
.admin-card h3 {
    font-size: 0.85rem; font-weight: 600; margin-bottom: 0.65rem;
    padding-bottom: 0.4rem; border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.admin-btn {
    background: var(--accent); color: white; border: none;
    padding: 0.4rem 0.8rem; border-radius: var(--radius-sm);
    font-size: 0.78rem; font-weight: 500; cursor: pointer;
    transition: all 0.2s; margin: 0.2rem;
}
.admin-btn:hover { background: var(--accent-light); }
.admin-btn.danger { background: var(--highlight); }
.admin-btn.danger:hover { background: #b32e40; }
.admin-btn.success { background: var(--safe); color: #0d1117; }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.source-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.025);
    font-size: 0.8rem;
}
.source-name { font-weight: 500; }
.source-status {
    font-size: 0.68rem; font-weight: 600; padding: 0.12rem 0.4rem;
    border-radius: 4px;
}
.source-status.success { background: var(--safe-bg); color: var(--safe); }
.source-status.error { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.source-status.idle { background: rgba(110, 118, 129, 0.1); color: var(--text-muted); }
.source-status.scanning { background: var(--info-bg); color: var(--info); }

.source-toggle {
    position: relative; width: 34px; height: 18px;
    background: var(--border); border-radius: 9px; cursor: pointer;
    border: none; transition: all 0.2s;
}
.source-toggle.active { background: var(--safe); }
.source-toggle::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; background: white; border-radius: 50%;
    transition: all 0.2s;
}
.source-toggle.active::after { left: 18px; }

.scan-progress {
    background: var(--bg-input); border-radius: var(--radius-sm);
    padding: 0.65rem; margin-top: 0.4rem; font-size: 0.78rem;
    max-height: 200px; overflow-y: auto;
}
.scan-log-entry { padding: 0.12rem 0; color: var(--text-secondary); }
.scan-log-entry .time { color: var(--text-muted); margin-right: 0.4rem; font-size: 0.68rem; }

.admin-stat { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.admin-stat-label { color: var(--text-muted); font-size: 0.78rem; }
.admin-stat-value { font-weight: 600; font-size: 0.78rem; }

/* Settings form in admin */
.settings-field { margin-bottom: 0.65rem; }
.settings-field label { display: block; font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 0.15rem; font-weight: 500; }
.settings-field input, .settings-field select {
    width: 100%; background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); padding: 0.35rem 0.55rem; border-radius: var(--radius-sm);
    font-size: 0.8rem;
}
.settings-field input:focus { outline: none; border-color: var(--info); }

/* Notifications dropdown */
.notif-dropdown {
    display: none; position: absolute; top: 100%; right: 0;
    width: 310px; max-height: 380px; overflow-y: auto;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    z-index: 200; margin-top: 0.4rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.notif-dropdown.active { display: block; }

.notif-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--border);
    font-size: 0.82rem; font-weight: 600;
}
.notif-mark-read {
    font-size: 0.68rem; color: var(--info); cursor: pointer;
    background: none; border: none;
}
.notif-mark-read:hover { text-decoration: underline; }

.notif-item {
    padding: 0.55rem 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.025);
    cursor: pointer; transition: background 0.15s;
}
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { border-left: 3px solid var(--highlight); }
.notif-item-title { font-size: 0.78rem; font-weight: 500; margin-bottom: 0.1rem; }
.notif-item-msg { font-size: 0.7rem; color: var(--text-muted); }
.notif-item-time { font-size: 0.62rem; color: var(--text-muted); margin-top: 0.15rem; }

.notif-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.82rem; }

/* Loading / empty states */
.loading { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-muted); }
.loading-spinner {
    width: 32px; height: 32px;
    border: 2px solid var(--border); border-top: 2px solid var(--highlight);
    border-radius: 50%; animation: spin 0.8s linear infinite;
    margin: 0 auto 0.85rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-muted); }
.empty-icon { font-size: 2rem; margin-bottom: 0.65rem; opacity: 0.4; }

/* Pagination */
.pagination {
    display: flex; justify-content: center; gap: 0.25rem; margin: 1.25rem 0;
}
.page-btn {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm); cursor: pointer; font-size: 0.78rem;
    transition: all 0.2s;
}
.page-btn:hover { border-color: var(--highlight); }
.page-btn.active { background: var(--highlight); color: white; border-color: var(--highlight); }

/* Disclaimer */
.disclaimer {
    text-align: center; padding: 1.25rem; color: var(--text-muted);
    font-size: 0.68rem; border-top: 1px solid var(--border); margin-top: 1.5rem;
}

/* Toast messages */
.toast-container {
    position: fixed; top: 70px; right: 16px; z-index: 300;
    display: flex; flex-direction: column; gap: 0.4rem;
}
.toast {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 0.65rem 0.85rem;
    box-shadow: var(--shadow); font-size: 0.8rem;
    animation: toast-in 0.3s ease-out;
    max-width: 300px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.toast.success { border-left: 3px solid var(--safe); }
.toast.error { border-left: 3px solid var(--highlight); }
.toast.info { border-left: 3px solid var(--info); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .tabs { overflow-x: auto; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .deals-grid { grid-template-columns: 1fr; }
    .filters-bar { flex-direction: column; }
    .admin-grid { grid-template-columns: 1fr; }
    .deals-table { font-size: 0.72rem; }
    .deals-table th, .deals-table td { padding: 0.35rem 0.45rem; }
    .auth-modal { width: 95%; padding: 1.5rem; }
    .notif-dropdown { width: 270px; right: -40px; }
    .featured-filters { padding: 0.5rem 0.75rem; }
    .filter-chip { padding: 0.2rem 0.45rem; font-size: 0.65rem; }
}

@media (max-width: 480px) {
    .main { padding: 0.85rem; }
    .stats-bar { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
    .deal-card-body { padding: 0.5rem 0.75rem; }
    .deal-price { font-size: 1.25rem; }
}

/* Featured filters */
.featured-filters {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(22, 27, 34, 0.7);
    border: 1px solid var(--border);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}
.filter-chip-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.filter-chip-group:last-of-type { margin-bottom: 0; }
.filter-chip-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    min-width: 2.5rem;
    margin-right: 0.25rem;
}
.filter-chip {
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.filter-chip:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border-color: var(--border-light);
}
.filter-chip.active {
    background: rgba(201, 56, 74, 0.2);
    color: #ff6b81;
    border-color: rgba(201, 56, 74, 0.5);
}
.filter-chip.dest.active {
    background: rgba(88, 166, 255, 0.15);
    color: #79b8ff;
    border-color: rgba(88, 166, 255, 0.4);
}
.filter-chip-clear {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}
.filter-chip-clear:hover {
    color: var(--text-secondary);
    border-color: var(--border-light);
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* Airport Code Tooltip */
.airport-code {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s ease;
}
.airport-code:hover {
    background: rgba(255, 255, 255, 0.1);
}
.airport-tooltip {
    position: absolute;
    z-index: 9999;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid rgba(68, 76, 86, 0.6);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #e6edf3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    max-width: 220px;
    text-align: center;
    line-height: 1.4;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.airport-tooltip strong {
    font-size: 1.1rem;
    color: #58a6ff;
}

/* Layover Tooltip */
.layover-tooltip {
    max-width: 280px;
    text-align: left;
    pointer-events: auto;
}
.layover-header {
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    color: var(--info);
}
.layover-item {
    margin: 6px 0;
}
.layover-airport {
    font-size: 0.9rem;
}
.layover-airport strong {
    font-size: 1rem;
    color: var(--highlight-light);
}
.layover-time {
    font-size: 0.8rem;
    color: var(--warning);
    margin-top: 2px;
}
.layover-times {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.layover-divider {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 8px 0;
}
.stops-clickable {
    cursor: pointer;
    transition: color 0.15s;
}
.stops-clickable:hover {
    color: var(--highlight-light);
}
.stops-clickable .stops-text {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

/* Airline Codeshare Indicator */
.airline-item.codeshare {
    cursor: pointer;
}
.airline-item.codeshare:hover {
    color: var(--highlight-light);
}
.airline-item.codeshare .airline-name {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

/* Airline Tooltip */
.airline-tooltip {
    max-width: 220px;
    text-align: left;
    pointer-events: auto;
}
.airline-tooltip-header {
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    color: var(--warning);
}
.airline-tooltip-row {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.airline-tooltip-carrier {
    margin-top: 4px;
}
.airline-tooltip-carrier strong {
    font-size: 0.95rem;
    color: var(--info);
}

/* Date Item Interactive */
.date-item {
    cursor: pointer;
    transition: color 0.15s;
}
.date-item:hover {
    color: var(--highlight-light);
}
.date-item .date-label {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

/* Date Tooltip */
.date-tooltip {
    min-width: 80px;
    text-align: center;
}
.date-tooltip strong {
    color: var(--info);
}

/* Mini Calendar */
.calendar-tooltip {
    max-width: 220px;
    padding: 12px;
    pointer-events: auto;
}
.mini-calendar {
    font-size: 0.75rem;
}
.cal-header {
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--info);
}
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}
.cal-wd {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.7rem;
}
.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-day {
    text-align: center;
    padding: 4px 2px;
    border-radius: 4px;
    color: var(--text);
    font-size: 0.72rem;
}
.cal-day.empty {
    visibility: hidden;
}
.cal-day.target {
    background: var(--info);
    color: #fff;
    font-weight: 700;
}

/* Cache Refresh Button */
.cache-refresh {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
    border-radius: 4px;
}
.cache-refresh:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}
.cache-refresh.spinning {
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Best Deals Summary Section */
.best-deals-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
}

.summary-header:hover {
    background: var(--bg-card-hover);
}

.summary-toggle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.summary-toggle.expanded {
    transform: rotate(180deg);
}

.summary-content {
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    background: rgba(0,0,0,0.15);
}

.summary-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.summary-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.summary-item-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.summary-item-route {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-item-price {
    font-weight: 700;
    color: var(--safe);
    font-size: 1.1rem;
}

.summary-item-airline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.loading-small {
    text-align: center;
    padding: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Clickable stat card */
.stat-card.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 56, 74, 0.3);
}

.stat-card.active-filter {
    background: rgba(201, 56, 74, 0.15) !important;
}

/* Exceptional deal card highlight */
.deal-card.exceptional {
    border-color: var(--highlight);
    box-shadow: 0 0 0 1px var(--highlight), 0 8px 32px rgba(201, 56, 74, 0.25);
    position: relative;
}

.deal-card.exceptional::before {
    content: '🔥';
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 1.2rem;
    z-index: 1;
}

.deal-card.exceptional .deal-score-badge {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(201, 56, 74, 0.5); }
    50% { box-shadow: 0 0 15px rgba(201, 56, 74, 0.8); }
}

/* Fix dropdown option colors for better contrast */
.filter-select option,
select.filter-select option {
    background: #1a1f26;
    color: #e6edf3;
    padding: 8px 12px;
}

.filter-select option:hover,
.filter-select option:focus,
.filter-select option:checked {
    background: #2d333b;
    color: #ffffff;
}

/* Force select dropdown styling */
select.filter-select {
    background-color: #0d1117;
    color: #e6edf3;
}

/* ========================================
   LUXURY HOTELS TAB
   ======================================== */

/* Tab styling */
.tab.luxury-tab {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.05));
    border-bottom: 2px solid transparent;
    color: var(--gold);
}
.tab.luxury-tab:hover {
    color: var(--gold);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.08));
}
.tab.luxury-tab.active {
    border-bottom-color: var(--gold);
    color: var(--gold);
}

/* Hotels header */
.hotels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.hotels-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hotels-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(201, 168, 76, 0.3));
}

.hotels-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--gold), #e8c96b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hotels-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0 0;
}

/* Adults toggle */
.hotels-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.adults-toggle {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    gap: 3px;
}

.adults-btn {
    background: none;
    border: none;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.adults-btn:hover {
    color: var(--text-primary);
}

.adults-btn.active {
    background: var(--gold);
    color: #0d1117;
    font-weight: 600;
}

/* Hotel cards grid */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

/* Individual hotel card */
.hotel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(8px);
}

.hotel-card:hover {
    border-color: rgba(201, 168, 76, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.15);
}

.hotel-card.best-deal {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 8px 32px rgba(201, 168, 76, 0.2);
}

.hotel-card.best-deal::before {
    content: '🏆 BEST VALUE';
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: #0d1117;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.5px;
}

/* Hotel image */
.hotel-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.05);
}

.hotel-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

.hotel-stars {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--gold);
    backdrop-filter: blur(8px);
}

.hotel-location-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: white;
    backdrop-filter: blur(8px);
}

.hotel-location-badge span {
    margin-right: 0.25rem;
}

/* Hotel content */
.hotel-content {
    padding: 1rem;
}

.hotel-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.hotel-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Deal highlight section */
.hotel-deal-highlight {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.05));
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.deal-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.deal-dates span {
    font-weight: 600;
    color: var(--text-primary);
}

.deal-room-type {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.deal-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.deal-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--safe);
}

.deal-price .price-period {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

.deal-per-night {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.deal-discount {
    background: rgba(201, 56, 74, 0.12);
    color: var(--highlight-light);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

/* Price metadata row */
.price-meta-row {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
    margin: 0.25rem 0 0.5rem 0;
}
.price-meta-partial {
    color: #e67e22;
    cursor: help;
    border-bottom: 1px dotted #e67e22;
}

/* Amenities */
.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.amenity-tag {
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* Hotel actions */
.hotel-actions {
    display: flex;
    gap: 0.5rem;
}

.hotel-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    border: none;
}

.hotel-btn-primary {
    background: linear-gradient(135deg, var(--gold), #e8c96b);
    color: #0d1117;
}

.hotel-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.4);
}

.hotel-btn-secondary {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

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

/* All deals list */
.hotel-all-deals {
    display: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.hotel-all-deals.active {
    display: block;
}

.all-deals-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    transition: color 0.2s;
}

.all-deals-toggle:hover {
    color: var(--gold);
}

.all-deals-list {
    display: block;
}

.deal-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
}

.deal-mini:last-child {
    border-bottom: none;
}

.deal-mini-date {
    color: var(--text-secondary);
}

.deal-mini-price {
    color: var(--safe);
    font-weight: 600;
}

.deal-mini-discount {
    color: var(--highlight-light);
    font-size: 0.65rem;
}

/* Room type deals display */
.deals-info-text {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-style: italic;
}

.deals-by-date {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.date-group {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 0.5rem;
}

.date-header {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.date-rooms {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.room-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
}

.room-type-badge {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
}

.room-price {
    color: var(--safe);
    font-weight: 600;
    margin-left: auto;
}

.room-discount {
    color: var(--highlight-light);
    font-size: 0.62rem;
    font-weight: 600;
}

/* Deals view tabs */
.deals-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.deals-tab-btn {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.deals-tab-btn:hover {
    color: var(--text-secondary);
    border-color: rgba(201, 168, 76, 0.3);
}

.deals-tab-btn.active {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

/* Price history chart */
.price-chart-container {
    height: 280px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.price-chart-container canvas {
    max-height: 100%;
}

/* Sample data indicator */
.sample-data-notice {
    background: var(--info-bg);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    color: var(--info);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hotels-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hotels-grid {
        grid-template-columns: 1fr;
    }
    
    .adults-toggle {
        width: 100%;
    }
    
    .adults-btn {
        flex: 1;
        text-align: center;
    }
}

/* Light theme adjustments */
[data-theme="light"] .tab.luxury-tab {
    background: linear-gradient(135deg, rgba(154, 103, 0, 0.08), rgba(154, 103, 0, 0.03));
}

[data-theme="light"] .tab.luxury-tab:hover,
[data-theme="light"] .tab.luxury-tab.active {
    color: #9a6700;
}

[data-theme="light"] .hotels-title {
    background: linear-gradient(135deg, #9a6700, #c9a84c);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .adults-btn.active {
    background: #9a6700;
    color: white;
}

[data-theme="light"] .hotel-card.best-deal {
    border-color: #9a6700;
}

[data-theme="light"] .hotel-btn-primary {
    background: linear-gradient(135deg, #9a6700, #c9a84c);
    color: white;
}

[data-theme="light"] .date-group {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .date-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .deals-tab-btn.active {
    background: rgba(154, 103, 0, 0.1);
    border-color: #9a6700;
    color: #9a6700;
}

[data-theme="light"] .price-chart-container {
    background: rgba(0, 0, 0, 0.03);
}

/* ========================================
   TRIP TYPE BADGES (Roundtrip/One-way)
   ======================================== */

.deal-trip-badge {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.deal-trip-badge.roundtrip {
    background: rgba(63, 185, 80, 0.15);
    color: var(--safe);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.deal-trip-badge.oneway {
    background: rgba(88, 166, 255, 0.12);
    color: var(--info);
    border: 1px solid rgba(88, 166, 255, 0.25);
}

/* ========================================
   PASSENGER COUNT TOGGLE
   ======================================== */

.passengers-toggle {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    gap: 3px;
}

.passengers-btn {
    background: none;
    border: none;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.passengers-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.passengers-btn.active {
    background: var(--info);
    color: #fff;
    font-weight: 600;
}

/* Per-person price display */
.deal-per-person {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.price-passengers {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

/* ========================================
   RETURN FLIGHT SUGGESTIONS
   ======================================== */

.return-suggestions {
    margin: 0.5rem 1rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.return-suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--info);
    cursor: pointer;
    transition: background 0.2s;
}

.return-suggestions-header:hover {
    background: rgba(88, 166, 255, 0.08);
}

.toggle-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.return-suggestions-list {
    border-top: 1px solid var(--border);
}

.return-suggestion-item {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
}

.return-suggestion-item:last-child {
    border-bottom: none;
}

.return-route {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.return-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.return-price {
    color: var(--safe);
    font-weight: 600;
}

.return-total {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.return-total strong {
    color: var(--highlight-light);
}

/* Return flight hint button */
.return-suggestions-hint {
    margin: 0.5rem 1rem 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(88, 166, 255, 0.08);
    border: 1px dashed rgba(88, 166, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.return-suggestions-hint:hover {
    background: rgba(88, 166, 255, 0.15);
    color: var(--info);
    border-color: rgba(88, 166, 255, 0.5);
}

/* Light theme adjustments for new components */
[data-theme="light"] .deal-trip-badge.roundtrip {
    background: rgba(26, 127, 55, 0.1);
    color: #1a7f37;
    border-color: rgba(26, 127, 55, 0.25);
}

[data-theme="light"] .deal-trip-badge.oneway {
    background: rgba(9, 105, 218, 0.08);
    color: #0969da;
    border-color: rgba(9, 105, 218, 0.2);
}

[data-theme="light"] .passengers-btn.active {
    background: #0969da;
}

[data-theme="light"] .return-suggestions {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .return-suggestions-header {
    color: #0969da;
}

[data-theme="light"] .return-suggestions-hint {
    background: rgba(9, 105, 218, 0.05);
    border-color: rgba(9, 105, 218, 0.2);
}

[data-theme="light"] .return-suggestions-hint:hover {
    background: rgba(9, 105, 218, 0.1);
    color: #0969da;
}

/* ========================================
   GUEST/DISABLED FILTER STYLES
   ======================================== */

/* Disabled filter state for guests */
.featured-filters.disabled {
    position: relative;
}

/* Login overlay for guest users */
.filter-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-login-overlay:hover {
    background: rgba(201, 56, 74, 0.15);
}

.filter-login-icon {
    font-size: 1.5rem;
}

.filter-login-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--highlight-light);
}

/* Disabled filter chips */
.filter-chip.guest-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto; /* Still clickable to show login */
}

.filter-chip.guest-disabled:hover {
    background: rgba(201, 56, 74, 0.1);
    border-color: var(--highlight);
    color: var(--highlight-light);
}

/* Disabled select elements */
.filter-select.guest-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-select.guest-disabled:hover {
    border-color: var(--highlight);
}

/* Light theme adjustments */
[data-theme="light"] .filter-login-overlay {
    background: rgba(246, 248, 250, 0.9);
}

[data-theme="light"] .filter-login-overlay:hover {
    background: rgba(30, 77, 123, 0.1);
}

[data-theme="light"] .filter-login-text {
    color: #1e4d7b;
}

[data-theme="light"] .filter-chip.guest-disabled:hover {
    background: rgba(30, 77, 123, 0.1);
    border-color: #1e4d7b;
    color: #1e4d7b;
}

/* Cruise guest-disabled controls */
.cruise-filter-select.guest-disabled,
.cruise-search-input.guest-disabled,
.cruise-sort-btn.guest-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Cruise guest CTA - shown after 3 preview cards */
.cruise-guest-cta {
    margin: 2rem 0;
    cursor: pointer;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(201, 56, 74, 0.08), rgba(201, 56, 74, 0.02));
    border: 2px dashed rgba(201, 56, 74, 0.3);
    transition: all 0.2s;
}
.cruise-guest-cta:hover {
    border-color: var(--highlight);
    background: linear-gradient(135deg, rgba(201, 56, 74, 0.15), rgba(201, 56, 74, 0.05));
}
.cruise-guest-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
}
.cruise-guest-cta-lock {
    font-size: 2rem;
}
.cruise-guest-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.cruise-guest-cta-text strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}
.cruise-guest-cta-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.cruise-guest-cta-btn {
    background: var(--highlight);
    color: #fff;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.cruise-guest-cta-btn:hover {
    background: #a8324a;
}

[data-theme="light"] .cruise-guest-cta {
    background: linear-gradient(135deg, rgba(30, 77, 123, 0.06), rgba(30, 77, 123, 0.02));
    border-color: rgba(30, 77, 123, 0.25);
}
[data-theme="light"] .cruise-guest-cta:hover {
    border-color: #1e4d7b;
    background: linear-gradient(135deg, rgba(30, 77, 123, 0.1), rgba(30, 77, 123, 0.04));
}
[data-theme="light"] .cruise-guest-cta-btn {
    background: #1e4d7b;
}
[data-theme="light"] .cruise-guest-cta-btn:hover {
    background: #153a5e;
}

/* ========================================
   RATE LIMIT / ERROR MESSAGES
   ======================================== */

.rate-limit-warning {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.3);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.rate-limit-warning .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rate-limit-warning .message {
    color: var(--warning);
    font-weight: 500;
}

.rate-limit-warning .retry-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ========================================
   TURNSTILE CAPTCHA STYLES
   ======================================== */

#turnstile-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

#turnstile-container iframe {
    border-radius: 8px;
}

/* =======================================================================
   LUXURY CRUISES TAB
   ======================================================================= */

/* =====================================================================
   LUXURY CRUISES — Redesigned
   ===================================================================== */
.cruises-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.cruises-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cruises-icon {
    font-size: 2rem;
    line-height: 1;
}

.cruises-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.cruises-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0 0;
}

.cruises-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.cruises-search {
    margin-bottom: 0.5rem;
}

.cruise-search-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}

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

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

.cruises-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cruises-sort {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sort-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.cruise-sort-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.cruise-sort-btn.active {
    background: var(--highlight);
    color: #fff;
    border-color: var(--highlight);
}

.cruise-sort-btn.active::after {
    content: ' \25B2';
    font-size: 0.6em;
    vertical-align: middle;
    margin-left: 0.2rem;
}

.cruise-sort-btn.active.desc::after {
    content: ' \25BC';
}

.guests-toggle {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.guests-btn {
    background: var(--bg-primary);
    border: none;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid var(--border);
}

.guests-btn:last-child {
    border-right: none;
}

.guests-btn.active {
    background: var(--highlight);
    color: #fff;
}

.cruise-filter-select {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    cursor: pointer;
}

/* Grid layout */
.cruises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    padding: 0 1.25rem;
}

/* Card */
.cruise-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cruise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.cruise-best {
    border: 2px solid var(--highlight);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

.cruise-best-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Map section */
.cruise-card-top {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: var(--bg-primary);
}

.cruise-route-map {
    width: 100%;
    height: 100%;
}

.cruise-ship-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.cruise-nights-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #f59e0b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.cruise-line-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--highlight);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(6px);
}

/* Card body */
.cruise-card-body {
    padding: 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cruise-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    line-height: 1.35;
    color: var(--text);
}

.cruise-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.cruise-date {
    color: var(--text);
    font-weight: 500;
}

.cruise-guests {
    color: var(--text-muted);
}

.cruise-line-label {
    font-weight: 600;
    color: var(--highlight);
    margin-left: auto;
}

/* Ports */
.cruise-ports {
    margin-bottom: 0.7rem;
}

.cruise-ports-label,
.cruise-cabins-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.cruise-ports-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
}

.cruise-port {
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
}

.port-departure {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-weight: 600;
}

.port-arrival {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    font-weight: 600;
}

.port-stop {
    color: var(--text-muted);
}

.port-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.4;
}

/* Cabin pricing */
.cruise-cabins {
    margin-bottom: 0.6rem;
    flex: 1;
}

.cruise-cabin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.76rem;
    transition: background 0.2s;
}

.cabin-balcony {
    background: rgba(59, 130, 246, 0.06);
    border-left: 3px solid #3b82f6;
}

.cabin-balcony:hover {
    background: rgba(59, 130, 246, 0.12);
}

.cabin-mini-suite {
    background: rgba(139, 92, 246, 0.06);
    border-left: 3px solid #8b5cf6;
}

.cabin-mini-suite:hover {
    background: rgba(139, 92, 246, 0.12);
}

.cabin-suite {
    background: rgba(245, 158, 11, 0.06);
    border-left: 3px solid #f59e0b;
}

.cabin-suite:hover {
    background: rgba(245, 158, 11, 0.12);
}

.cabin-name {
    font-weight: 500;
}

.cabin-price {
    font-weight: 700;
    color: var(--safe);
}

.cabin-ppn {
    font-weight: 400;
    font-size: 0.66rem;
    color: var(--text-muted);
}

/* Highlight price on card */
.cruise-highlight-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.cruise-from-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.cruise-from-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--safe);
}

.cruise-from-unit {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Book button */
.cruise-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.cruise-btn {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.cruise-btn-primary {
    background: linear-gradient(135deg, var(--highlight), #2563eb);
    color: #fff;
}

.cruise-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Split booking buttons */
.cruise-actions-split {
    display: flex;
    gap: 0.4rem;
}

.cruise-btn-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.cruise-btn-cd {
    background: linear-gradient(135deg, #0e7c5f, #0a9b6e);
    color: #fff;
}

.cruise-btn-cd:hover {
    background: linear-gradient(135deg, #0a9b6e, #07b07a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 124, 95, 0.3);
}

/* Footer */
.cruise-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Results count */
.cruise-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cruise-results-count {
    font-weight: 600;
    color: var(--text);
}

/* Price history */
.cruise-price-history-section {
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}

.cruise-price-history-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.cruise-price-history-btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
    border-color: var(--text-muted);
}

.cruise-chart-wrap {
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 0.5rem;
    height: 160px;
    position: relative;
}

/* Leaflet overrides for cruise maps */
.cruise-route-map .leaflet-container {
    background: var(--bg-primary) !important;
}

.cruise-route-map .leaflet-tooltip {
    background: rgba(0, 0, 0, 0.85);
    border: none;
    color: #fff;
    font-size: 0.66rem;
    padding: 3px 8px;
    border-radius: 4px;
}

.cruise-route-map .leaflet-tooltip-top:before {
    border-top-color: rgba(0, 0, 0, 0.85);
}

.cruise-route-arrow {
    background: none !important;
    border: none !important;
}

/* Map overlay */
#cruise-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cruise-overlay-header {
    position: relative;
    padding: 1rem 3rem 1rem 1.25rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.overlay-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.overlay-header-left {
    min-width: 0;
    flex: 1;
}

.overlay-cruise-line {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #3b82f6;
    margin-bottom: 0.2rem;
}

.overlay-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overlay-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.overlay-detail-chips {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.overlay-chip {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.overlay-chip-ship {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-chip-nights {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.overlay-chip-date {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.overlay-legend {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.legend-dot.legend-embark {
    background: #f59e0b;
    margin-left: 0.3rem;
}

.legend-dot.legend-disembark {
    background: #38bdf8;
    margin-left: 0.3rem;
}

.cruise-overlay-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 400;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s, background 0.15s;
    z-index: 2;
}

.cruise-overlay-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

#cruise-overlay-map {
    flex: 1;
    width: 100%;
}

#cruise-overlay-map .leaflet-tooltip,
.cruise-overlay-tooltip {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

#cruise-overlay-map .leaflet-tooltip-top:before {
    border-top-color: rgba(0, 0, 0, 0.9);
}

.cruise-itinerary-list {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 9px;
    line-height: 1.4;
    color: #fff;
    max-width: 130px;
    pointer-events: auto;
}
.cruise-itinerary-list.overlay {
    font-size: 12px;
    padding: 8px 12px;
    max-width: 220px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}
.cruise-itinerary-list .itinerary-port {
    padding: 1px 3px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}
.cruise-itinerary-list .itinerary-port:hover {
    background: rgba(255,255,255,0.15);
}
.cruise-itinerary-list.overlay .itinerary-port {
    padding: 2px 5px;
    border-radius: 4px;
}
.cruise-itinerary-list .itinerary-start { color: #f59e0b; }
.cruise-itinerary-list .itinerary-end { color: #38bdf8; }
.cruise-itinerary-list .itinerary-stop { color: rgba(255,255,255,0.8); }
.cruise-itinerary-list .itinerary-sea-label { color: rgba(255,255,255,0.35); font-style: italic; }
.cruise-itinerary-list .itinerary-sea { pointer-events: none; }
.cruise-itinerary-list .itinerary-hover span { text-decoration: underline; }

.cruise-card-top:hover .cruise-route-map {
    filter: brightness(1.15);
    transition: filter 0.2s;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .cruises-grid {
        grid-template-columns: 1fr;
        padding: 0 0.75rem;
        gap: 1rem;
    }

    .cruises-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .cruises-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .cruises-sort {
        justify-content: flex-start;
    }

    .guests-toggle {
        width: 100%;
    }

    .guests-btn {
        flex: 1;
    }

    .cruise-filter-select {
        width: 100%;
    }

    .cruise-ports-list {
        font-size: 0.63rem;
    }

    .cruise-from-price {
        font-size: 1.1rem;
    }

    .overlay-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .overlay-header-right {
        align-items: flex-start;
    }

    .overlay-title {
        font-size: 0.9rem;
        white-space: normal;
    }
}

/* ===== User Dropdown ===== */
.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}
.user-dropdown-trigger .user-avatar {
    font-size: 1.1rem;
}
.user-dropdown-trigger .dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.6;
}
.user-dropdown {
    position: fixed;
    z-index: 1000;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    min-width: 180px;
    padding: 0.4rem 0;
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.user-dropdown a:hover {
    background: var(--hover-bg);
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.3rem 0;
}
.fav-count-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 10px;
    margin-left: 0.3rem;
}

/* ===== Favorite Hearts ===== */
.fav-heart {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
    padding: 2px 4px;
    line-height: 1;
}
.fav-heart:hover {
    color: #ef4444;
    transform: scale(1.2);
}
.fav-heart.fav-active {
    color: #ef4444;
}
/* Hotel name row with heart (like cruise cards) */
.hotel-name-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.hotel-name-row .hotel-name {
    flex: 1;
    margin: 0;
}
.hotel-name-row .fav-heart {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--text-muted);
    text-shadow: none;
}
.hotel-name-row .fav-heart.fav-active {
    color: #ef4444;
}
/* Heart in cruise card price row */
.cruise-highlight-price .fav-heart {
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--text-muted);
    text-shadow: none;
}
.cruise-highlight-price .fav-heart.fav-active {
    color: #ef4444;
}

/* ===== Profile Page ===== */
.profile-card {
    max-width: 480px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.profile-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.profile-field input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
}
.profile-field input:focus {
    outline: none;
    border-color: var(--accent);
}
.profile-save-btn {
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
    transition: opacity 0.2s;
}
.profile-save-btn:hover {
    opacity: 0.9;
}

/* ===== Favorites Page ===== */
.fav-section-title {
    font-size: 1rem;
    margin: 1.5rem 0 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.fav-section-title:first-child {
    margin-top: 0.5rem;
}
.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
}
.fav-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    transition: border-color 0.2s;
}
.fav-card:hover {
    border-color: var(--accent);
}
.fav-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.fav-route {
    font-weight: 600;
    font-size: 0.9rem;
}
.fav-card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.fav-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}
.fav-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}
