/* style.css - Complete UI Stylesheet for Laravel Project */

/* 1. Import the original Quicksand font for the correct visual depth */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #163c8c;
    --active-blue: #007bff;
    --search-green: #4eaa7e; 
    --search-green-hover: #3d8c65;
    /* RESTORED: Original warm alert background */
    --alert-bg: #f8f6ea; 
    --bg-light: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e5e7eb;
    --footer-bg: #0a0a0a; 
    --box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --box-shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background-color: #fafafa;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
    margin-right: 15px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 30px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    height: 100%;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    height: 100%;
    border-bottom: 3px solid transparent;
}

.nav-links a i { color: #888; }

.nav-links a:hover,
.nav-links a.active {
    color: var(--active-blue);
    border-bottom: 3px solid var(--active-blue);
}

.nav-links a:hover i,
.nav-links a.active i { 
    color: var(--active-blue); 
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-channel {
    background: var(--primary-blue);
    color: white;
    border: 1px solid var(--primary-blue);
}

.btn-channel:hover {
    background: #112d6b;
}

/* RESTORED: Original Solid Blue Desktop Login Button */
.btn-login {
    background: var(--active-blue);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background: #0069d9;
}

/* =========================================
   MOBILE SIDEBAR MENU
   ========================================= */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1999;
    opacity: 0; visibility: hidden; transition: 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1; visibility: visible;
}

.sidebar {
    position: fixed; top: 0; left: -300px;
    width: 280px; height: 100%;
    background: #e3f2fd;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    z-index: 2000; transition: 0.3s ease;
    padding: 20px; display: flex; flex-direction: column;
    overflow-y: auto;
}

.sidebar.active { left: 0; }

.sidebar-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
}

.close-btn {
    background: none; border: none; font-size: 24px; color: #333; cursor: pointer;
}

.sidebar-menu {
    background: white; border-radius: 12px; border: 1px solid var(--border-color);
    display: flex; flex-direction: column; overflow: hidden;
}

.sidebar-menu a {
    padding: 15px 20px; font-size: 15px; font-weight: 600; color: var(--text-main);
    border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 15px;
}

.sidebar-menu a:last-child { border-bottom: none; }
.sidebar-menu a i { color: var(--text-main); font-size: 18px; width: 20px; text-align: center; }

/* =========================================
   HERO SECTION & SEARCH BOX
   ========================================= */
.hero-section {
    height: 420px;
    background-image: url('https://99bookin.com/b2b/images/hh.jpg');
    background-size: cover; background-position: center;
    position: relative; display: flex; flex-direction: column;
    align-items: center; padding-top: 80px; 
}

.hero-title {
    color: white; font-size: 14px; font-weight: 700; letter-spacing: 1.5px;
    margin-bottom: 25px; text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}

.search-wrapper { width: 90%; max-width: 1100px; position: relative; }

.search-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }

/* RESTORED: Original dark green border for desktop tabs */
.search-tabs a {
    background: white; padding: 12px 22px; border-radius: 8px; border: 1px solid #2d6942;
    font-weight: 700; font-size: 14px; color: var(--text-main);
    display: flex; align-items: center; gap: 8px; transition: 0.2s; text-decoration: none;
}

