/* araba.rent V3 — restrained SaaS / layered-panel visual system */
:root {
  --navy: #050816;
  --navy-2: #090d1d;
  --navy-3: #101526;
  --panel: #0d1427;
  --blue: #4f7cff;
  --blue-bright: #7da2ff;
  --blue-soft: #17264a;
  --ink: #f5f7ff;
  --text: #cbd5e8;
  --muted: #98a5bd;
  --line: #293550;
  --line-soft: #202b43;
  --paper: #090e1d;
  --white: #0d1427;
  --success: #55d99b;
  --danger: #ff8178;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.22), 0 8px 20px rgba(0,0,0,.16);
  --shadow: 0 20px 58px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, .btn, a { -webkit-tap-highlight-color: transparent; }
::selection { background: #cfdcff; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(79,124,255,.42); outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

/* Public navigation */
.nav-shell {
  position: relative;
  z-index: 100;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.nav { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; width: max-content; font-size: 21px; line-height: 1; font-weight: 750; letter-spacing: -.85px; }
.brand span { color: var(--blue-bright); }
.navlinks { display: flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.navlinks a { min-height: 36px; padding: 8px 16px; border-radius: 999px; color: #596174; font-size: 13px; font-weight: 600; line-height: 20px; }
.navlinks a:hover, .navlinks a.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(11,16,32,.09); }
.nav-cta { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 17px; border: 1px solid #cfd6e3; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 650; }
.nav-cta:hover { border-color: var(--blue); color: var(--blue); }
.home-page .nav-shell { position: absolute; top: 16px; right: 0; left: 0; height: 58px; border: 0; background: transparent; }
.home-page .nav { width: min(760px, calc(100% - 48px)); padding: 0 9px 0 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(9,13,29,.92); box-shadow: 0 14px 38px rgba(0,0,0,.24); color: #fff; }
.home-page .navlinks { border-color: transparent; background: transparent; }
.home-page .navlinks a { color: #9da8c0; }
.home-page .navlinks a:hover, .home-page .navlinks a.active { background: #171d31; color: #fff; box-shadow: none; }
.home-page .nav-cta { min-height: 40px; border-color: #2f3c5c; background: #151b2f; color: #fff; }
.mobile-nav { display: none; }

/* Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border: 1px solid #cbd3df; border-radius: 999px;
  background: var(--white); color: var(--ink); font-weight: 650; line-height: 1.1; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #aab4c5; box-shadow: var(--shadow-sm); }
.btn-primary { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 8px 25px rgba(37,99,235,.25); }
.btn-primary:hover { border-color: #1d4ed8; background: #1d4ed8; }
.btn-dark { border-color: var(--navy); background: var(--navy); color: #fff; }

/* V3 hero */
.hero { position: relative; isolation: isolate; min-height: 900px; padding: 118px 0 0; overflow: hidden; background: var(--navy); color: #fff; }
.hero-grid {
  position: absolute; z-index: -1; top: 40%; left: 50%; width: 1500px; height: 780px;
  transform: translateX(-50%) perspective(520px) rotateX(61deg); transform-origin: 50% 0;
  background-image: linear-gradient(rgba(82,105,166,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(82,105,166,.15) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .72; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 74%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 74%, transparent);
}
.hero-inner { position: relative; display: flex; min-height: 782px; flex-direction: column; align-items: center; }
.hero-copy { width: min(850px, 100%); text-align: center; }
.availability { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 5px 11px; border: 1px solid #263250; border-radius: 999px; background: #0b1123; color: #aebbd4; font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.availability > span { width: 7px; height: 7px; border-radius: 50%; background: #47d18c; box-shadow: 0 0 0 4px rgba(71,209,140,.10); }
.hero h1 { margin: 20px auto 18px; font-size: clamp(48px, 6vw, 76px); line-height: .99; font-weight: 750; letter-spacing: -.058em; }
.hero h1 em { color: #7da2ff; font-style: normal; }
.lead { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero .lead { max-width: 620px; margin: 0 auto; color: #9ca8c0; font-size: 16px; line-height: 1.65; }
.hero-cta { min-height: 49px; margin-top: 25px; padding-inline: 23px; }
.reassurance { margin: 11px 0 0; color: #727f99; font-size: 10px; letter-spacing: .02em; }
.panel-stack { position: relative; width: min(1050px, 100%); margin-top: 55px; }
.route-board { display: grid; grid-template-columns: .82fr 1.55fr; overflow: hidden; border: 1px solid #303952; border-radius: 18px; background: #0c1224; box-shadow: 0 30px 80px rgba(0,0,0,.45); text-align: left; }
.route-intro { display: flex; min-width: 0; padding: 25px; flex-direction: column; justify-content: center; border-right: 1px solid #29334d; background: #11192d; }
.panel-kicker { color: #72809b; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.route-intro h2 { margin: 10px 0 7px; color: #f7f9ff; font-size: 26px; line-height: 1.08; letter-spacing: -.04em; }
.route-intro p { margin: 0; color: #8490a8; font-size: 11px; line-height: 1.65; }
.live-dot { display: inline-flex; width: max-content; align-items: center; gap: 7px; margin-top: 21px; padding: 7px 9px; border: 1px solid #2a3753; border-radius: 999px; color: #9aa8c0; font-size: 9px; }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #47d18c; box-shadow: 0 0 12px rgba(71,209,140,.5); }
.route-main { min-width: 0; padding: 16px; }
.route-board .search-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.route-board .field, .route-delivery { min-width: 0; padding: 12px; border: 1px solid #27324b; border-radius: 11px; background: #0a1020; }
.field label, .form label { display: block; margin-bottom: 7px; color: #3e485b; font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.route-board label, .route-delivery span { display: block; margin-bottom: 6px; color: #71809a; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.route-board input, .route-board select { width: 100%; height: 31px; min-width: 0; padding: 0; border: 0; outline: 0; background: #0a1020; color: #f5f7fc; color-scheme: dark; font-size: 13px; font-weight: 600; }
.route-delivery { display: flex; min-height: 58px; flex-direction: column; justify-content: center; }
.route-delivery strong { color: #f4f7ff; font-size: 13px; }
.route-board .btn { min-height: 58px; border-radius: 11px; }

/* Homepage below hero */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 25px 28px; border-right: 1px solid var(--line); }
.trust-grid > div:first-child { border-left: 1px solid var(--line); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: 18px; letter-spacing: -.03em; }
.trust-grid span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 34px; }
.section-head > p { max-width: 360px; margin: 0; color: var(--muted); }
.section-head > a { color: var(--blue); font-size: 13px; font-weight: 650; white-space: nowrap; }
.eyebrow { margin-bottom: 12px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.section h2, .pagehead h1 { margin: 0; font-size: clamp(36px, 4.3vw, 56px); line-height: 1.04; font-weight: 700; letter-spacing: -.05em; }
.classes-section { padding-bottom: 42px; }
.class-rail { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.class-rail a { position: relative; min-height: 170px; padding: 24px; border-right: 1px solid var(--line); background: var(--white); }
.class-rail a:last-child { border: 0; }
.class-rail a:hover { background: var(--paper); }
.class-rail span, .class-rail strong, .class-rail small { display: block; }
.class-rail span { color: #a1aabd; font-size: 10px; }
.class-rail strong { margin-top: 47px; font-size: 18px; }
.class-rail small { margin-top: 3px; color: var(--muted); }
.class-rail a::after { content: "↗"; position: absolute; top: 21px; right: 21px; color: var(--blue); }
.fleet-section { padding-top: 58px; }
.process-section { padding: 88px 0; background: var(--paper); }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cfd6e1; }
.process-list > div { padding: 26px 36px 10px 0; }
.process-list span { color: var(--blue); font-size: 11px; font-weight: 700; }
.process-list h3 { margin: 35px 0 8px; font-size: 19px; }
.process-list p { margin: 0; color: var(--muted); }
.city-section { background: var(--white); }
.closing-cta { padding: 78px 0; background: var(--navy); color: #fff; text-align: center; }
.closing-cta .wrap { display: flex; flex-direction: column; align-items: center; }
.closing-cta h2 { max-width: 720px; margin: 17px 0 11px; font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -.05em; }
.closing-cta p { max-width: 570px; margin: 0; color: #98a5bd; }
.closing-cta .btn { margin-top: 25px; }

/* Cards and content */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.vehicle-results { min-width: 0; align-content: start; }
.card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: #c7cfdd; box-shadow: var(--shadow); }
.card-media { position: relative; display: block; overflow: hidden; background: #e9edf3; }
.card img { width: 100%; height: 225px; object-fit: cover; transition: transform .3s ease; }
.card:hover img { transform: scale(1.02); }
.tag { position: absolute; top: 13px; left: 13px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(5,8,22,.78); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-body { padding: 19px 20px 18px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-location { margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.price { flex: 0 0 auto; font-size: 18px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.price small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.specs { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.specs span { padding: 5px 8px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--paper); color: #687185; font-size: 10px; }
.card-link { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--blue); font-size: 12px; font-weight: 650; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 25px; color: #8790a2; font-size: 11px; }
.breadcrumbs a:last-child { color: var(--ink); font-weight: 600; }
.pagehead { padding: 58px 0 38px; }
.pagehead .eyebrow { margin-bottom: 14px; }
.pagehead > .muted, .pagehead > .lead { margin-top: 15px; }
.muted { color: var(--muted); }
.inner-page main.wrap:not(.admin-main) { min-height: 38vh; }
.layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); align-items: start; gap: 30px; padding-bottom: 80px; }
.filters { position: sticky; top: 20px; height: max-content; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.filters::before { content: "Aramayı daralt"; display: block; margin-bottom: 18px; font-size: 14px; font-weight: 700; }
.filters .field { margin-bottom: 14px; }
.filters .btn { width: 100%; border-radius: 9px; }
.filter-reset { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.filter-reset:hover { color: var(--blue); }
.filters input, .filters select, .form input, .form select, .form textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid #cfd6e1; border-radius: 8px; background: var(--white); color: var(--ink);
}
.filters input:hover, .filters select:hover, .form input:hover, .form select:hover, .form textarea:hover { border-color: #9faabd; }
.filters input:focus, .filters select:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(37,99,235,.13); }
.empty-state { grid-column: 1 / -1; padding: 45px; border: 1px dashed #c7cfdd; border-radius: var(--radius); background: var(--paper); text-align: center; }
.empty-state h2 { margin: 0; }
.empty-state p { color: var(--muted); }

.cities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.city { position: relative; display: flex; min-width: 0; min-height: 95px; flex-direction: column; justify-content: center; padding: 18px 45px 18px 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.city::after { content: "→"; position: absolute; right: 18px; color: var(--blue); transition: transform .18s ease; }
.city:hover { border-color: #b9c4d5; box-shadow: var(--shadow-sm); }
.city:hover::after { transform: translateX(3px); }
.city strong { overflow-wrap: anywhere; font-size: 14px; }
.city span { margin-top: 4px; color: var(--muted); font-size: 10px; }

.gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; overflow: hidden; padding: 8px; border-radius: 15px; background: var(--navy); }
.gallery:has(img:only-child) { grid-template-columns: 1fr; }
.gallery img { width: 100%; height: 455px; border-radius: 9px; object-fit: cover; }
.detail { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .65fr); align-items: start; gap: 56px; margin: 46px 0 85px; }
.detail article h2 { margin: 0 0 15px; font-size: 25px; letter-spacing: -.035em; }
.detail article h2:not(:first-child) { margin-top: 40px; padding-top: 33px; border-top: 1px solid var(--line); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; list-style: none; }
.feature-list li { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow-wrap: anywhere; }
.feature-list li::before { content: "✓"; margin-right: 9px; color: var(--blue); font-weight: 700; }
.booking { position: sticky; top: 20px; height: max-content; padding: 25px; border: 1px solid #242c43; border-radius: 14px; background: var(--navy-2); color: #fff; box-shadow: 0 22px 55px rgba(5,8,22,.18); }
.booking .price { margin-bottom: 19px; font-size: 26px; }
.booking .form label { color: #aeb8cb; }
.booking .form input, .booking .form select, .booking .form textarea { border-color: #303950; background: #11172a; color: #fff; color-scheme: dark; }
.booking .btn { width: 100%; border-radius: 8px; }
.form { display: grid; gap: 15px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; min-height: 0 !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form label { min-width: 0; font-weight: 600; }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; font-weight: 500; }
.form label > input, .form label > select, .form label > textarea { display: block; margin-top: 7px; }
.form input[type="checkbox"] { display: inline-block; width: 18px; min-height: 18px; margin: 0 7px 0 0; vertical-align: -4px; accent-color: var(--blue); }
.notice, .error { margin: 18px 0; padding: 18px 20px; border: 1px solid; border-left-width: 4px; border-radius: 9px; background: var(--white); overflow-wrap: anywhere; }
.notice { border-color: #a9dac7; border-left-color: var(--success); color: #11613f; }
.error { border-color: #f2bbb7; border-left-color: var(--danger); color: #8f2018; }
.notice h1, .notice h2 { margin-top: 0; color: var(--ink); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; min-height: 64px; padding: 20px 42px 20px 0; cursor: pointer; color: var(--ink); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 17px; right: 4px; color: var(--blue); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 45px 22px 0; color: var(--muted); }

/* Login */
.login-page { background: var(--paper); }
.login-page .pagehead { width: min(560px, calc(100% - 32px)); margin-top: 55px; padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.login-page .pagehead h1 { margin-bottom: 26px; font-size: 36px; }

/* Footer */
.footer { margin-top: 25px; padding: 60px 0 25px; background: var(--navy); color: #eef2fa; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 45px; }
.footer-intro p { max-width: 330px; color: #8793aa; }
.footer strong { display: block; margin-bottom: 13px; color: #fff; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.footer a { display: block; width: max-content; max-width: 100%; min-height: 30px; color: #909cb2; font-size: 13px; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 18px; border-top: 1px solid #20283d; color: #68748b; font-size: 10px; }
.home-page .footer { margin-top: 0; }

/* Admin application */
.admin-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 100vh; background: #f3f5f8; }
.sidebar { position: relative; z-index: 2; display: flex; min-height: 100vh; flex-direction: column; padding: 28px 18px; background: var(--navy); color: #fff; }
.admin-brand { padding: 4px 9px 27px; border-bottom: 1px solid #20283d; }
.admin-brand small { display: block; margin-top: 8px; color: #6f7c95; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 4px; margin-top: 22px; }
.sidebar nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: #929db2; font-size: 13px; font-weight: 550; }
.sidebar nav a:hover, .sidebar nav a.active { background: #141a2d; color: #fff; }
.sidebar nav a.active { box-shadow: inset 3px 0 var(--blue-bright); }
.admin-logout { margin-top: auto; padding-top: 25px; }
.admin-logout button { width: 100%; min-height: 44px; border: 1px solid #29324a; border-radius: 8px; background: transparent; color: #8995aa; }
.admin-logout button:hover { color: #fff; border-color: #46516b; }
.admin-main { min-width: 0; padding: 36px clamp(24px, 4vw, 60px) 65px; overflow: hidden; }
.admin-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; padding-bottom: 23px; border-bottom: 1px solid #d9dee7; }
.admin-top span { color: #8992a3; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.admin-top h1 { margin: 5px 0 0; font-size: clamp(30px, 4vw, 43px); line-height: 1; letter-spacing: -.045em; }
.admin-top > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 12px; font-weight: 650; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.stat b { display: block; margin-bottom: 13px; color: var(--ink); font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.admin-main > .form { max-width: 920px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.table { width: 100%; margin-top: 23px; border: 1px solid var(--line); border-collapse: separate; border-spacing: 0; border-radius: 11px; background: #fff; font-size: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th { background: #f8f9fb; color: #727c8f; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.table tr:hover td { background: #fbfcfe; }
.table td a { color: var(--blue); font-weight: 650; }
.table button { min-height: 36px; padding: 6px 10px; border: 1px solid #cbd3df; border-radius: 6px; background: #fff; color: var(--ink); }
.table input, .table select { max-width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #cbd3df; border-radius: 6px; background: #fff; }
.table input[type="checkbox"] { width: 17px; min-height: 17px; accent-color: var(--blue); }
.inline { display: inline-flex; align-items: center; gap: 6px; }
body:has(.admin-shell) > .nav-shell, body:has(.admin-shell) > .footer, body:has(.admin-shell) > .mobile-nav { display: none; }
body:has(.admin-shell) { padding-bottom: 0; background: #f3f5f8; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-board { grid-template-columns: .9fr 1.25fr; }
  .hero { min-height: 980px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-rail { grid-template-columns: repeat(2, 1fr); }
  .class-rail a:nth-child(2) { border-right: 0; }
  .class-rail a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 800px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .wrap { width: min(100% - 28px, 1160px); }
  .nav-shell { height: 64px; }
  .nav { display: flex; justify-content: space-between; }
  .navlinks { display: none; }
  .nav-cta { min-height: 40px; }
  .home-page .nav-shell { top: 10px; }
  .home-page .nav { width: min(100% - 24px, 760px); padding-left: 16px; }
  .hero { min-height: 0; padding: 96px 0 24px; }
  .hero-inner { min-height: 0; }
  .hero h1 { font-size: clamp(43px, 10vw, 60px); }
  .panel-stack { margin-top: 45px; }
  .route-board { grid-template-columns: minmax(0, 1fr); }
  .route-intro { border-right: 0; border-bottom: 1px solid #29334d; }
  .section { padding: 62px 0; }
  .section-head { align-items: flex-start; }
  .grid, .layout, .detail, .gallery { grid-template-columns: minmax(0, 1fr); }
  .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters, .booking { position: static; }
  .gallery img { height: 320px; }
  .detail { gap: 32px; margin-top: 34px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(3) { border-left: 1px solid var(--line); }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-list { grid-template-columns: 1fr; }
  .process-list > div { padding-bottom: 25px; border-bottom: 1px solid #d9dee7; }
  .process-list h3 { margin-top: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mobile-nav { position: fixed; z-index: 200; right: 0; bottom: 0; left: 0; display: flex; min-height: 64px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #283148; background: rgba(5,8,22,.97); color: #fff; }
  .mobile-nav a { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; color: #8d98ae; font-size: 10px; font-weight: 650; }
  .mobile-nav a.active { background: #151b2e; color: #fff; }
  .mobile-nav a.active::before { content: ""; position: absolute; top: 4px; width: 18px; height: 2px; border-radius: 2px; background: var(--blue-bright); }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { min-height: 0; padding: 16px 14px 0; }
  .admin-brand { padding-bottom: 14px; }
  .sidebar nav { display: flex; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar nav a { min-width: max-content; border-radius: 7px 7px 0 0; }
  .sidebar nav a.active { box-shadow: inset 0 -3px var(--blue-bright); }
  .admin-logout { position: absolute; top: 13px; right: 14px; padding: 0; }
  .admin-logout button { width: auto; padding: 0 11px; }
  .admin-main { padding: 27px 14px 50px; }
  .admin-top { align-items: flex-start; }
  .table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table th, .table td { min-width: 115px; }
  .table th:last-child, .table td:last-child { min-width: 155px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .brand { font-size: 20px; }
  .home-page .nav-cta { padding-inline: 13px; }
  .hero { padding-top: 90px; }
  .hero-grid { top: 31%; width: 800px; height: 560px; background-size: 38px 38px; }
  .hero h1 { margin-top: 16px; font-size: clamp(39px, 11.2vw, 46px); }
  .hero .lead { max-width: 355px; font-size: 14px; line-height: 1.55; }
  .hero-cta { margin-top: 20px; }
  .reassurance { margin-top: 9px; }
  .panel-stack { margin-top: 38px; }
  .route-intro { padding: 20px; }
  .route-intro h2 { font-size: 23px; }
  .route-main { padding: 12px; }
  .route-board .search-fields { grid-template-columns: minmax(0, 1fr); }
  .route-board .field, .route-delivery { padding: 11px 12px; }
  .route-board .btn { min-height: 50px; }
  .trust-grid > div { padding: 20px 16px; }
  .section-head { display: block; }
  .section-head > p, .section-head > a { display: block; margin-top: 16px; }
  .section h2, .pagehead h1 { font-size: 37px; }
  .class-rail { grid-template-columns: 1fr; }
  .class-rail a { min-height: 125px; border-right: 0; border-bottom: 1px solid var(--line); }
  .class-rail a:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .class-rail strong { margin-top: 23px; }
  .grid, .cities { grid-template-columns: minmax(0, 1fr); }
  .card img { height: 220px; }
  .pagehead { padding: 44px 0 30px; }
  .layout { gap: 22px; padding-bottom: 55px; }
  .filters { padding: 17px; }
  .gallery { padding: 5px; }
  .gallery img { height: 240px; }
  .detail { margin-bottom: 58px; }
  .feature-list { grid-template-columns: 1fr; }
  .booking { padding: 21px 17px; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .login-page .pagehead { margin-top: 25px; padding: 24px 18px; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 20px; }
  .admin-top { display: block; }
  .admin-top > a { margin-top: 12px; }
  .admin-main > .form { padding: 18px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Unified dark palette — public pages, account access and admin application */
html { color-scheme: dark; background: var(--navy); }
body { background: #070b18; color: var(--ink); }
::selection { background: #29498f; color: #fff; }
::placeholder { color: #77849d; opacity: 1; }

/* Shared navigation and controls */
.nav-shell {
  border-color: var(--line);
  background: rgba(9,14,29,.96);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}
.navlinks { border-color: var(--line); background: #0a1122; }
.navlinks a { color: #a7b2c7; }
.navlinks a:hover, .navlinks a.active { background: #17213a; color: #fff; box-shadow: none; }
.nav-cta, .btn { border-color: #34425f; background: #111a30; color: #f7f9ff; }
.nav-cta:hover, .btn:hover { border-color: var(--blue-bright); color: #fff; background: #172442; }
.btn-primary { border-color: #527fff; background: #416ee8; color: #fff; box-shadow: 0 9px 28px rgba(65,110,232,.3); }
.btn-primary:hover { border-color: #6f94ff; background: #527fff; }
.btn-dark { border-color: #34425f; background: #111a30; }
.home-page .nav { border-color: rgba(125,162,255,.22); }
.home-page .nav-cta { border-color: #354465; background: #151d34; }

/* Homepage lower sections */
.trust-strip, .city-section { border-color: var(--line); background: #080d1b; }
.trust-grid > div { border-color: var(--line); }
.classes-section, .fleet-section { background: #070b18; }
.class-rail { border-color: var(--line); background: var(--panel); }
.class-rail a { border-color: var(--line); background: var(--panel); }
.class-rail a:hover { background: #141e36; }
.class-rail span { color: #8492aa; }
.process-section { background: #090f20; }
.process-list { border-color: #34415e; }
.process-list > div { border-color: var(--line); }
.closing-cta { border-top: 1px solid var(--line); background: var(--navy); }

/* Public content, listings and cards */
.inner-page { background: radial-gradient(circle at 75% 0, rgba(49,82,157,.13), transparent 35rem), #070b18; }
.breadcrumbs { color: #8997af; }
.breadcrumbs a:hover, .section-head > a:hover, .card-link:hover { color: #a9c0ff; }
.breadcrumbs a:last-child { color: var(--ink); }
.lead { color: #b0bcd0; }
.card, .filters, .city, .empty-state { border-color: var(--line); background: var(--panel); }
.card:hover, .city:hover { border-color: #48608b; box-shadow: var(--shadow); }
.card-media { background: #0a1020; }
.specs span, .feature-list li { border-color: var(--line-soft); background: #111a30; color: #aebbd0; }
.card-link { border-color: var(--line-soft); color: var(--blue-bright); }
.filters { box-shadow: var(--shadow-sm); }
.filter-reset:hover { color: var(--blue-bright); }
.empty-state { border-color: #3a4968; }
.gallery { border: 1px solid var(--line); background: #080d1c; }
.detail article h2:not(:first-child), details, details:last-child { border-color: var(--line); }
summary { color: var(--ink); }
details p { color: var(--muted); }
.booking { border-color: #354361; background: #090f20; box-shadow: var(--shadow); }

/* Forms, dates, selects and feedback */
input, select, textarea { color-scheme: dark; }
.field label, .form label { color: #a7b2c7; }
.field-help { color: #94a2ba; }
.filters input, .filters select,
.form input, .form select, .form textarea,
.table input, .table select {
  border-color: #35425f;
  background: #0b1224;
  color: #f4f7ff;
}
.filters input:hover, .filters select:hover,
.form input:hover, .form select:hover, .form textarea:hover,
.table input:hover, .table select:hover { border-color: #596b91; }
.filters input:focus, .filters select:focus,
.form input:focus, .form select:focus, .form textarea:focus,
.table input:focus, .table select:focus {
  border-color: var(--blue-bright);
  outline: 3px solid rgba(79,124,255,.25);
}
select option { background: #0b1224; color: #f4f7ff; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f4f7ff;
  -webkit-box-shadow: 0 0 0 1000px #0b1224 inset;
  caret-color: #fff;
}
.notice, .error { background: #0d1627; }
.notice { border-color: #285d4a; border-left-color: var(--success); color: #8ce8bd; }
.error { border-color: #713b42; border-left-color: var(--danger); color: #ffaaa4; }
.notice h1, .notice h2 { color: #f5f7ff; }

/* Login and footer */
.login-page { background: radial-gradient(circle at 50% 8%, rgba(55,89,170,.24), transparent 31rem), #070b18; }
.login-page .pagehead { border-color: #303d59; background: #0d1427; box-shadow: var(--shadow); }
.footer { border-top: 1px solid #202a42; background: #050816; }

/* Admin shell, dashboard, forms and data tables */
.admin-shell, body:has(.admin-shell) { background: #070b18; color: var(--ink); }
.sidebar { border-right: 1px solid #202b43; background: #050816; }
.admin-brand { border-color: #202b43; }
.sidebar nav a { color: #9aa7bd; }
.sidebar nav a:hover, .sidebar nav a.active { background: #151e35; color: #fff; }
.admin-logout button { border-color: #34415c; color: #a7b2c6; }
.admin-logout button:hover { border-color: #5a6b8d; background: #111a2d; color: #fff; }
.admin-top { border-color: var(--line); }
.admin-top span { color: #929fb5; }
.admin-top > a { color: var(--blue-bright); }
.stat, .admin-main > .form, .table { border-color: var(--line); background: var(--panel); color: var(--muted); box-shadow: var(--shadow-sm); }
.stat b { color: var(--ink); }
.table th, .table td { border-color: var(--line-soft); }
.table th { background: #10192d; color: #9ba8bd; }
.table tr:hover td { background: #111a30; }
.table td a { color: var(--blue-bright); }
.table button { border-color: #3a4968; background: #111a30; color: #eef3ff; }
.table button:hover { border-color: var(--blue-bright); background: #172442; }

@media (max-width: 800px) {
  .process-list > div { border-color: var(--line); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .mobile-nav { border-color: #2d3955; background: rgba(5,8,22,.98); box-shadow: 0 -8px 30px rgba(0,0,0,.28); }
}
