body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #f5f5f5;
}

/* HEADER */
header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
}

.logo {
    font-size: 26px;
    font-weight: 700;
}
.logo span { color: #d30000; }

.logo a {
    text-decoration: none !important;
    color: inherit;
}

.logo-img {
  height: 80px;
  width: auto;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

.menu {
    display: flex;
    align-items: center;
    gap: 25px;
}
.menu a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    white-space: nowrap;
}
.menu a:hover { color: #c62828; }

.btn-book {
    background: #c62828;
    color: white !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

/* SEARCH BOX */
.search-wrapper {
    background: white;
    width: 95%;
    max-width: 950px;
    margin: 50px auto;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-items: end;
}

.search-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/static/img/orlando.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center -78px;
    z-index: -1;
}

.field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.field label {
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}

.field input {
    padding: 13px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

/* BUTTON */
.btn-search {
    background: #088d0f;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .search-wrapper { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .menu { display: none; }
    .search-wrapper { grid-template-columns: 1fr; }
    .btn-search { width: 100%; }
}

/* ---------- CAMPO LOCATION ---------- */
.field select {
    padding: 13px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path fill='gray' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.field select:hover,
.field select:focus {
    border-color: #088d0f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 141, 15, 0.15);
}

/* ---------- CALENDÁRIO COREUI (POPUP) ---------- */
.calendar-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border: 1px solid #e5e5e5;
    z-index: 999;
    min-width: 600px;
    max-width: 650px;
}

.calendar-popup.hidden {
    display: none !important;
}

/* Customização do calendário CoreUI */
#coreUICalendar {
    background: white;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    display: block !important;
}

/* Garantir que o calendário seja visível */
#coreUICalendar .calendar {
    display: flex !important;
    gap: 10px;
}

/* Células de dias */
#coreUICalendar .calendar-cell {
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 8px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#coreUICalendar .calendar-cell:hover:not(.disabled) {
    background: #f2f2f2 !important;
}

/* Dias selecionados no range */
#coreUICalendar .calendar-cell.range,
#coreUICalendar .calendar-cell.range-start,
#coreUICalendar .calendar-cell.range-end,
#coreUICalendar .calendar-cell.selected {
    background: #088d0f !important;
    color: white !important;
}

#coreUICalendar .calendar-cell.range-hover {
    background: rgba(8, 141, 15, 0.2) !important;
}

/* Navegação do calendário */
#coreUICalendar .calendar-nav,
#coreUICalendar .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

#coreUICalendar .calendar-nav button,
#coreUICalendar button {
    border: none;
    background: transparent;
    color: #333;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#coreUICalendar .calendar-nav button:hover,
#coreUICalendar button:hover {
    background: #f2f2f2;
}

/* Grid dos dias */
#coreUICalendar .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* Cabeçalho dos dias da semana */
#coreUICalendar .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-weight: 600;
    color: #666;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* ========================================
   📱 MOBILE: CALENDÁRIO OTIMIZADO
   ======================================== */
