/* =========================================
   KESHAV TRAVELS - MASTER STYLESHEET
   Includes: Web, Admin, Slider, Forms, Mobile
   ========================================= */

/* --- 1. GLOBAL VARIABLES & THEME --- */
:root {
    /* Color Palette */
    --primary:  #F97316;   /* Bright Orange */
    --primary2: #FB923C;   /* Lighter Orange (Hover) */
    --accent:   #22C55E;   /* Success Green */
    --danger:   #EF4444;   /* Delete/Error Red */
    
    /* Background Colors */
    --bg:       #1F2937;   /* Main Dark Background */
    --surface:  #273449;   /* Card/Box Background */
    --surface2: #2F3E55;   /* Input/Secondary Background */
    
    /* Typography & Borders */
    --text:     #F9FAFB;   /* Main Text Color */
    --muted:    #CBD5E1;   /* Muted Text Color */
    --border:   rgba(255,255,255,0.15); /* Subtle Borders */
}

/* Base Reset */
* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Links Global */
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- 2. NAVBAR SECTION --- */
.navbar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    color: var(--primary);
    font-weight: 800;
    font-size: 26px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* --- 3. SLIDER SECTION (CRITICAL) --- */
.slider-frame {
    width: 100%;
    /* Default height for Desktop */
    min-height: 650px; 
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid var(--primary);
    background-color: #111; /* Fallback if image fails */
}

.slide-images {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.img-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Hidden by default */
    transition: opacity 1.5s ease-in-out; /* Smooth fade */
    background-size: cover;
    background-position: center;
    /* Dark overlay for text readability */
    filter: brightness(0.55); 
}

.img-container.active {
    opacity: 1; /* Visible */
}

/* --- 4. STYLISH BOOKING FORM (GLASS EFFECT) --- */
.booking-overlay-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 90%;
    max-width: 600px;
    
    /* Glassmorphism Style */
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

