/* ============================================================
   HERO
============================================================ */
/* ============================================================
   HERO
============================================================ */

.travel-hero {
    position: relative;

    overflow: hidden;

    padding:
        48px 0 92px;

    color: #ffffff;

    /*
     * Parte do azul institucional e abre levemente
     * para dar profundidade sem mudar a identidade.
     */
    background:
        linear-gradient(135deg,
            #011d73 0%,
            #062b8f 48%,
            #011d73 100%);

    /*
     * Faz a transição do header para o hero
     * ganhar profundidade.
     */
    box-shadow:
        inset 0 12px 24px rgba(0, 8, 40, 0.16);
}
/* ============================================================
   HERO BACKGROUND DECORATION
============================================================ */

.travel-hero::before {
    content: "";

    position: absolute;

    top: -280px;
    right: -180px;

    width: 600px;
    height: 600px;

    border:
        1px solid rgba(255, 255, 255, 0.05);

    border-radius: 50%;
}

.travel-hero::after {
    content: "";

    position: absolute;

    top: -120px;
    right: 40px;

    width: 330px;
    height: 330px;

    background:
        radial-gradient(circle,
            rgba(22, 131, 229, 0.12),
            transparent 70%);

    border-radius: 50%;
}

.travel-hero .container {
    position: relative;

    z-index: 2;
}


/* ============================================================
   HERO CONTENT
============================================================ */

.hero-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 160px;

    gap: 50px;

    margin-bottom: 38px;
}

.hero-text {
    max-width: 650px;
}

.hero-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 13px;

    color: #75bdfd;

    font-size: 10px;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 0.11em;
}

.hero-eyebrow i {
    font-size: 9px;
}

.hero-text {
    max-width: none;
}

.hero-text h1 {
    max-width: none;

    color: #ffffff;

    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -0.035em;

    white-space: nowrap;
}

.hero-text h1 span {
    color: #78afff;
}

.hero-text h1 .hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-text h1 .hero-title-highlight {
    color: #78afff;
}

.hero-text h1 span {
    color: #78afff;
    white-space: nowrap;
}

.hero-text p {
    max-width: 590px;

    margin-top: 16px;

    color:
        rgba(255, 255, 255, 0.66);

    font-size: 14px;
    line-height: 1.65;
}


/* ============================================================
   HERO DECORATION
============================================================ */

.hero-decoration {
    flex: 0 0 auto;

    padding-right: 40px;
}

.hero-decoration-circle {
    position: relative;

    width: 115px;
    height: 115px;

    display: flex;

    align-items: center;
    justify-content: center;

    color:
        rgba(255, 255, 255, 0.90);

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 50%;

    font-size: 34px;

    transform: rotate(-15deg);

    backdrop-filter: blur(5px);
}

.hero-decoration-circle::before {
    content: "";

    position: absolute;

    width: 145px;
    height: 145px;

    border:
        1px dashed rgba(255, 255, 255, 0.10);

    border-radius: 50%;
}


/* ============================================================
   SEARCH SECTION
============================================================ */

.search-section {
    position: relative;

    z-index: 20;

    margin-top: -58px;

    padding-bottom: 55px;
}


/* ============================================================
   SEARCH BOX
============================================================ */

.search-box {
    position: relative;

    padding:
        30px 32px 32px;

    background:
        rgba(255, 255, 255, 0.985);

    border:
        1px solid rgba(224, 230, 238, 0.9);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-xl);
}


/* ============================================================
   SEARCH PANEL
============================================================ */

.product-search-panel {
    width: 100%;
}


/* ============================================================
   SEARCH HEADER
============================================================ */

.search-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.search-eyebrow {
    display: block;

    margin-bottom: 6px;

    color: var(--accent);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.11em;
}

.search-header h1 {
    color: var(--primary);

    font-size: 24px;
    line-height: 1.25;

    font-weight: 750;

    letter-spacing: -0.025em;
}

.search-header p {
    max-width: 680px;

    margin-top: 6px;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.5;
}


/* ============================================================
   SEARCH FORM
============================================================ */

.search-form {
    width: 100%;
}


/* ============================================================
   TRIP TYPE
============================================================ */

.trip-type {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 20px;
}

.radio-option {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 34px;

    padding: 0 12px;

    color: #5c6878;

    background: #f6f8fa;

    border:
        1px solid #edf0f4;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);

    user-select: none;
}

.radio-option:hover {
    background: #f0f6fc;

    border-color:
        rgba(22, 131, 229, 0.20);
}

.radio-option:has(input:checked) {
    color: var(--accent);

    background: #edf7ff;

    border-color:
        rgba(22, 131, 229, 0.25);
}

.radio-option input {
    width: 14px;
    height: 14px;

    margin-right: 7px;

    accent-color: var(--accent);
}


/* ============================================================
   GENERIC SEARCH FIELDS
============================================================ */

.search-fields {
    display: grid;

    gap: 10px;

    align-items: end;
}


/* ============================================================
   FORM GROUP
============================================================ */

.form-group {
    min-width: 0;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #485568;

    font-size: 10px;
    font-weight: 700;
}


/* ============================================================
   INPUT WRAPPER
============================================================ */

