/* Punjab Delhi Taxi — Optimized CSS
   Performance fixes: font-display, will-change, contain */

/* FIX: font-display swap prevents layout shift */
@font-face {
    font-family: 'Rajdhani';
    font-display: swap;
    src: local('Rajdhani');
}
@font-face {
    font-family: 'Open Sans';
    font-display: swap;
    src: local('Open Sans');
}

:root {
    --yellow: #F5C400;
    --yellow-dark: #d4a900;
    --black: #000000;
    --dark: #0a0a0a;
    --dark2: #0d0d0d;
    --dark3: #111111;
    --border: #1a1a1a;
    --text-light: #cccccc;
    --text-muted: #666666;
    --white: #ffffff;
    --green: #28a745;
    --font-heading: 'Rajdhani', 'Arial Narrow', sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-yellow: 0 4px 20px rgba(245,196,0,0.3);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--white);
    line-height: 1.7;
    font-size: 15px;
    /* FIX: prevent horizontal scroll causing CLS */
    overflow-x: hidden;
}

a { color: var(--yellow); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--yellow-dark); }

/* FIX: All images — prevent layout shift */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* FIX: Explicit dimensions on images in HTML, use this as fallback */
}

/* FIX: Lazy load placeholder to prevent CLS */
img[loading="lazy"] {
    background: #111;
    min-height: 1px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ===== BUTTONS ===== */
.btn-yellow {
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* FIX: will-change for animated elements */
    will-change: transform;
}
.btn-yellow:hover {
    background: var(--yellow-dark);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-yellow);
}

.btn-outline-yellow {
    background: transparent;
    color: var(--yellow);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 11px 28px;
    border-radius: var(--radius);
    border: 2px solid var(--yellow);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    will-change: transform;
}
.btn-outline-yellow:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, var(--black) 0%, #1a1200 50%, var(--black) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    /* FIX: contain layout */
    contain: layout;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/banners/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
    /* FIX: GPU acceleration */
    will-change: opacity;
}
.hero-badge {
    background: var(--yellow);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-title .highlight { color: var(--yellow); }
.hero-desc { color: var(--text-light); font-size: 1rem; margin-bottom: 30px; max-width: 540px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== BOOKING FORM ===== */
.booking-form-section {
    background: var(--dark2);
    border-top: 3px solid var(--yellow);
    padding: 30px 0;
}
.booking-card {
    background: var(--dark3);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid #333;
}
.booking-card h4 {
    color: var(--yellow);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}
.form-control, .form-select {
    background: var(--dark2);
    border: 1px solid #444;
    color: var(--white);
    border-radius: var(--radius);
    padding: 10px 14px;
    /* FIX: explicit height to prevent CLS */
    height: 44px;
}
textarea.form-control { height: auto; }
.form-control:focus, .form-select:focus {
    background: var(--dark2);
    border-color: var(--yellow);
    box-shadow: 0 0 0 0.2rem rgba(245,196,0,0.2);
    color: var(--white);
}
.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--dark3); }
label.form-label { color: var(--text-light); font-size: 0.85rem; font-weight: 600; }

/* ===== SECTIONS ===== */
section { padding: 70px 0; }
.section-dark    { background: var(--dark); }
.section-darker  { background: var(--dark2); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .section-tag {
    font-family: var(--font-heading);
    color: var(--yellow);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white);
    margin-bottom: 15px;
}
.section-header h2 span { color: var(--yellow); }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; font-size: 1rem; }
.section-divider { width: 50px; height: 3px; background: var(--yellow); margin: 15px auto; border-radius: 2px; }

/* ===== CARDS ===== */
.service-card {
    background: var(--dark3);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: var(--transition);
    height: 100%;
    will-change: transform;
}
.service-card:hover {
    border-color: var(--yellow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-yellow);
}
/* FIX: Explicit dimensions on card images — prevent CLS */
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Prevent layout shift */
    aspect-ratio: 5/2;
}
.service-card-body { padding: 20px; }
.service-card-body h3 {
    color: var(--yellow);
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-card-body p { color: var(--text-light); font-size: 0.9rem; }

/* ===== ROUTE CARDS ===== */
.route-card {
    background: var(--dark3);
    border: 1px solid #2a2a2a;
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    will-change: transform;
}
.route-card:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-yellow);
    transform: translateY(-3px);
}
.route-card-cities {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}
.route-arrow { color: var(--yellow); font-size: 1.2rem; }
.route-card-meta { display: flex; gap: 15px; font-size: 0.82rem; color: var(--text-muted); }
.route-card-meta span { display: flex; align-items: center; gap: 5px; }
.route-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 12px;
    margin-top: 5px;
}
.route-price-label { font-size: 0.8rem; color: var(--text-muted); }
.route-price-val { font-family: var(--font-heading); font-size: 1.2rem; color: var(--yellow); font-weight: 700; }
.route-book-btn {
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition);
    display: inline-block;
}
.route-book-btn:hover { background: var(--yellow-dark); color: var(--black); }

/* ===== WHY CHOOSE ===== */
.why-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--dark3);
    border-radius: var(--radius);
    border: 1px solid #2a2a2a;
    transition: var(--transition);
    height: 100%;
}
.why-item:hover { border-color: var(--yellow); }
.why-icon {
    width: 55px;
    height: 55px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.why-text h4 { font-size: 1.1rem; color: var(--white); margin-bottom: 6px; }
.why-text p  { color: var(--text-muted); font-size: 0.88rem; }

/* ===== STATS ===== */
.stats-section { background: var(--yellow); padding: 40px 0; }
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
}
.stat-label { color: var(--dark3); font-size: 0.9rem; font-weight: 600; margin-top: 5px; }

