/* --- Global Variables & Reset --- */
:root {
    --jade-green: #0A693A; 
    --royal-gold: #D4AF37; 
    --dark-bg: #1A1A1A;
    --light-text: #FFFFFF;
    --dark-text: #333333;
    --light-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    color: var(--jade-green);
    margin-bottom: 1.5rem;
}

/* --- Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    height: 50px; /* Adjust based on your logo size */
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--jade-green);
}

.btn-book {
    background-color: var(--jade-green);
    color: var(--light-text) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-book:hover {
    background-color: var(--royal-gold);
}

.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--jade-green);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--light-text);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.highlight-gold {
    color: var(--royal-gold);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background-color: var(--royal-gold);
    color: var(--light-text);
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #B8962B;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Reusable Card Grid (Rooms, Facilities, Attractions) --- */
/* CSS Grid auto-fit makes it automatically responsive! */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: var(--jade-green);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--royal-gold);
    color: var(--royal-gold);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--royal-gold);
    color: #fff;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info .jade { color: var(--jade-green); }
.footer-info .gold { color: var(--royal-gold); }

.footer-info h3, .footer-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--royal-gold);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav-links.nav-active { max-height: 500px; }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .about-grid, .footer-grid { grid-template-columns: 1fr; }
}

/* --- Booking Bar --- */
.booking-bar {
    background: #fff;
    padding: 20px;
    margin-top: -80px; /* Hero Section එකට පික්සල් 80ක් උඩට ගෙන ඒම */
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    transition: box-shadow 0.3s ease; /* Highlight animation සඳහා */
}

.booking-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--jade-green);
    margin-bottom: 5px;
}

.input-group input, .input-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #f9f9f9;
}

.btn-check {
    padding: 14px 24px;
    flex: 1;
    min-width: 200px;
    cursor: pointer;
}

/* --- Modals (Popups) --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--jade-green);
}

.modal-body img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--royal-gold);
    margin: 10px 0;
}

.amenities-list {
    list-style: none;
    margin: 15px 0 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.w-100 {
    width: 100%;
}

/* ජංගම දුරකථන සඳහා Sticky බොත්තමේ ඩිසයින් එක */
.mobile-sticky-book {
    display: none; /* පරිගණක වලදී මෙය සඟවා තැබේ */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--royal-gold);
    color: var(--light-text);
    text-align: center;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 2000;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
}

/* --- Mobile Responsiveness (Updated) --- */
@media screen and (max-width: 768px) {
    .booking-bar { 
        margin: 0 15px; 
        margin-top: -40px; 
    }
    
    .mobile-sticky-book {
        display: block; /* ජංගම දුරකථන වලදී Sticky බොත්තම පෙන්වීම */
    }
    
    /* Sticky බොත්තම නිසා Footer එක වැසීම වැළැක්වීමට */
    body {
        padding-bottom: 60px; 
    }
}