/* ========================================
   VARIÁVEIS CSS (CORES E TEMAS)
   Centraliza todas as cores do site
   ========================================= */
:root {
    --primary: #003f2c;    /* Verde escuro principal do Mirador */
    --accent: #4caf50;     /* Verde claro para botões e destaques */
    --bg: #ffffff;         /* Cor de fundo padrão */
    --text: #484848;       /* Cor do texto principal */
    --light-gray: #f5f5f5; /* Cinza claro para backgrounds */
}
/* FIM: Variáveis */


/* ========================================
   CONFIGURAÇÕES GLOBAIS DO BODY
   ========================================= */
body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
}
/* FIM: Configurações globais */


/* ========================================
   CONTAINER PRINCIPAL
   Centraliza e limita largura do conteúdo
   ========================================= */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}
/* FIM: Container */


/* ========================================
   CABEÇALHO DO SITE
   ========================================= */
.main-header {
    background: var(--primary);
    padding: 15px 0;
    text-align: center;
    border-bottom: 3px solid #fff;
}

.logo {
    max-height: 80px;
}
/* FIM: Cabeçalho */


/* ========================================
   GRID LAYOUT PRINCIPAL
   Layout em 2 colunas:
   - Coluna 1 (maior): Detalhes da acomodação
   - Coluna 2 (menor): Card de reserva
   ========================================= */
.accommodation-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr; /* 1.8 pra esquerda, 1 pra direita */
    gap: 40px;
    margin-top: 40px;
}
/* FIM: Grid layout */


/* ========================================
   ELEMENTOS DA COLUNA ESQUERDA
   ========================================= */

/* Título principal da acomodação */
.title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Badge "GANHE 5% DE CRÉDITO" */
.badge-fidelidade {
    background: var(--primary);
    color: #fff;
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Imagem principal da galeria */
.main-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Seção "Sobre a acomodação" */
.info-section {
    margin-top: 30px;
}

/* Container das tags de comodidades */
.comodidades {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

/* Cada tag individual (Ar condicionado, Lareira, etc) */
.tag {
    background: var(--light-gray);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px dashed #ccc;
}
/* FIM: Elementos da coluna esquerda */


/* ========================================
   CARD DE RESERVA (COLUNA DIREITA)
   ========================================= */

/* Container principal do card */
.booking-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    position: sticky;        /* Fica fixo ao rolar a página */
    top: 20px;               /* Distância do topo quando fixo */
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* ========================================
   SEÇÃO DE PREÇO
   ========================================= */
.price-box small {
    text-transform: uppercase;
    color: #888;
    font-size: 0.7rem;
}

.price-box .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.price-box .value span {
    font-size: 0.9rem;
    font-weight: 400;
}
/* FIM: Seção de preço */


/* ========================================
   FORMULÁRIO DE CONSULTA
   ========================================= */
.form-whatsapp {
    margin-top: 20px;
}

/* Cada campo do formulário */
.field {
    margin-bottom: 15px;
}

/* Labels dos campos */
.field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Inputs e selects */
.field input, 
.field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}
/* FIM: Formulário */


/* ========================================
   BOTÃO DE RESERVA/CONSULTA
   ========================================= */
.btn-reserva {
    width: 100%;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

/* Texto pequeno dentro do botão */
.btn-reserva small {
    display: block;
    font-weight: 300;
    font-size: 0.7rem;
    margin-top: 4px;
    opacity: 0.9;
}

/* Efeito hover no botão */
.btn-reserva:hover {
    filter: brightness(1.1);    /* Deixa mais claro */
    transform: translateY(-2px); /* Sobe levemente */
}
/* FIM: Botão de reserva */


/* ========================================
   MENSAGEM DE SEGURANÇA
   ========================================= */
.safe-booking {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 15px;
    color: #666;
}
/* FIM: Card de reserva */


/* ========================================
   RESPONSIVIDADE MOBILE
   ========================================= */
@media (max-width: 768px) {
    /* Em telas pequenas, vira 1 coluna */
    .accommodation-grid {
        grid-template-columns: 1fr;
    }
    
    /* Card de reserva sobe para o topo no mobile */
    .booking-column {
        order: -1;
    }
}
/* FIM: Responsividade */

/* ========================================
   GALERIA DE FOTOS COM SLIDES
   ========================================= */

/* Container principal da galeria */
.gallery-container {
    margin: 25px 0;
}

/* ========================================
   IMAGEM PRINCIPAL
   ========================================= */
.main-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Imagem grande exibida */
.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10; /* Mantém proporção */
    object-fit: cover;
}

/* ========================================
   SETAS DE NAVEGAÇÃO
   ========================================= */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Posição da seta anterior */
.gallery-arrow.prev {
    left: 15px;
}

/* Posição da seta próxima */
.gallery-arrow.next {
    right: 15px;
}

/* Efeito hover nas setas */
.gallery-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

/* ========================================
   MINIATURAS (THUMBNAILS)
   ========================================= */
.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

/* Cada miniatura */
.thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.3s;
    opacity: 0.7;
}

/* Efeito hover na miniatura */
.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Miniatura ativa (selecionada) */
.thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

/* ========================================
   RESPONSIVIDADE MOBILE
   ========================================= */
