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

:root {
    --purple: #9810FA;
    --main: #500EAF;
    --purple-dark: #5038c8;
    --text: #1a1a2e;
    --text-mid: #4b5563;
    --text-light: #9ca3af;
    --white: #ffffff;
    --bg-light: #f3f4f6;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.12);
    --radius: 20px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
}


.search-main {
    position: relative;
    min-height: calc(100vh - 50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(160, 120, 240, 0.45) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(140, 100, 220, 0.20) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 90%, rgba(160, 120, 240, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #fdfcff 0%, #f4f0fd 45%, #e4d8f8 75%, #cdb8f0 100%);
}

/* Sparkle elements */
.sparkle-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

@keyframes sparkTwinkle {

    0%,
    100% {
        opacity: 0.15;
        transform: scale(0.7);
    }

    50% {
        opacity: 0.9;
        transform: scale(1);
    }
}

/* ════════════════════════════════════════
   HERO TEXT
════════════════════════════════════════ */
.search-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 40px;
}

.search-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 8px;
    font-family: 'Satoshi', sans-serif;
}

.search-tagline {
    font-family: 'Satoshi', sans-serif;
    font-style: italic;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-mid);
}

/* ════════════════════════════════════════
   DESKTOP SEARCH CARD
════════════════════════════════════════ */
.desktop-card {
    position: relative;
    z-index: 1;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 1080px;
    padding: 0 0 28px;
    overflow: visible;
}

/* ── Row 1: Location | Dates | Guests ── */
.card-row-1 {
    display: flex;
    align-items: stretch;
    padding: 22px 28px 6px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin: 2%;
    padding-bottom: 20px;
}

.card-field {
    flex: 1;
    padding: 20px 24px 16px;
    position: relative;
    min-width: 0;
}

.card-divider {
    width: 1px;
    background: var(--border);
    align-self: stretch;
    margin: 12px 0;
}

.field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 8px;
}

.field-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.field-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-mid);
    font-family: inherit;
    cursor: pointer;
    min-width: 0;
}

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

.field-select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.field-chevron {
    flex-shrink: 0;
}

.date-trigger {
    cursor: pointer;
    user-select: none;
}

.date-display {
    font-size: 0.9rem;
    color: var(--text-light);
    flex: 1;
}

.date-display.has-dates {
    color: var(--text-mid);
    font-weight: 500;
}

/* ── Row 2: Budget + Travel Type ── */
.card-row-2 {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 22px 28px 6px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin: 2%;
    padding-bottom: 20px;
}

.budget-block {
    flex: 1;
}

.budget-label-row {
    margin-bottom: 10px;
}

.budget-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.budget-val {
    font-weight: 700;
}

.budget-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-min,
.slider-max {
    font-size: 0.74rem;
    color: var(--text-light);
    white-space: nowrap;
}

.budget-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    border-radius: 20px;
    background: linear-gradient(to right, var(--main) 30%, #e5e7eb 30%);
    outline: none;
    cursor: pointer;
}

.budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    border: 2px solid var(--main);
    box-shadow: 0 2px 8px rgba(80, 14, 175, 0.3);
    cursor: pointer;
}

.travel-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.travel-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.travel-btns {
    display: flex;
    gap: 8px;
}

.travel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.86rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--bg-light);
    color: var(--text-mid);
    transition: all 0.2s;
    font-family: 'Satoshi', sans-serif;
}

.travel-btn.active {
    background: rgba(80, 14, 175, 0.08);
    border-color: var(--main);
    color: var(--main);
}

.travel-btn svg {
    flex-shrink: 0;
}

/* ── CTA ── */
.card-cta {
    display: flex;
    justify-content: center;
    padding: 18px 28px 0;
}

.ai-find-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    border-radius: 30px;
    background: linear-gradient(135deg, #500EAF, #9810FA);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(107, 72, 232, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.ai-find-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 72, 232, 0.5);
    opacity: 0.93;
}

/* ════════════════════════════════════════
   DATE PICKER DROPDOWN  (desktop only)
════════════════════════════════════════ */
.date-field-wrap {
    position: relative;
}

.datepicker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.16);
    padding: 20px 20px 14px;
    width: 600px;
    z-index: 200;
    border: 1px solid var(--border);
    animation: dpFadeIn 0.18s ease;
}

.datepicker-dropdown.open {
    display: block;
}

