/* ============================================================
   OmniDrive — Public Stylesheet
   Theme: Red (#dc2626) on White, Inter font
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --red:        #dc2626;
  --red-dark:   #b91c1c;
  --red-light:  #fee2e2;
  --red-subtle: #fff5f5;
  --black:      #111827;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --white:      #ffffff;
  --border:     #e5e7eb;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:  0 4px 24px rgba(0,0,0,.12);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
.text-red    { color: var(--red); }
.text-muted  { color: var(--gray-500); }
.text-danger { color: var(--red); }

/* ── Utility ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }
.flex       { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.optional { color: var(--gray-400); font-size: .8em; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.2rem; border-radius: var(--radius);
  font-weight: 600; font-size: .875rem; cursor: pointer;
  border: 1px solid transparent; transition: all .18s; white-space: nowrap;
}
.btn-primary   { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline   { background: transparent; color: var(--black); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--black); }
.btn-outline-sm { background: transparent; color: var(--black); border: 1px solid var(--gray-300); padding: .4rem .9rem; border-radius: var(--radius); font-size: .85rem; font-weight: 500; cursor: pointer; transition: .15s; }
.btn-outline-sm:hover { border-color: var(--black); }
.btn-ghost  { background: transparent; color: var(--gray-500); border-color: transparent; }
.btn-ghost:hover { color: var(--black); background: var(--gray-100); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm  { padding: .35rem .8rem; font-size: .8rem; }
.btn-lg  { padding: .75rem 1.8rem; font-size: 1rem; }
.full-width { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 1050;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.5px; color: var(--black); }
.logo .dot { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: .875rem; font-weight: 500; color: var(--gray-500); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-link-operator { color: var(--red) !important; font-weight: 600; }
.nav-link-disabled  { color: var(--gray-400); font-size: .85rem; display: flex; align-items: center; gap: .3rem; cursor: default; }
.divider-vertical   { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }

/* User menu */
.nav-user-menu   { position: relative; }
.nav-user-btn    { display: flex; align-items: center; gap: .4rem; background: none; border: none; cursor: pointer; font-size: .875rem; font-weight: 500; padding: .3rem .5rem; border-radius: var(--radius); transition: background .15s; }
.nav-user-btn:hover { background: var(--gray-100); }
.nav-avatar      { width: 28px; height: 28px; background: var(--red); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.user-dropdown   { display: none; position: absolute; right: 0; top: calc(100% + .4rem); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); min-width: 170px; padding: .4rem 0; z-index: 1100; }
.user-dropdown.open { display: block; }
.user-dropdown a, .user-dropdown hr { display: block; padding: .5rem 1rem; font-size: .85rem; color: var(--gray-700); transition: background .12s; }
.user-dropdown a:hover { background: var(--gray-50); color: var(--black); }
.user-dropdown a.text-danger:hover { background: var(--red-light); }
.user-dropdown hr { padding: 0; margin: .3rem 0; border: none; border-top: 1px solid var(--border); }

