/* Rucani — 1-op-1 nagebouwd van het Drupal-thema `rucani` (Bootstrap 3.3.1 + style.css).
   Enkel het stuk Bootstrap dat dit thema echt gebruikt is overgenomen: container, grid,
   navbar-inverse en een paar helpers. Geen framework als afhankelijkheid. */

@font-face {
  font-family: 'Steak';
  src: url('/theme/assets/steak-webfont.woff') format('woff'),
       url('/theme/assets/steak-webfont.ttf') format('truetype');
  font-style: normal; font-weight: normal; font-display: swap;
}

:root {
  --ru-rood: #cc0000;
  --ru-donker: #1d1d1b;
  --ru-navbar: #222;
  --ru-navbar-actief: #080808;
  --ru-navbar-link: #9d9d9d;
  --sp-primary: var(--ru-rood);
  --sp-primary-contrast: #fff;
  --sp-text: #333;
  --sp-font: "Trebuchet MS", Arial, Helvetica, sans-serif;
  --sp-font-heading: 'Steak', "Trebuchet MS", Arial, sans-serif;
  --sp-container: 100%;
  --sp-gutter: 0px;
}

/* ─── basis ─────────────────────────────────────────────────────────── */
body {
  font: 12px/1.42857143 var(--sp-font);
  color: #333;
  background: url('/theme/assets/bac.jpg') top center / auto repeat-x fixed #c9c9c9;
}
a, strong, b { color: var(--ru-rood); }
a:hover, a:focus { color: #990000; }
h1, h2 { font-family: var(--sp-font-heading); text-transform: uppercase; color: var(--ru-rood); font-weight: normal; }
h1 { font-size: 36px; line-height: 1.1; margin: 20px 0 10px; }
h2 { font-size: 30px; line-height: 1.1; margin: 20px 0 10px; }
h3 { font-size: 24px; margin: 20px 0 10px; }
h4 { font-size: 18px; margin: 10px 0; }
p { margin: 0 0 10px; }

/* ─── Bootstrap-grid (subset) ───────────────────────────────────────── */
.container { width: 100%; padding: 0 15px; margin: 0 auto; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }
.container-fluid { padding: 0 15px; }
.row { margin: 0 -15px; }
.row::before, .row::after { content: " "; display: table; }
.row::after { clear: both; }
.col-md-4, .col-md-8, .col-md-12 { position: relative; width: 100%; min-height: 1px; padding: 0 15px; }
@media (min-width: 992px) {
  .col-md-4, .col-md-8, .col-md-12 { float: left; }
  .col-md-4 { width: 33.33333333%; }
  .col-md-8 { width: 66.66666667%; }
  .col-md-12 { width: 100%; }
}
.img-responsive { display: block; max-width: 100%; height: auto; }
@media (max-width: 767px) { .hidden-xs { display: none !important; } }
@media (min-width: 768px) { .visible-xs { display: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── omhulsel ──────────────────────────────────────────────────────── */
.shadow { box-shadow: 0 0 5px #000; background-color: #fff; }

/* ─── header ────────────────────────────────────────────────────────── */
#logo { background: var(--ru-donker); }
#logo img { width: 100%; }
#contactgegevens {
  background: url('/theme/assets/contact_back.png') left top repeat;
  height: 129px; color: #fff; text-align: right; padding: 0 10px 0 0; overflow: hidden;
}
#contactgegevens h2 { color: #fff; margin: 0 0 6px; font-size: 24px; }
#contactgegevens p { line-height: 1.2; margin: 0 0 6px; }
#contactgegevens a { color: #fff; }

/* ─── navbar ────────────────────────────────────────────────────────── */
.navbar { position: relative; min-height: 50px; margin: 0 0 20px; border: 1px solid transparent; border-radius: 4px; }
.navbar-inverse { background-color: var(--ru-navbar); border-color: var(--ru-navbar-actief); }
.navbar-header::before, .navbar-header::after { content: " "; display: table; }
.navbar-header::after { clear: both; }
.navbar-brand { float: left; padding: 15px; font-size: 18px; line-height: 20px; color: var(--ru-navbar-link); }
.navbar-toggle {
  position: relative; float: right; margin: 8px 15px 8px 0; padding: 9px 10px;
  background: transparent; border: 1px solid #333; border-radius: 4px; cursor: pointer;
}
.navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; background-color: #fff; }
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
.navbar-collapse { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.navbar-collapse.is-open { max-height: 60vh; overflow: visible; }
.navbar-nav { margin: 0; padding: 0; list-style: none; }
.navbar-nav > li > a {
  position: relative; display: block; padding: 15px; line-height: 20px;
  color: var(--ru-navbar-link); text-decoration: none;
}
.navbar-nav > li > a:hover, .navbar-nav > li > a:focus { color: #fff; background: transparent; }
.navbar-nav > li.is-active > a { color: #fff; background-color: var(--ru-navbar-actief); }
.navbar-nav .sp-menu-toggle { display: none; }
@media (min-width: 768px) {
  .navbar-toggle, .navbar-brand.visible-xs { display: none; }
  .navbar-collapse { max-height: none; overflow: visible; }
  .navbar-nav { float: left; }
  .navbar-nav > li { float: left; }
}

/* ─── zijbalk ───────────────────────────────────────────────────────── */
.region-zijbalk .block { margin-bottom: 20px; }
.region-zijbalk .block h2 { padding: 0; margin: 0 0 20px; }
.menu-merken, .menu-merken ul { list-style: none; margin: 0; padding: 0; }
.menu-merken > li { font-size: 17px; font-weight: bold; position: relative; }
.menu-merken > li > a { display: inline-block; padding: 4px 0; text-decoration: none; }
.menu-merken .sp-menu-toggle {
  display: inline-block;
  border: 0; background: transparent; cursor: pointer; padding: 4px 8px;
  font-size: 13px; color: var(--ru-rood); line-height: 1;
}
.menu-merken .sp-menu-toggle::before { content: '▾'; display: inline-block; transition: transform .15s ease; }
.menu-merken > li.is-open > .sp-menu-toggle::before { transform: rotate(180deg); }
.menu-merken .menu-merken-sub { display: none; padding: 0 0 8px 14px; }
.menu-merken > li.is-open > .menu-merken-sub { display: block; }
.menu-merken .menu-merken-sub li { font-size: 13px; font-weight: normal; }
.menu-merken .menu-merken-sub a { display: block; padding: 2px 0; text-decoration: none; }

#openingsuren {
  background: url('/theme/assets/openingsuren_block.png') left top repeat;
  text-align: right; padding: 10px 15px 10px 0; margin-bottom: 20px;
}
#openingsuren h2 { margin: 0 0 10px; }
#openingsuren p { margin: 0; }

/* ─── inhoud ────────────────────────────────────────────────────────── */
/* Builder-secties staan hier in een kolom van de pagina, niet over de volle breedte:
   hun eigen container en verticale ruimte zouden de Drupal-indeling breken. */
.col-md-8 .sp-section { padding: 0; display: block; }
.col-md-8 .sp-section > .sp-container { max-width: none; padding: 0; }
.col-md-8 .sp-widget { margin-bottom: 10px; }

/* De homepage toonde haar foto's als zwevende duimnagels van 180x120 (image style
   `pagina_afbeelding`), niet als een rasterbrede galerij. */
.col-md-8 .sp-gallery { display: block; }
.col-md-8 .sp-gallery::after { content: " "; display: table; clear: both; }
.col-md-8 .sp-gallery-item { float: left; width: 180px; margin: 7px; border-radius: 0; }
.col-md-8 .sp-gallery-item img { width: 180px; height: 120px; aspect-ratio: auto; object-fit: cover; }

/* ─── footer ────────────────────────────────────────────────────────── */
#footer { clear: both; padding: 15px 0; }

/* ─── fietsen: overzicht + filter ───────────────────────────────────── */
.fiets-filter { margin: 0 0 20px; padding: 10px 0; border-bottom: 1px solid #e5e5e5; }
.fiets-filter-label { font-weight: bold; margin-right: 6px; }
.fiets-filter a {
  display: inline-block; padding: 3px 9px; margin: 2px 2px 2px 0;
  border: 1px solid #ddd; border-radius: 3px; text-decoration: none; font-size: 13px;
}
.fiets-filter a:hover { border-color: var(--ru-rood); }
.fiets-filter a.is-active { background: var(--ru-rood); border-color: var(--ru-rood); color: #fff; }
.fiets-filter noscript { display: none; }

.fiets-lijst {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
@media (min-width: 992px) { .fiets-lijst { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fiets-lijst { grid-template-columns: 1fr; } }
.fiets-kaart {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid #e5e5e5; text-decoration: none; color: #333;
}
.fiets-kaart:hover { border-color: var(--ru-rood); }
.fiets-kaart-beeld { display: block; position: relative; background: #f5f5f5; padding-top: 70%; overflow: hidden; }
.fiets-kaart-beeld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fiets-kaart-leeg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 11px;
}
.fiets-kaart-body { display: block; padding: 8px 10px 10px; }
.fiets-kaart-merk { display: block; font-size: 11px; text-transform: uppercase; color: #888; letter-spacing: .04em; }
.fiets-kaart-titel { display: block; font-weight: bold; margin: 2px 0 4px; color: #333; }
.fiets-prijs { color: var(--ru-rood); font-weight: bold; font-size: 15px; }
.fiets-badge {
  display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 2px; margin-right: 4px; vertical-align: 2px;
}
.fiets-badge-tweedehands { background: #eee; color: #555; }
.fiets-badge-verkocht { background: var(--ru-rood); color: #fff; }
.fiets-leeg { padding: 20px 0; color: #666; }

/* ─── fiets: detailpagina ───────────────────────────────────────────── */
.fiets-detail::after { content: " "; display: table; clear: both; }
.fiets-detail-info { margin-bottom: 14px; }
.fiets-detail-info .fiets-prijs { font-size: 20px; }
.fiets-detail-meta { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: #555; }
.fiets-detail-meta li { margin-bottom: 2px; }
.fiets-detail-fotos::after { content: " "; display: table; clear: both; }
.fiets-detail-fotos a, .fiets-detail-fotos img { display: block; }
.fiets-detail-fotos li { float: left; margin: 0 7px 7px 0; list-style: none; }
.fiets-detail-fotos ul { margin: 0; padding: 0; }
.fiets-terug { display: inline-block; margin-top: 16px; }
