/* Rostbratenindex — Schwäbisch-inspired theme with light orange teint.
   Palette:
     --cream     : whitewashed plaster (page bg)
     --ochre     : light orange teint (primary accent)
     --ochre-deep: button hover / borders
     --wood      : dark oak beam (navbar / borders / frames)
     --ink       : body text
     --parchment : subtle card backgrounds
*/
:root {
  --cream: #fdf6ec;
  --parchment: #fbeedb;
  --ochre: #f3a953;
  --ochre-soft: #f9cd8f;
  --ochre-deep: #c47224;
  --wood: #3b2618;
  --wood-mid: #6f4a31;
  --ink: #2a1d13;
  --muted: #8a715a;
  --danger: #b33a3a;
  --shadow: 0 4px 14px rgba(59, 38, 24, 0.12);
  --rule: #e7d2b0;
}

* { box-sizing: border-box; }

body {
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(var(--ochre-soft) 1px, transparent 1.2px),
    linear-gradient(to bottom, #fff7ea 0%, var(--cream) 100%);
  background-size: 24px 24px, auto;
  line-height: 1.6;
}

h1, h2, h3, .rbi-brand-text {
  font-family: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  color: var(--wood);
  font-weight: 700;
  letter-spacing: 0.2px;
}
h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.6rem; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; }

a { color: var(--ochre-deep); text-decoration: none; }
a:hover { color: var(--wood); text-decoration: underline; }

/* Header / beams */
.rbi-header {
  background: linear-gradient(180deg, var(--parchment), var(--cream));
  border-bottom: 6px solid var(--wood);
  box-shadow: var(--shadow);
  position: relative;
}
.rbi-nav .navbar-brand { display: flex; align-items: baseline; gap: 0.5rem; }
.rbi-brand-mark { color: var(--ochre-deep); font-size: 1.4rem; transform: translateY(2px); }
.rbi-brand-text { font-size: 1.7rem; color: var(--wood); }
.rbi-nav .nav-link { color: var(--wood); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.rbi-nav .nav-link:hover { color: var(--ochre-deep); }
.rbi-nav .navbar-toggler { min-height: 44px; min-width: 44px; }
.rbi-beams {
  height: 10px;
  background:
    repeating-linear-gradient(135deg, var(--wood) 0 18px, transparent 18px 36px),
    repeating-linear-gradient(45deg, var(--wood) 0 18px, transparent 18px 36px),
    var(--ochre);
  opacity: 0.9;
}

.rbi-main { padding: 2rem 0 3rem; }

.rbi-toast-wrap {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 340px;
}
.rbi-toast {
  background: var(--ochre-soft);
  border: 1px solid var(--ochre-deep);
  border-left: 6px solid var(--ochre-deep);
  color: var(--wood);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  pointer-events: auto;
  transform: translateX(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  word-break: break-word;
}
.rbi-toast.rbi-toast-show {
  transform: translateX(0);
  opacity: 1;
}

/* Hero */
.rbi-hero {
  border: 2px solid var(--wood);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.3)),
    var(--ochre-soft);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: var(--shadow);
}
.rbi-hero::before, .rbi-hero::after {
  content: "◆";
  position: absolute;
  color: var(--wood);
  font-size: 1.6rem;
  opacity: 0.6;
}
.rbi-hero::before { top: 8px; left: 12px; }
.rbi-hero::after { bottom: 8px; right: 12px; }
.rbi-hero h1 { font-size: 2.75rem; }
.rbi-hero .lead { max-width: 60ch; color: var(--wood-mid); }
.rbi-hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

/* Buttons */
.rbi-btn-primary, .btn.rbi-btn-primary {
  background: var(--ochre);
  color: var(--wood);
  border: 2px solid var(--wood);
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  min-height: 44px;
  border-radius: 6px;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rbi-btn-primary:hover { background: var(--ochre-deep); color: #fff; }
.rbi-btn-secondary, .btn.rbi-btn-secondary {
  background: transparent;
  color: var(--wood);
  border: 2px solid var(--wood);
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  min-height: 44px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rbi-btn-secondary:hover { background: var(--wood); color: var(--cream); }

.rbi-section { margin: 2rem 0; }
.rbi-h2 { border-bottom: 2px dashed var(--rule); padding-bottom: 0.3rem; }

/* Cards */
.rbi-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.rbi-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ochre);
  border-radius: 8px;
  padding: 1rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
  display: block;
}
.rbi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(59,38,24,0.18); text-decoration: none; }
.rbi-card-title { margin: 0.25rem 0 0.25rem; color: var(--wood); }
.rbi-card-meta { color: var(--muted); font-size: 0.9rem; }
.rbi-card-reviews { font-size: 0.85rem; color: var(--ochre-deep); margin-top: 0.5rem; }
.rbi-card-rating { margin-left: 0.4rem; color: var(--wood); font-weight: 700; }