@media (max-width: 768px) {
    .calendar-popup {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 95vw !important;
        max-width: 380px !important;
        min-width: unset !important;
        max-height: 85vh;
        overflow-y: auto;
        padding: 20px 16px;
        border-radius: 20px;
    }

    /* Overlay escuro atrás do calendário */
    .calendar-popup::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    /* Botão de fechar no mobile */
    .calendar-popup::after {
        content: '✕';
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        background: #f5f5f5;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #666;
        cursor: pointer;
        z-index: 10;
        font-weight: 600;
        line-height: 32px;
        text-align: center;
    }

    /* 1 mês apenas no mobile */
    #coreUICalendar .calendar {
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* Células maiores para toque */
    #coreUICalendar .calendar-cell {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 12px 8px !important;
        border-radius: 10px !important;
        font-weight: 500;
    }

    /* Espaçamento maior entre dias */
    #coreUICalendar .calendar-days {
        gap: 4px !important;
    }

    /* Cabeçalho dos dias maior */
    #coreUICalendar .calendar-weekdays {
        padding: 12px 0 !important;
        font-size: 14px !important;
        gap: 4px !important;
    }

    #coreUICalendar .calendar-weekdays span {
        padding: 8px 4px;
    }

    /* Botões de navegação maiores */
    #coreUICalendar .calendar-nav button,
    #coreUICalendar button {
        padding: 12px 16px !important;
        font-size: 18px !important;
        min-width: 44px;
        min-height: 44px;
    }

    /* Título do mês maior */
    #coreUICalendar .calendar-header {
        padding: 16px 10px !important;
        margin-bottom: 8px;
    }

    #coreUICalendar .calendar-header h4,
    #coreUICalendar .calendar-header .h4 {
        font-size: 18px !important;
        font-weight: 700 !important;
    }

    /* Remover hover no mobile (só touch) */
    #coreUICalendar .calendar-cell:hover {
        background: transparent !important;
    }

    /* Feedback visual ao tocar */
    #coreUICalendar .calendar-cell:active:not(.disabled) {
        background: #e0e0e0 !important;
        transform: scale(0.95);
    }

    /* Dias desabilitados mais claros */
    #coreUICalendar .calendar-cell.disabled {
        opacity: 0.3;
        color: #999 !important;
    }

    /* Container com scroll suave */
    .calendar-popup {
        -webkit-overflow-scrolling: touch;
    }

    /* Espaçamento interno melhor */
    #coreUICalendar {
        padding: 8px 4px;
    }

    /* Garantir que a grid ocupe toda largura */
    #coreUICalendar .calendar-days,
    #coreUICalendar .calendar-weekdays {
        width: 100%;
    }

    /* Ajuste para múltiplos calendários no mobile (scroll horizontal) */
    #coreUICalendar .calendar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    #coreUICalendar .calendar > div {
        scroll-snap-align: start;
        min-width: 100%;
    }
}

/* ========================================
   📱 MOBILE EXTRA PEQUENO (< 375px)
   ======================================== */
@media (max-width: 375px) {
    .calendar-popup {
        width: 98vw !important;
        padding: 16px 12px !important;
    }

    #coreUICalendar .calendar-cell {
        min-height: 44px !important;
        font-size: 15px !important;
        padding: 10px 6px !important;
    }

    #coreUICalendar .calendar-header h4,
    #coreUICalendar .calendar-header .h4 {
        font-size: 16px !important;
    }
}

/* ---------- POPUP GUESTS ---------- */
.guests-field { position: relative; }

.guest-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 260px;
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border: 1px solid #e5e5e5;
    z-index: 999;
}

.hidden {
    display: none !important;
}

.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.guest-counter {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 40px;
    padding: 6px 12px;
}
.guest-counter button {
    background: none;
    border: none;
    font-size: 22px;
    width: 28px;
    cursor: pointer;
}
.guest-counter span {
    width: 30px;
    text-align: center;
    font-size: 18px;
}

.guest-confirm {
    margin-top: 10px;
    width: 100%;
    background: #088d0f;
    border: none;
    padding: 14px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
}

/* ---------- POPUP DAS CIDADES ---------- */
.city-field { position: relative; }

.city-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    max-height: 250px;
    background: white;
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid #e5e5e5;
    overflow-y: auto;
    z-index: 999;
}

.city-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.city-popup li {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 15px;
}

