/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Color Palette & Style Variables */
:root {
    --green: #748873;
    --gold: #D1A980;
    --light-beige: #E5E0D8;
    --off-white: #F8F8F8;
    --dark-text: #333;
    --error-red: #C85A5A;
    --success-green: #6F976D;
    --border-radius: 6px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--off-white);
    color: var(--dark-text);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    background: #fff;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.logo {
    align-self: normal;
    text-decoration: none;
}

.logo img {
    width: 98px;
    height: 36px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/main/hero.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}

.hero-content {
    width: 49%;
}

.hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
    line-height: 3.6rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    text-align: center;
    background: var(--gold);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: #c59d70;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.reserve-btn {
    background-color: #45CB77;
}

.reserve-btn:hover {
    background-color: #2CC864;
}

.actions .btn i {
    margin-right: 0.2rem;
}

.actions .fa-whatsapp {
    font-size: 1rem;
}

/* Rental Section */
.rental-section {
    padding: 3rem 0 4rem;
    border-bottom: 1px solid #ddd;
}

.rental-section:nth-child(odd) {
    background-color: #fff;
}

.rental-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    color: var(--green);
}

.address {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #555;
}

.address i {
    margin-right: 0.2rem;
}

.address .fa-user-group {
    font-size: 0.9rem;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.gallery-grid a {
    display: block;
    line-height: 0;
}

.main-image {
    cursor: pointer;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.thumbnail-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr); /* This creates the 3 rows */
    gap: 1rem;
}

.thumbnail-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: opacity 0.3s ease;
}

.thumbnail-images a:hover img {
    opacity: 0.8;
}

a.thumbnail-more {
    position: relative;
    cursor: pointer;
}

.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    pointer-events: none; /* Makes the overlay non-clickable */
}

.thumbnail-images a.hidden-thumb {
    display: none;
}

/* Details & Services */
.details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.description h3,
.services h3 {
    margin-bottom: 0.5rem;
}

.description p {
    font-size: 1rem;
}

.services ul {
    list-style: none;
}

.services ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

.services ul li i {
    color: var(--gold);
    font-size: 1.3rem;
    margin-right: 0.6rem;
    width: 30px;
    text-align: center;
}

/* Map */
.map-container {
    position: relative;
    padding-bottom: 38%;
    height: 0;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Reviews Section */
.reviews-section {
    padding: 3rem 0 4rem;
    background-color: #fff;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: 2rem;
}

.review-slider-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.review-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    min-width: 100%;
    padding: 2rem 3rem;
    text-align: center;
    align-content: center;
    background-color: var(--off-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.review-rating {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}

.review-author {
    font-weight: 600;
    color: var(--dark-text);
    margin-top: 1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark-text);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.review-dots {
    text-align: center;
    margin-top: 15px;
}

.review-dots .dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: var(--light-beige);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.review-dots .dot.active {
    background-color: var(--gold);
}

.read-more {
    display: inline-block;
    color: var(--dark-text);
    cursor: pointer;
    font-size: 0.9rem;
    text-underline-offset: 0.2rem;
    text-decoration-color: var(--light-beige);
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--gold);
    text-decoration-color: var(--gold);
    transition: all 0.3s ease;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0 4rem;
    background-color: var(--light-beige);
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: 2rem;
}

#contact-form {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(209, 169, 128, 0.5);
}

.time-note {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin-top: -0.5rem;
    margin-bottom: -2rem;
}

.time-note i {
    color: var(--gold);
    margin-right: 0.3rem;
}

#contact-form button {
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
}

.form-message {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.6s ease, max-height 0.6s ease;
    line-height: 1.4rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.form-message i {
    margin-right: 0.3rem;
}

.form-message.show {
    opacity: 1;
    max-height: 200px; /* enough space for text */
    margin: 1.2rem 0 1rem;
}

.form-message.success {
    color: var(--success-green);
}

.form-message.error {
    color: var(--error-red);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none; /* ensures no clicks go through */
    transition: opacity 0.3s ease;
}

.cf-turnstile {
    margin: 1.6rem 0 0;
    text-align: right;
}

/* Footer */
footer {
    background: var(--dark-text);
    color: var(--off-white);
    text-align: center;
    padding: 2rem;
}

.social-media {
    margin-bottom: 1rem;
}

.social-media a {
    color: var(--off-white);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-media a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

.social-media .fa-phone {
    font-size: 1.4rem;
}

#copyright {
    font-size: 0.9rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #45CB77;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: #fff;
        text-align: center;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active-menu {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .details {
        grid-template-columns: 1fr;
        margin-bottom: 1.2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        width: unset;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 3.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .rental-section h2 {
        font-size: 2.2rem;
        margin-bottom: 0.2rem;
    }

    .address {
        font-size: 0.9rem;
        line-height: 1.4rem;
    }

    .address .fa-user-group {
        font-size: 0.8rem;
    }

    .description h3,
    .services h3 {
        line-height: 1.7rem;
        margin-bottom: 0.6rem;
    }

    .map-container {
        padding-bottom: 100%;
    }

    .btn {
        padding: 0.5rem 1.1rem;
    }

    .reviews-section h2,
    .contact-section h2 {
        font-size: 2.2rem;
        line-height: 2.6rem;
    }

    .review-text {
        font-size: 1rem;
        line-height: 1.6rem;
    }

    .contact-section p {
        margin-top: 0.6rem;
    }

    .time-note {
        margin-bottom: 0;
        line-height: 1.3rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .cf-turnstile {
        transform: scale(0.70);
        transform-origin: left top;
    }
}