/* ==========================================================================
   1. Global Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8faf8;
}

/* ==========================================================================
   2. Header, Navigation & Hero Section
   ========================================================================== */
header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
    overflow: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #8bc34a;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #8bc34a;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1.2s ease-out;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.35rem;
    max-width: 650px;
    margin-bottom: 35px;
    color: #f1f1f1;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.3);
}

.btn {
    display: inline-block;
    padding: 16px 42px;
    background: #8bc34a;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(139, 195, 74, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #7cb342;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(139, 195, 74, 0.45);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
    pointer-events: none;
}

.slider-controls button {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    pointer-events: auto;
    transition: background 0.3s ease;
}

.slider-controls button:hover {
    background: rgba(139, 195, 74, 0.8);
}

/* ==========================================================================
   3. General Section Rules
   ========================================================================== */
section {
    padding: 90px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 45px;
    color: #2e7d32;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #8bc34a;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* About Section */
#about {
    background: #ffffff;
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.15rem;
    margin-bottom: 22px;
    color: #555;
    line-height: 1.8;
}

/* Amenities Section */
#amenities {
    background: #f4f8f4;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.amenity-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.amenity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.12);
}

.amenity-icon {
    font-size: 3.2rem;
    margin-bottom: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.amenity-card:hover .amenity-icon {
    transform: scale(1.15) rotate(5deg);
}

.amenity-card h3 {
    color: #2e7d32;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.amenity-card p {
    color: #666;
    font-size: 0.98rem;
}

/* ==========================================================================
   4. Gallery Section & Lightbox
   ========================================================================== */
#gallery {
    background: #ffffff;
}

.gallery-slider-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.gallery-slider-card {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #111;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-single-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: scale(1.02);
}

.gallery-single-slide.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-single-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.category-badge {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(46, 125, 50, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 5;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-nav-btn:hover {
    background: #8bc34a;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.gallery-dots-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2e7d32;
    width: 28px;
    border-radius: 10px;
}

/* ==========================================================================
   Gallery Grid Styles
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.gallery-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    cursor: zoom-in;
    background: #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    pointer-events: none;
}

/* ==========================================================================
   Folder Category Auto-Sliders
   ========================================================================== */
.gallery-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.folder-card {
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.folder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

.folder-slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: zoom-in;
}

.folder-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.04);
}

.folder-slide.active {
    opacity: 1;
    transform: scale(1);
}

.folder-slide img,
.folder-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.folder-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(46, 125, 50, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
}

/* Modal Media Sizing */
#modal-media-container img,
#modal-media-container video {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* Lightbox Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content-wrapper {
    position: relative;
    max-width: 85%;
    max-height: 80vh;
    margin: auto;
    text-align: center;
}

.modal-content {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.modal-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #8bc34a;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 2010;
}

.modal-nav:hover {
    background: #8bc34a;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev { left: 30px; }
.modal-next { right: 30px; }

/* ==========================================================================
   5. Google Calendar Section
   ========================================================================== */
#calendar-section {
    background: #f4f8f4;
}

.calendar-wrapper {
    max-width: 950px;
    margin: 0 auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #444;
}

.color-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.calendar-container {
    position: relative;
    padding-bottom: 60%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.calendar-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   6. Contact / Inquiry Form
   ========================================================================== */
#inquiry {
    background: linear-gradient(rgba(30, 80, 35, 0.92), rgba(30, 80, 35, 0.92)),
                url('images/exterior/hero-bg.jpeg') center/cover fixed;
    color: white;
}

#inquiry .section-title {
    color: white;
}

#inquiry .section-title::after {
    background: #8bc34a;
}

.form-container {
    max-width: 680px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.25);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8e1;
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.3);
    margin-top: 10px;
}

.submit-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(46, 125, 50, 0.4);
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
footer {
    background: #151815;
    color: #d1d5d1;
    text-align: center;
    padding: 45px 5%;
}

footer h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.footer-contact p {
    margin: 8px 0;
    font-size: 1rem;
}

/* ==========================================================================
   8. Animations & Media Queries
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .gallery-slider-card {
        height: 320px;
    }

    .modal-nav {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }

    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 30px 20px;
    }

    .calendar-wrapper {
        padding: 20px 15px;
    }

    .calendar-container {
        padding-bottom: 90%;
    }
}


/* Popup Modal Background */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Popup Content Card */
.popup-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.popup-icon {
    width: 60px;
    height: 60px;
    background: #2e7d32;
    color: white;
    font-size: 32px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

#popup-ok-btn {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
}

/* ==========================================================================
   Inquiry Form Design
   ========================================================================== */
.inquiry-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
}

.inquiry-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.inquiry-header {
    text-align: center;
    margin-bottom: 25px;
}

.inquiry-header h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 6px;
}

.inquiry-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1f2937;
    background-color: #f9fafb;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2e7d32;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

.submit-btn {
    background: #2e7d32;
    color: #ffffff;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #256628;
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ==========================================================================
   Popup Modal Design
   ========================================================================== */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-card {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 18px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: popupPop 0.25s ease-out;
}

@keyframes popupPop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.popup-icon {
    width: 56px;
    height: 56px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 28px;
    font-weight: bold;
    line-height: 56px;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #9ca3af;
}

.popup-btn {
    background: #2e7d32;
    color: #ffffff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    margin-top: 18px;
    cursor: pointer;
    font-weight: 600;
}