/* Core Color variables and theme settings */
:root {
    /* Mixed Light/Dark Theme Color Tokens */
    --bg-page: #f5f7fa;
    --nav-bg: #091024;
    --search-bg: #0b1530;
    
    --card-bg-light: #ffffff;
    --card-border-light: #e2e8f0;
    
    --primary: #1062fd;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --orange: #f97316;
    --danger: #ef4444;
    
    --text-dark: #0f172a;
    --text-muted-dark: #64748b;
    --text-light: #ffffff;
    --text-muted-light: #94a3b8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Light Mode support (reverses variables if toggled) */
body.light-mode {
    --bg-page: #f8fafc;
    --nav-bg: #ffffff;
    --search-bg: #f1f5f9;
    --text-light: #0f172a;
    --text-muted-light: #64748b;
    --card-bg-light: #ffffff;
    --card-border-light: #cbd5e1;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* Scrollable container styling */
.scrollable {
    overflow-y: auto;
    padding-right: 4px;
}

.scrollable::-webkit-scrollbar {
    width: 6px;
}
.scrollable::-webkit-scrollbar-track {
    background: transparent;
}
.scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.scrollable::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* TOP NAVIGATION BAR */
.top-nav {
    background-color: var(--nav-bg);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-plane-svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    transform: rotate(45deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-partiu {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-light);
    font-style: italic;
}

.logo-viajar {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #60a5fa;
}

/* Nav Menu links */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-muted-light);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.2rem;
    position: relative;
    transition: var(--transition);
}

.nav-menu li.active a {
    color: var(--text-light);
}

/* Active tab blue/white line indicator */
.nav-menu li.active a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 4px;
}

.nav-menu li a:hover {
    color: var(--text-light);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

/* Offers "Novo" Badge */
.relative {
    position: relative;
}

.badge-novo {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--danger);
    color: white;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 4px;
    border-radius: 10px;
    line-height: 1;
}

/* User Profile Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-muted-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: 50%;
    transition: var(--transition);
}

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

.moon-icon {
    width: 20px;
    height: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-name {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* SEARCH BANNER CONTAINER */
.search-panel-container {
    background-color: var(--search-bg);
    padding: 1.5rem 0 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.search-panel-wrap {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Tabs above inputs */
.search-tabs {
    display: flex;
    gap: 0.5rem;
}

.search-tab-pill {
    background: transparent;
    border: none;
    color: var(--text-muted-light);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.search-tab-pill.active {
    background-color: var(--primary);
    color: white;
}

.search-tab-pill:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

/* Search input inputs card row */
.search-inputs-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.search-card {
    background-color: white;
    border-radius: 12px;
    flex: 1;
    min-width: 180px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-card:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 98, 253, 0.15);
}

.search-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
}

.card-icon {
    width: 20px;
    height: 20px;
}

.search-card-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.search-card-details label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 2px;
}

.search-card-details input {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
    width: 100%;
    padding: 0;
}

.search-card-details input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Interchange arrows button */
.swap-locations-btn {
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    align-self: center;
    margin: 0 -0.4rem;
    z-index: 5;
    flex-shrink: 0;
    color: var(--primary);
    transition: var(--transition);
}

.swap-locations-btn:hover {
    transform: rotate(180deg);
    background-color: #f8fafc;
}

.swap-icon {
    width: 18px;
    height: 18px;
}

/* Search Submit Button */
.search-primary-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    min-width: 160px;
    box-shadow: var(--shadow-sm);
}

.search-primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.search-btn-icon {
    width: 20px;
    height: 20px;
}

.hidden-alert-trigger {
    display: none;
}

/* Autocomplete suggestions dropdown overrides */
.autocomplete-wrapper {
    position: relative;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 4px;
}

.suggestion-item {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

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

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f1f5f9;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
}

.suggestion-city-country {
    font-weight: 700;
    color: var(--text-dark);
}

.suggestion-airport-name {
    font-size: 0.75rem;
    color: #64748b;
}

