/* 2Drive skin for the ported Directory / Classifieds / Motor Mall pages (from African Bikers World).
 * Loads after site.css, hub.css and the Pegboard CSS and re-colours the Pegboard components in 2Drive's look:
 * light blue-grey page, white cards, navy headings, blue accent, green call-to-action, Poppins. */
:root {
  --ink: #003366;
  --steel: #0b2a4a;
  --steel-light: #13406b;
  --steel-line: #1f4f80;
  --paper: #ffffff;
  --paper-shadow: #e3e9f2;
  --paper-line: #e3e9f2;
  --hazard: #2563eb;
  --hazard-dark: #1d4ed8;
  --brass-text: #003366;
  --brass: #26a8d1;
  --brass-light: #7fd0ea;
  --text-on-dark: #ffffff;
  --text-on-dark-soft: #c7d6e8;
  --text-on-paper: #222222;
  --text-on-paper-soft: #5b6b7f;
  --shadow-hook: 0 10px 24px -14px rgba(0, 51, 102, .35);
  --shadow-paper: 0 8px 24px -16px rgba(0, 51, 102, .35);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-mono: 'Poppins', sans-serif;
  --font-marker: 'Poppins', sans-serif;
  --pegboard-hole: none;
}
body.port-page { background: var(--bg-main, #f4f7fb); color: var(--text-main, #222); font-family: 'Poppins', sans-serif; }

/* account buttons under 2Drive's header */
.port-account { background: #fff; border-bottom: 1px solid var(--border, #e3e9f2); }
.port-account .container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 8px; padding-bottom: 8px; }
.port-account .md-btn { padding: 7px 16px; font-size: .85rem; }
@media (max-width: 720px) { .port-account { display: none; } }

/* hero: 2Drive's navy banner over a section photo */
.brand-hero.pegboard-bg, .brand-hero.cl-hero {
  background-color: #0b2a4a;
  background-image: linear-gradient(180deg, rgba(11, 42, 74, .78), rgba(11, 42, 74, .62) 50%, rgba(11, 42, 74, .82)), url('../images/hub/heroes/classifieds.jpg');
  background-size: cover; background-position: center; color: #fff; border-bottom: 3px solid #26a8d1;
}
body.port-mall .brand-hero.cl-hero { background-image: linear-gradient(180deg, rgba(11, 42, 74, .78), rgba(11, 42, 74, .62) 50%, rgba(11, 42, 74, .82)), url('../images/hub/heroes/mall.jpg'); }
body.port-directory .brand-hero.cl-hero { background-image: linear-gradient(180deg, rgba(11, 42, 74, .78), rgba(11, 42, 74, .62) 50%, rgba(11, 42, 74, .82)), url('../images/hub/heroes/autohub.jpg'); }
@media (min-width: 721px) {
  .brand-hero.cl-hero { min-height: 360px; display: flex; align-items: center; justify-content: center; padding-top: 2rem; padding-bottom: 2rem; }
  .brand-hero.cl-hero > .container { width: 100%; }
}
.brand-hero h1, .cl-hero h1 { font-family: 'Poppins', sans-serif; font-weight: 800; color: #fff; text-transform: none; letter-spacing: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.cl-hero-sub, .brand-hero .breadcrumb a { color: #7fd0ea; font-family: 'Poppins', sans-serif; letter-spacing: .12em; }
.cl-hero .model-headline { color: #eaf2fb; font-family: 'Poppins', sans-serif; }
[data-hero-back] { border-color: #7fd0ea !important; color: #fff !important; }

/* content panel */
.cl-scope.cl-surface, .cl-surface { background: #fff; border: 1px solid var(--border, #e3e9f2); border-radius: 14px; box-shadow: var(--shadow-paper); }
.cl-scope h2, .cl-scope h3, .abw-divider span { font-family: 'Poppins', sans-serif; color: var(--text-heading, #003366); text-transform: none; letter-spacing: 0; }
.cl-scope a:not(.abw-btn):not(.md-btn):not(.dir-btn):not(.cta) { color: #2563eb; }
.cl-scope a:not(.abw-btn):not(.md-btn):not(.dir-btn):not(.cta):hover { color: #1d4ed8; }

/* buttons: blue primary, green call */
.abw-btn, .dir-btn { font-family: 'Poppins', sans-serif; text-transform: none; letter-spacing: 0; border-radius: 999px; }
.abw-btn-call, .dir-btn-primary { background: #22C55E; border-color: #22C55E; color: #fff; }
.abw-btn-call:hover, .dir-btn-primary:hover { background: #16a34a; border-color: #16a34a; color: #fff; }
.abw-btn-web { background: #fff; border-color: #2563eb; color: #2563eb; }
.abw-btn-web:hover { background: #2563eb; color: #fff; }

/* safety strip above the footer */
.port-safety { background: #0b2a4a; color: #eaf2fb; font-size: .92rem; }
.port-safety .container { padding: .9rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; justify-content: center; text-align: center; }
.port-safety a { color: #7fd0ea; font-weight: 600; }

/* Car Sales / New Car Sales banners (two cars at the far left and right, empty middle): on a phone the photo is zoomed to the
   car fronts behind the heading and fades into navy above and below, as on the old Mall (hub.src.css, 2026-11-10) */
@media (max-width: 600px) {
  body.port-cat-car-sales .brand-hero.cl-hero { background-image: linear-gradient(180deg, #0b2a4a 0%, #0b2a4a 11%, rgba(11, 42, 74, 0.35) 24%, rgba(11, 42, 74, 0.45) 40%, #0b2a4a 55%), url('../images/hub/heroes/mall-car-sales.jpg') !important; }
  body.port-cat-new-car-sales .brand-hero.cl-hero { background-image: linear-gradient(180deg, #0b2a4a 0%, #0b2a4a 16%, rgba(11, 42, 74, 0.35) 27%, rgba(11, 42, 74, 0.45) 39%, #0b2a4a 51%), url('../images/hub/heroes/mall-new-car-sales.jpg') !important; }
  body.port-cat-car-sales .brand-hero.cl-hero, body.port-cat-new-car-sales .brand-hero.cl-hero { background-size: 100% 100%, auto 44% !important; background-position: 0 0, center 20% !important; background-repeat: no-repeat !important; }
  body.port-cat-new-car-sales .brand-hero.cl-hero { background-size: 100% 100%, auto 34% !important; background-position: 0 0, center 24% !important; }
}

/* the Classifieds / Mall / Directory component colours (classifieds.css keeps its own set on .cl-scope): 2Drive's palette */
body.port-page .cl-scope {
  --bg: #ffffff; --bg-raised: #f4f7fb; --bg-raised-2: #eef3f9;
  --border: #e3e9f2; --text: #222222; --text-muted: #5b6b7f;
  --rust: #2563eb; --rust-dark: #1d4ed8; --gold: #003366; --radius: 12px;
  font-family: 'Poppins', sans-serif;
}
body.port-page .cl-scope h1, body.port-page .cl-scope h2, body.port-page .cl-scope h3, body.port-page .cl-scope h4 { font-family: 'Poppins', sans-serif; color: #003366; }
body.port-page .cl-surface .abw-province-card, body.port-page .cl-surface .abw-card { background: #ffffff; }
body.port-page .cl-surface input, body.port-page .cl-surface select, body.port-page .cl-surface textarea { color: #222; }
/* buttons: green call-to-action, blue outline secondary (2Drive's look), also in the hero */
body.port-page .cl-scope .abw-btn-call, body.port-page .cl-hero-cta .abw-btn-call { background: #22C55E; border-color: #22C55E; color: #fff; }
body.port-page .cl-scope .abw-btn-call:hover, body.port-page .cl-hero-cta .abw-btn-call:hover { background: #16a34a; border-color: #16a34a; }
body.port-page .cl-hero-cta .abw-btn-web { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
body.port-page .cl-hero-cta .abw-btn-web:hover { background: #fff; color: #003366; }
body.port-page .cl-scope .abw-area-pill { background: #f4f7fb; border-color: #e3e9f2; color: #003366; }
body.port-page .cl-scope .abw-area-pill.is-current { background: #003366; border-color: #003366; color: #fff; }
