/* Estilos do Calendário Airbnb */
.airbnb-calendar {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #fff; /* Fundo limpo */
    border-bottom: none; /* Remove linha de separação */
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.5rem; /* Fonte maior */
    color: #222;
    font-weight: 500;
}

.nav-btn {
    text-decoration: none;
    color: #555;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: #e0e0e0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 20px;
    gap: 15px; /* Espassamento maior entre os cards */
}

.weekday {
    text-align: left;
    padding-left: 10px;
    font-weight: 600;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.day {
    position: relative;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px; /* Borda bem arredondada conforme imagem */
    cursor: default;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.day.empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

/* Typography elements */
.day-top {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.day-number {
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.day-price {
    font-size: 0.80rem;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

/* --- Estados --- */

/* Hover */
.day.available:hover {
    border-color: #000;
}

/* Today (Dia Atual) */
.day.today {
    border-color: #ff385c; /* Destaque na borda? Ou só no número? */
}
.day.today .day-number {
    background-color: #ff385c; /* Círculo vermelho do Airbnb */
    color: #fff;
    font-weight: bold;
}

/* Booked (Ocupado) - Estilo Dark Block */
.day.booked {
    background-color: #222; /* Fundo preto/cinza escuro */
    border-color: #222;
    color: #fff;
}

.day.booked .day-number {
    color: #fff;
    text-decoration: line-through;
    opacity: 0.7;
}

.day.booked .day-price {
    color: #aaa;
    text-decoration: line-through;
}

/* Custom Price Indicator */
.day.has-custom-price {
    border: 2px solid #3b82f6 !important; /* Blue Border force */
}

/* --- Selection Logic Styles --- */
.day.available {
    cursor: pointer;
}

/* Range Selection - CINZA conforme solicitado */
.day.selected-start,
.day.selected-end {
    background-color: #4a4a4a !important; /* Cinza Escuro */
    color: #fff !important;
    border-color: #4a4a4a !important;
    z-index: 2;
}

.day.selected-start .day-number,
.day.selected-end .day-number {
    color: #fff;
    background: transparent;
}

.day.selected-start .day-price,
.day.selected-end .day-price {
    color: #eee;
}

/* In Range (dias do meio) */
.day.in-range {
    background-color: #e0e0e0 !important; /* Cinza claro */
    border-color: #ccc;
}

/* Hover Preview */
.day.preview-range {
    background-color: #eeeeee; /* Cinza muito claro */
}

/* Responsivo */
/* Responsivo Mobile Otimizado (V2 - Agressivo) */
@media (max-width: 600px) {
    .airbnb-calendar {
        margin: 5px auto;
        padding: 10px 5px !important; /* Reduz padding lateral container */
        width: 100% !important;
        box-sizing: border-box;
    }

    .calendar-header {
        padding: 10px 0;
        flex-direction: column;
        gap: 8px;
    }

    .calendar-grid {
        gap: 2px !important; /* Gap mínimo absoluto */
        padding: 0 !important;
    }

    .weekday {
        font-size: 0.55rem; /* Letra minúscula no cabeçalho */
        padding: 2px 0;
        font-weight: bold;
    }

    .day {
        min-height: 45px;
        padding: 2px !important;
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: 1px solid #eee; /* Borda mais fina */
    }
    
    .day-number {
        font-size: 0.75rem;
        margin-bottom: 2px;
        width: 18px;
        height: 18px;
        line-height: 18px;
    }

    /* Ajuste crítico para o preço caber */
    .day-price {
        font-size: 0.55rem !important; 
        letter-spacing: -0.5px;
        line-height: 1;
        margin-top: 1px;
    }
    
    /* Tenta esconder o simbolo R$ se possível ou diminuir muito */
    /* Como é texto corrido, não dá pra esconder só o R$ facilmente via CSS puro sem span */
    /* Vamos apenas garantir que quebre a linha se precisar */
    .day-price {
        word-break: break-all; 
        white-space: normal;
    }
}
/* Modal Override - Fix para temas que forçam max-width em blocos */
#frontend-name-modal {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
}
