/* ============================================
   KINAS AUTOMOBILE — Automotive Division
   ============================================ */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero { min-height: 100vh; padding-top: 120px; padding-bottom: 100px; }
.hero-label { animation: fadeIn 0.6s ease 0.2s both; }
.hero h1 { animation: fadeInUp 0.7s ease 0.3s both; }
.hero-text { animation: fadeInUp 0.7s ease 0.5s both; }
.hero-buttons { animation: fadeInUp 0.7s ease 0.7s both; }
.hero-buttons .btn { min-width: 220px; justify-content: center; color: #FFF !important; }
.hero-buttons .btn-secondary { border-color: var(--secondary); }
.hero-buttons .btn-secondary:hover { background: var(--secondary); }

/* Vehicle Search */
.vehicle-search { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px 32px; margin: -50px auto 50px; position: relative; z-index: 10; max-width: 1100px; box-shadow: var(--shadow-lg); }
.vehicle-search-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.vehicle-search-form .form-group { margin-bottom: 0; }
.vehicle-search-form .form-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.vehicle-search-form .form-control { padding: 12px 14px; font-size: 0.9rem; min-height: 46px; }
.vehicle-search-form .btn { height: 46px; min-width: 46px; padding: 0 20px; display: flex; align-items: center; justify-content: center; }

/* Vehicle Grid */
.vehicles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* Vehicle Card */
.vehicle-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.vehicle-card:hover { transform: translateY(-6px); border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.vehicle-card-image { position: relative; height: 220px; overflow: hidden; background: #0a0a14; }
.vehicle-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.vehicle-card:hover .vehicle-card-image img { transform: scale(1.08); }
.vehicle-card-badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.badge-brand_new { background: var(--accent); color: white; }
.badge-foreign_used { background: var(--secondary); color: white; }
.badge-nigerian_used { background: var(--primary); color: white; }
.vehicle-card-featured { position: absolute; top: 12px; right: 12px; background: rgba(243,112,33,0.9); color: white; padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; z-index: 2; }
.vehicle-card-photos { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.7); color: white; padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.78rem; display: flex; align-items: center; gap: 4px; z-index: 2; }
.vehicle-card-body { padding: 20px; }
.vehicle-card-price { font-size: 1.35rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading); margin-bottom: 6px; }
.vehicle-card-title { font-size: 1.05rem; font-weight: 600; color: var(--text-white); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.vehicle-card-title a { color: inherit; }
.vehicle-card-title a:hover { color: var(--primary); }
.vehicle-card-specs { display: flex; gap: 14px; padding-top: 14px; border-top: 1px solid var(--border-color); flex-wrap: wrap; }
.vehicle-card-spec { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 0.8rem; }
.vehicle-card-spec i { color: var(--secondary); font-size: 0.78rem; }

/* Vehicle Detail */
.vehicle-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--radius-md); overflow: hidden; height: 450px; }
.vehicle-gallery-main { height: 100%; overflow: hidden; }
.vehicle-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform 0.3s; }
.vehicle-gallery-main img:hover { transform: scale(1.02); }
.vehicle-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.vehicle-gallery-side div { overflow: hidden; position: relative; cursor: pointer; }
.vehicle-gallery-side img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-gallery-more { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: white; text-align: center; padding: 8px; font-size: 0.85rem; font-weight: 600; }
.vehicle-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 30px; }
.vehicle-specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 24px 0; }
.vehicle-spec-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px; text-align: center; transition: border-color 0.3s; }
.vehicle-spec-item:hover { border-color: var(--border-accent); }
.vehicle-spec-item i { color: var(--secondary); font-size: 1.1rem; margin-bottom: 5px; display: block; }
.vehicle-spec-item .spec-value { font-size: 1rem; font-weight: 700; color: var(--text-white); }
.vehicle-spec-item .spec-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.vehicle-features { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.vehicle-feature { display: flex; align-items: center; gap: 6px; background: rgba(0,163,224,0.08); border: 1px solid rgba(0,163,224,0.15); padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; color: var(--text-light); }
.vehicle-feature i { color: var(--accent); }

/* Reuse inquiry/lightbox from homes */
.inquiry-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; position: sticky; top: 100px; }
.inquiry-card-price { font-size: 1.6rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading); margin-bottom: 16px; }
.inquiry-card .btn { margin-bottom: 10px; }

.lightbox-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); z-index: 9999; justify-content: center; align-items: center; }
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90%; max-height: 85vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 16px; right: 16px; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; width: 48px; height: 48px; z-index: 10000; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 2rem; cursor: pointer; background: rgba(255,255,255,0.1); border: none; width: 48px; height: 48px; border-radius: 50%; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 1024px) {
    .vehicle-search-form { grid-template-columns: 1fr 1fr; }
    .vehicle-search-form .btn { grid-column: 1 / -1; width: 100%; }
    .vehicle-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero { min-height: auto !important; padding-top: 72px !important; padding-bottom: 32px !important; }
    .hero-content { padding-top: 16px; }
    .hero-label { font-size: 0.68rem; }
    .hero h1 { font-size: 1.5rem !important; margin-bottom: 12px !important; }
    .hero-text { font-size: 0.88rem; margin-bottom: 20px; }
    .hero-buttons .btn { min-width: unset; padding: 12px 24px; font-size: 0.85rem; width: 100%; }
    .vehicle-search { margin: 20px 16px 28px !important; padding: 16px; }
    .vehicle-search-form { grid-template-columns: 1fr; gap: 8px; }
    .vehicle-search-form .form-control { min-height: 46px; }
    .vehicle-search-form .btn { width: 100%; height: 46px; }
    .vehicles-grid { grid-template-columns: 1fr; gap: 14px; }
    .vehicle-card-image { height: 190px; }
    .vehicle-gallery { grid-template-columns: 1fr; height: 220px; }
    .vehicle-gallery-side { display: none; }
    .vehicle-detail-grid { grid-template-columns: 1fr; gap: 16px; }
    .vehicle-specs-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .vehicle-spec-item { padding: 10px 4px; }
    .inquiry-card { position: static; }
}
@media (max-width: 480px) {
    .hero { padding-top: 68px !important; padding-bottom: 24px !important; }
    .hero h1 { font-size: 1.35rem !important; }
    .vehicle-search { margin: 16px 12px 20px !important; padding: 12px; }
    .vehicle-card-image { height: 170px; }
    .vehicle-specs-grid { grid-template-columns: 1fr 1fr; }
}
