/* ============================================================
   HOTEL - PESQUISA
   ============================================================ */

#search-panel-hotel {
    width: 100%;
}


/* ------------------------------------------------------------
   Cabeçalho
   ------------------------------------------------------------ */

#search-panel-hotel .search-header {
    margin-bottom: 20px;
}

#search-panel-hotel .search-eyebrow {
    display: block;
    margin-bottom: 4px;

    color: var(--accent);

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

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#search-panel-hotel .search-header h1 {
    margin: 0;

    color: var(--primary);

    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

#search-panel-hotel .search-header p {
    margin: 6px 0 0;

    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.4;
}


/* ------------------------------------------------------------
   Formulário
   ------------------------------------------------------------ */

#search-panel-hotel .search-form {
    width: 100%;
}


/* ------------------------------------------------------------
   GRID DO HOTEL
   ------------------------------------------------------------ */

#search-panel-hotel .hotel-search-fields {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.8fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr) minmax(110px, 0.65fr) minmax(110px, 0.65fr) minmax(115px, 0.7fr);

    gap: 12px;

    align-items: end;

    width: 100%;
}


/* ------------------------------------------------------------
   Campos
   ------------------------------------------------------------ */

#search-panel-hotel .form-group {
    min-width: 0;
}

#search-panel-hotel .form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--text-muted);

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


/* ------------------------------------------------------------
   Wrapper
   ------------------------------------------------------------ */

#search-panel-hotel .input-wrapper {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
}

#search-panel-hotel .input-wrapper>i {
    position: absolute;

    left: 14px;

    z-index: 2;

    color: #93a4b8;

    font-size: 14px;

    pointer-events: none;
}


/* ------------------------------------------------------------
   Inputs
   ------------------------------------------------------------ */

#search-panel-hotel .input-wrapper input,
#search-panel-hotel .input-wrapper select {
    width: 100%;
    height: 46px;

    padding: 0 13px 0 40px;

    border: 1px solid #d7e1eb;
    border-radius: 9px;

    background: #f8fafc;

    color: var(--text);

    font: inherit;
    font-size: 12px;

    outline: none;
    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

#search-panel-hotel .input-wrapper input:hover,
#search-panel-hotel .input-wrapper select:hover {
    border-color: #c4d2df;
}

#search-panel-hotel .input-wrapper input:focus,
#search-panel-hotel .input-wrapper select:focus {
    border-color: var(--accent);

    background: #ffffff;

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


/* ------------------------------------------------------------
   Botão
   ------------------------------------------------------------ */

#search-panel-hotel .search-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 16px;
}

#search-panel-hotel .btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 165px;
    height: 44px;

    padding: 0 20px;

    border: 0;
    border-radius: 9px;

    background: var(--accent);

    color: #ffffff;

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

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(22, 131, 229, 0.16);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#search-panel-hotel .btn-search:hover {
    transform: translateY(-1px);

    background: var(--accent-hover);

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


/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1050px) {

    #search-panel-hotel .hotel-search-fields {
        grid-template-columns:
            2fr 1fr 1fr;
    }
}


@media (max-width: 760px) {

    #search-panel-hotel .hotel-search-fields {
        grid-template-columns:
            1fr 1fr;
    }

    #search-panel-hotel .hotel-destination {
        grid-column: 1 / -1;
    }
}


@media (max-width: 520px) {

    #search-panel-hotel .hotel-search-fields {
        grid-template-columns: 1fr;
    }

    #search-panel-hotel .hotel-destination {
        grid-column: auto;
    }

    #search-panel-hotel .btn-search {
        width: 100%;
    }
}

/* ============================================================
   HOTEL - RESULTADOS
   ============================================================ */

#hotel-results {
    width: 100%;
}


/* ============================================================
   CABEÇALHO DOS RESULTADOS
   ============================================================ */

.hotel-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 22px;
}

