/* ============================================================
   Hotel The Rajan — Main Stylesheet
   Colors: Green #00a550 | Red #cc2229
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #00a550; border-radius: 4px; }

/* ---- NAVBAR ---- */
#navbar 

{
    transition: background 0.4s, box-shadow 0.4s;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
.nav-link         { color: #1a1a1a !important; }
#hamBtn           { color: #333 !important; }
.book-btn         { background: #00a550; color: #fff; border-color: #00a550; }

/* Logo wrapper: white pill on dark hero → transparent on white scrolled nav */
.navbar-logo-wrap { transition: background 0.4s, box-shadow 0.4s; }
.navbar-logo-wrap {
    background: transparent !important;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
}

.nav-link { position: relative; transition: color 0.3s; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: #00a550;
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* ---- MOBILE MENU ---- */
#mobileMenu {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 100px 0px;
    width: 100%;
    height: 100vh;
}
#mobileMenu.open { display: flex; }

/* ---- HERO SLIDER ---- */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slide.active { opacity: 1; }

/* ---- SECTION TAG ---- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Dancing Script', cursive;
    color: #00a550;
    font-size: 1.2rem;
}
.tag::before,
.tag::after {
    content: '';
    width: 28px;
    height: 1px;
    background: #00a550;
}

/* ---- BUTTONS ---- */
.btn-g {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #00a550;
    color: #fff;
    border: 2px solid #00a550;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}
.btn-g:hover {
    background: #007a3d;
    border-color: #007a3d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 165, 80, 0.35);
}

.btn-o {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}
.btn-o:hover {
    background: #fff;
    color: #00a550;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

/* ---- ROOM CARDS ---- */
.room-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 165, 80, 0.18);
}
.room-card .ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
    transition: all 0.3s;
}
.room-card:hover .ov {
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 65%, rgba(0,165,80,.08) 100%);
}
.room-card .rc {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.75rem;
}

/* ---- GALLERY ---- */
.gi {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}
.gi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gi:hover img { transform: scale(1.07); }

.go {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    background: linear-gradient(to top, rgba(0,165,80,.82), rgba(0,0,0,.15));
    display: flex;
    align-items: center;
    justify-content: center;
}
.gi:hover .go { opacity: 1; }

/* ---- FACILITY BADGE ---- */
.fb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.055);
    border-left: 3px solid #00a550;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.fb:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 22px rgba(0, 165, 80, 0.14);
}

/* ---- FORM INPUTS ---- */
.fi {
    width: 100%;
    padding: 13px 17px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    color: #374151;
}
.fi:focus {
    border-color: #00a550;
    box-shadow: 0 0 0 4px rgba(0, 165, 80, 0.1);
}

/* ---- FLOATING BADGE ANIMATION ---- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.floatbadge { animation: float 3.5s ease-in-out infinite; }

/* ---- SCROLL BOUNCE ---- */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}
.bounce { animation: bounce 2s infinite; }

/* ---- PATTERN BACKGROUND ---- */
.pattern {
    background-color: #f7fffe;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='52' viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2300a550' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M10 10h12v2H10zm20 20h12v2H30zM10 30h12v2H10zM30 10h12v2H30z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- SCROLL-TO-TOP BUTTON ---- */
#scrollTop { transition: opacity 0.3s, transform 0.3s; }
#scrollTop.show { opacity: 1 !important; pointer-events: auto !important; }

/* ---- ACTIVE NAV LINK ---- */
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #00a550 !important; }

/* ---- INNER PAGE HERO ---- */
.inner-hero {
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 50px 0px;
}
@media (min-width: 768px) { .inner-hero { height: 440px; } }
.inner-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 60%, rgba(0,165,80,.12) 100%);
}
.inner-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); font-size: .8rem; transition: color .2s; }
.breadcrumb a:hover { color: #00c462; }
.breadcrumb span { color: rgba(255,255,255,.4); font-size: .8rem; margin: 0 6px; }
.breadcrumb .current { color: rgba(255,255,255,.85); font-size: .8rem; }

/* ---- GALLERY FILTER TABS ---- */
.gal-tab {
    padding: 8px 20px; border-radius: 50px; font-size: .85rem; font-weight: 600;
    border: 2px solid #e5e7eb; color: #6b7280; background: #fff;
    cursor: pointer; transition: all .25s; white-space: nowrap;
}
.gal-tab.active, .gal-tab:hover {
    background: #00a550; border-color: #00a550; color: #fff;
}

/* ---- MENU TABS ---- */
.menu-tab {
    padding: 10px 22px; border-radius: 50px; font-size: .85rem; font-weight: 600;
    border: 2px solid #e5e7eb; color: #6b7280; background: #fff;
    cursor: pointer; transition: all .25s; white-space: nowrap;
}
.menu-tab.active, .menu-tab:hover {
    background: #cc2229; border-color: #cc2229; color: #fff;
}

/* ---- MENU ITEM CARD ---- */
.menu-item {
    background: #fff; border-radius: 14px; padding: 1.1rem 1.25rem;
    border: 1px solid #f0f0f0; transition: box-shadow .25s, transform .25s;
    display: flex; align-items: flex-start; gap: 12px;
}
.menu-item:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.veg-dot   { width:12px;height:12px;border-radius:3px;border:2px solid #00a550;flex-shrink:0;margin-top:4px; background: #00a550; }
.nonveg-dot{ width:12px;height:12px;border-radius:3px;border:2px solid #cc2229;flex-shrink:0;margin-top:4px; background: #cc2229; }

/* ---- LIGHTBOX ---- */
#lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,.92);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 1rem;
}
#lightbox.hidden { display: none; }
#lbImg { max-height: 80vh; max-width: 90vw; object-fit: contain; border-radius: 10px; }

/* ---- ROOM DETAIL CARD ---- */
.room-detail { border-radius: 24px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.08); }

/* ---- FAQ ---- */
.faq-btn { width:100%; text-align:left; cursor:pointer; transition: color .2s; }
.faq-icon { transition: transform .3s; flex-shrink: 0; }
.faq-answer { border-top: 1px solid #f0f0f0; }

/* ---- 404 ---- */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