.search-tabs a:hover { background: #fdfdfd; }
.search-tabs a.active { color: var(--search-green); }
.search-tabs a i { color: #888; }
.search-tabs a.active i { color: var(--search-green); }

.custom-search-container {
    background: white; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 30px 25px 50px 25px; position: relative; z-index: 1;
}

.search-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.input-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

.input-box {
    border: 1px solid var(--border-color); border-radius: 8px;
    padding: 12px 15px 12px 45px; position: relative; cursor: text;
    transition: border-color 0.2s; background: transparent;
}

.input-box:focus-within { border-color: var(--search-green); }
.input-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #999; }
.input-box label { display: block; font-size: 11px; font-weight: 800; color: #888; text-transform: uppercase; margin-bottom: 4px; cursor: pointer; }
.input-box input { border: none; outline: none; font-size: 15px; font-weight: 700; color: var(--text-main); width: 100%; background: transparent; }

.search-btn-container {
    position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%); z-index: 3; width: auto;
}

.btn-search {
    background: var(--search-green); color: white; border: none; padding: 0 40px; height: 52px;
    font-size: 16px; font-weight: 700; border-radius: 6px; cursor: pointer; width: 300px;
    box-shadow: 0 4px 15px rgba(78, 170, 126, 0.4); transition: background-color 0.2s, transform 0.1s;
}

.btn-search:hover { background: var(--search-green-hover); }
.btn-search:active { transform: translate(-50%, 50%) scale(0.98); }

/* =========================================
   HOME CONTENT AREA
   ========================================= */
.home-inner-container {
    max-width: 1200px; margin: 60px auto 40px; padding: 0 5%;
}

/* RESTORED: Original warm alert border */
.alert-banner {
    background: var(--alert-bg); border: 1px solid #e8e4d0; border-radius: 8px;
    padding: 15px 20px; text-align: center; font-size: 14px; font-weight: 600; color: #555;
    margin-bottom: 40px; line-height: 1.5;
}

.section-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 20px; }
.section-title.center { text-align: center; }

.section-subtitle {
    text-align: center; font-size: 15px; color: var(--text-muted); margin-bottom: 30px;
    max-width: 800px; margin-left: auto; margin-right: auto; font-weight: 500; line-height: 1.6;
}

.grid-4 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 50px;
}

.custom-card {
    background: white; border: 1px solid var(--border-color); border-radius: 12px;
    overflow: hidden; transition: all 0.3s ease; cursor: pointer; display: flex; flex-direction: column;
}