.city-popup li:hover { background: #f2f2f2;}

/* ---------- WRAPPER DOS BOTÕES EXTRAS (ABAIXO DA BARRA) ---------- */
.filters-wrapper {
    background: #ffffff;
    width: 95%;
    max-width: 950px;
    margin: -35px auto -30px;
    padding: 10px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    border: 1px solid #ccc;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.filter-btn:hover {
    background: #088d0f;
    color: #ffffff;
    border-color: #088d0f;
    transform: translateY(-1px);
}

.results-container {
    width: 100%;
    margin-top: 40px;
    background-color: #ffffff;
    border-radius: 16px;
    min-height: 200px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.results-container {
    width: 100%;
    margin-top: 80px;
    padding: 30px 80px 40px;
    box-sizing: border-box;
}

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

.results-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* 🔹 CONTEÚDO INICIAL: CARDS PROMOCIONAIS */
.initial-content {
    padding: 24px 0 10px;
}

.promo-banners {
    display: flex;
    border-radius: 5px;
    gap: 24px;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: auto;
    padding: 0 4px 10px;
}

.promo-card {
    flex: 0 0 32%;
    min-width: 260px;
    max-width: 380px;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    background: #000;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.promo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.promo-card:hover img {
    transform: scale(1.05);
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
    .promo-banners {
        gap: 16px;
    }
    .promo-card {
        flex: 0 0 70%;
    }
}

@media (max-width: 600px) {
    .promo-card {
        flex: 0 0 85%;
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .results-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .results-grid { grid-template-columns: 1fr; }
}

.home-card {
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 400px;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.home-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.home-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-card:hover .home-image img {
    transform: scale(1.05);
}

.home-image::after {
    content: "♥";
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.home-info {
    padding: 16px 18px 20px;
    font-size: 14px;
    flex-grow: 1;
}

.home-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #222;
}

.home-location,
.home-distance,
.home-dates {
    margin: 0;
    color: #717171;
    font-size: 13.5px;
    line-height: 1.4;
}

.home-dates {
    margin-top: 4px;
}

.home-price {
    margin: 10px 0 0;
    font-size: 15px;
    color: #111;
}

.home-price span {
    font-weight: 700;
    color: #000;
}

.pagination-controls {
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: #555;
}

.pagination-controls button {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #ffffff;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.pagination-controls button:hover:not(:disabled) {
    background: #088d0f;
    color: #ffffff;
    border-color: #088d0f;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.pagination-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.pagination-controls span {
    font-weight: 500;
}

/* ------------------------ SEÇÃO TOP PACKAGES ------------------------ */
.special-packages-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 8%;
  background: #fff;
  gap: 40px;
  flex-wrap: wrap;
}

.special-packages-left {
  flex: 1;
  min-width: 250px;
}

.special-packages-left h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin-bottom: 10px;
}

.special-packages-left h2 span {
  color: #2a36ff;
}

.special-packages-left p {
  margin: 4px 0;
  color: #555;
  font-size: 0.95rem;
}

.special-packages-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.special-arrow-btn {
  border: none;
  background: #fff;
  color: #222;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-left: 6px;
  transition: all 0.2s ease;
}

.special-arrow-btn:hover {
  background: #2a36ff;
  color: #fff;
}

.special-packages-right {
  flex: 2.2;
  position: relative;
  overflow: hidden;
}

.special-packages-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}

.special-packages-carousel::-webkit-scrollbar {
  display: none;
}

.special-packages-carousel .home-card {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.special-packages-carousel .home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.special-packages-carousel .home-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.special-packages-carousel .home-info {
  padding: 14px 16px;
}

.special-packages-carousel .home-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.special-packages-carousel .home-info p {
  font-size: 0.85rem;
  color: #555;
  margin: 2px 0;
}

.special-packages-carousel .home-price {
  margin-top: 8px;
  font-weight: 600;
  color: #2a36ff;
}

.special-packages-carousel .home-price span {
  font-size: 1rem;
  color: #2a36ff;
}

.results-search-wrapper {
    margin-top: 40px;
    padding-top: 32px;
    min-height: 10px;
    border-top: 1px solid #e4e4e4;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 40%);
    border-radius: 16px;
}

.results-search-wrapper .loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px;
    color: #222;
}

.hidden {
    display: none;
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  width: 100%;
  position: relative;
}

.spinner {
  border: 4px solid #e5e5e5;
  border-top: 4px solid #088d0f;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

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

@media (max-width: 900px) {
  .special-packages-section {
    flex-direction: column;
  }
  .special-packages-carousel .home-card {
    flex: 0 0 75%;
  }
}

/* =========================================
   AJUSTES PARA CELULAR (MOBILE FIRST)
   ========================================= */
@media (max-width: 768px) {

  body {
    background: #ffffff;
  }

  header {
    padding: 12px 16px;
    justify-content: center;
  }

  .logo {
    font-size: 20px;
    text-align: center;
    width: 100%;
  }

  .logo-img {
    display: none;
  }

  .menu {
    display: none;
  }

  .search-wrapper {
    margin: 16px auto 12px;
    padding: 16px;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-wrapper::before {
    display: none !important;
    background: none !important;
  }

  .field label {
    font-size: 12px;
  }

  .field input,
  .field select {
    font-size: 14px;
    padding: 10px 12px;
  }

  .btn-search {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin-top: 4px;
  }

  /* Calendário em mobile - 1 mês */
  .calendar-popup {
    left: 50%;
    transform: translateX(-50%);
    width: 95vw;
    max-width: 360px;
  }

  .filters-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 8px;
    padding: 10px 12px;
    border-radius: 0;
    box-shadow: none;
    overflow-x: auto;
  }

  .filters-wrapper::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 12px;
  }

  .results-container {
    margin-top: 0;
    padding: 16px 12px 24px;
    border-radius: 0;
    box-shadow: none;
  }

  .results-inner {
    margin: 0;
    max-width: 100%;
  }

  .promo-banners {
    gap: 12px;
    padding: 0 0 10px;
    scroll-snap-type: x mandatory;
  }

  .promo-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
    height: 200px;
  }

  .special-packages-section {
    padding: 24px 12px;
    flex-direction: column;
    gap: 20px;
  }

  .special-packages-left h2 {
    font-size: 1.6rem;
  }

  .special-packages-right {
    width: 100%;
  }

  .special-packages-carousel {
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .special-packages-carousel .home-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-height: auto;
  }

  .special-packages-carousel .home-image img {
    height: 150px;
  }

  .results-search-wrapper {
    margin-top: 24px;
    padding-top: 16px;
    border-radius: 0;
  }

  .results-title {
    padding: 0 4px;
    font-size: 1.1rem;
  }

  .results-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .home-card {
    min-height: auto;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  }

  .home-image {
    padding-top: 65%;
  }

  .home-info {
    padding: 12px 14px 14px;
    font-size: 13px;
  }

  .home-info h3 {
    font-size: 15px;
  }

  .home-price {
    font-size: 14px;
  }

  .guest-popup {
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
  }

  .city-popup {
    width: 100%;
    max-width: 100%;
  }

  .loader {
    height: 220px;
  }
}

