
:root {
    --primary-gold: #D4AF37;
    --primary-dark-gold: #B8860B;
    --accent-amber: #E67E22;
    --dark-slate: #1A1A1A;
    --secondary-dark: #2A2A2A;
    --cream-bg: #FAF8F5;
    --pure-white: #FFFFFF;
    --soft-gray: #F4F2EE;
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

/* --- Global Reset & Responsiveness Guards --- */
* {
    box-sizing: border-box;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream-bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
    word-wrap: break-word;
}

/* Prevent image overflow globally */
img {
    max-width: 100%;
    height: auto;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

/* --- Touch Friendly Custom Buttons --- */
.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-dark-gold));
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* Optimal touch target */
}
.btn-gold:hover, .btn-gold:focus {
    background: linear-gradient(135deg, #c59b27, #996e00);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}
.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    background: transparent;
    transition: var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}
.btn-outline-gold:hover, .btn-outline-gold:focus {
    background: var(--primary-gold);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Section Titles --- */
.section-title-wrap {
    text-align: center;
    margin-bottom: 35px;
}
.section-subtitle {
    color: var(--primary-dark-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    display: block;
    margin-bottom: 6px;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark-slate);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Navbar --- */
.navbar-custom {
    padding: 5px 0;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.796);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.navbar-custom.scrolled {
    padding: 10px 0;
    background: #ffffff94;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.navbar-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    font-weight: 800;
    color: var(--primary-gold) !important;
    line-height: 1.1;
}
.navbar-brand-tagline {
    font-size: clamp(0.55rem, 1.8vw, 0.7rem);
    font-family: 'Poppins', sans-serif;
    color: #ddd;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
}
.nav-link {
    color:black;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 6px;
    padding: 8px 12px !important;
    position: relative;
    transition: var(--transition-speed);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-gold) !important;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), 
                url('images/hero/rama-inn-ramdevra.png') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    padding-top: 110px;
    padding-bottom: 100px;
}
.hero-title {
    font-size: clamp(2.1rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
    margin-bottom: 16px;
    color: #ffffff;
}
.hero-badge {
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 6px 16px;
    border-radius: 30px;
    display: inline-block;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 18px;
    backdrop-filter: blur(5px);
}

/* --- Booking Floating Bar --- */
.booking-bar-wrapper {
    margin-top: -50px;
    position: relative;
    z-index: 20;
    padding-left: 15px;
    padding-right: 15px;
}
.booking-bar {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
}
.booking-bar .form-control, .booking-bar .form-select {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    font-size: 0.88rem;
}
.booking-bar label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-slate);
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* --- About Section --- */
.about-img-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}
.about-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(26, 26, 26, 0.92);
    color: var(--primary-gold);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1.5px solid var(--primary-gold);
    backdrop-filter: blur(5px);
}
.about-feature-card {
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-left: 4px solid var(--primary-gold);
    transition: var(--transition-speed);
    height: 100%;
}
.about-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* --- Room Cards --- */
.room-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}
.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.room-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.room-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.room-card:hover .room-img-wrapper img {
    transform: scale(1.06);
}
.room-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(26, 26, 26, 0.9);
    color: var(--primary-gold);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--primary-gold);
}
.room-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.amenity-icon {
    color: var(--primary-gold);
    font-size: 0.85rem;
    margin-right: 4px;
}

/* --- Restaurant Section --- */
.restaurant-bg {
    background: linear-gradient(rgba(26,26,26,0.8), rgba(26,26,26,0.8)), url('images/restaurant/restro-bg.png') center/cover no-repeat fixed;
    color: #fff;
}
.menu-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 14px;
    padding: 16px;
    transition: var(--transition-speed);
    height: 100%;
}
.menu-card:hover {
    background: rgba(255,255,255,0.14);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

/* --- Pool Section --- */
.pool-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--box-shadow);
}

/* --- Lightbox Gallery --- */
.gallery-filter-btn {
    border: 1px solid var(--primary-gold);
    color: var(--dark-slate);
    background: transparent;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 3px;
    transition: var(--transition-speed);
    touch-action: manipulation;
}
.gallery-filter-btn.active, .gallery-filter-btn:hover {
    background: var(--primary-gold);
    color: #fff;
}
.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    height: 220px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    text-align: center;
    padding: 12px;
}
.gallery-item:hover img, .gallery-item:focus img {
    transform: scale(1.08);
}
.gallery-item:hover .gallery-overlay, .gallery-item:focus .gallery-overlay {
    opacity: 1;
}

/* Custom Modal Lightbox Responsive Fixes */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}
.lightbox-modal .btn-close {
    filter: invert(1);
    opacity: 0.9;
    margin-bottom: 10px;
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 50%;
}

/* --- Nearby Attractions --- */
.attraction-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition-speed);
}
.attraction-card:hover {
    transform: translateY(-5px);
}
.attraction-dist {
    display: inline-block;
    background: rgba(212,175,55,0.15);
    color: var(--primary-dark-gold);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-speed);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

/* --- Footer --- */
footer {
    background: var(--dark-slate);
    color: #bbb;
    font-size: 0.88rem;
}
footer a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition-speed);
}
footer a:hover {
    color: var(--primary-gold);
}

/* ==========================================================================
    RESPONSIVE MEDIA QUERIES (xs, sm, md, lg, xl)
    ========================================================================== */

/* Extra Small Devices (Smartphones < 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 85vh;
        padding-top: 100px;
        padding-bottom: 70px;
        background-attachment: scroll; /* Disables fixed background jitter on mobile safari */
    }
    .booking-bar-wrapper {
        margin-top: -35px;
    }
    .booking-bar {
        padding: 16px;
    }
    .section-title-wrap {
        margin-bottom: 25px;
    }
    .about-badge {
        padding: 10px 14px;
        bottom: 10px;
        right: 10px;
    }
    .about-badge h3 {
        font-size: 1.2rem;
    }
    .room-img-wrapper {
        height: 190px;
    }
    .gallery-item {
        height: 180px;
    }
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
    .pool-card {
        padding: 18px;
    }
}

/* Small Devices (Landscape Phones / Small Tablets 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 110px;
    }
    .gallery-item {
        height: 200px;
    }
}

/* Medium Devices (Tablets 768px to 991px) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(20, 20, 20, 0.98);
        padding: 20px;
        border-radius: 12px;
        margin-top: 12px;
        border: 1px solid rgba(212,175,55,0.2);
    }
    .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-link::after {
        display: none;
    }
    .hero-section {
        text-align: center;
    }
    .restaurant-bg {
        background-attachment: scroll;
    }
}

/* Large Devices (Desktops 992px and up) */
@media (min-width: 992px) {
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: var(--primary-gold);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    .nav-link:hover::after, .nav-link.active::after {
        width: 80%;
    }
}

/* Ultra Small Mobile Screens (< 360px) */
@media (max-width: 359.98px) {
    .btn-gold, .btn-outline-gold {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .hero-badge {
        font-size: 0.7rem;
    }
}
