/* =====================================================
   GLOBAL
===================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #FAF5E9;
    font-family: 'Poppins', sans-serif;
    color: #222;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section {
    min-height: 100vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    background: rgba(0, 155, 77, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-weight: 700;
    color: #FAF5E9 !important;
}

.navbar .nav-link {
    color: #FAF5E9 !important;
    font-weight: 600;
    margin: 0 12px;
    position: relative;
    transition: 0.3s ease;
}

.navbar .nav-link:hover {
    color: #FFCC00 !important;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #FFCC00;
    transition: 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 100%;
}


/* =====================================================
   HERO
===================================================== */

#home {
    position: relative;
    background: linear-gradient(
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.5)
    ),
    url("assets/hero.jpg") center/cover no-repeat;
    color: #FAF5E9;
    text-align: center;
}

#home h1 { font-size: 48px; }
#home p { font-size: 18px; margin-top: 20px; }


/* =====================================================
   SECTIONS
===================================================== */

#rooms, #faq { background: #FAF5E9; }
#amenities, #contact { background: #f4f1e6; }


/* =====================================================
   BUTTONS
===================================================== */

.btn-warning {
    background: #FFCC00 !important;
    border: none !important;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 30px;
    transition: 0.3s ease;
}

.btn-warning:hover {
    background: #e6b800 !important;
    transform: translateY(-2px);
}

.btn-success {
    background: #009B4D !important;
    border: none !important;
    border-radius: 30px;
}


/* =====================================================
   CARDS
===================================================== */

.room-card,
.amenity-card,
.faq-card,
#contact .card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: 0.4s ease;
}

.room-card:hover,
.amenity-card:hover,
.faq-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.room-card img {
    height: 230px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.amenity-icon i { color: #009B4D; }

.faq-question { font-weight: 600; }

.faq-blur {
    filter: blur(6px);
    pointer-events: none;
    transition: 0.3s ease;
}

#contact iframe {
    border-radius: 15px;
    width: 100%;
    height: 350px;
}


/* =====================================================
   BOOKING OVERLAY
===================================================== */

.booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.booking-form-box {
    background: rgba(255,255,255,0.9);
    padding: 30px;
    width: 95%;
    max-width: 750px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}


/* =====================================================
   FORM BASE
===================================================== */

.form-control,
.form-select {
    border-radius: 12px;
    padding: 8px 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: #009B4D;
    box-shadow: 0 0 0 0.2rem rgba(0,155,77,0.2);
}


/* =====================================================
   COMPACT AUTH MODAL (UPDATED)
===================================================== */

#signupOverlay .booking-form-box,
#signinOverlay .booking-form-box {
    max-width: 340px;              /* reduced more */
    width: 92%;
    padding: 22px 18px;            /* tighter padding */
    border-radius: 18px;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

#signupOverlay h3,
#signinOverlay h3 {
    font-size: 20px;               /* smaller heading */
    margin-bottom: 16px;
}

/* tighter spacing */
.auth-form .mb-3 {
    margin-bottom: 10px !important;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: #009B4D;
}

.auth-input {
    border-radius: 25px;
    padding: 7px 14px;             /* smaller height */
    font-size: 13px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    transition: 0.3s ease;
}

.auth-input:focus {
    border-color: #009B4D;
    box-shadow: 0 0 0 0.2rem rgba(0, 155, 77, 0.15);
}

/* smaller buttons */
#signupOverlay .btn,
#signinOverlay .btn {
    padding: 7px;
    font-size: 13px;
    border-radius: 25px;
}

/* password icon adjustment */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 32px;                     /* adjusted */
    cursor: pointer;
    font-size: 14px;
    color: #888;
}

.password-toggle:hover { color: #009B4D; }

/* smaller strength bar */
.password-strength {
    height: 4px;
    border-radius: 5px;
    transition: 0.3s ease;
}

.password-strength.weak { background: #dc3545; width: 30%; }
.password-strength.medium { background: #ffc107; width: 60%; }
.password-strength.strong { background: #009B4D; width: 100%; }


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 992px) {
    #home h1 { font-size: 38px; }
    .section { padding: 80px 20px; }
    .room-card img { height: 200px; }
}

@media (max-width: 768px) {
    .section { min-height: auto; padding: 70px 20px; }
    #home h1 { font-size: 28px; }
    #home p { font-size: 16px; }
    .navbar .nav-link { margin: 8px 0; }
    .room-card img { height: 180px; }
    #contact iframe { height: 250px; }

    #signupOverlay .booking-form-box,
    #signinOverlay .booking-form-box {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    #home h1 { font-size: 24px; }
    h2 { font-size: 22px; }
    .room-card img { height: 160px; }
}