h2.form-title {
    color: var(--primary);
    text-align: center;
    margin-bottom: 25px;
    margin-top: 0;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

/* Form Styling */
label {
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

input, select {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border) !important;
    color: #fff !important;
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary) !important;
    background-color: rgba(15, 23, 42, 0.95) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

/* Submit Button */
.btn-taxi {
    background: linear-gradient(135deg, var(--primary), #EA580C);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-taxi:hover {
    background: linear-gradient(135deg, #EA580C, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* --- 5. ABOUT SECTION --- */
.about-section {
    background-color: var(--surface);
    padding: 80px 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-text { flex: 1; min-width: 300px; }
.about-image { flex: 1; min-width: 300px; }

.about-text h2 {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.about-text p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    border: 3px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.about-image img:hover { transform: scale(1.02); }

/* Buttons in About */
.btn-group { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-whatsapp {
    background-color: #25D366; color: white; padding: 12px 25px;
    border-radius: 6px; font-weight: bold; display: flex; align-items: center; gap: 8px;
}
.btn-call {
    background-color: var(--primary); color: white; padding: 12px 25px;
    border-radius: 6px; font-weight: bold; display: flex; align-items: center; gap: 8px;
}

/* --- 6. POPULAR ROUTES SECTION --- */
.routes-section {
    padding: 70px 20px;
    background-color: var(--bg);
}

.section-heading {
    text-align: center;
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Route Card */
.route-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.route-box:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Decorative background pattern */
.route-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--surface2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 0;
}

.route-header {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    padding: 15px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.route-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.route-links {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* Bubble Links */
.route-bubble {
    background: var(--surface2);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.route-bubble:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* --- 7. ADMIN PANEL STYLES (SIDEBAR + CONTENT) --- */
/* Login Page */
.login-box {
    background: var(--surface);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Dashboard Layout */
.sidebar {
    width: 250px;
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    z-index: 500;
}
.sidebar h2 { color: var(--primary); text-align: center; margin-bottom: 30px; font-size: 22px; }

.main-content {
    margin-left: 250px;
    padding: 30px;
    width: calc(100% - 250px);
}

.nav-link {
    color: var(--text);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-weight: 500;
}
.nav-link:hover, .nav-link.active {
    background-color: var(--primary);
    color: white;
}

/* Tables */
.table-responsive { overflow-x: auto; margin-top: 20px; border-radius: 8px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text); }
th { background: var(--surface2); color: var(--primary); text-transform: uppercase; font-size: 13px; font-weight: bold; }
tr:hover { background-color: rgba(255,255,255,0.02); }

/* Admin Grid for Images/Cities */
.image-grid, .city-list { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; }
.img-card { position: relative; border: 2px solid var(--primary); border-radius: 8px; overflow: hidden; width: 150px; height: 100px; }
.img-card img { width: 100%; height: 100%; object-fit: cover; }
.delete-btn { position: absolute; top: 5px; right: 5px; background: var(--danger); color: white; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* --- 8. FOOTER --- */
.footer {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
    background-color: #111827;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

/* --- 9. MOBILE OPTIMIZATION (THE BIG FIX) --- */
/* This section targets phones specifically to fix the "Big Form" issue */

@media screen and (max-width: 768px) {
    
    /* Navbar Adjustment */
    .navbar-brand { font-size: 22px; }

    /* Slider Height on Mobile */
    .slider-frame {
        min-height: 580px; /* Reduced height for mobile */
    }

    /* COMPACT MOBILE FORM */
    .booking-overlay-container {
        width: 95%; /* Use almost full width */
        padding: 20px 15px; /* Less padding inside */
        border-radius: 12px;
        background: rgba(30, 41, 59, 0.95); /* More solid bg on mobile */
    }

    h2.form-title {
        font-size: 20px; /* Smaller Title */
        margin-bottom: 15px;
    }

    /* Side-by-side inputs on mobile (Flexbox fix) */
    .booking-overlay-container form > div {
        display: flex;
        gap: 10px;
    }
    
    .booking-overlay-container form > div > div {
        flex: 1; /* Ensure equal width */
        min-width: 0; /* Prevent overflow */
    }

    /* Small Compact Inputs */
    input, select {
        padding: 8px 10px; /* Smaller padding */
        height: 40px; /* Fixed smaller height */
        font-size: 13px; /* Smaller text */
        margin-bottom: 10px; /* Less gap */
    }

    label {
        font-size: 11px; /* Smaller label */
        margin-bottom: 2px;
    }

    /* Button Adjustment */
    .btn-taxi {
        padding: 10px;
        font-size: 15px;
        margin-top: 5px;
    }

    /* Admin Sidebar Mobile Logic */
    .sidebar { position: relative; width: 100%; height: auto; display: block; overflow-y: visible; }
    .main-content { margin-left: 0; width: 100%; padding: 15px; }
    
    /* About Section Mobile */
    .about-container { flex-direction: column-reverse; }
    .about-image, .about-text { min-width: 100%; }
}
/* --- 6. POPULAR ROUTES SECTION (ULTRA GLASS LOOK) --- */
.routes-section {
    padding: 80px 20px;
    background-color: #0f172a; /* Very Dark Blue Background */
    position: relative;
    /* Background Pattern for the whole section */
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
    background-size: 30px 30px;
}

.section-heading {
    text-align: center;
    color: var(--primary);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.6); /* Glowing Text */
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1250px;
    margin: 0 auto;
}

/* --- THE GLASS BOX --- */
.route-box {
    /* Pure Glass Effect */
    background: rgba(255, 255, 255, 0.03); /* Very transparent white */
    backdrop-filter: blur(15px); /* Blurs the background behind it */
    -webkit-backdrop-filter: blur(15px);
    
    border: 1px solid rgba(255, 255, 255, 0.1); /* Thin white border */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Hover Effect: Box Lights Up */
.route-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07); /* Slightly brighter on hover */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* --- HEADER --- */
.route-header {
    background: linear-gradient(90deg, #c2410c, #f97316); /* Strong Orange Gradient */
    padding: 20px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%); /* Stylish Cut at bottom */
}

.route-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- LINKS AREA --- */
.route-links {
    padding: 30px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* --- NEON BUBBLES --- */
.route-bubble {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0; /* Light Grey Text */
    
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.route-bubble:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary); /* Neon Glow */
    transform: scale(1.05);
}