/* Stars */
.rbi-star-on { color: var(--ochre-deep); }
.rbi-star-off { color: #d9c8af; }

/* Category rating grid (6 star pickers, each 1–10 in 0.5 steps) */
.rbi-rating-grid { display: grid; gap: 0.75rem; }
.rbi-rating-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0.75rem;
  background: #fffdf7;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ochre);
  border-radius: 6px;
}
.rbi-rating-label strong { display: block; color: var(--wood); }
.rbi-rating-label .text-muted { font-size: 0.85rem; }

/* Star picker */
.rbi-star-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.rbi-sp-star {
  font-size: 1.8rem;
  line-height: 1;
  color: #d9c8af;
  padding: 0 1px;
  transition: color 0.04s;
}
.rbi-sp-star.rbi-sp-full {
  color: var(--ochre-deep);
}
.rbi-sp-star.rbi-sp-half {
  background: linear-gradient(to right, var(--ochre-deep) 50%, #d9c8af 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rbi-sp-label {
  margin-left: 0.5rem;
  font-weight: 700;
  color: var(--wood);
  min-width: 4rem;
  -webkit-text-fill-color: initial;
}

/* Category breakdown (details page avg + review list) */
.rbi-cat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.rbi-cat-list li { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; gap: 0.75rem; }
.rbi-cat-name { font-weight: 600; color: var(--wood); }
.rbi-cat-bar { height: 10px; background: #f1e4cf; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.rbi-cat-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ochre), var(--ochre-deep)); }
.rbi-cat-value { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rbi-review-cats {
  list-style: none; padding: 0; margin: 0.5rem 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.3rem;
  font-size: 0.85rem;
}
.rbi-review-cats li {
  display: flex; justify-content: space-between;
  background: var(--parchment); padding: 0.2rem 0.5rem; border-radius: 4px;
}
.rbi-review-cats span { color: var(--muted); }
.rbi-review-cats strong { color: var(--wood); }

/* Price badge + ranking price line */
.rbi-price-badge {
  display: inline-block;
  background: var(--ochre-soft);
  border: 1px solid var(--ochre-deep);
  border-left: 4px solid var(--ochre-deep);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  color: var(--wood);
  margin: 0.25rem 0;
}
.rbi-rank-price { font-size: 0.9rem; color: var(--ochre-deep); margin-top: 0.2rem; }

/* Filter + ranking */
.rbi-filter {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.rbi-filter .form-control,
.rbi-filter .form-select {
  font-size: 1rem; /* prevents iOS Safari auto-zoom */
}
.rbi-empty { padding: 2rem; text-align: center; color: var(--muted); }
.rbi-ranking { list-style: none; padding: 0; margin: 0; }
.rbi-ranking-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ochre);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.rbi-rank-badge {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--wood);
  font-weight: 700;
}
.rbi-rank-title { color: var(--wood); font-weight: 700; font-size: 1.1rem; }
.rbi-rank-meta { color: var(--muted); font-size: 0.9rem; }
.rbi-rank-stars { text-align: right; font-size: 1.1rem; }
.rbi-rank-count { font-size: 0.85rem; color: var(--muted); }
.rbi-pagination { display: flex; gap: 0.25rem; justify-content: center; margin-top: 1rem; }
.rbi-pagination a {
  padding: 0.35rem 0.7rem;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--wood);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rbi-pagination a.active { background: var(--ochre); border-color: var(--wood); }

/* Map */
.rbi-map { width: 100%; aspect-ratio: 5 / 2.55; border: 2px solid var(--wood); border-radius: 8px; background: #f1e4cf; }
.rbi-map-small { aspect-ratio: auto; height: 280px; margin: 1rem 0; }
.rbi-map-placeholder { padding: 2rem; text-align: center; color: var(--muted); }
.rbi-map-controls { display: flex; gap: 1rem; align-items: center; margin: 0.5rem 0 1rem; flex-wrap: wrap; }
.rbi-map-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem 1rem; margin: 0 0 1rem; padding: 0.75rem 1rem; background: #fdf6e9; border: 1px solid var(--wood); border-radius: 8px; }
.rbi-map-filters label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.15rem; }
.rbi-map-filters input, .rbi-map-filters select { width: 100%; padding: 0.35rem 0.5rem; border: 1px solid var(--wood); border-radius: 6px; background: #fff; }
.rbi-map-filters-check { align-self: end; }
.rbi-map-filters-check label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; color: inherit; margin: 0; }

/* Review detail */
.rbi-article-header { border-bottom: 2px dashed var(--rule); padding-bottom: 1rem; margin-bottom: 1rem; }
.rbi-meta { color: var(--muted); }
.rbi-reviews-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rbi-review {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ochre);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.rbi-review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; }
.rbi-review-title { font-weight: 700; color: var(--wood); }
.rbi-review-meta { color: var(--muted); font-size: 0.9rem; }
.rbi-review-body { margin: 0.6rem 0; }
.rbi-review-body blockquote { border-left: 3px solid var(--ochre); padding-left: 0.75rem; color: var(--wood-mid); margin: 0.5rem 0; }
.rbi-review-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.5rem; }
.rbi-review-photos img { width: 100%; height: 160px; object-fit: cover; border: 1px solid var(--rule); border-radius: 6px; }
.rbi-lb-trigger { cursor: zoom-in; transition: opacity 0.15s; }
.rbi-lb-trigger:hover { opacity: 0.88; }
.rbi-review-photos figcaption { font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 0.4rem; flex-wrap: wrap; }
.rbi-photo-date { font-size: 0.75rem; color: var(--muted); opacity: 0.8; }