.suggestion-code-badge {
    background-color: #e2e8f0;
    color: #475569;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* APP LAYOUT FRAME */
.app-layout {
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr 360px;
    gap: 1.5rem;
    height: calc(100vh - 190px);
    min-height: 520px;
}

/* COLUMN 1: SIDEBAR FILTERS (WHITE BACKGROUND) */
.sidebar-column {
    background-color: var(--card-bg-light);
    border: 1px solid var(--card-border-light);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.8rem;
}

.sidebar-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.clear-filters-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.clear-filters-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}

/* Flex alignments helper */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-between span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.filter-price-badge {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

/* Custom Checkbox Design */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-dark);
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    transition: var(--transition);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.stars-gold {
    color: var(--warning);
    font-size: 0.85rem;
}

/* Custom range sliders */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

hr.separator {
    border: 0;
    height: 1px;
    background-color: #e2e8f0;
}

/* COLUMN 2: RESULTS PANELS */
.results-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.5rem;
}

.section-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.section-title-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
}

.results-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

/* Sorting controls dropdown styling */
.sorting-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sort-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.custom-sort-select {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.3rem 1.5rem 0.3rem 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    background-color: white;
    outline: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.hidden {
    display: none !important;
}

/* Spinner loader styling */
#results-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 0.8rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FLIGHT CARDS STYLING (WHITE BACKGROUND) */
.flights-list-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.flight-card {
    background-color: white;
    border: 1px solid var(--card-border-light);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.flight-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.flight-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 98, 253, 0.12);
    background-color: #f8fafc;
}

/* Airline log and timing grid column */
.flight-airline-col {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1.2;
}

.airline-logo-box {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.airline-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.airline-name-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.flight-time-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 2.2;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.airport-code {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

/* Custom duration flight path line */
.flight-timeline-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.timeline-duration {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-line {
    width: 100%;
    height: 1px;
    background-color: #cbd5e1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-line::before,
.timeline-line::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #94a3b8;
}

.timeline-line::before { left: 0; }
.timeline-line::after { right: 0; }

.timeline-plane-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 1.5px solid white;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

.timeline-stops {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
}

.timeline-stops.direct {
    color: var(--success);
}

/* Baggage and luggage icons */
.flight-amenities-col {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0.6;
    color: #94a3b8;
}

.flight-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border-radius: 4px;
    border: 1px solid #f1f5f9;
}

.flight-pricing-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 1;
    gap: 0.4rem;
}

.price-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--success);
}

.price-sub {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    margin-top: -3px;
}

.btn-card-details {
    background-color: white;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-details:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

/* SMART COMBO DEAL CARD REDESIGN */
.smart-combo-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    box-shadow: var(--shadow-md);
    margin-bottom: 0.8rem;
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.smart-combo-card::before {
    content: "RECOMENDADO";
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary);
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 8px;
    border-bottom-left-radius: 6px;
    letter-spacing: 0.5px;
}

.combo-layout {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.combo-details-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.combo-row-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.combo-badge-ida,
.combo-badge-volta {
    font-size: 7.5px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 6px;
}

.combo-badge-ida {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.combo-badge-volta {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.combo-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.combo-price-label {
    font-size: 0.65rem;
    color: var(--text-muted-light);
    letter-spacing: 0.5px;
}

.combo-price-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--success);
}

.combo-select-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

/* ACCOMMODATIONS LISTING CARDS (WHITE BACKGROUND) */
.accommodations-list-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.lodging-card {
    background-color: white;
    border: 1px solid var(--card-border-light);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.lodging-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.lodging-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 98, 253, 0.12);
    background-color: #f8fafc;
}

.lodging-image-wrapper {
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.lodging-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.lodging-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.lodging-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
}

.lodging-badge-type {
    display: none; /* Layout matches screenshot: name and score are main features */
}

