/* ===================================
   Hotel Tea County - Frontend Styles
   Modern, Animated, Professional Design
   =================================== */

/* --- Fonts & Variables --- */
:root {
    --primary-color: #c9a961;
    --secondary-color: #1a1a1a;
    --accent-color: #8b7355;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner img {
    max-width: 150px;
}

/* --- Header & Navigation --- */
.top-bar {
    background: var(--secondary-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .contact-info span {
    color: rgba(255, 255, 255, 0.9);
}

.social-links a {
    color: white;
    margin: 0 8px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand .logo {
    max-height: 60px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 8px 20px !important;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 30px;
}

.nav-link.btn::after {
    display: none;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}

.hero-content .btn {
    animation: fadeInUp 1.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201, 169, 97, 0.3);
}

/* --- Page Header & Breadcrumbs --- */
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-weight: 500;
}

.page-header .breadcrumb-item.active {
    color: #ffffff !important;
    font-weight: 600;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7) !important;
}

.page-header .breadcrumb-item a:hover {
    color: var(--primary-color) !important;
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- Room Cards --- */
.room-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.room-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.room-card:hover img {
    transform: scale(1.1);
}

.room-card-body {
    padding: 25px;
}

.room-card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.room-features {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.room-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(201, 169, 97, 0.9), rgba(139, 115, 85, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: white;
}

/* --- Attractions --- */
.attraction-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    margin-bottom: 30px;
}

.attraction-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.attraction-card:hover img {
    transform: scale(1.1);
}

.attraction-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

.attraction-overlay h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* --- Footer --- */
.footer {
    background: var(--secondary-color);
    margin-top: 80px;
}

.footer h4,
.footer h5 {
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icon {
    color: white;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--primary-color);
}

/* --- Booking Form --- */
.booking-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 97, 0.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* --- Animations (AOS Override) --- */
[data-aos] {
    pointer-events: auto;
}

.aos-animate {
    transition-duration: 0.8s !important;
}

/* --- Global Curved Edges (User Request) --- */
img,
.btn,
.room-card,
.attraction-card,
.gallery-item,
.booking-form,
.form-control,
.form-select,
.modal-content,
.card,
.img-fluid,
.overlay {
    border-radius: 25px !important;
}

/* Ensure images inside cards inherit or have curves */
.room-card img,
.attraction-card img,
.gallery-item img {
    border-radius: 25px !important;
}

/* Sections - Adding a subtle curve to sections if they are distinct blocks */
section.bg-white,
section.bg-light {
    border-radius: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* --- Stylish Mobile Menu --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: visibility 0.4s, opacity 0.4s, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform: translateX(100%);
        /* Start off-screen */
        opacity: 0;
        visibility: hidden;
        padding: 2rem;
        border-radius: 0 !important;
        /* Override global rounded corners */
    }

    .navbar-collapse.show {
        transform: translateX(0);
        /* Slide in */
        opacity: 1;
        visibility: visible;
    }

    /* Hide Bootstrap's default expansion behavior logic since we force flex layout */
    .navbar-collapse.collapsing {
        height: 100vh !important;
        transform: translateX(100%);
        transition: transform 0.4s;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.98);
    }

    .navbar-nav {
        text-align: center;
        width: 100%;
        overflow-y: auto;
        max-height: 80vh;
    }

    .nav-item {
        margin: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Animation Delay for Items */
    .navbar-collapse.show .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .navbar-collapse.show .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .navbar-collapse.show .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .navbar-collapse.show .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .navbar-collapse.show .nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .navbar-collapse.show .nav-item:nth-child(6) {
        transition-delay: 0.6s;
    }

    .navbar-collapse.show .nav-item:nth-child(7) {
        transition-delay: 0.7s;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-dark) !important;
    }

    .nav-link.active {
        color: var(--primary-color) !important;
    }

    .dropdown-menu {
        position: relative;
        background: transparent;
        border: none;
        text-align: center;
        box-shadow: none;
    }

    .dropdown-item {
        font-size: 1.2rem;
        color: var(--text-light);
    }

    /* Close Button Style */
    .btn-close {
        font-size: 1.5rem;
        z-index: 10000;
        background-color: transparent;
        border-radius: 50%;
        padding: 1rem;
        opacity: 0.8;
    }
}

/* --- Responsive Map --- */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 25px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
    border-radius: 25px;
}