/* Lightbox */
.rbi-lb-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 5, 0, 0.94);
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 0;
}
.rbi-lb-overlay.rbi-lb-open { display: flex; }
.rbi-lb-img-wrap { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; padding: 3rem 4.5rem; }
.rbi-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; display: block; }
.rbi-lb-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; color: #e8cfa0; font-size: 2rem; line-height: 1;
  cursor: pointer; opacity: 0.8; z-index: 1;
}
.rbi-lb-close:hover { opacity: 1; }
.rbi-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #e8cfa0;
  font-size: 3.5rem; line-height: 1; cursor: pointer;
  opacity: 0.6; padding: 0 0.75rem; z-index: 1;
  transition: opacity 0.15s;
}
.rbi-lb-nav:hover { opacity: 1; }
.rbi-lb-prev { left: 0; }
.rbi-lb-next { right: 0; }
.rbi-lb-info {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 1.2rem; color: #c4a070; font-size: 0.9rem;
  background: rgba(0,0,0,0.4);
}
.rbi-lb-counter { opacity: 0.7; font-size: 0.85rem; }
.rbi-photo-actions { display: flex; justify-content: flex-end; align-items: center; margin-top: 0.4rem; }
.rbi-photo-like-form { margin: 0; }
.rbi-photo-star-btn { background: none; border: none; padding: 0; cursor: pointer; font-size: 1.15rem; color: #d9c8af; line-height: 1; display: inline-flex; align-items: center; gap: 0.2rem; transition: color 0.15s; }
.rbi-photo-star-btn:hover, .rbi-photo-star-on { color: var(--ochre-deep); }
.rbi-photo-star-static { font-size: 1.15rem; color: #d9c8af; }
@keyframes rbi-star-spin-pop { 0% { transform: scale(1) rotate(0deg); } 40% { transform: scale(1.6) rotate(180deg); } 100% { transform: scale(1) rotate(360deg); } }
@keyframes rbi-star-pop { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }
.rbi-photo-star-icon { display: inline-block; }
.rbi-photo-star-pop-add .rbi-photo-star-icon { animation: rbi-star-spin-pop 0.35s ease-out; }
.rbi-photo-star-pop-remove .rbi-photo-star-icon { animation: rbi-star-pop 0.3s ease-out; }
.rbi-photo-star-pop-add .rbi-photo-like-count, .rbi-photo-star-pop-remove .rbi-photo-like-count { animation: rbi-star-pop 0.3s ease-out; }
.rbi-photo-like-count { font-size: 0.8rem; }

/* Restaurant favourite button */
.rbi-fav-form { margin: 0; }
.rbi-fav-btn { background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 0.35rem 0.75rem; cursor: pointer; font-size: 0.9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.35rem; transition: color 0.15s, border-color 0.15s; }
.rbi-fav-btn:hover { color: var(--ochre-deep); border-color: var(--ochre-deep); }
.rbi-fav-on, .rbi-fav-on:hover { color: var(--ochre-deep); border-color: var(--ochre-deep); }
.rbi-fav-icon { font-size: 1.1rem; }
@keyframes rbi-fav-pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.rbi-fav-pop .rbi-fav-icon { animation: rbi-fav-pop 0.3s ease-out; }

.rbi-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1rem;
}
.rbi-photo-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ochre);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rbi-photo-card-link {
  display: block;
}
.rbi-photo-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
}
.rbi-filter-form { margin-bottom: 1.5rem; }
.rbi-price-summary { display: flex; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.rbi-price-chart-wrap { max-width: 520px; height: 180px; }
.rbi-google-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; margin: 0; }
.rbi-google-dl dt { font-weight: 600; color: var(--wood); }
.rbi-google-dl dd { margin: 0; }
.rbi-hours { list-style: none; padding: 0; margin: 0; }
.rbi-hours li { font-size: 0.92rem; }
.rbi-google-info-foot { margin-top: 0.7rem; font-size: 0.85rem; }
@media (max-width: 520px) { .rbi-google-dl { grid-template-columns: 1fr; } .rbi-google-dl dt { margin-top: 0.5rem; } }
.rbi-photo-card-body {
  padding: 0.9rem;
}
.rbi-photo-card-title {
  font-weight: 700;
  color: var(--wood);
}
.rbi-photo-card-meta,
.rbi-photo-card-caption,
.rbi-photo-card-stats {
  font-size: 0.9rem;
}
.rbi-photo-card-meta,
.rbi-photo-card-caption {
  color: var(--muted);
  margin-top: 0.2rem;
}
.rbi-photo-card-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ochre-deep);
  margin: 0.6rem 0;
  flex-wrap: wrap;
}