/* Notification bell */
.notif-wrap  { position: relative; }
.notif-bell  { background: none; border: none; cursor: pointer; padding: .4rem; border-radius: var(--radius); font-size: 1rem; color: var(--gray-500); position: relative; display: flex; align-items: center; transition: background .15s; }
.notif-bell:hover { background: var(--gray-100); }
.notif-badge { position: absolute; top: -3px; right: -3px; background: var(--red); color: #fff; border-radius: 50%; width: 16px; height: 16px; font-size: .62rem; font-weight: 800; display: none; align-items: center; justify-content: center; }
.notif-panel { position: absolute; right: 0; top: calc(100% + .4rem); width: 300px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 1100; overflow: hidden; }
.notif-panel-hdr { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.notif-item { padding: .6rem 1rem; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: background .12s; }
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: #eff6ff; }
.notif-item-title { font-size: .81rem; font-weight: 600; margin-bottom: .12rem; color: var(--gray-800); }
.notif-item-msg   { font-size: .76rem; color: var(--gray-500); line-height: 1.4; }
.notif-item-time  { font-size: .69rem; color: var(--gray-400); margin-top: .18rem; }
.notif-empty { padding: 1.5rem; text-align: center; color: var(--gray-400); font-size: .84rem; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: all .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--border); padding: 1rem 1.5rem; flex-direction: column; gap: .2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu span { padding: .6rem 0; font-size: .95rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.mobile-menu hr { border: none; border-top: 1px solid var(--border); margin: .3rem 0; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--gray-700); text-transform: uppercase; letter-spacing: .4px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px; border: 1px solid transparent;
  border-radius: 8px; font-size: .92rem; background: var(--gray-100);
  transition: all .2s; color: var(--black);
}
.form-group select {
  padding-right: 36px;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-light); background: #fff; }
.form-group select:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
}
.form-group select::-ms-expand { display: none; }
.form-group input[type="file"] { padding: .45rem .7rem; background: #fff; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* OTP boxes */
.otp-boxes { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.otp-box { width: 44px; height: 52px; text-align: center; font-size: 1.4rem; font-weight: 700; border: 2px solid var(--border); border-radius: 8px; background: var(--gray-100); color: var(--black); transition: border-color .15s, box-shadow .15s; }
.otp-box:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px var(--red-light); }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) {
  .modal-box .form-row-2,
  .modal-box .form-row-3 { grid-template-columns: 1fr; }
}
.form-section-label { font-size: .75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--border); padding-bottom: .4rem; margin: 1.2rem 0 .8rem; }
.form-error { background: var(--red-light); color: var(--red-dark); padding: .6rem .9rem; border-radius: var(--radius); font-size: .85rem; margin-bottom: .8rem; }
.form-hint  { font-size: .8rem; color: var(--gray-400); margin-top: .2rem; }

