/* ==========================================================================
   MarkabaIQ theme — loaded after app.css and overrides it.
   Light grey page, white rounded panels, clean white header, big search,
   horizontally scrolling card rows, soft category tiles, dark footer.
   ========================================================================== */
:root {
    --blue: #1e88e5;
    --blue-2: #42a5f5;
    --blue-hover: #1672c4;
    --blue-soft: #e8f2fd;
    --blue-tile: #dbeafc;
    --ink: #14181f;
    --ink-2: #3c4350;
    --muted: #6b7280;
    --line: #e5e7eb;
    --page: #eef0f3;
    --navy: #0f1d33;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --border: #e5e7eb;
    --tile-border: #d5dbe3;
}

body { background: var(--page); color: var(--ink); }
a { color: var(--blue); }

/* Header ------------------------------------------------------------------- */
.arb-lang-bar { display: none; }
.arb-site-header { padding: 0; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.arb-header-row { display: flex; align-items: center; gap: 28px; min-height: 64px; flex-wrap: nowrap; }
.arb-logo img { height: 40px; }
.arb-topnav { display: flex; gap: 4px; }
.arb-topnav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.arb-topnav a:hover { background: #f3f4f6; text-decoration: none; }
.arb-topnav a.arb-active { color: var(--blue); }
.arb-header-end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.arb-header-end form { margin: 0; }
.arb-header-lang { display: flex; gap: 8px; font-size: .82rem; margin-inline-end: 6px; }
.arb-header-lang a { color: var(--muted); }
.arb-header-lang a.arb-lang-on { color: var(--ink); font-weight: 700; }
.arb-header-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); }
.arb-header-icon:hover { background: #f3f4f6; }
.arb-header-icon svg { width: 22px; height: 22px; }
.arb-btn-pill { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; border: 0; background: var(--blue); color: #fff !important; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none !important; }
.arb-btn-pill:hover { background: var(--blue-hover); }
.arb-btn-pill-ghost { background: #f3f4f6; color: var(--ink) !important; }
.arb-btn-pill-ghost:hover { background: #e5e7eb; }

/* Pages: content sits on a white rounded panel over the grey page; the home page uses separate panels. */
.arb-page { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-block: 24px 32px; padding: 22px 24px 32px; }
.arb-home { padding-block: 28px 40px; display: flex; flex-direction: column; gap: 20px; }

/* Panels & common elements --------------------------------------------------- */
.arb-panel-x { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; min-width: 0; }
.arb-h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 14px; }
.arb-section-title { border-bottom: 0; font-weight: 700; font-size: 1.2rem; padding: 0; }
.arb-panel { border-radius: var(--radius-sm); border-color: var(--line); }
.arb-btn { border-radius: 8px; }
.arb-scroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.arb-scroll::-webkit-scrollbar { display: none; }
.arb-scroll > * { scroll-snap-align: start; flex: none; }
input, select, textarea { border-radius: 8px; }

/* Hero search ------------------------------------------------------------- */
.arb-hero { text-align: center; padding: 34px 24px 30px; }
.arb-hero-title { font-size: 1.75rem; font-weight: 700; margin: 0 0 18px; }
.arb-hero-search { display: flex; align-items: center; max-width: 720px; margin: 0 auto; border: 2px solid var(--ink); border-radius: 999px; padding: 5px; background: #fff; }
.arb-hero-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.arb-hero-search input { flex: 1; border: 0; outline: 0; margin: 0; padding: 8px 16px; font: inherit; font-size: 1rem; background: transparent; box-shadow: none; }
.arb-hero-search button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; }
.arb-hero-search button:hover { background: var(--blue-hover); }
.arb-hero-search svg { width: 20px; height: 20px; }

/* Quick search -------------------------------------------------------------- */
.arb-qs { display: flex; flex-direction: column; gap: 18px; }
.arb-qs-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.arb-qs-tabs::-webkit-scrollbar { display: none; }
.arb-qs-tabs a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 12px 8px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: .78rem; font-weight: 600; text-decoration: none !important; }
.arb-qs-tabs a:hover { color: var(--ink); }
.arb-qs-tabs a.arb-on { border-bottom-color: var(--blue); color: var(--blue); }
.arb-qs-tabs .arb-vicon { width: 40px; height: 28px; color: currentColor; }
.arb-qs-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; align-content: start; }
.arb-qs-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin: 0; }
.arb-qs-fields select, .arb-qs-fields input { width: 100%; margin: 0; height: 42px; padding: 0 12px; border: 1px solid #c9ced6; border-radius: 8px; background-color: #fff; font: inherit; font-size: .92rem; color: var(--ink); }
.arb-qs-fields select:disabled { background: #f6f7f9; color: var(--muted); }
.arb-qs-fields select:focus, .arb-qs-fields input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.arb-qs-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 4px; }
.arb-qs-actions a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.arb-qs-actions a svg { width: 18px; height: 18px; }
.arb-btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--blue); color: #fff !important; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.arb-btn-cta:hover { background: var(--blue-hover); }
.arb-btn-cta svg { width: 18px; height: 18px; }