/* ✅ POPUP DE SEM RESULTADOS */
.no-results-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.no-results-modal.active {
  display: flex;
}

.no-results-box {
  background: #fff;
  border-radius: 22px;
  padding: 30px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  animation: fadeInScale 0.25s ease;
}

.no-results-box h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #222;
}

.no-results-box p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 18px;
}

.no-results-box button {
  background: #088d0f;
  border: none;
  padding: 10px 26px;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.no-results-box button:hover {
  background: #066b0b;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ✅ LOADING GLOBAL CENTRALIZADO */
.global-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.global-loader.hidden {
  display: none;
}

.global-loader .spinner {
  border: 4px solid #e5e5e5;
  border-top: 4px solid #088d0f;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* 🎨 ESTILO BOOTSTRAP PARA O FLATPICKR */
.flatpickr-calendar {
    background: white;
    border-radius: 12px !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #dee2e6 !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.flatpickr-months {
    background: white !important;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 0;
}

.flatpickr-current-month {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.flatpickr-monthDropdown-months {
    appearance: none;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 600;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: #6c757d !important;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: #e9ecef;
    fill: #212529 !important;
}

.flatpickr-weekdays {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    height: 40px;
}

.flatpickr-weekday {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.875rem;
}

/* 🔧 CORREÇÃO: Alinhamento dos dias no Flatpickr */

/* Remove centralização e alinha à esquerda */
.flatpickr-day {
    border: none !important;
    color: #212529;
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.15s;
    margin: 2px;
    text-align: left !important; /* Força alinhamento à esquerda */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Alinha à esquerda */
    padding-left: 8px !important; /* Adiciona padding à esquerda */
}

/* Garante que o container dos dias use grid corretamente */
.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    padding: 8px;
    min-width: 280px;
    max-width: 320px;
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px !important;
}

/* Ajusta os dias para ocuparem toda a célula do grid */
.flatpickr-day {
    width: 100% !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 !important;
    padding-left: 12px !important;
    box-sizing: border-box !important;
}

/* Garante que dias selecionados também fiquem alinhados */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #088d0f !important;
    border-color: #088d0f !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(8, 141, 15, 0.3);
    text-align: left !important;
    justify-content: flex-start !important;
}

.flatpickr-day.inRange {
    background: #d4edda !important;
    border-color: #d4edda !important;
    color: #155724;
    box-shadow: none;
    text-align: left !important;
    justify-content: flex-start !important;
}

.flatpickr-day.today {
    border: 2px solid #088d0f !important;
    font-weight: 700;
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Hover mantém alinhamento */
.flatpickr-day:hover:not(.flatpickr-disabled) {
    background: #e9ecef !important;
    border-color: #e9ecef !important;
    color: #212529;
    text-align: left !important;
    justify-content: flex-start !important;
}


/* ============================= */
/* BALÃO FLUTUANTE (COM AVATAR FORA) */
/* ============================= */
#chatFloatingWrapper {
    position: fixed;
    bottom: 24px;
    right: 24px; /* Fixado na direita */
    z-index: 9999;
    max-width: 350px;
}

#chatAlert {
    position: relative;
    background: linear-gradient(135deg, #40c9ff, #39c0ed);
    color: #000;
    font-size: 14px;
    padding: 15px 20px;
    border-radius: 20px !important;
    max-width: 300px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    
    /* Margem extra à esquerda para o texto não ficar colado na foto */
    margin-left: 25px; 

    /* CORREÇÃO PARA O TEXTO NÃO FUGIR */
    white-space: normal; 
    line-height: 1.4;
    height: auto;
    display: block;
    
    animation: pulse 1.6s infinite;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

#chatAlert:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

/* ESTILO DA IMAGEM DO AVATAR FLUTUANTE */
.avatar-alerta {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Posição negativa para sair do balão */
    top: -25px;
    left: -30px;
    border: 3px solid #ffffff; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    object-fit: cover;
    z-index: 10;
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* ============================= */
/* JANELA DO CHAT */
/* ============================= */
#chatWidget {
    position: fixed;
    bottom: 104px;
    right: 24px; /* Alinhado com o balão */
    width: 360px !important;
    height: 520px !important;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.chat-hidden {
    display: none !important;
}

#chatWidget .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================= */
/* HEADER DO CHAT (AGORA AZUL) */
/* ============================= */
.bg-header-blue {
    background-color: #4facfe;
    background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.avatar-header {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-right: 10px;
}

.card-header {
    /* Mantém estrutura flex, mas a cor agora vem de bg-header-blue no HTML */
    padding: 14px 16px;
    font-weight: 600;
    font-size: 15px;
}

/* BOTÃO FECHAR AJUSTADO */
#chatCloseBtn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

#chatCloseBtn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* ============================= */
/* MENSAGENS */
/* ============================= */
#chatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: linear-gradient(#f4f6f8, #eef1f4);
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
}

.chat-msg {
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    max-width: 85% !important;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.chat-user {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    margin-left: auto; /* Alinha à direita */
}

.chat-bot {
    background: #e9ecef;
    color: #000;
    margin-right: auto; /* Alinha à esquerda */
}

.chat-msg br {
    margin-bottom: 6px;
    display: block;
}

/* ============================= */
/* INPUT E BOTÃO SEPARADOS */
/* ============================= */
#chatWidget .card-footer {
    padding: 12px !important;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

#chatInput {
    height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
}

#chatInput:focus {
    border-color: #39c0ed;
    box-shadow: 0 0 0 2px rgba(57, 192, 237, 0.2);
}

#chatSendBtn {
    height: 44px;
    padding: 0 20px;
    border: none;
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: auto;
}

#chatSendBtn:hover {
    transform: scale(1.05);
}

/* ============================= */
/* ESTILO DOS LINKS NO CHAT */
/* ============================= */
.chat-msg a {
    text-decoration: underline;
    font-weight: bold;
}

/* Links no balão do robô (fundo cinza) -> Azul */
.chat-bot a {
    color: #0d6efd; 
}

/* Links no balão do usuário (fundo azul) -> Branco */
.chat-user a {
    color: #ffffff !important;
}

/* Negrito dentro do chat */
.chat-msg strong {
    font-weight: 700;
}

/* --- TÍTULO DO CABEÇALHO MAIS ELEGANTE --- */
.chat-title-text {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600; /* Semi-bold (mais leve que o negrito padrão) */
    font-size: 16px;  /* Tamanho ideal */
    letter-spacing: 0.5px; /* Leve respiro entre as letras */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Sombra sutil para destacar do azul */
    color: #ffffff;
}

/* ============================= */
/* MOBILE DO CHAT */
/* ============================= */
@media (max-width: 768px) {
    #chatWidget {
        width: 94% !important;
        left: 3%;
        right: auto;
        bottom: 90px;
        height: 440px !important;
    }

    #chatFloatingWrapper {
        left: 20px;
        right: auto;
        max-width: 300px;
    }

    #chatAlert {
        max-width: 90%;
    }
}

/* ================================================= */
/* UTILITÁRIO PARA OCULTAR ELEMENTOS (JavaScript)   */
/* ================================================= */

/* Força o elemento a sumir, sobrescrevendo flex/grid */
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}