/* --- LOADING SCREEN --- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000a26;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 150px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInLogo 1.5s ease forwards 0.5s;
}

.loading-text {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0;
    animation: fadeInText 1.5s ease forwards 1s;
}

.loading-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D4AF37, #f1d47c);
    border-radius: 10px;
    animation: loadingProgress 2.5s ease-in-out forwards;
}

.loading-dots {
    display: flex;
    margin-top: 20px;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4AF37;
    opacity: 0;
    animation: dotPulse 1.5s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInLogo {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    20% { width: 20%; }
    40% { width: 45%; }
    60% { width: 65%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* --- VARIÁVEIS & RESET --- */
:root {
    --gold: #D4AF37;
    --gold-hover: #b5952f;
    --dark: #fcfcfc;
    --light-dark: #1e1e1e;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    background-color: var(--dark);
    overflow-x: hidden;
}

/* Impedir scroll durante o loading */
body.loading {
    overflow: hidden;
    height: 100vh;
}

/* Personalização da barra de rolagem */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}

h1, h2, h3, h4, .serif { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- COMPONENTES UX --- */
.btn {
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: rgb(54, 54, 54);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.4s ease;
}

header.scrolled {
    background: #000a26;
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 114px;
    width: auto;
}

.nav-links { 
    display: flex; 
    gap: 30px; 
}

.nav-links a { 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    opacity: 0.8; 
}

.nav-links a:hover { 
    color: var(--gold); 
    opacity: 1; 
}

/* Botão Reservar - visível apenas em desktop */
.reserve-btn {
    display: block;
}

/* --- MENU RESPONSIVO --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    z-index: 0;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    animation: fadeUp 1.2s ease-out;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* --- SOBRE (Design Reformulado conforme imagem) --- */
.about {
    background: #fcfcfc;
    color: var(--dark);
    padding: 100px 50px;
}

.about-container { 
    max-width: 1200px; 
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    color: #000a26;
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.about-content .subtitle {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.about-content p { 
    line-height: 1.8; 
    font-size: 1rem; 
    color: #555; 
    margin-bottom: 25px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.read-more i {
    margin-left: 8px;
    transition: 0.3s;
}

.read-more:hover {
    color: var(--gold-hover);
}

.read-more:hover i {
    transform: translateX(5px);
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 500px;
}

.about-img-main {
    grid-column: 1 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 300px;
}

.about-img-secondary {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 180px;
}

.about-img-main img, .about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-img-main:hover img, .about-img-secondary:hover img {
    transform: scale(1.05);
}

/* --- GALERIA DE FOTOS (COM BOTÃO VER MAIS) --- */
.gallery {
    background: #000a26;
    padding: 100px 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
}

.section-header span { 
    color: var(--gold); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.8rem; 
}

/* Layout de galeria corrigido */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas no desktop */
    gap: 20px; /* Espaçamento adequado */
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 250px; /* Altura fixa para consistência */
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 10;
}

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

.gallery-item:hover img { 
    transform: scale(1.1); 
}

.gallery-overlay {
    position: absolute;
    bottom: 0; 
    left: 0; 
    width: 100%;
    padding: 15px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay { 
    opacity: 1; 
    transform: translateY(0); 
}

.gallery-overlay h4 { 
    color: var(--white); 
    font-size: 0.9rem; 
    margin-bottom: 3px; 
}

.gallery-overlay p { 
    color: var(--gold); 
    font-size: 0.7rem; 
    text-transform: uppercase; 
}

/* Botão Ver Mais */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

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

/* Modal para ampliar imagem - MELHORADO */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--gold);
    background: rgba(0,0,0,0.7);
}

/* Botões de navegação da galeria */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.modal-nav:hover {
    background: var(--gold);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* --- ESTRUTURA (Cards Arredondados) --- */
.structure {
    background: #0a0a0a;
    padding: 100px 50px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.amenity-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: var(--radius-lg); /* Card bem arredondado */
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.amenity-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-10px);
    border-color: var(--gold);
}

.amenity-card i { font-size: 2rem; color: var(--gold); margin-bottom: 20px; }
.amenity-card h4 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: 1px; }
.amenity-card p { font-size: 0.9rem; color: #888; line-height: 1.6; }

/* --- FACILITIES GRID STYLE --- */
.facilities {
    background-color: #fcfcfc;
    padding: 100px 50px;
    text-align: center;
    position: relative;
    color: #000a26;
}

.facilities-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-family: 'Playfair Display', serif;
    color: rgba(0,0,0,0.02);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.facilities-header { 
    margin-bottom: 60px; 
    position: relative; 
    z-index: 2; 
}

.facilities-header h2 { 
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; 
    color: #000a26; 
}

.facilities-header .subtitle {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* O GRID MÁGICO */
.facilities-grid-container {
    display: grid;
    /* Cria colunas automáticas com largura mínima de 250px */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-left: 1px solid rgba(0,0,0,0.08);
}

.grid-item {
    background: transparent;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Bordas para criar o efeito de separação */
    border-right: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.grid-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
    border-color: transparent; /* Remove as linhas internas ao dar hover para destacar */
    z-index: 3; /* Traz para frente */
    border-radius: 4px;
}

.grid-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
    transition: 0.3s;
}

.grid-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.4;
}

.empty-item { opacity: 0.5; } /* Estilo para itens de preenchimento */

/* --- SEÇÃO DEPOIMENTOS - MELHORADA --- */
.testimonials-section {
    background: #000a26;
    padding: 100px 50px;
    text-align: center;
}

.testimonials-header {
    margin-bottom: 60px;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.testimonials-header p {
    color: #aaa;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
}

.testimonials-track:active {
    cursor: grabbing;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: left;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #eee;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-rating {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--gold);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: #aaa;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--gold);
    transform: scale(1.1);
}

/* --- LOCALIZAÇÃO --- */
.location {
    background: #fcfcfc;
    color: #000a26;
    padding: 100px 50px;
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.location-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.location-content .subtitle {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.location-info {
    margin-bottom: 30px;
}

.location-info p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.location-rating {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.stars {
    color: var(--gold);
    margin-right: 10px;
}

.rating-text {
    color: #555;
    font-size: 0.9rem;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- FOOTER --- */
footer {
    background: #000a26;
    padding: 80px 20px 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
    margin-bottom: 60px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    color: #666;
    font-size: 0.8rem;
}

/* --- BOTÃO WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: white;
    font-size: 1.8rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
    header { padding: 20px 30px; }
    
    .nav-links { 
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        opacity: 1;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content h1 { font-size: 3rem; }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas em tablets */
    }

    .testimonial-card {
        padding: 30px;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
    }

    .modal-prev {
        left: 15px;
    }

    .modal-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    header { padding: 20px; }
    
    .logo img {
        height: 80px;
    }
    
    /* Ocultar botão Reservar no mobile */
    .reserve-btn {
        display: none;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-images {
        height: auto;
        grid-template-columns: 1fr;
    }
    
    .about-img-main {
        grid-column: 1;
        height: 250px;
    }
    
    .about-img-secondary {
        height: 150px;
    }
    
    /* CORREÇÃO: Galeria com 2 colunas no mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas no mobile */
        gap: 15px;
    }
    
    .gallery-item {
        height: 200px; /* Altura ajustada para mobile */
    }
    
    .facilities-grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas no celular */
    }
    
    .facilities-watermark { display: none; }
    
    .location-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-contact, .footer-logo {
        align-items: center;
        text-align: center;
    }

    .testimonials-section {
        padding: 80px 20px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .modal-nav {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    
    .gallery {
        padding: 60px 20px; /* Margem reduzida em telas pequenas */
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* MANTÉM 2 colunas em telas pequenas */
        gap: 10px;
    }
    
    .gallery-item {
        height: 180px; /* Altura ajustada para telas muito pequenas */
    }
    
    .facilities-grid-container {
        grid-template-columns: 1fr;
    }
    
    .about, .facilities, .testimonials-section, .location {
        padding: 60px 20px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .modal-nav {
        display: none; /* Oculta navegação em telas muito pequenas */
    }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- OTIMIZAÇÕES PARA CARREGAMENTO DE IMAGENS --- */

/* Placeholder para imagens carregando */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
    z-index: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Otimizações para imagens da galeria */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.gallery-item img.loaded {
    opacity: 1;
}

/* Preload das primeiras imagens críticas */
.about-img-main img,
.about-img-secondary img {
    opacity: 1; /* Já carregam com prioridade */
}

/* Melhorias de performance */
.gallery-grid {
    will-change: transform;
}

.gallery-item {
    transform: translateZ(0); /* Aceleração GPU */
}

/* Loading state para galeria */
.gallery-loading .gallery-item {
    opacity: 0.7;
    pointer-events: none;
}

/* --- MELHORIAS PARA O MODAL COM SWIPE --- */

.modal-content {
    cursor: grab;
    transition: transform 0.2s ease;
    user-select: none;
}

.modal-content:active {
    cursor: grabbing;
}

.modal-content img {
    transition: opacity 0.3s ease;
    max-width: 95%;
    max-height: 95%;
}

/* Indicadores de swipe para mobile */
.modal-content::before {
    content: '← Arraste →';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mostra o indicador apenas em mobile */
@media (max-width: 768px) {
    .modal-content::before {
        opacity: 1;
    }
    
    .modal-nav {
        display: none; /* Oculta botões em mobile já que temos swipe */
    }
}

/* Feedback visual durante o swipe */
.modal-content.swiping {
    transition: transform 0.1s ease;
}

/* Melhorias de acessibilidade */
.modal-content:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* Animações suaves para transição de imagens */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content img {
    animation: fadeIn 0.3s ease;
}