.input-wrapper {
    position: relative;

    width: 100%;

    display: flex;

    align-items: center;
}

.input-wrapper>i {
    position: absolute;

    left: 14px;

    z-index: 2;

    color: #8c99a9;

    font-size: 13px;

    pointer-events: none;

    transition: var(--transition);
}


/* ============================================================
   INPUT / SELECT
============================================================ */

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    height: 50px;

    padding:
        0 13px 0 39px;

    color: var(--text);

    background: #f9fafc;

    border:
        1px solid #e0e6ed;

    border-radius: 11px;

    outline: none;

    font-size: 12px;

    transition: var(--transition);
}

.input-wrapper input::placeholder {
    color: #a4aeba;
}

.input-wrapper input:hover,
.input-wrapper select:hover {
    background: #ffffff;

    border-color: #cbd5df;
}

.input-wrapper:focus-within>i {
    color: var(--accent);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    background: #ffffff;

    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(22, 131, 229, 0.08);
}


/* ============================================================
   AUTOFILL
============================================================ */

.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);

    box-shadow:
        0 0 0 1000px #ffffff inset;
}


/* ============================================================
   SWAP BUTTON
============================================================ */

.swap-container {
    display: flex;

    align-items: flex-end;
    justify-content: center;

    padding-bottom: 4px;
}

.btn-swap {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--accent);

    background: #edf7ff;

    border:
        1px solid rgba(22, 131, 229, 0.18);

    border-radius: 50%;

    font-size: 12px;

    transition: var(--transition);
}

.btn-swap:hover {
    color: #ffffff;

    background: var(--accent);

    border-color: var(--accent);

    transform: rotate(180deg);

    box-shadow:
        0 6px 14px rgba(22, 131, 229, 0.22);
}


/* ============================================================
   SEARCH ACTIONS
============================================================ */

.search-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    margin-top: 22px;
}


/* ============================================================
   SEARCH BUTTON
============================================================ */

.btn-search {
    min-width: 165px;
    min-height: 50px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 24px;

    color: #ffffff;

    background:
        linear-gradient(135deg,
            var(--accent),
            #0873d2);

    border-radius: 11px;

    box-shadow:
        0 8px 20px rgba(22, 131, 229, 0.23);

    font-size: 12px;
    font-weight: 700;

    transition: var(--transition);
}

.btn-search:hover {
    transform: translateY(-2px);

    box-shadow:
        0 11px 25px rgba(22, 131, 229, 0.30);
}

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


/* ============================================================
   CHECKBOX
============================================================ */

.filter-check {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--text-secondary);

    font-size: 11px;

    cursor: pointer;
}

.filter-check input[type="checkbox"] {
    width: 15px;
    height: 15px;

    accent-color: var(--accent);
}


/* ============================================================
   FORM ERROR
============================================================ */

.form-group.has-error label {
    color: var(--danger);
}

.form-group.has-error .input-wrapper input,

.form-group.has-error .input-wrapper select {
    border-color: var(--danger);
}

.form-error {
    display: block;

    margin-top: 5px;

    color: var(--danger);

    font-size: 9px;
}


/* ============================================================
   GENERIC BADGES
============================================================ */

.badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 5px 8px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 700;
}

.badge-success {
    color: #157347;

    background: #eaf7f0;
}

.badge-primary {
    color: var(--accent);

    background: #edf6fd;
}

.badge-warning {
    color: #946200;

    background: #fff7df;
}


/* ============================================================
   INFO MESSAGE
============================================================ */

.info-message {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    padding: 12px 14px;

    color: #475467;

    background: #f5f9fd;

    border:
        1px solid rgba(22, 131, 229, 0.14);

    border-radius: var(--radius-sm);

    font-size: 11px;
}

.info-message i {
    margin-top: 2px;

    color: var(--accent);
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 850px) {

    .travel-hero {
        padding:
            35px 0 80px;
    }

    .hero-content {
        min-height: auto;

        margin-bottom: 30px;
    }

    .hero-decoration {
        display: none;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .search-section {
        margin-top: -48px;

        padding-bottom: 45px;
    }

    .search-box {
        padding:
            25px 22px 27px;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .travel-hero {
        padding:
            28px 0 68px;
    }

    .hero-content {
        margin-bottom: 25px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        margin-top: 12px;

        font-size: 12px;
    }

    .search-section {
        margin-top: -38px;

        padding-bottom: 35px;
    }

    .search-box {
        padding:
            22px 17px 24px;

        border-radius: 16px;
    }

    .search-header h1 {
        font-size: 21px;
    }

    .search-header p {
        font-size: 11px;
    }

    .trip-type {
        flex-wrap: wrap;
    }

    .input-wrapper input,
    .input-wrapper select {
        height: 48px;
    }

    .search-actions {
        margin-top: 20px;
    }

    .btn-search {
        width: 100%;
    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}

/* ============================================================
   ÁREA GLOBAL DE RESULTADOS
   Espaçamento entre os resultados e o footer
   ============================================================ */

.results-section {
    padding-top: 8px;
    padding-bottom: 64px;
}

@media (max-width: 760px) {
    .results-section {
        padding-bottom: 40px;
    }
}