:root {
    /* Colors */
    --primary-color: #347988;
    /* Gold/Sand */
    --primary-dark: #08B0D6;
    --secondary-color: #347988;
    /* Deep Green/Blue */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --black: #000000;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-large:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    max-height: 60px;
    /* Adjusted to fit nicely within the 80px header */
    width: auto;
    display: block;
}

.logo h2 {
    display: none;
    /* Hide text if present */
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-color: #333;
    /* Fallback color */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--header-height);
    overflow: hidden;
    /* Ensure slides don't spill out */
}

/* Carousel Slides */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* Smooth fade styling, 2 seconds as requested */
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: 1px;
}

.separator {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.img-placeholder {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    border-radius: 8px;
}

/* Accommodations */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 30px;
}

.room-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-info {
    padding: 25px;
}

.room-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.room-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-arrow:hover {
    gap: 10px;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: #0ACAF5;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .main-nav a {
        font-size: 1.1rem;
        display: block;
        padding: 5px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .room-detail-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.page-header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 120px 0 40px;
    /* Account for fixed header */
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.page-header a {
    color: rgba(255, 255, 255, 0.9);
}

.page-header a:hover {
    color: var(--primary-color);
}

/* Room Details */
.room-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Image wider than info */
    gap: 50px;
    align-items: start;
}

.main-image img {
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.room-info-detail h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.room-info-detail .description {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.amenities {
    margin-bottom: 30px;
}

.amenities h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.amenities-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.amenities-list li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.room-actions {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.price-tag {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-family: var(--font-heading);
}

.price-tag .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.gallery-grid img:hover {
    opacity: 0.9;
}

/* Destination Page List */
.destination-list {
    margin-top: 20px;
    list-style: disc;
    padding-left: 20px;
}

.destination-list li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.destination-list li strong {
    color: var(--secondary-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 2px;
    /* Slight adjustment for visual centering */
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 100px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Amenities Full List */
.amenities-full-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns side by side */
    gap: 20px;
    margin-top: 60px;
}

.amenities-category h3 {
    font-size: 1.1rem;
    /* Slightly smaller to fit */
    color: var(--secondary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.amenities-category ul {
    display: block;
}

.amenities-category ul li {
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    /* Slightly tighter gap */
    width: 100%;
    font-size: 0.9rem;
    /* Slightly smaller text */
}

.amenities-category ul li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

/* Response for smaller screens */
@media (max-width: 992px) {
    .amenities-full-list {
        grid-template-columns: 1fr 1fr;
        /* 2 cols on tablets */
    }
}

@media (max-width: 576px) {
    .amenities-full-list {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }

    .rooms-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .room-info {
        padding: 20px;
    }

    .room-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .room-info-detail {
        padding: 20px 0;
    }

    .room-gallery {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    .main-image-container img {
        border-radius: 0;
    }

    .thumbnails-row {
        padding: 0 20px;
    }

    .amenities-list {
        grid-template-columns: 1fr;
    }
}

/* House Rules */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.rule-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.rule-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.rule-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

/* Room Gallery Styles */
.room-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.main-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.thumbnails-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Space for scrollbar if needed */
}

.thumbnail {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}



/* ===== POPUP PROMOÇÃO ===== */

#popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#popupBox {
    background: linear-gradient(135deg, #0f5f2c, #1f8c4d);
    color: white;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-family: Arial, sans-serif;
    position: relative;
}

#closePopup {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 22px;
}

#popupBox h2 {
    margin: 10px 0;
}

#popupBox button {
    background: #ff7a2f;
    border: none;
    padding: 15px 25px;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

#popupBox button:hover {
    opacity: 0.9;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    #popupBox {
        width: 92%;
        padding: 20px;
        border-radius: 12px;
    }

    #popupBox h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    #popupBox p {
        font-size: 14px;
    }

    #popupBox button {
        width: 100%;
        font-size: 16px;
        padding: 16px;
    }

    #closePopup {
        font-size: 24px;
    }
}

/* ===== TITLE CUSTOM (ISOLADO DO H2 GLOBAL) ===== */

#popupBox .popup-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 10px 0 15px 0;
    letter-spacing: -0.5px;
}

#popupBox .popup-title strong {
    display: block;
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
}

/* MOBILE */
@media (max-width: 600px) {
    #popupBox .popup-title {
        font-size: 24px;
    }

    #popupBox .popup-title strong {
        font-size: 30px;
    }
}