.lodging-rating-reviews {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.lodging-score {
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.2;
}

.lodging-reviews {
    color: #64748b;
    font-weight: 500;
}

.lodging-center-dist {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 500;
}

.lodging-amenities-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: auto;
}

.lodging-amenity-pill {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Lodging pricing right column card block */
.lodging-price-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    width: 140px;
    text-align: right;
    flex-shrink: 0;
}

.lodging-price-night {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--success);
}

.lodging-price-night small {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

.lodging-price-total {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.lodging-price-total-sub {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    margin-top: -2px;
}

.lodging-actions-row {
    display: flex;
    gap: 0.4rem;
}

.lodging-fav-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lodging-details-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.lodging-details-btn:hover {
    background-color: var(--primary-hover);
}

/* Center Bottom: Ver Mais Hotéis button */
.load-more-hotels-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.load-more-btn {
    background-color: white;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

/* COLUMN 3: MAP WIDGET & TRAVEL SUMMARY */
.map-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Map card container box */
.map-box-container {
    background-color: white;
    border: 1px solid var(--card-border-light);
    border-radius: 14px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
}

.map-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f1f5f9;
}

.map-header-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.map-header-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.map-box-header h4 {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-dark);
}

.info-icon {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    cursor: pointer;
}

/* Sync checkbox on map bar */
.map-header-right {
    display: flex;
    align-items: center;
}

.map-sync-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

/* Real map wrapper */
.map-container-wrapper {
    height: 310px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

#leaflet-map-widget {
    width: 100%;
    height: 100%;
    background-color: #f1f5f9;
}

/* Map scale categories legend */
.map-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.4rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #475569;
}

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

.legend-dot.green { background-color: var(--success); }
.legend-dot.yellow { background-color: var(--warning); }
.legend-dot.orange { background-color: var(--orange); }
.legend-dot.red { background-color: var(--danger); }

/* CUSTOM price marker bubble for leaflet */
.marker-price-bubble {
    display: flex;
    justify-content: center;
    align-items: center;
}

.marker-pin {
    padding: 3px 6px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.marker-pin::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    width: 0;
}

.pin-green { background-color: var(--success); }
.pin-green::after { border-color: var(--success) transparent; }

.pin-yellow { background-color: var(--warning); color: black; }
.pin-yellow::after { border-color: var(--warning) transparent; }

.pin-orange { background-color: var(--orange); }
.pin-orange::after { border-color: var(--orange) transparent; }

.pin-red { background-color: var(--danger); }
.pin-red::after { border-color: var(--danger) transparent; }

/* MAP POPUP CARD */
.leaflet-popup-content-wrapper {
    background-color: white !important;
    border-radius: 8px !important;
    color: var(--text-dark) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 200px !important;
}

.map-popup-card {
    display: flex;
    flex-direction: column;
}

.map-popup-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.map-popup-info-wrap {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.map-popup-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.map-popup-rating {
    font-size: 0.72rem;
    color: var(--warning);
}

.map-popup-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--success);
    margin-top: 2px;
}

.map-popup-select-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 0.4rem;
}

/* TRAVEL SUMMARY BOX (DARK NAVY GRADIENT) */
.travel-summary-card {
    background: linear-gradient(135deg, #091024 0%, #0f224f 100%);
    border-radius: 14px;
    padding: 1.25rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.travel-summary-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted-light);
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.summary-row.total span:last-child {
    color: var(--success);
    font-size: 1.3rem;
}

.summary-separator {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0.2rem 0;
}

.installment-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}

.installment-icon {
    width: 14px;
    height: 14px;
    color: var(--success);
}