.hotel-results-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: var(--accent);

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

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hotel-results-header h2 {
    margin: 0;

    color: var(--primary);

    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.hotel-results-header p {
    margin: 5px 0 0;

    color: var(--text-muted);

    font-size: 13px;
}


/* ============================================================
   ORDENAÇÃO
   ============================================================ */

.hotel-results-sort {
    display: flex;
    flex-direction: column;

    gap: 6px;

    min-width: 190px;
}

.hotel-results-sort label {
    color: var(--text-muted);

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

.hotel-results-sort select {
    width: 100%;
    height: 42px;

    padding: 0 36px 0 13px;

    border: 1px solid #d7e1eb;
    border-radius: 9px;

    background: #ffffff;

    color: var(--text);

    font: inherit;
    font-size: 13px;

    outline: none;
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hotel-results-sort select:hover {
    border-color: #c4d2df;
}

.hotel-results-sort select:focus {
    border-color: var(--accent);

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


/* ============================================================
   LISTA DE HOTÉIS
   ============================================================ */

.hotel-results-list {
    display: flex;
    flex-direction: column;

    gap: 18px;

    width: 100%;
}


/* ============================================================
   CARD DO HOTEL
   ============================================================ */

.hotel-card {
    overflow: hidden;

    width: 100%;

    border: 1px solid #e0e7ef;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 4px 12px rgba(5, 35, 61, 0.035),
        0 12px 30px rgba(5, 35, 61, 0.025);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.hotel-card:hover {
    transform: translateY(-2px);

    border-color: #bddcf7;

    box-shadow:
        0 7px 18px rgba(5, 35, 61, 0.06),
        0 18px 38px rgba(5, 35, 61, 0.05);
}


/* ============================================================
   PARTE PRINCIPAL DO HOTEL
   ============================================================ */

.hotel-card-main {
    display: grid;

    grid-template-columns:
        180px minmax(0, 1fr);

    gap: 24px;

    padding: 22px 24px;
}


/* ============================================================
   IMAGEM / PLACEHOLDER
   ============================================================ */

.hotel-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 155px;

    border-radius: 13px;

    background:
        linear-gradient(145deg,
            #edf7ff,
            #dceefe);

    color: var(--accent);
}

.hotel-image-placeholder i {
    font-size: 32px;
}

.hotel-image-placeholder span {
    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ============================================================
   INFORMAÇÕES DO HOTEL
   ============================================================ */

.hotel-information {
    min-width: 0;
}

.hotel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.hotel-stars {
    display: flex;

    gap: 3px;

    margin-bottom: 7px;

    color: #f5a623;

    font-size: 11px;
}

.hotel-information h3 {
    margin: 0;

    color: var(--primary);

    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
}

.hotel-address {
    display: flex;
    align-items: center;

    gap: 6px;

    margin: 7px 0 0;

    color: #6c7d8f;

    font-size: 12px;
}

.hotel-address i {
    color: var(--accent);
}


/* ============================================================
   AVALIAÇÃO
   ============================================================ */

.hotel-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 5px;

    flex: 0 0 auto;
}

.hotel-rating>div {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 38px;

    border-radius:
        10px 10px 10px 3px;

    background: var(--primary);

    color: #ffffff;
}

.hotel-rating strong {
    font-size: 15px;
    font-weight: 800;
}

.hotel-rating span {
    color: #8290a0;

    font-size: 10px;
}


/* ============================================================
   COMODIDADES
   ============================================================ */

.hotel-amenities {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}

.hotel-amenity {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    border-radius: 7px;

    background: #f4f7fa;

    color: #5d6e80;

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

.hotel-amenity i {
    color: var(--accent);
}


/* ============================================================
   RESUMO DA ESTADIA
   ============================================================ */

.hotel-stay-summary {
    display: flex;
    flex-wrap: wrap;

    gap: 20px;

    margin-top: 18px;
    padding-top: 15px;

    border-top: 1px solid #edf1f5;
}

.hotel-stay-summary span {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #68798b;

    font-size: 11px;
}

.hotel-stay-summary i {
    color: var(--accent);
}


/* ============================================================
   ÁREA DAS OFERTAS
   ============================================================ */

.hotel-offers {
    border-top: 1px solid #e9eef4;

    background: #fbfcfe;
}

.hotel-offers-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 15px 24px;

    border-bottom: 1px solid #edf1f5;
}

.hotel-offers-title>div:first-child {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.hotel-offers-title strong {
    color: var(--primary);

    font-size: 13px;
}

.hotel-offers-title span {
    color: #7b8998;

    font-size: 10px;
}


/* ============================================================
   MELHOR PREÇO
   ============================================================ */

.hotel-best-price-summary {
    display: flex;
    align-items: baseline;

    gap: 8px;
}

.hotel-best-price-summary span {
    color: #7b8998;

    font-size: 10px;
}

.hotel-best-price-summary strong {
    color: var(--primary);

    font-size: 18px;
    font-weight: 800;
}


/* ============================================================
   LISTA DE OFERTAS
   ============================================================ */

.hotel-offers-list {
    padding: 0 24px;
}

.hotel-offer {
    display: grid;

    grid-template-columns:
        minmax(120px, 0.8fr) minmax(220px, 1.5fr) minmax(110px, 0.7fr) minmax(125px, 0.8fr) 120px;

    align-items: center;

    gap: 18px;

    min-height: 82px;

    border-bottom: 1px solid #edf1f5;
}

.hotel-offer:last-child {
    border-bottom: 0;
}


/* ============================================================
   MELHOR OFERTA
   ============================================================ */

.hotel-offer.is-best {
    position: relative;

    margin: 0 -24px;
    padding: 0 24px;

    background: #f2f9ff;
}


/* ============================================================
   FORNECEDOR
   ============================================================ */

.offer-provider {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 6px;
}

.offer-provider strong {
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}

.best-price-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 7px;

    border-radius: 999px;

    background: #dff5e9;

    color: #14834c;

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

    text-transform: uppercase;
    letter-spacing: 0.03em;
}


/* ============================================================
   QUARTO / REGIME
   ============================================================ */

.offer-room {
    display: flex;
    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

.offer-room strong {
    color: #34495e;

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

.offer-room>span {
    color: #77889a;

    font-size: 10px;
}


/* ============================================================
   CANCELAMENTO
   ============================================================ */

.offer-cancellation {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    margin-top: 3px;

    color: #8a6870;

    font-size: 9px;
}

.offer-cancellation.is-free {
    color: #248456;
}


/* ============================================================
   PREÇOS
   ============================================================ */

.offer-daily-price,
.offer-total-price {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.offer-daily-price span,
.offer-total-price span {
    color: #8492a1;

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

    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.offer-daily-price strong {
    color: #56687a;

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

.offer-total-price strong {
    color: var(--primary);

    font-size: 15px;
    font-weight: 800;
}


/* ============================================================
   BOTÃO SELECIONAR
   ============================================================ */

.hotel-select-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 39px;

    padding: 0 14px;

    border: 0;
    border-radius: 8px;

    background: var(--accent);

    color: #ffffff;

    font: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hotel-select-button:hover {
    transform: translateY(-1px);

    background: var(--accent-hover);

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


/* ============================================================
   LOADING
   ============================================================ */

.hotel-loading {
    align-items: center;

    gap: 15px;

    margin-bottom: 18px;
    padding: 20px;

    border: 1px solid #e0e7ef;
    border-radius: 13px;

    background: #ffffff;
}

.hotel-loading:not([hidden]) {
    display: flex;
}

.hotel-loading strong {
    display: block;

    color: var(--primary);

    font-size: 13px;
}

.hotel-loading span {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 11px;
}

.hotel-loading-spinner {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    border: 3px solid #e4edf5;
    border-top-color: var(--accent);
    border-radius: 50%;

    animation:
        hotel-spinner 0.7s linear infinite;
}

@keyframes hotel-spinner {

    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   SEM RESULTADOS
   ============================================================ */

.hotel-empty-results {
    padding: 46px 24px;

    border: 1px dashed #ccd8e5;
    border-radius: 15px;

    background: #ffffff;

    text-align: center;
}

.hotel-empty-results i {
    margin-bottom: 12px;

    color: #9aaabc;

    font-size: 32px;
}

.hotel-empty-results h3 {
    margin: 0 0 6px;

    color: var(--primary);

    font-size: 18px;
}

.hotel-empty-results p {
    margin: 0;

    color: var(--text-muted);

    font-size: 12px;
}


/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 950px) {

    .hotel-offer {
        grid-template-columns:
            1fr 1.5fr 1fr 120px;
    }

    .offer-daily-price {
        display: none;
    }
}


@media (max-width: 760px) {

    .hotel-results-header {
        align-items: stretch;
        flex-direction: column;
    }

    .hotel-results-sort {
        width: 100%;
    }

    .hotel-card-main {
        grid-template-columns: 1fr;
    }

    .hotel-image-placeholder {
        min-height: 120px;
    }

    .hotel-title-row {
        gap: 14px;
    }

    .hotel-offer {
        grid-template-columns: 1fr;

        gap: 10px;

        padding: 15px 0;
    }

    .hotel-offer.is-best {
        padding: 15px 24px;
    }

    .offer-daily-price {
        display: flex;
    }

    .hotel-select-button {
        width: 100%;
    }
}


@media (max-width: 520px) {

    .hotel-title-row {
        flex-direction: column;
    }

    .hotel-rating {
        align-items: flex-start;
    }

    .hotel-offers-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .hotel-best-price-summary {
        width: 100%;
    }

    .hotel-offers-list {
        padding: 0 18px;
    }

    .hotel-offer.is-best {
        margin: 0 -18px;
        padding: 15px 18px;
    }
}