/* Forms */
.rbi-form .form-label { font-weight: 600; color: var(--wood); }
.rbi-form .form-control, .rbi-form .form-select {
  border: 1px solid var(--rule);
  background: #fffdf7;
  font-size: 1rem; /* prevents iOS Safari auto-zoom on focus */
}
.rbi-form .form-control:focus, .rbi-form .form-select:focus {
  border-color: var(--ochre-deep);
  box-shadow: 0 0 0 3px rgba(244, 169, 83, 0.25);
}
.rbi-error { color: var(--danger); font-size: 0.85rem; }
.rbi-errors { color: var(--danger); }
.rbi-errors ul { margin: 0; padding-left: 1.2rem; }
.rbi-honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Editor */
.rbi-toolbar { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.rbi-toolbar button {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}
.rbi-toolbar button:hover { background: var(--ochre-soft); }
.rbi-editor {
  min-height: 180px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fffdf7;
  padding: 0.75rem;
}
.rbi-editor:focus { outline: 2px solid var(--ochre-deep); }

/* Footer */
.rbi-footer {
  border-top: 6px solid var(--wood);
  background: var(--parchment);
  color: var(--wood);
  margin-top: 3rem;
  padding: 1.5rem 0;
}
.rbi-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}
.rbi-footer-grid a { color: var(--wood); margin-right: 1rem; }
.rbi-footer-copy { text-align: right; color: var(--muted); }

/* Statistics page */
.rbi-stats-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.rbi-stat-card {
  flex: 1;
  min-width: 110px;
  background: var(--ochre-soft);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ochre-deep);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.rbi-stat-value { font-size: 2rem; font-weight: 700; color: var(--wood); line-height: 1.1; }