.installment {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 700;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.summary-details-btn {
    background-color: var(--success);
    color: white;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.summary-details-btn:hover {
    background-color: #059669;
}

.btn-bag-icon {
    width: 16px;
    height: 16px;
}

.summary-save-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.summary-save-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* FOOTER SECTION (WHITE BACKGROUND) */
.main-footer {
    background-color: white;
    border-top: 1px solid #cbd5e1;
    padding: 1.5rem 0;
    margin-top: 2rem;
    flex-shrink: 0;
}

.footer-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.footer-col {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(16, 98, 253, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.footer-svg {
    width: 20px;
    height: 20px;
}

.footer-col-text {
    display: flex;
    flex-direction: column;
}

.footer-col-text h5 {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-dark);
}

.footer-col-text p {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

/* MODALS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 16, 36, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: scale(0.95);
    transition: transform 0.25s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
}

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

.modal h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.text-muted {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.form-group-alert {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.form-group-alert label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.form-group-alert input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
}

.form-group-alert input:focus {
    border-color: var(--primary);
}

.form-group-alert button[type="submit"] {
    background-color: var(--primary);
    color: white;
    border: none;
    font-weight: 700;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.modal-tab {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #64748b;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
}

.modal-tab.active {
    color: var(--primary);
}

.modal-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.history-item-card,
.favorite-item-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-title,
.fav-title {
    font-weight: 700;
    font-size: 0.85rem;
}

.history-dates,
.fav-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.history-load-btn,
.fav-load-btn {
    border: none;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
}

.chart-container {
    height: 250px;
    width: 100%;
    margin-top: 1rem;
}

/* =======================================
   UTILITY & MISSING CLASSES
   ======================================= */

/* Empty state placeholder */
.no-results {
    text-align: center;
    color: #94a3b8;
    padding: 2.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1.5px dashed #e2e8f0;
    border-radius: 10px;
    background-color: #f8fafc;
}

/* Range slider display text */
.range-display {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-align: right;
}

/* Modal scrollable body */
.modal-body-content {
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

/* Smart combo card legacy support */
.combo-layout {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap: 1rem;
}

/* Map fullscreen expansion state */
.map-column.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1500;
    border-radius: 0;
    padding: 1.5rem;
    background: white;
}

.map-column.expanded .map-container-wrapper {
    height: calc(100% - 120px);
}

/* Map heatmap toggle button (hidden in new UI but kept for JS compat) */
.map-toggle-heatmap {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--orange);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.map-toggle-heatmap.active {
    background-color: var(--orange);
    color: white;
}

/* Map expand button */
.map-expand-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

/* Shadow pulse animation for travel summary */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.15); }
    50% { box-shadow: 0 0 12px 0 rgba(16, 185, 129, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.15); }
}

/* Search tabs click feel */
.search-tab-pill:focus {
    outline: none;
}

/* Ensure number inputs in search card look clean */
.search-card input[type="number"]::-webkit-inner-spin-button,
.search-card input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.4;
}

/* Leaflet draw toolbar light theme fix */
.leaflet-draw-toolbar a {
    background-color: white !important;
    color: #475569 !important;
}

/* Combo layout for smart deal card */
.combo-details-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.combo-row-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    gap: 0.3rem;
}

.combo-badge-ida,
.combo-badge-volta {
    font-size: 7.5px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
}

.combo-badge-ida {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.combo-badge-volta {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.combo-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.combo-price-label {
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

.combo-price-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--success);
}

.combo-select-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.2rem;
}

/* Lodging stars display (kept for backward compat) */
.lodging-stars {
    color: var(--warning);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 260px 1fr;
        height: auto;
    }
    
    .map-column {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .top-nav {
        height: auto;
        padding: 0.8rem 0;
    }
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.8rem;
    }
    .logo {
        order: 1;
    }
    .nav-actions {
        order: 2;
    }
    .nav-menu {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        margin-top: 0.5rem;
    }
    .search-inputs-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    .search-card {
        width: 100%;
        min-height: 50px;
    }
    .search-primary-btn {
        min-width: auto;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }
    .swap-locations-btn {
        transform: rotate(90deg);
        align-self: center;
        margin: -1.2rem 0;
        z-index: 10;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .sorting-controls {
        width: 100%;
        justify-content: space-between;
    }
    .combo-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .combo-price-box {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px dashed #e2e8f0;
    }
}