@media (max-width: 768px) {
    /* Setas menores no mobile */
    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .gallery-arrow.prev {
        left: 10px;
    }
    
    .gallery-arrow.next {
        right: 10px;
    }
    
    /* Miniaturas menores */
    .thumbnails {
        gap: 8px;
    }
    
    .thumb {
        height: 60px;
    }
}
/* FIM: Galeria de fotos */

/* ========================================
   SEÇÃO DE LOCALIZAÇÃO - LAYOUT DESKTOP
   Mapa grande + barra de info horizontal
   ========================================= */

.location-section {
    background: white;
    margin: 60px 0 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========================================
   MAPA GRANDE
   ========================================= */
.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #e5e3df;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   BARRA DE INFORMAÇÕES (HORIZONTAL)
   ========================================= */
.location-bar {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 30px;
    padding: 30px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

/* Cada bloco de informação */
.info-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Título principal */
.info-block h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #202124;
    margin: 0;
    line-height: 1.3;
}

/* CNPJ */
.cnpj {
    font-size: 0.8rem;
    color: #5f6368;
    margin: 0;
}

/* Rating */
.rating {
    margin-top: 5px;
}

.stars {
    color: #fbbc04;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ========================================
   LINHAS COM ÍCONE
   ========================================= */
.icon-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.icon-row .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-row p {
    font-size: 0.85rem;
    color: #202124;
    margin: 0;
    line-height: 1.6;
}

.icon-row strong {
    color: #5f6368;
    font-weight: 500;
}

.icon-row a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.85rem;
}

.icon-row a:hover {
    text-decoration: underline;
}

/* ========================================
   BOTÃO VOLTAR AO TOPO
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: white;
    color: #202124;
    border: 1px solid #dadce0;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========================================
   RESPONSIVIDADE MOBILE
   ========================================= */
@media (max-width: 768px) {
    
    /* Mapa menor */
    .map-container {
        height: 250px;
    }
    
    /* Barra vira coluna vertical */
    .location-bar {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .info-block h2 {
        font-size: 1rem;
    }
    
    .icon-row {
        gap: 10px;
    }
    
    .icon-row .icon {
        font-size: 1.1rem;
    }
    
    .icon-row p,
    .icon-row a {
        font-size: 0.8rem;
    }
    
    /* Botão menor */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    
}

/* ========================================
   RESPONSIVIDADE TABLET
   ========================================= */
@media (max-width: 1024px) and (min-width: 769px) {
    
    /* 2 colunas no tablet */
    .location-bar {
        grid-template-columns: 1fr 1fr;
    }
    
}
/* FIM: Seção de localização */
/* ========================================
   AJUSTE: COLUNA ÚNICA (SEM CARD LATERAL)
   ========================================= */
.details-column-full {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove o grid de 2 colunas */
.accommodation-grid {
    display: block;
}

/* ========================================
   POP-UP DE RESERVA
   ========================================= */

/* Overlay escuro de fundo */
.popup-overlay {
    display: none; /* Oculto por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

/* Quando o pop-up está ativo */
.popup-overlay.active {
    display: flex;
}

/* Container do conteúdo do pop-up */
.popup-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Botão fechar (X) */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Card de reserva dentro do pop-up */
.booking-card-popup {
    padding: 30px;
}

/* ========================================
   ANIMAÇÕES DO POP-UP
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVIDADE MOBILE - POP-UP
   ========================================= */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .booking-card-popup {
        padding: 25px 20px;
    }
    
}

/* ========================================
   BOTÃO FLUTUANTE DO WHATSAPP
   Com ícone oficial SVG
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366; /* Verde oficial do WhatsApp */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* Ícone SVG do WhatsApp */
.whatsapp-float svg {
    width: 100%;
    height: 100%;
    fill: white;
}

/* Efeito hover */
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Efeito de pulso (opcional - chama atenção) */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Aplica animação de pulso */
.whatsapp-float {
    animation: pulse 2s infinite;
}

/* ========================================
   RESPONSIVIDADE MOBILE
   ========================================= */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}
/* FIM: Botão WhatsApp */
/* ========================================
   CORREÇÃO: CAMPOS DE DATA NO POP-UP
   ========================================= */

/* Garante que todos os elementos respeitem o box-sizing */
.booking-card-popup * {
    box-sizing: border-box;
}

/* Inputs e selects com box-sizing correto */
.field input, 
.field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box; /* CRÍTICO: inclui padding na largura */
}

/* Ajuste específico para inputs de texto (datas) */
.field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

/* Garante que os campos não ultrapassem o container */
.form-whatsapp {
    width: 100%;
    box-sizing: border-box;
}

.field {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Placeholder com cor mais suave */
.field input::placeholder {
    color: #999;
    font-size: 0.85rem;
}

/* Força o popup a não ter overflow horizontal */
.booking-card-popup {
    padding: 30px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.popup-content {
    max-width: 450px;
    width: 90%;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   RESPONSIVIDADE MOBILE - CAMPOS
   ========================================= */
@media (max-width: 768px) {
    .booking-card-popup {
        padding: 25px 20px;
    }
    
    .field input, 
    .field select {
        font-size: 0.85rem;
        padding: 8px;
    }
}
/* FIM: Correção campos de data */