/* ===== CSS Variables ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 75vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 5%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.85) 0%,
        rgba(14, 165, 233, 0.75) 50%,
        rgba(16, 185, 129, 0.7) 100%
    );
    z-index: 1;
}

/* ===== Navigation ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.logo i {
    font-size: 1.75rem;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Hero Content ===== */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 1rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-content > p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* ===== Search Form ===== */
.search-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label i {
    color: var(--primary-color);
}

.form-group select,
.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    transition: var(--transition);
    cursor: pointer;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group select:hover,
.form-group input:hover {
    border-color: var(--primary-light);
}

/* ===== Searchable Select Dropdown ===== */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select .search-input {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    transition: var(--transition);
    cursor: text;
}

.searchable-select .search-input::placeholder {
    color: var(--text-light);
}

.searchable-select .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.searchable-select .search-input:hover {
    border-color: var(--primary-light);
}

.searchable-select .dropdown-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

.searchable-select.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}

.dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 350px;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.searchable-select.open .dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.dropdown-item:hover,
.dropdown-item.highlighted {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-item.selected {
    background: var(--primary-color);
    color: white;
}

.dropdown-item.hidden {
    display: none;
}

.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== Continent Filter ===== */
.continent-filter {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.world-map-container {
    position: relative;
    width: 100%;
    height: 120px;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f0f4f8;
}

.world-map-container svg {
    width: 100%;
    height: 100%;
}

/* SVG Map Continent Styling */
.world-map-container svg path {
    fill: #d1d5db;
    stroke: #ffffff;
    stroke-width: 0.5;
    cursor: pointer;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.world-map-container svg path:hover {
    fill: var(--primary-light);
}

.world-map-container svg path.active {
    fill: var(--primary-color);
}

.world-map-container svg path.continent-highlighted {
    fill: var(--primary-light);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.continent-btn {
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-weight: 500;
}

.continent-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.continent-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.continent-label {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
}

.dropdown-items-container {
    flex: 1;
    overflow-y: auto;
    max-height: 200px;
}

.dropdown-items-container::-webkit-scrollbar {
    width: 6px;
}

.dropdown-items-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.dropdown-items-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.dropdown-items-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ===== Dates Picker ===== */
.dates-picker {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.dates-picker:hover {
    border-color: var(--primary-color);
}

.dates-picker.open {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dates-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.dates-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
}

.dates-text.has-value {
    color: var(--text-primary);
    font-weight: 500;
}

.dates-duration {
    font-size: 0.75rem;
    color: var(--text-light);
}

.dates-picker .dropdown-arrow {
    color: var(--text-light);
    font-size: 0.75rem;
    transition: var(--transition);
}

.dates-picker.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Calendar Dropdown */
.calendar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 1.25rem;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    min-width: 300px;
}

.dates-picker.open .calendar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-month-year {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.calendar-nav {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.calendar-nav:hover {
    background: var(--primary-color);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: var(--bg-secondary);
}

.calendar-day.disabled {
    color: var(--border-color);
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
}

.calendar-day.in-range {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0;
}

.calendar-day.range-start {
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.calendar-day.range-end {
    background: var(--primary-color);
    color: white;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.calendar-day.range-start.range-end {
    border-radius: var(--radius-md);
}

.calendar-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.calendar-clear {
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-clear:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===== Travelers Picker ===== */
.travelers-picker {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.travelers-picker:hover {
    border-color: var(--primary-color);
}

.travelers-picker.open {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.travelers-display {
    flex: 1;
}

.travelers-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
}

.travelers-text.has-value {
    color: var(--text-primary);
    font-weight: 500;
}

.travelers-picker .dropdown-arrow {
    color: var(--text-light);
    font-size: 0.75rem;
    transition: var(--transition);
}

.travelers-picker.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Travelers Dropdown */
.travelers-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.travelers-picker.open .travelers-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.traveler-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

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

.traveler-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.traveler-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.traveler-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

.traveler-counter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.traveler-counter .counter-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.traveler-counter .counter-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.traveler-counter .counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.counter-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 24px;
    text-align: center;
}

/* Legacy counter styles - keep for backward compatibility */
.counter {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.counter-btn {
    width: 36px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.duration-counter .counter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.duration-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0 0.5rem;
}

.duration-display input {
    width: 50px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-primary);
    -moz-appearance: textfield;
}

.duration-display input::-webkit-outer-spin-button,
.duration-display input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.duration-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Search Button ===== */
.search-btn {
    grid-column: 1 / -1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.search-btn:active {
    transform: translateY(0);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Results Section ===== */
.results-section {
    min-height: 100vh;
    padding: 4rem 5%;
    background: var(--bg-secondary);
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.results-section.hidden {
    display: none !important;
}

/* ===== Destination Header ===== */
.destination-header {
    margin-bottom: 3rem;
}

.destination-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    height: 350px;
    box-shadow: var(--shadow-xl);
}

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

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.destination-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.destination-overlay p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ===== Budget Slider ===== */
.budget-slider-container {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== Currency Selector ===== */
.currency-selector {
    position: relative;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.currency-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.currency-btn .currency-flag {
    font-size: 1rem;
}

.currency-btn .currency-code {
    font-weight: 600;
}

.currency-btn i {
    font-size: 0.7rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.currency-selector.open .currency-btn i {
    transform: rotate(180deg);
}

.currency-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.currency-selector.open .currency-dropdown {
    opacity: 1;
    visibility: visible;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.currency-option:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.currency-option:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.currency-option:hover {
    background: var(--bg-secondary);
}

.currency-option.active {
    background: var(--primary-color);
    color: white;
}

.currency-option .currency-flag {
    font-size: 1.25rem;
}

.budget-slider {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 0.25rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.budget-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    border-radius: var(--radius-lg);
}

.budget-option i {
    font-size: 0.875rem;
}

.budget-option:hover {
    color: white;
}

.budget-option.active {
    color: var(--text-primary);
}

.budget-slider-indicator {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.25rem;
    width: calc(33.333% - 0.167rem);
    background: white;
    border-radius: var(--radius-lg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.budget-slider[data-active="budget"] .budget-slider-indicator {
    transform: translateX(0);
}

.budget-slider[data-active="moderate"] .budget-slider-indicator {
    transform: translateX(100%);
}

.budget-slider[data-active="luxury"] .budget-slider-indicator {
    transform: translateX(200%);
}

@media (max-width: 768px) {
    .budget-slider-container {
        bottom: auto;
        top: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .currency-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .currency-btn .currency-code {
        display: none;
    }

    .currency-dropdown {
        right: 0;
        left: auto;
        transform: none;
    }

    .budget-option span {
        display: none;
    }

    .budget-option {
        padding: 0.625rem 0.875rem;
    }

    .budget-option i {
        font-size: 1rem;
    }
}

/* ===== Cost Summary Cards ===== */
.cost-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.total-card {
    border-left: 4px solid var(--primary-color);
}

.daily-card {
    border-left: 4px solid var(--secondary-color);
}

.per-person-card,
.per-adult-card {
    border-left: 4px solid var(--success-color);
}

.per-person-card .card-icon,
.per-adult-card .card-icon {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    color: white;
}

.per-person-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.person-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.person-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.person-label i {
    font-size: 0.875rem;
    color: var(--text-light);
}

.person-row:first-child .person-label i {
    color: var(--success-color);
}

.child-row .person-label i {
    color: var(--accent-color);
}

.person-cost {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.discount-badge {
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    margin-left: 0.25rem;
}

.child-row.hidden {
    display: none;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.total-card .card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.daily-card .card-icon {
    background: linear-gradient(135deg, var(--secondary-color), #38bdf8);
    color: white;
}

.card-content h3 {
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.main-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}

/* ===== Cost Breakdown ===== */
.cost-breakdown {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.cost-breakdown h3 {
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.cost-breakdown h3 i {
    color: var(--primary-color);
}

.breakdown-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Pie Chart Container */
.pie-chart-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pie-slice {
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: center;
    cursor: pointer;
    filter: brightness(1);
}

.pie-slice:hover,
.pie-slice.highlighted {
    transform: scale(1.06);
    filter: brightness(1.1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.pie-total-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 500;
}

.pie-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

/* Breakdown Items (Right Side) */
.breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.breakdown-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    align-items: center;
    cursor: pointer;
}

.breakdown-item:hover,
.breakdown-item.highlighted {
    background: #e2e8f0;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.breakdown-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
}

.breakdown-icon.travel { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.breakdown-icon.accommodation { background: linear-gradient(135deg, #ec4899, #f472b6); }
.breakdown-icon.food { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.breakdown-icon.entertainment { background: linear-gradient(135deg, #10b981, #34d399); }
.breakdown-icon.local-transport { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }

.breakdown-details {
    flex: 1;
    min-width: 0;
}

.breakdown-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--text-primary);
}

.breakdown-description {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breakdown-cost {
    text-align: right;
}

.breakdown-total {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.breakdown-daily {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 0.125rem;
}

.breakdown-avg {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.breakdown-percent {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Category-specific percent badge colors */
.breakdown-item[data-category="travel"] .breakdown-percent {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.breakdown-item[data-category="accommodation"] .breakdown-percent {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}
.breakdown-item[data-category="food"] .breakdown-percent {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.breakdown-item[data-category="entertainment"] .breakdown-percent {
    background: linear-gradient(135deg, #10b981, #34d399);
}
.breakdown-item[data-category="local-transport"] .breakdown-percent {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

/* ===== Tips Section ===== */
.tips-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.tips-section h3 {
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tips-section h3 i {
    color: var(--accent-color);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.tip-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--accent-color);
}

.tip-card i {
    color: var(--accent-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tip-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Recalculate Section ===== */
.recalculate-section {
    text-align: center;
}

.recalculate-btn {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.recalculate-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== Destinations Section ===== */
.destinations-section {
    padding: 5rem 5%;
    background: white;
    text-align: center;
}

.destinations-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.destination-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.destination-card .card-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.destination-card .card-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Hide extra destination cards when results are shown */
.destinations-grid.collapsed .destination-card:nth-child(n+9) {
    display: none;
}

/* ===== About Section ===== */
.about-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    color: white;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.feature p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 5%;
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.5rem;
}

.footer-logo .logo-img {
    height: 40px;
    width: auto;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* ===== Loading State ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .search-form {
        grid-template-columns: 1fr 1fr;
    }

    .search-form .destination-group {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .search-form {
        padding: 1.5rem;
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .search-form .destination-group {
        grid-column: span 1;
    }

    .nav-links {
        display: none;
    }

    .calendar-dropdown {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: 280px;
    }

    .dates-picker.open .calendar-dropdown {
        transform: translateX(-50%) translateY(0);
    }

    .destination-image {
        height: 250px;
    }

    .destination-overlay h2 {
        font-size: 1.75rem;
    }

    .summary-card {
        flex-direction: column;
        text-align: center;
    }

    .card-icon {
        margin: 0 auto;
    }

    .breakdown-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pie-chart-container {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .pie-center {
        width: 110px;
        height: 110px;
    }

    .pie-total-value {
        font-size: 1.25rem;
    }

    .breakdown-item {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .breakdown-icon {
        margin: 0 auto;
    }

    .breakdown-details {
        text-align: center;
    }

    .breakdown-description {
        white-space: normal;
    }

    .breakdown-cost {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content > p {
        font-size: 1rem;
    }

    .search-form {
        padding: 1rem;
    }

    .destinations-section h2,
    .about-content h2 {
        font-size: 1.75rem;
    }
}
