/* ===========================================================================
   Baan Suan Buriram - Garden & Pond theme
   Palette: forest green, leaf green, warm sand, earthy brown, pond blue
   =========================================================================== */

:root {
    --green-dark: #2E5D3B;
    --green: #4A7C52;
    --green-light: #7BA87F;
    --sand: #F3EDE1;
    --sand-dark: #E7DCC7;
    --brown: #6B5842;
    --pond: #3B7A8C;
    --gold: #C9A84C;
    --text: #2C2A26;
    --muted: #6c757d;
}

body {
    font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background-color: #fff;
}

h1, h2, h3, h4, h5, .display-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--green-dark);
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

/* Buttons */
.btn-garden {
    background-color: var(--green);
    border-color: var(--green);
    color: #fff;
}
.btn-garden:hover, .btn-garden:focus {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}
.btn-outline-garden {
    color: var(--green-dark);
    border-color: var(--green);
}
.btn-outline-garden:hover {
    background-color: var(--green);
    color: #fff;
}
.btn-pond {
    background-color: var(--pond);
    border-color: var(--pond);
    color: #fff;
}
.btn-pond:hover { background-color: #2f6373; color: #fff; }

/* Navbar */
.navbar-brand .logo-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.1;
}
.navbar-brand .logo-tagline {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}
.navbar .nav-link { color: var(--text); font-weight: 500; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--green); }
.logo-icon { font-size: 1.6rem; color: var(--green); }

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    /* Default background when no hero image is set; a photo is layered inline via index.php */
    background: linear-gradient(135deg, var(--green) 0%, var(--pond) 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); }
.hero .lead { color: rgba(255,255,255,0.95); }

/* Section spacing */
.section { padding: 4rem 0; }
.section-sand { background-color: var(--sand); }
.section-title { position: relative; margin-bottom: 2.5rem; }
.section-title h2 { display: inline-block; }
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0.75rem auto 0;
}

/* Cards */
.room-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.room-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); }
.room-card .card-img-top {
    height: 220px;
    object-fit: cover;
    background: var(--sand-dark);
}
.room-card .price { color: var(--green-dark); font-weight: 700; }
.badge-category {
    background: var(--green-light);
    color: #fff;
    font-weight: 500;
}
.badge-bungalow { background: var(--pond); }

/* Facility icon */
.facility-icon {
    font-size: 2.4rem;
    color: var(--green);
    background: var(--sand);
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

/* Amenity chips */
.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--sand);
    color: var(--brown);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    margin: 0.15rem;
}
.amenity-chip i { color: var(--green); }

/* Footer */
footer.site-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 1.5rem;
}
footer.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer h5 { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2rem; padding-top: 1rem;
    font-size: 0.85rem;
}

/* Closure banner */
.closure-banner {
    background: #b02a37;
    color: #fff;
}

/* Testimonials */
.testimonial-card {
    background: var(--sand);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}
.testimonial-card .stars { color: var(--gold); }

/* Booking summary sticky */
.booking-summary {
    position: sticky;
    top: 90px;
    border-radius: 12px;
    border: 1px solid var(--sand-dark);
}

/* Gallery */
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
}
.gallery-item img:hover { transform: scale(1.03); }
.gallery-item a { position: relative; display: block; overflow: hidden; border-radius: 8px; cursor: pointer; }
.gallery-item .gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff; font-size: 0.8rem; padding: 1.2rem 0.6rem 0.5rem;
    opacity: 0; transition: opacity 0.2s;
}
.gallery-item a:hover .gallery-caption { opacity: 1; }

/* Lightbox navigation buttons */
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.4); color: #fff; border: none;
    width: 48px; height: 48px; border-radius: 50%;
    font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    z-index: 5; transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(0,0,0,0.7); }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

/* Scroll-to-top / bottom floating buttons */
.scroll-buttons {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1030;
}
.scroll-btn {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
}
.scroll-btn:hover,
.scroll-btn:focus { background: var(--green-dark); }
.scroll-btn.show {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}
.scroll-btn.show:hover { opacity: 1; }
/* Larger touch targets on small screens */
@media (max-width: 767.98px) {
    .scroll-btn { width: 52px; height: 52px; font-size: 1.4rem; }
    .scroll-buttons { right: 0.75rem; bottom: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-btn { transition: none; }
}
