/* ==========================================================================
   ESTILOS GERAIS - RECANTO TROPICAL (ÁREA DE LAZER)
   ========================================================================== */

:root {
    --primary-color: #059669; /* Verde Esmeralda */
    --primary-hover: #047857;
    --dark-tropical: #064e3b; /* Verde Escuro Floresta */
    --accent-color: #f59e0b; /* Âmbar / Dourado Sol */
    --accent-hover: #d97706;
    --bg-light-tropical: #f0fdf4;
    --text-main: #1f2937;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* NAVBAR */
.bg-dark-tropical {
    background-color: var(--dark-tropical) !important;
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: #ffffff;
}

.btn-warning-tropical {
    background-color: var(--accent-color);
    color: #111827;
    border: none;
    transition: all 0.2s ease;
}

.btn-warning-tropical:hover {
    background-color: var(--accent-hover);
    color: #111827;
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    background-color: var(--dark-tropical);
    background-image: url('../images/hero-composite.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 85vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.88) 0%, rgba(15, 23, 42, 0.80) 100%);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
}

.text-accent {
    color: var(--accent-color);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

.badge-float-hours {
    position: absolute;
    bottom: -20px;
    right: 20px;
}

.main-about-img {
    height: 440px;
}

/* SEÇÃO DE VÍDEO */
.bg-light-tropical {
    background-color: var(--bg-light-tropical);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* GALERIA DE FOTOS */
.gallery-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 280px;
}

.gallery-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 70%, transparent 100%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.cursor-pointer {
    cursor: pointer;
}

.w-fit {
    width: fit-content;
}

.max-h-80vh {
    max-height: 80vh;
}

/* RECURSOS & CARDS */
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important;
}

/* CALENDÁRIO INTERATIVO */
.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    font-weight: 700;
    color: #4b5563;
    padding: 10px 0;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-day {
    min-height: 85px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    background: #ffffff;
    user-select: none;
    position: relative;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-day-number {
    font-weight: 700;
    font-size: 1.1rem;
}

.calendar-day-price {
    font-size: 0.75rem;
    font-weight: 600;
}

.calendar-day-status {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
    margin-top: 4px;
}

/* Estados dos Dias */
.calendar-day.day-empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.calendar-day.day-past {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.day-available {
    border-color: #a7f3d0;
    background-color: #ecfdf5;
    cursor: pointer;
}

.calendar-day.day-available:hover {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
    transform: scale(1.03);
    z-index: 2;
}

.calendar-day.day-available .calendar-day-price {
    color: #047857;
}

.calendar-day.day-available .calendar-day-status {
    background-color: #d1fae5;
    color: #065f46;
}

.calendar-day.day-pending {
    background-color: #fffbeb;
    border-color: #fde68a;
    cursor: not-allowed;
}

.calendar-day.day-pending .calendar-day-status {
    background-color: #fef3c7;
    color: #b45309;
}

.calendar-day.day-booked {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
    cursor: not-allowed;
}

.calendar-day.day-booked .calendar-day-status {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Legenda */
.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

/* BOTÃO WHATSAPP FLUTUANTE */
.btn-whatsapp-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn-whatsapp-floating:hover {
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* MODAL RESUMO */
.booking-summary-banner {
    background: linear-gradient(to right, #ecfdf5, #f0fdf4);
    border-color: #a7f3d0 !important;
}

/* BADGE DE HORÁRIO NO RODAPÉ */
.footer .schedule-badge {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(46, 204, 113, 0.45);
    color: #e2e8f0;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
}

.footer .schedule-badge strong {
    color: #a7f3d0;
}

/* RESPONSIVIDADE E OTIMIZAÇÕES MOBILE */
@media (max-width: 991px) {
    .navbar .navbar-nav {
        padding-top: 1rem;
    }
    .navbar .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 4px 0;
    }
    .navbar .nav-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .main-about-img {
        height: 260px;
    }
    .badge-float-hours {
        position: static;
        margin-top: 14px;
        width: 100%;
    }
    .calendar-day {
        min-height: 62px;
        padding: 4px 3px;
    }
    .calendar-day-number {
        font-size: 0.9rem;
    }
    .calendar-day-price {
        display: none;
    }
    .calendar-day-status {
        font-size: 0.62rem;
        padding: 1px 2px;
    }
    .gallery-card {
        height: 230px;
    }
}

.price-box {
    background-color: #f8fafc;
    border-color: #e2e8f0 !important;
}

.price-box-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.price-box-value {
    text-align: right;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .card-hero-summary {
        padding: 1.15rem !important;
    }
    .price-box {
        padding: 0.85rem !important;
    }
    .price-box-row {
        gap: 6px;
    }
    .price-box-label {
        font-size: 0.88rem;
        line-height: 1.25;
    }
    .price-box-value {
        font-size: 1.1rem !important;
        text-align: right !important;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .calendar-days, .calendar-weekdays {
        gap: 3px !important;
    }
    .calendar-day {
        min-height: 56px !important;
        padding: 3px 2px !important;
        border-radius: 6px !important;
    }
    .calendar-day-header {
        justify-content: center !important;
        text-align: center !important;
    }
    .calendar-day-number {
        font-size: 0.88rem !important;
        line-height: 1 !important;
    }
    .calendar-day-status {
        font-size: 0.6rem !important;
        padding: 2px 2px !important;
        margin-top: 2px !important;
        line-height: 1.1 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        text-align: center !important;
        border-radius: 3px !important;
    }
    .calendar-day.day-available:active {
        transform: scale(0.95);
        background-color: #d1fae5;
    }
    .calendar-weekdays {
        font-size: 0.72rem !important;
        padding: 5px 0 !important;
    }
    .btn-whatsapp-floating {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 16px;
        right: 16px;
    }
    .footer {
        text-align: center;
    }
    .footer .schedule-badge {
        width: 100%;
        justify-content: center;
    }
    .footer-links li a {
        display: inline-block;
        padding: 3px 0;
    }
    .navbar-brand .brand-text {
        max-width: 220px;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }
}