@keyframes dpFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

.dp-months-label {
    display: flex;
    gap: 120px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.dp-nav {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    user-select: none;
    line-height: 1;
    transition: background 0.2s;
}

.dp-nav:hover {
    background: #ede9f8;
    color: var(--purple);
}

.datepicker-calendars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.datepicker-calendars .dp-calendar:first-child {
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.dp-day-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 6px;
}

.dp-day-headers span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.dp-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dp-cell.empty {
    cursor: default;
}

.dp-cell.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.dp-cell:not(.disabled):not(.empty):hover {
    background: #ede9f8;
    color: var(--purple);
}

.dp-cell.today:not(.selected) {
    border: 2px solid var(--purple);
    color: var(--purple);
    font-weight: 600;
}

.dp-cell.in-range {
    background: rgba(107, 72, 232, 0.09);
    border-radius: 0;
    color: var(--purple);
}

.dp-cell.selected {
    background: var(--purple) !important;
    color: var(--white) !important;
    border-radius: 50% !important;
    font-weight: 700;
    z-index: 1;
}

.dp-cell.start,
.dp-cell.end {
    border-radius: 50% !important;
}

.datepicker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.dp-hint {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
}

.dp-clear {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.dp-clear:hover {
    background: #ede9f8;
}

/* ════════════════════════════════════════
   MOBILE SEARCH WRAP  (hidden on desktop)
════════════════════════════════════════ */
.mobile-search-wrap {
    display: none;
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤768px)
════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Hide desktop card, show mobile wrap */
    .desktop-card {
        display: none;
    }

    .mobile-search-wrap {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 480px;
        position: relative;
        z-index: 1;
        margin-top: 5%;
    }

    /* Hero adjustments */
    .search-main {
        padding: 32px 16px 110px;
        justify-content: flex-start;
        min-height: calc(100vh - 58px);
    }

    .search-hero {
        margin-bottom: 28px;
    }

    .search-title {
        font-size: 1.7rem;
        font-weight: 800;
    }

    .search-tagline {
        font-size: 1rem;
    }

    /* ── Mobile card base ── */
    .mob-card {
        background: var(--white);
        border-radius: 18px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
    }

    /* Destination card */
    .mob-dest {
        padding: 0 16px;
    }

    .mob-field-inner {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 16px 0;
        color: var(--text-light);
    }

    .mob-input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-size: 0.95rem;
        color: var(--text-mid);
        font-family: inherit;
        min-width: 0;
    }

    .mob-input::placeholder {
        color: var(--text-light);
    }

    .mob-select {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
    }

    /* Dates + Guests card */
    .mob-dates-guests {
        display: flex;
        align-items: stretch;
        padding: 16px;
        gap: 0;
    }

    .mob-half {
        flex: 1;
        min-width: 0;
    }

    .mob-half .mob-field-inner {
        padding: 6px 0 0;
    }

    .mob-divider-v {
        width: 1px;
        background: var(--border);
        margin: 0 16px;
        align-self: stretch;
    }

    .mob-label {
        display: block;
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 4px;
    }

    /* Budget + Travel card */
    .mob-budget-travel {
        padding: 18px 16px;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .mob-budget {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mob-slider-minmax {
        display: flex;
        justify-content: space-between;
        font-size: 0.74rem;
        color: var(--text-light);
        margin-top: 4px;
    }

    .mob-budget .budget-slider {
        width: 100%;
    }

    .mob-travel {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mob-travel .travel-btns {
        gap: 10px;
    }

    .mob-travel .travel-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 0.88rem;
    }

    /* Mobile CTA button */
    .mob-ai-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 16px;
        border-radius: 24px;
        background: linear-gradient(135deg, #4A40E8, #8B3DD8);
        color: var(--white);
        font-size: 1rem;
        font-weight: 700;
        font-family: inherit;
        border: none;
        cursor: pointer;
        box-shadow: 0 6px 24px rgba(107, 72, 232, 0.4);
        transition: transform 0.2s, opacity 0.2s;
        margin-top: 4px;
    }

    .mob-ai-btn:hover {
        transform: translateY(-1px);
        opacity: 0.92;
    }

}

/* end @media mobile */

/* Extra small */
@media (max-width: 380px) {
    .search-title {
        font-size: 1.45rem;
    }

    .search-tagline {
        font-size: 0.88rem;
    }
}