.custom-card:hover { box-shadow: var(--box-shadow-hover); transform: translateY(-3px); }
.custom-card-flat { border: none; background: transparent; }
.custom-card-img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; }
.img-tall { height: 200px; }
.custom-card-body { padding: 15px 5px; flex-grow: 1; }
.custom-card-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color:var(--text-main); }
.custom-card-desc { font-size: 13px; font-weight: 500; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Testimonials */
.testimonials {
    background-image: url('https://99bookin.com/ofc/upload/171887937518270938441717669775.jpg');
    background-size: cover; background-position: center; border-radius: 20px; padding: 40px;
    position: relative; margin-bottom: 50px; color: white;
}
.testimonials::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); border-radius: 20px; }
.testi-content { position: relative; z-index: 2; }
.testi-content h2 { font-size: 26px; font-weight: 800; margin-bottom: 15px; }
.testi-content p { font-size: 15px; font-weight: 500; max-width: 800px; line-height: 1.6; margin-bottom: 30px; opacity: 0.95; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.testi-card { background: white; color: var(--text-main); border-radius: 12px; padding: 20px; box-shadow: var(--box-shadow); }
.testi-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.testi-avatar { width: 45px; height: 45px; background: #e0f7fa; color: #00bcd4; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.testi-name { font-weight: 700; font-size: 15px; margin:0; }
.stars { color: #ffb400; font-size: 13px; margin-top: 4px; }
.testi-text { font-size: 13px; font-weight: 500; font-style: italic; color: var(--text-muted); line-height: 1.6; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 50px; }
.feature-item { display: flex; align-items: center; gap: 15px; border: 1px solid var(--border-color); padding: 15px; border-radius: 12px; background: white; }
.feature-icon-wrapper { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.bg-yellow { background: #FFF9EE; color: #f5b041; }
.bg-green { background: #EAFFF1; color: #4caf50; }
.bg-blue { background: #ECFBFF; color: #2196f3; }
.bg-red { background: #FFF0F7; color: #f44336; }
.feature-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; margin-top:0; }
.feature-text p { font-size: 12px; font-weight: 500; color: var(--text-muted); margin:0; }

/* =========================================
   FOOTER
   ========================================= */
footer { 
    background: var(--footer-bg); 
    color: white; 
    padding: 50px 5% 20px; 
    font-size: 13.5px; 
}

.footer-grid { 
    display: grid;
    grid-template-columns: 3fr 1fr; 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto 30px; 
}

.footer-nav-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    border-right: 1px solid #2a2a2a; 
    padding-right: 30px;
}

.footer-contact-section {
    padding-left: 15px;
}

.footer-col h4 { 
    font-size: 14px; 
    text-transform: uppercase; 
    margin-bottom: 25px; 
    color: #ffffff; 
    font-weight: 700; 
    letter-spacing: 0.5px;
}

.footer-col ul { 
    list-style: none; 
}

.footer-col ul li a { 
    color: #aaaaaa; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: 0.2s; 
    line-height: 32px; 
    font-weight: 500; 
}

.footer-col ul li a i { 
    font-size: 13px; 
    color: #777777; 
    transition: 0.2s;
}

.footer-col ul li a:hover, 
.footer-col ul li a:hover i { 
    color: var(--active-blue); 
}

.contact-info { 
    margin-bottom: 15px; 
}

.contact-info li { 
    color: #aaaaaa; 
    margin-bottom: 12px; 
    line-height: 1.6; 
    font-weight: 500;
}

.contact-info strong { 
    color: white; 
    display: inline-block; 
    width: 65px; 
    font-weight: 700;
}

.footer-bottom { 
    text-align: center; 
    border-top: 1px solid #1a1a1a; 
    padding-top: 25px; 
    color: #666666; 
    font-size: 12px; 
    font-weight: 600;
}

/* =========================================
   RESPONSIVE (MOBILE) ADJUSTMENTS
   ========================================= */
@media (max-width: 900px) {
    /* 1. HEADER FIXES: Hide text links, but KEEP the action buttons */
    .nav-links { display: none; }
    header { padding: 0 10px; }
    .header-left { gap: 10px; }
    .mobile-menu-btn { display: block; margin-right: 0; }
    
    /* Shrink logo and buttons slightly so they all fit on one line */
    .logo img { height: 22px; }
    .nav-actions { gap: 6px; }
    .btn { padding: 6px 10px; font-size: 12px; }
    
    /* MOBILE ONLY: White Login Button to match screenshot */
    .btn-login { 
        background: white; 
        color: var(--text-main); 
        border: 1px solid var(--border-color); 
        padding: 4px 8px; 
        gap: 4px;
    }
    .btn-login:hover { background: #f8f9fa; border-color: #d1d5db; }
    .btn-login i.fa-user { 
        color: white; 
        background: var(--active-blue); 
        width: 22px; height: 22px; 
        display: inline-flex; align-items: center; justify-content: center; 
        border-radius: 50%; font-size: 11px; 
    }

    /* 2. TAB FIXES: Make them compact and stack the icon on top of the text */
    .search-tabs { flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
    .search-tabs a { 
        flex-direction: column; 
        padding: 8px; 
        font-size: 12px; 
        flex: 1 1 calc(33% - 10px); /* Forces 3 tabs per row */
        text-align: center;
        gap: 5px;
        /* MOBILE ONLY: Grey border to match screenshot */
        border: 1px solid var(--border-color);
    }
    .search-tabs a i { font-size: 16px; margin-bottom: 2px; }
    .search-tabs a.active { border-color: var(--search-green); }

    /* 3. SEARCH FORM FIXES: Make it compact and side-by-side */
    .hero-section { height: auto; padding-bottom: 60px; padding-top: 40px; }
    .custom-search-container { padding: 20px 15px 45px 15px; }
    
    /* Forms a perfect 2x2 grid (Dates on top, Guests/Category below) */
    .input-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    
    /* Shrink input padding to look compact */
    .input-box { padding: 8px 10px 8px 35px; }
    .input-box i { left: 10px; font-size: 15px; }
    .input-box label { font-size: 10px; margin-bottom: 2px; }
    .input-box input { font-size: 12px; }
    
    /* 4. SEARCH BUTTON FIX: Stretch across the bottom */
    .search-btn-container { width: calc(100% - 30px); }
    .btn-search { width: 100%; height: 45px; font-size: 15px; border-radius: 4px; }

    /* 5. FOOTER FIXES: Keep stacking logic */
    .footer-grid { grid-template-columns: 1fr; gap: 20px;}
    .footer-nav-section { grid-template-columns: 1fr; border-right: none; padding-right: 0; gap: 10px;}
    .footer-contact-section { padding-left: 0; }
}