/* ===== FAQ ===== */
.faq-section { background: var(--dark2); }
.accordion-item {
    background: var(--dark3) !important;
    border: 1px solid #333 !important;
    border-radius: var(--radius) !important;
    margin-bottom: 10px;
    overflow: hidden;
}
.accordion-button {
    background: var(--dark3) !important;
    color: var(--white) !important;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 20px;
    /* FIX: explicit min-height prevents CLS on accordion */
    min-height: 56px;
}
.accordion-button:not(.collapsed) {
    background: var(--dark2) !important;
    color: var(--yellow) !important;
    box-shadow: none !important;
}
.accordion-button::after { filter: invert(1); }
.accordion-body {
    background: var(--dark2);
    color: var(--text-light);
    font-size: 0.92rem;
    padding: 16px 20px;
}

/* ===== GALLERY ===== */
.gallery-img { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.gallery-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
    /* FIX: aspect-ratio prevents CLS */
    aspect-ratio: 4/3;
}
.gallery-img:hover img { transform: scale(1.05); }

/* ===== CONTACT ===== */
.contact-info-item {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: var(--dark3);
    border-radius: var(--radius);
    border: 1px solid #2a2a2a;
    margin-bottom: 15px;
    transition: var(--transition);
    /* FIX: min-height prevents CLS */
    min-height: 72px;
}
.contact-info-item:hover { border-color: var(--yellow); }
.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--black);
}
.contact-info-text p  { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 3px; }
.contact-info-text a, .contact-info-text span { font-weight: 600; color: var(--white); font-size: 0.95rem; }

/* ===== ROUTE PAGE ===== */
.route-hero {
    background: var(--dark2);
    padding: 50px 0;
    border-bottom: 3px solid var(--yellow);
    position: relative;
    overflow: hidden;
    contain: layout;
}
.route-price-box {
    background: var(--dark3);
    border: 2px solid var(--yellow);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
}
.route-price-box .price-big { font-family: var(--font-heading); font-size: 2.5rem; color: var(--yellow); font-weight: 700; }
.route-price-box .price-type { color: var(--text-muted); font-size: 0.85rem; }
.route-meta-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.route-meta-badge {
    background: var(--dark3);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section { background: var(--black); padding: 12px 0; border-bottom: 1px solid #222; }
.breadcrumb { margin: 0; }
.breadcrumb-item a { color: var(--yellow); font-size: 0.85rem; }
.breadcrumb-item.active { color: var(--text-muted); font-size: 0.85rem; }
.breadcrumb-item+.breadcrumb-item::before { color: #555; }

/* ===== ADMIN ===== */
.admin-sidebar {
    background: var(--black);
    min-height: 100vh;
    border-right: 2px solid var(--yellow);
    width: 250px;
    position: fixed;
    top: 0; left: 0;
    overflow-y: auto;
}
.admin-logo { padding: 20px; border-bottom: 1px solid #222; background: var(--dark2); }
.admin-logo h4 { color: var(--yellow); font-size: 1.1rem; margin: 0; }
.admin-nav { padding: 15px 0; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
    color: var(--yellow);
    background: var(--dark3);
    border-left-color: var(--yellow);
}
.admin-content { margin-left: 250px; padding: 30px; min-height: 100vh; background: var(--dark); }
.admin-header { background: var(--dark2); padding: 15px 30px; border-bottom: 1px solid #333; margin-left: 250px; display: flex; justify-content: space-between; align-items: center; }
.admin-card { background: var(--dark2); border: 1px solid #333; border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.admin-card h5 { color: var(--yellow); font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #333; }
.stat-box { background: var(--dark3); border: 1px solid #333; border-radius: var(--radius); padding: 20px; text-align: center; border-left: 4px solid var(--yellow); }
.stat-box .num { font-size: 2rem; font-weight: 700; color: var(--yellow); font-family: var(--font-heading); }
.stat-box .lbl { color: var(--text-muted); font-size: 0.85rem; }
.table-dark-custom { --bs-table-bg: var(--dark3); color: var(--white); }
.table-dark-custom th { background: var(--dark2); color: var(--yellow); }
.table-dark-custom td { border-color: #333; }
.badge-active   { background: var(--green); color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; }
.badge-inactive { background: #666; color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; }

/* ===== PAGE CONTENT ===== */
.page-content h2 { color: var(--yellow); font-size: 1.6rem; margin: 25px 0 12px; }
.page-content h3 { color: var(--white); font-size: 1.3rem; margin: 20px 0 10px; }
.page-content p  { color: var(--text-light); margin-bottom: 15px; }
.page-content ul { color: var(--text-light); padding-left: 20px; margin-bottom: 15px; }
.page-content ul li { margin-bottom: 6px; }
.page-content strong { color: var(--yellow); }

/* ===== UTILITY ===== */
.text-yellow      { color: var(--yellow) !important; }
.bg-yellow        { background: var(--yellow) !important; }
.text-muted-custom{ color: var(--text-muted) !important; }
.border-yellow    { border-color: var(--yellow) !important; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 6px 0; color: var(--text-light); font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.check-list li::before { content: ''; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5C400'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center; background-size: contain; flex-shrink: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .admin-sidebar { position: relative; width: 100%; min-height: auto; }
    .admin-content, .admin-header { margin-left: 0; }
    .hero-section { padding: 40px 0; }
}

@media (max-width: 768px) {
    section { padding: 50px 0; }
    .hero-title { font-size: 1.8rem; }
}

/* ===== PERFORMANCE: Reduce motion for accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