/* ── Badges / Status ────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-green    { background: #dcfce7; color: #166534; }
.badge-red      { background: var(--red-light); color: var(--red-dark); }
.badge-yellow   { background: #fef9c3; color: #854d0e; }
.badge-gray     { background: var(--gray-100); color: var(--gray-500); }
.badge-blue     { background: #dbeafe; color: #1e40af; }
.badge-orange   { background: #ffedd5; color: #9a3412; }

/* ── Cards ──────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-body { padding: 1.25rem; }
.card-footer { padding: .8rem 1.25rem; border-top: 1px solid var(--border); background: var(--gray-50); display: flex; align-items: center; justify-content: space-between; }

/* ── Car Card ───────────────────────────────────────────────── */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.car-card .car-img-wrap { position: relative; height: 180px; background: var(--gray-100); overflow: hidden; }
.car-card .car-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.car-card:hover .car-img-wrap img { transform: scale(1.04); }
.car-card .car-badge { position: absolute; top: .6rem; left: .6rem; }
.car-card .car-body { padding: 1rem; }
.car-name { font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.car-specs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.car-spec { font-size: .78rem; color: var(--gray-500); display: flex; align-items: center; gap: .2rem; }
.car-spec::after { content: '·'; margin-left: .4rem; color: var(--gray-300); }
.car-spec:last-child::after { display: none; }
.car-price { font-size: 1.1rem; font-weight: 800; color: var(--red); }
.car-price small { font-size: .75rem; font-weight: 400; color: var(--gray-400); }
.car-rating { display: flex; align-items: center; gap: .25rem; font-size: .8rem; color: var(--gray-500); }
.car-rating i { color: #f59e0b; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: 5rem 0 3rem; text-align: center; background: var(--gray-50); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -30%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, var(--red-light) 0%, transparent 70%); opacity: .5; pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero h1 span { color: var(--red); }
.hero p { color: var(--gray-500); font-size: 1.05rem; max-width: 480px; margin: 1rem auto 2rem; }

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); max-width: 960px; margin: 0 auto; }
.search-fields   { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 1rem; align-items: end; }
.search-field label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-500); margin-bottom: .3rem; }
.search-field select,
.search-field input { width: 100%; padding: .55rem .8rem; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: .9rem; background: var(--gray-50); }
.search-field select:focus,
.search-field input:focus  { outline: none; border-color: var(--red); background: #fff; }

/* ── Section headers ────────────────────────────────────────── */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title  { font-size: 1.4rem; font-weight: 800; }
.section-link   { font-size: .85rem; color: var(--red); font-weight: 600; }

/* ── Table ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th { padding: .7rem 1rem; background: var(--gray-50); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-500); border-bottom: 1px solid var(--border); text-align: left; }
tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tbody tr:hover { background: var(--gray-50); }
tbody tr:last-child td { border-bottom: none; }

/* ── Modals ─────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1200; align-items: flex-start; justify-content: center; padding: 1.5rem 1rem; overflow-y: auto; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 680px; padding: 2rem; position: relative; animation: modalIn .2s ease; margin: auto; box-sizing: border-box; overflow-x: hidden; }
.modal-box.modal-sm { max-width: 440px; }
.modal-box.modal-lg { max-width: 900px; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--gray-100); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--gray-500); font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--gray-200); color: var(--black); }
.modal-title    { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; }
.modal-subtitle { color: var(--gray-500); font-size: .875rem; margin-bottom: 1.5rem; }

/* Auth tabs */
.auth-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.auth-tab  { flex: 1; padding: .7rem; background: none; border: none; font-weight: 600; font-size: .9rem; color: var(--gray-400); cursor: pointer; transition: color .15s; }
.auth-tab.active { color: var(--red); border-bottom: 2px solid var(--red); margin-bottom: -2px; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast { display: flex; align-items: center; gap: .6rem; background: var(--black); color: #fff; padding: .75rem 1.1rem; border-radius: var(--radius); font-size: .875rem; min-width: 240px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; }
.toast.success { background: #166534; }
.toast.error   { background: var(--red-dark); }
.toast.info    { background: #1e40af; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Steps / Process ────────────────────────────────────────── */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.step-item { text-align: center; }
.step-icon { width: 56px; height: 56px; background: var(--red-subtle); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto .8rem; color: var(--red); font-size: 1.3rem; }
.step-num  { width: 28px; height: 28px; background: var(--red); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; margin-bottom: .5rem; }

/* ── Alert boxes ────────────────────────────────────────────── */
.alert { padding: .8rem 1rem; border-radius: var(--radius); font-size: .875rem; display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1rem; }
.alert-warning { background: #fef9c3; color: #854d0e; border-left: 3px solid #f59e0b; }
.alert-info    { background: #dbeafe; color: #1e40af; border-left: 3px solid #3b82f6; }
.alert-success { background: #dcfce7; color: #166534; border-left: 3px solid #22c55e; }
.alert-danger  { background: var(--red-light); color: var(--red-dark); border-left: 3px solid var(--red); }

/* ── Skeleton loader ────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--gray-400); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state h3 { color: var(--gray-600); margin-bottom: .5rem; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.page-btn { padding: .4rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .85rem; cursor: pointer; background: #fff; }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.page-btn:hover:not(.active) { border-color: var(--black); }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background: var(--black); color: #9ca3af; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: .6rem; }
.footer-logo .dot { color: var(--red); }
.footer-tagline { font-size: .85rem; line-height: 1.6; }
.footer-col h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #fff; margin-bottom: .8rem; }
.footer-col a  { display: block; font-size: .85rem; margin-bottom: .4rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1f2937; padding-top: 1.2rem; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .search-container-wrapper { margin-top: -40px; padding: 0 15px; }
  .search-bar-wrap { padding: 1.25rem 1.5rem; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields > *:last-child { grid-column: 1 / -1; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .car-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .search-container-wrapper { margin-top: -30px; }
  .search-fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 1.5rem 1.25rem; }
}

/* ── Account status banner ───────────────────────────────── */
.account-status-banner {
  padding: .55rem 1.5rem;
  font-size: .82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-bottom: 1px solid transparent;
}
.account-status-banner a {
  font-weight: 700;
  text-decoration: underline;
  margin-left: .25rem;
}
.banner-guest  { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.banner-guest a { color: #dc2626; }
.banner-warn   { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.banner-warn a  { color: #854d0e; }
.banner-info   { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.banner-info a  { color: #1e40af; }
.banner-danger { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.banner-danger a { color: #b91c1c; }

/* ── Xcelrent-style custom search dropdowns ──────────────── */
.search-container-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}
.search-bar-wrap {
  background: #fff;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1px solid var(--border);
}
.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 1.5rem;
  align-items: end;
}
.search-field label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: .4rem;
  letter-spacing: .5px;
}
.search-field select,
.search-field input[type="datetime-local"] {
  width: 100%;
  background: var(--gray-100);
  padding: 10px 36px 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .92rem;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  transition: all .2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}
.search-field select:disabled,
.search-field input[type="datetime-local"]:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
}
.search-field select::-ms-expand,
.search-field input[type="datetime-local"]::-ms-expand {
  display: none;
}
.search-field input[type="datetime-local"] {
  background-image: none;
  padding-right: 14px;
}
.search-field select:hover,
.search-field input[type="datetime-local"]:hover { background-color: #ebeef2; }
.search-field select:focus,
.search-field input[type="datetime-local"]:focus {
  outline: none;
  border-color: var(--red);
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--red-light);
}
.btn-search-round {
  background: var(--red);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 4px 12px rgba(220,38,38,.3);
  flex-shrink: 0;
}
.btn-search-round:hover { transform: scale(1.06); background: var(--red-dark); }

/* Date trigger button (xcelrent-style, replaces datetime-local) */
.date-trigger {
  background: var(--gray-100);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-400);
  border: 1px solid transparent;
  transition: all .2s;
  width: 100%;
  user-select: none;
}
.date-trigger:hover { background: #ebeef2; }
.date-trigger:focus-within,
.date-trigger.active {
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-light);
}
.date-trigger i { color: var(--gray-400); font-size: .85rem; flex-shrink: 0; }
.date-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── Custom dropdown (xcelrent-style) ───────────────────────── */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}
.select-trigger {
  background: var(--gray-100);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .92rem;
  font-weight: 500;
  color: var(--black);
  transition: all .2s;
  border: 1px solid transparent;
}
.select-trigger:hover { background: #ebeef2; }
.custom-select.active .select-trigger {
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-light);
}
.custom-select.disabled .select-trigger {
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.7;
}
.select-trigger i {
  font-size: .8rem;
  color: var(--gray-500);
  transition: transform .3s;
}
.custom-select.active .select-trigger i { transform: rotate(180deg); }
.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  border: 1px solid var(--gray-200);
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .2s;
  overflow: hidden;
}
.custom-select.active .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.option {
  padding: 11px 14px;
  font-size: .9rem;
  cursor: pointer;
  transition: .15s;
  color: var(--black);
}
.option:hover { background: var(--gray-100); color: var(--red); }
.option.selected { background: var(--red-light); color: var(--red); font-weight: 600; }

/* ── Date/time modal (xcelrent-style) ───────────────────────── */
.date-modal-content {
  background: #fff;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  max-width: 340px;
  width: 100%;
  animation: modalPop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalPop {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.date-modal-header {
  background: var(--red);
  color: #fff;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: .9rem;
}
.date-modal-body { padding: 1rem 1.25rem 0; display: flex; justify-content: center; background: #fff; }
.date-modal-footer { padding: 1rem 1.25rem; background: #fff; display: flex; justify-content: flex-end; gap: .5rem; }

/* Flatpickr time-picker alignment (used if flatpickr is loaded) */
.flatpickr-time {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.flatpickr-time .flatpickr-time-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.flatpickr-time .flatpickr-am-pm {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.flatpickr-time input {
  color: var(--black) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}
.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover { background: var(--gray-100) !important; border-radius: 4px; }
.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
}
.flatpickr-day:hover { background: var(--red-light) !important; color: var(--red) !important; }
.flatpickr-day.pickup-ref-day {
  border: 2px solid var(--red) !important;
  color: var(--red) !important;
  font-weight: 700 !important;
}