.rbi-stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.rbi-stat-bar-wrap { background: var(--rule); border-radius: 2px; height: 6px; overflow: hidden; }
.rbi-stat-bar      { background: var(--ochre-deep); height: 100%; border-radius: 2px; transition: width 0.4s; }
.rbi-activity-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
  padding-bottom: 1.5rem;
  position: relative;
}
.rbi-activity-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.rbi-activity-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  gap: 1px;
  border-radius: 2px 2px 0 0;
  overflow: hidden;
}
.rbi-activity-seg  { width: 100%; min-height: 1px; }
.rbi-seg-reviews   { background: var(--ochre-deep); }
.rbi-seg-users     { background: #6aab6a; }
.rbi-seg-photos    { background: #7a9ec8; }
.rbi-activity-label { font-size: 0.6rem; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.rbi-chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
.rbi-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: middle;
}

/* Cookie consent banner */
.rbi-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1090;
  background: #1e0e04;
  color: #e8cfa0;
  border-top: 2px solid #c17a28;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.rbi-cookie-banner.rbi-cookie-show { transform: translateY(0); }
.rbi-cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.rbi-cookie-text { flex: 1; min-width: 220px; }
.rbi-cookie-text strong { display: block; margin-bottom: 0.3rem; color: #f0c060; }
.rbi-cookie-text p { margin: 0; font-size: 0.85rem; opacity: 0.85; line-height: 1.5; }
.rbi-cookie-marketing { font-size: 0.85rem; }
.rbi-cookie-marketing p { margin-bottom: 0.5rem; opacity: 0.85; }
.rbi-cookie-accept-btn {
  background: #c17a28;
  color: #1e0e04;
  border: none;
  font-weight: 700;
  white-space: nowrap;
}
.rbi-cookie-accept-btn:hover { background: #d98a38; color: #1e0e04; }

@media (max-width: 720px) {
  .rbi-footer-grid { grid-template-columns: 1fr; }
  .rbi-footer-copy { text-align: left; }
  .rbi-ranking-item { grid-template-columns: 48px 1fr; }
  .rbi-rank-stars { grid-column: 1 / -1; text-align: left; }
  .rbi-hero h1 { font-size: 1.9rem; }
  .rbi-hero { padding: 1.5rem 1rem; }
  h1 { font-size: 1.75rem; }
  .rbi-map { aspect-ratio: 4 / 4.25; }
  .rbi-map-small { aspect-ratio: auto; height: 220px; }
  .rbi-rating-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .rbi-sp-star { font-size: 1.6rem; }
  .rbi-cat-list li { grid-template-columns: 80px 1fr 70px; gap: 0.4rem; }
}

@media (max-width: 480px) {
  .rbi-hero h1 { font-size: 1.55rem; }
  .rbi-hero-cta { flex-direction: column; }
  .rbi-hero-cta .btn { width: 100%; }
  .rbi-reviews-head { flex-direction: column; align-items: flex-start; }
  .rbi-review-head { gap: 0.4rem; }
  .rbi-review-photos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .rbi-photo-grid { grid-template-columns: 1fr; }
  .rbi-card-grid { grid-template-columns: 1fr; }
}

/* Honour prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .rbi-card { transition: none; }
}

/* ── Theme toggle button ───────────────────────── */
.rbi-theme-btn {
  background: none;
  border: 1.5px solid var(--wood);
  color: var(--wood);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.6;
  transition: background 0.15s, color 0.15s;
  min-width: 2rem;
}
.rbi-theme-btn:hover { background: var(--wood); color: var(--cream); }

/* ── Dim theme ─────────────────────────────────── */
[data-theme="dim"] {
  --cream:      #e8d8c0;
  --parchment:  #deccaa;
  --ochre-soft: #e0aa5c;
  --rule:       #c4a880;
  --shadow:     0 4px 14px rgba(59, 38, 24, 0.22);
  --bs-secondary-color: #8a6840;
}
[data-theme="dim"] body {
  background: var(--cream);
  background-image:
    radial-gradient(#caa870 1px, transparent 1.2px),
    linear-gradient(to bottom, #e4ccaa 0%, var(--cream) 100%);
  background-size: 24px 24px, auto;
}
[data-theme="dim"] .rbi-card,
[data-theme="dim"] .rbi-filter,
[data-theme="dim"] .rbi-ranking-item,
[data-theme="dim"] .rbi-review,
[data-theme="dim"] .rbi-photo-card       { background: #f0e0c8; }
[data-theme="dim"] .rbi-rating-row       { background: #ecd8c0; }
[data-theme="dim"] .rbi-cat-bar          { background: #d8c4a0; }
[data-theme="dim"] .rbi-map              { background: #d8c4a0; }
[data-theme="dim"] .rbi-map-filters      { background: #e8d4b8; }
[data-theme="dim"] .rbi-map-filters input,
[data-theme="dim"] .rbi-map-filters select { background: #f0e0c8; }
[data-theme="dim"] .rbi-form .form-control,
[data-theme="dim"] .rbi-form .form-select { background: #f0e0c8; }
[data-theme="dim"] .rbi-editor           { background: #f0e0c8; }
[data-theme="dim"] .rbi-toolbar button   { background: #ecd8c0; }

/* ── Dark theme ────────────────────────────────── */
[data-theme="dark"] {
  --cream:      #1c1108;
  --parchment:  #261608;
  --ochre:      #e89030;
  --ochre-soft: #4c2e08;
  --ochre-deep: #f0a840;
  --wood:       #e8cfa0;
  --wood-mid:   #c4a070;
  --ink:        #eedfc0;
  --muted:      #a88060;
  --danger:     #e05858;
  --rule:       #3c2210;
  --shadow:     0 4px 14px rgba(0, 0, 0, 0.55);
  --bs-secondary-color: #c4a07e;
}
[data-theme="dark"] body {
  background: var(--cream);
  background-image:
    radial-gradient(#3a1e08 1px, transparent 1.2px),
    linear-gradient(to bottom, #221208 0%, var(--cream) 100%);
  background-size: 24px 24px, auto;
}
[data-theme="dark"] .rbi-hero {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--ochre-soft);
}
[data-theme="dark"] .rbi-card,
[data-theme="dark"] .rbi-filter,
[data-theme="dark"] .rbi-ranking-item,
[data-theme="dark"] .rbi-review,
[data-theme="dark"] .rbi-photo-card      { background: var(--parchment); }
[data-theme="dark"] .rbi-card:hover      { box-shadow: 0 8px 18px rgba(0,0,0,0.45); }
[data-theme="dark"] .rbi-rating-row      { background: #2a1808; }
[data-theme="dark"] .rbi-cat-bar         { background: #3a2010; }
[data-theme="dark"] .rbi-map             { background: #2a1808; }
[data-theme="dark"] .rbi-map-filters     { background: #221408; }
[data-theme="dark"] .rbi-map-filters input,
[data-theme="dark"] .rbi-map-filters select { background: var(--parchment); color: var(--ink); }
[data-theme="dark"] .rbi-form .form-control,
[data-theme="dark"] .rbi-form .form-select  { background: var(--parchment); color: var(--ink); border-color: var(--rule); }
[data-theme="dark"] .rbi-editor          { background: var(--parchment); color: var(--ink); }
[data-theme="dark"] .rbi-toolbar button  { background: var(--parchment); color: var(--ink); border-color: var(--rule); }
[data-theme="dark"] .rbi-toolbar button:hover { background: var(--ochre-soft); }

/* Dark: star colours — inactive dim, active ochre (must be more specific than base rules) */
[data-theme="dark"] .rbi-star-off,
[data-theme="dark"] .rbi-sp-star              { color: #6a4428; }
[data-theme="dark"] .rbi-sp-star.rbi-sp-full  { color: var(--ochre-deep); -webkit-text-fill-color: var(--ochre-deep); }
[data-theme="dark"] .rbi-sp-star.rbi-sp-half  {
  background: linear-gradient(to right, var(--ochre-deep) 50%, #6a4428 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .rbi-photo-star-btn,
[data-theme="dark"] .rbi-photo-star-static     { color: #6a4428; }
[data-theme="dark"] .rbi-fav-btn              { color: #6a4428; border-color: #4a2e14; }
[data-theme="dark"] .rbi-fav-btn:hover,
[data-theme="dark"] .rbi-fav-on              { color: var(--ochre-deep); border-color: var(--ochre-deep); }

/* Dark: Bootstrap overrides */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-check-input    { background-color: var(--parchment); color: var(--ink); border-color: var(--rule); }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus   { background-color: var(--parchment); color: var(--ink); }
[data-theme="dark"] .form-control::placeholder { color: var(--muted); }
[data-theme="dark"] .table              { color: var(--ink); --bs-table-bg: var(--parchment); --bs-table-border-color: var(--rule); }
[data-theme="dark"] .table > :not(caption) > * > * { background-color: var(--parchment); color: var(--ink); border-color: var(--rule); }
[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28232%2C207%2C160%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