/* Listing rows -------------------------------------------------------------- */
.arb-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.arb-row-all { white-space: nowrap; font-size: .88rem; font-weight: 600; color: var(--ink-2); text-decoration: underline; }
.arb-row-wrap { position: relative; }
.arb-row-cards > .arb-card { width: calc((100% - 3 * 14px) / 4); }
.arb-row-arrow { position: absolute; top: 28%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(16, 24, 40, .2); cursor: pointer; }
.arb-row-arrow:hover { background: #f3f4f6; }
.arb-row-arrow svg { width: 20px; height: 20px; }
.arb-row-prev { right: -14px; }
.arb-row-next { left: -14px; }

/* Listing cards (everywhere) ------------------------------------------------- */
.arb-card { gap: 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.arb-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .12); }
.arb-card:hover .arb-card-title { color: var(--ink); }
.arb-card-media { margin: 0; aspect-ratio: 4 / 3; background: #f1f3f6; }
.arb-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.arb-card-title { text-transform: none; font-size: .95rem; -webkit-line-clamp: 1; }
.arb-card-price { font-size: 1.1rem; font-weight: 800; }
.arb-card-chips { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.arb-card-chips li { padding: 2px 8px; border-radius: 6px; background: #f1f3f6; color: var(--ink-2); font-size: .76rem; white-space: nowrap; }
.arb-card-loc { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; border-top: 1px solid #f0f1f3; font-size: .78rem; color: var(--muted); }
.arb-card-loc svg { width: 14px; height: 14px; flex: none; }
.arb-grid.arb-cards { gap: 16px; }

/* Selected categories -------------------------------------------------------- */
.arb-feature-tiles .arb-feature { display: flex; align-items: center; gap: 12px; min-width: 210px; padding: 16px 18px; border-radius: 12px; background: var(--blue-tile); color: var(--ink); text-decoration: none !important; }
.arb-feature:hover { background: #cfe2fb; }
.arb-feature .arb-vicon { width: 56px; height: 40px; color: var(--blue); flex: none; }
.arb-feature span { display: flex; flex-direction: column; }
.arb-feature small { color: var(--ink-2); font-size: .78rem; }

/* Popular categories (photos) ------------------------------------------------ */
.arb-photo-cat { display: flex; flex-direction: column; width: calc((100% - 3 * 14px) / 4); color: var(--ink); text-decoration: none !important; }
.arb-photo-cat-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #f1f3f6; margin-bottom: 8px; }
.arb-photo-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.arb-photo-cat:hover img { transform: scale(1.04); }
.arb-photo-cat-img .arb-vicon { width: 50%; height: auto; color: #c3d3e6; }
.arb-photo-cat small { color: var(--muted); font-size: .8rem; }

/* Vehicle types (icons) ------------------------------------------------------ */
.arb-type-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 150px; padding: 16px 12px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.arb-type-tile:hover { border-color: var(--blue); background: #fafcff; }
.arb-type-tile .arb-vicon { width: 92px; height: 60px; color: #9aa6b5; margin-bottom: 6px; }
.arb-type-tile:hover .arb-vicon { color: var(--blue); }
.arb-type-tile small { color: var(--muted); font-size: .78rem; }

/* Sell banner ---------------------------------------------------------------- */
.arb-sell-banner { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: #fff; min-height: 240px; }
.arb-sell-text { padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.arb-sell-text h2 { font-size: 1.6rem; margin: 0; }
.arb-sell-text p { margin: 0 0 10px; color: #c7d2e3; }
.arb-sell-img { position: relative; }
.arb-sell-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Popular brands -------------------------------------------------------------- */
.arb-brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.arb-brand-grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 12px; color: var(--ink); text-decoration: none !important; text-align: center; }
.arb-brand-grid a:hover { background: #f6f7f9; }
.arb-brand-mono { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); font: 800 20px/1 var(--font-logo); }
.arb-brand-grid a:hover .arb-brand-mono { border-color: var(--blue); color: var(--blue); }
.arb-brand-grid strong { font-size: .9rem; }
.arb-brand-grid small { color: var(--muted); font-size: .75rem; }

/* Link columns ----------------------------------------------------------------- */
.arb-link-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 24px; }
.arb-link-cols h3 { font-size: .92rem; margin: 0 0 6px; }
.arb-link-cols h3 a { color: var(--ink); }
.arb-link-cols ul { list-style: none; margin: 0; padding: 0; }
.arb-link-cols li { padding: 2px 0; font-size: .85rem; }
.arb-link-cols li::before { content: "›"; margin-inline-end: 6px; color: var(--muted); }
.arb-link-cols li a { color: var(--ink-2); }

/* About ---------------------------------------------------------------------------- */
.arb-home-about { margin: 0; border-top: 0; color: var(--ink-2); }
.arb-home-about h2 { font-size: 1.3rem; color: var(--ink); }
.arb-about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.arb-about-cols h3 { margin-top: 0; color: var(--ink); }

/* Footer ------------------------------------------------------------------------------ */
.arb-site-footer { border-top: 0; background: var(--navy); color: #c7d2e3; padding: 40px 0 0; margin-top: 0; }
.arb-footer-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.arb-footer-logo { font: 800 22px var(--font-logo); color: #fff; text-align: start; direction: ltr; unicode-bidi: isolate; }
.arb-footer-logo span { color: var(--blue-2); }
.arb-site-footer p { margin: 8px 0 12px; font-size: .88rem; }
.arb-site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.arb-site-footer ul { list-style: none; margin: 0; padding: 0; }
.arb-site-footer li { padding: 3px 0; font-size: .88rem; }
.arb-site-footer a { color: #c7d2e3; }
.arb-site-footer a:hover { color: #fff; }
.arb-footer-lang { display: flex; gap: 12px; font-size: .88rem; }
.arb-footer-bottom { margin-top: 32px; padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #8b9ab3; }

/* Responsive ---------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .arb-topnav { display: none; }
    .arb-row-cards > .arb-card, .arb-photo-cat { width: calc((100% - 2 * 14px) / 3); }
    .arb-brand-grid { grid-template-columns: repeat(4, 1fr); }
    .arb-link-cols { grid-template-columns: repeat(2, 1fr); }
    .arb-about-cols { grid-template-columns: 1fr; gap: 6px; }
    .arb-footer-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    body.arb-page-home { background: var(--page); }
    .arb-site-header { display: none; }
    .arb-lang-bar { display: block; background: #fff; }
    .arb-container { padding-inline: 12px; }
    .arb-page { border-radius: 0; margin: 0; box-shadow: none; padding: 14px 12px 28px; }
    .arb-home { padding-block: 12px 24px; gap: 12px; }
    .arb-panel-x { padding: 16px 14px; border-radius: 12px; }
    .arb-hero { padding: 20px 14px; }
    .arb-hero-title { font-size: 1.25rem; }
    .arb-qs { gap: 12px; }
    .arb-qs-tabs a { padding-inline: 8px; }
    .arb-qs-fields { grid-template-columns: 1fr 1fr; gap: 10px; }
    .arb-qs-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
    .arb-qs-actions a { justify-content: center; }
    .arb-row-cards > .arb-card, .arb-photo-cat { width: 62%; }
    .arb-row-arrow { display: none; }
    .arb-sell-banner { grid-template-columns: 1fr; }
    .arb-sell-img { min-height: 180px; order: -1; }
    .arb-sell-text { padding: 22px 18px; }
    .arb-brand-grid { grid-template-columns: repeat(3, 1fr); }
    .arb-link-cols { grid-template-columns: 1fr; }
    .arb-footer-row { grid-template-columns: 1fr; gap: 20px; }
}
