/*
Theme Name: Restaurant Theme
Theme URI: https://restaurant-platform.ddev.site
Description: Custom theme for the European restaurant discovery platform.
Author: Restaurant Platform
Version: 0.8.5
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.3
Text Domain: restaurant-theme
*/

:root {
  --rp-bg: #f2f3f5;
  --rp-bg-deep: #12151a;
  --rp-surface: #ffffff;
  --rp-text: #14181f;
  --rp-muted: #5c6570;
  --rp-accent: #1f5c57;
  --rp-accent-ink: #123834;
  --rp-accent-soft: #e4f0ee;
  --rp-line: #dde1e6;
  --rp-danger: #9b2c2c;
  --rp-star: #c47b16;
  --rp-radius: 6px;
  --rp-radius-lg: 12px;
  --rp-font-display: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --rp-font-body: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --rp-max: 1160px;
  --rp-header-h: 64px;
  --rp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rp-shadow: 0 1px 2px rgba(20, 24, 31, 0.05), 0 8px 24px rgba(20, 24, 31, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--rp-font-body);
  color: var(--rp-text);
  background: var(--rp-bg);
  min-height: 100vh;
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rp-accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--rp-accent-ink); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

.rp-autocomplete {
  position: relative;
  min-width: 0;
}
.rp-autocomplete > input { width: 100%; }
.rp-autocomplete__panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 80;
  min-width: min(25rem, calc(100vw - 2rem));
  padding: 0.4rem;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  background: var(--rp-surface);
  box-shadow: var(--rp-shadow);
}
.rp-autocomplete__panel[hidden] { display: none; }
.rp-autocomplete__option {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0.62rem 0.72rem;
  border-radius: 7px;
  color: var(--rp-text);
  text-decoration: none;
}
.rp-autocomplete__option:hover,
.rp-autocomplete__option[aria-selected="true"] {
  color: var(--rp-accent-ink);
  background: var(--rp-accent-soft);
}
.rp-autocomplete__option strong { font-size: 0.9rem; }
.rp-autocomplete__option span { color: var(--rp-muted); font-size: 0.78rem; }
.rp-shell { width: min(100% - 2rem, var(--rp-max)); margin-inline: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Always-visible sticky header */
.rp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--rp-header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rp-line);
  backdrop-filter: blur(12px);
}
.rp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--rp-header-h);
  padding: 0.65rem 0;
}
.rp-brand {
  font-family: var(--rp-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rp-text);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.rp-nav {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.92rem;
}
.rp-nav a {
  color: var(--rp-muted);
  text-decoration: none;
  font-weight: 600;
}
.rp-nav a:hover,
.rp-nav a[aria-current="page"] { color: var(--rp-text); }
.rp-nav-dropdown {
  position: relative;
}
.rp-nav-dropdown summary {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--rp-muted);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  user-select: none;
}
.rp-nav-dropdown summary::-webkit-details-marker { display: none; }
.rp-nav-dropdown summary:hover,
.rp-nav-dropdown summary:focus-visible,
.rp-nav-dropdown[open] summary { color: var(--rp-text); }
.rp-nav-dropdown summary:focus-visible {
  outline: 2px solid var(--rp-accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.rp-nav-dropdown__chevron {
  width: 0.48rem;
  height: 0.48rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 160ms var(--rp-ease);
}
.rp-nav-dropdown[open] .rp-nav-dropdown__chevron {
  transform: translateY(0.12rem) rotate(225deg);
}
.rp-nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  z-index: 60;
  width: 14rem;
  padding: 0.45rem;
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  box-shadow: var(--rp-shadow);
  transform: translateX(-50%);
}
.rp-nav-dropdown__menu::before {
  content: "";
  position: absolute;
  inset: -0.85rem 0 auto;
  height: 0.85rem;
}
.rp-nav .rp-nav-dropdown__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.55rem;
  padding: 0.58rem 0.7rem;
  border-radius: 7px;
  color: var(--rp-text);
}
.rp-nav .rp-nav-dropdown__menu a:hover,
.rp-nav .rp-nav-dropdown__menu a:focus-visible {
  color: var(--rp-accent-ink);
  background: var(--rp-accent-soft);
  outline: none;
}
.rp-nav-dropdown__code {
  color: var(--rp-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
@media (hover: hover) and (pointer: fine) {
  .rp-nav-dropdown:not([open]):hover .rp-nav-dropdown__menu { display: block; }
  .rp-nav-dropdown:not([open]) .rp-nav-dropdown__menu { display: none; }
}
.rp-lang {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  margin-left: 0.2rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--rp-line);
  font-size: 0.82rem;
  color: var(--rp-muted);
}
.rp-lang a {
  color: var(--rp-muted);
  text-decoration: none;
  font-weight: 700;
}
.rp-lang a[aria-current="true"] {
  color: var(--rp-accent);
}

/* Hero */
.rp-hero-bleed {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f7fafc;
  background: var(--rp-bg-deep);
}
.rp-hero-bleed__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: rp-hero-drift 20s var(--rp-ease) infinite alternate;
}
.rp-hero-bleed__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 21, 26, 0.88) 0%, rgba(18, 21, 26, 0.5) 52%, rgba(18, 21, 26, 0.28) 100%),
    linear-gradient(0deg, rgba(18, 21, 26, 0.62) 0%, transparent 48%);
}
.rp-hero-bleed__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--rp-max));
  margin-inline: auto;
  padding: 5.5rem 0 3.5rem;
  animation: rp-rise 800ms var(--rp-ease) both;
}
.rp-hero-bleed__content > * { max-width: 36rem; }
.rp-hero-bleed__brand {
  margin: 0 0 0.7rem;
  font-family: var(--rp-font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.rp-hero-bleed h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.rp-hero-bleed__lead {
  margin: 0 0 1.35rem;
  color: rgba(247, 250, 252, 0.82);
  font-size: 1.02rem;
  max-width: 38ch;
}

@keyframes rp-hero-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes rp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search */
.rp-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  padding: 0.35rem;
  max-width: 560px;
  box-shadow: var(--rp-shadow);
}
.rp-search--hero {
  background: #fff;
  border-color: transparent;
}
.rp-search input {
  border: 0;
  background: transparent;
  padding: 0.8rem 1rem;
  outline: none;
  width: 100%;
  color: var(--rp-text);
}

.rp-btn {
  appearance: none;
  border: 0;
  border-radius: var(--rp-radius);
  background: var(--rp-accent);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.rp-btn:hover { background: var(--rp-accent-ink); color: #fff; }
.rp-btn--ghost {
  background: #fff;
  color: var(--rp-text);
  border: 1px solid var(--rp-line);
}
.rp-btn--ghost:hover {
  border-color: #b8c0c9;
  background: #fafbfc;
  color: var(--rp-text);
}
.rp-btn--sm { padding: 0.45rem 0.75rem; font-size: 0.88rem; }
.rp-text-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--rp-accent-ink);
  white-space: nowrap;
}

.rp-cuisine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
}
.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--rp-line);
  background: #fff;
  color: var(--rp-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}
.rp-chip__count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rp-muted);
}
.rp-chip:hover,
.rp-chip.is-active {
  border-color: var(--rp-accent);
  background: var(--rp-accent-soft);
  color: var(--rp-accent-ink);
}
.rp-chip:hover .rp-chip__count,
.rp-chip.is-active .rp-chip__count {
  color: var(--rp-accent-ink);
}

.rp-cuisine-gallery {
  margin: 1.25rem 0 1.5rem;
}
.rp-cuisine-gallery__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.rp-cuisine-gallery__head h2,
.rp-cuisine-gallery__head p { margin: 0; }
.rp-cuisine-gallery__controls {
  display: flex;
  gap: 0.4rem;
}
.rp-cuisine-gallery__button {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--rp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rp-text);
  font-size: 1.15rem;
  cursor: pointer;
}
.rp-cuisine-gallery__button:hover { border-color: var(--rp-accent); }
.rp-cuisine-gallery__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1rem) / 2);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.65rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rp-cuisine-gallery__slide {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--rp-radius-lg);
  background: var(--rp-bg-deep);
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
}
.rp-cuisine-gallery__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--rp-ease);
}
.rp-cuisine-gallery__slide::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(0deg, rgba(18,21,26,.72), transparent);
}
.rp-cuisine-gallery__slide span {
  position: absolute;
  z-index: 1;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.8rem;
  font-weight: 800;
}
.rp-cuisine-gallery__slide:hover img { transform: scale(1.035); }

/* Sections */
.rp-section { padding: 3rem 0; }
.rp-section h1,
.rp-section h2,
.rp-split__copy h2,
.rp-detail__title {
  font-family: var(--rp-font-display);
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.rp-section h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 1rem;
}
.rp-section h2,
.rp-split__copy h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: 0 0 0.4rem;
}
.rp-section__lead {
  margin: 0 0 1.25rem;
  color: var(--rp-muted);
  max-width: 42ch;
}
.rp-section__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.35rem;
}
.rp-muted { color: var(--rp-muted); }

.rp-photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.rp-photo-tile {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--rp-radius-lg);
  text-decoration: none;
  color: #fff;
  background: var(--rp-bg-deep);
}
.rp-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .65s var(--rp-ease);
}
.rp-photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18,21,26,.74), rgba(18,21,26,.08) 55%);
}
.rp-photo-tile span {
  position: relative;
  z-index: 1;
  display: block;
  padding: 1rem;
  margin-top: auto;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.rp-photo-tile:hover img { transform: scale(1.04); }

.rp-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  overflow: hidden;
}
.rp-link-list li + li { border-top: 1px solid var(--rp-line); }
.rp-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: var(--rp-text);
  font-weight: 650;
}
.rp-link-list a span { color: var(--rp-muted); font-weight: 500; }
.rp-link-list a:hover { background: #f8f9fa; }

.rp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.rp-card {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s var(--rp-ease);
}
.rp-card:hover {
  border-color: #c5ced6;
  box-shadow: var(--rp-shadow);
}
.rp-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #d5dde5 center/cover no-repeat;
}
.rp-card__body { padding: 0.9rem 1rem 1.05rem; }
.rp-card__body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.rp-card__body h3 a {
  color: inherit;
  text-decoration: none;
}
.rp-card__meta { color: var(--rp-muted); font-size: 0.9rem; }
.rp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rp-accent-ink);
  background: var(--rp-accent-soft);
  border-radius: 4px;
  padding: 0.18rem 0.45rem;
  margin-bottom: 0.4rem;
}

.rp-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 380px;
  background: var(--rp-bg-deep);
  color: #f4f7fa;
}
.rp-split__media { min-height: 280px; }
.rp-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rp-split__copy {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}
.rp-split__copy p {
  margin: 0;
  color: rgba(244, 247, 250, 0.78);
  max-width: 34ch;
}
.rp-split .rp-btn { justify-self: start; }

/* Filters / search page */
.rp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
}
.rp-filters select,
.rp-filters input[type="search"],
.rp-filters input[type="text"] {
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  padding: 0.65rem 0.8rem;
  background: #fff;
  min-width: 140px;
}
.rp-search-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
  align-items: start;
}
.rp-search-layout__list { min-width: 0; }
.rp-search-layout__map {
  position: sticky;
  top: calc(var(--rp-header-h) + 0.75rem);
}

/* Map */
.rp-map {
  min-height: 280px;
  border-radius: var(--rp-radius-lg);
  border: 1px solid var(--rp-line);
  background: #e8edf1;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.rp-map--search {
  min-height: min(68vh, 640px);
  margin: 0;
}
.rp-map--detail {
  min-height: 320px;
}
.rp-map .maplibregl-ctrl-group {
  border: 1px solid var(--rp-line) !important;
  border-radius: var(--rp-radius) !important;
  box-shadow: var(--rp-shadow) !important;
  overflow: hidden;
}
.rp-map .maplibregl-popup-content {
  border-radius: var(--rp-radius) !important;
  padding: 0.75rem 0.9rem !important;
  font-family: var(--rp-font-body) !important;
  font-size: 0.9rem !important;
  box-shadow: var(--rp-shadow) !important;
  border: 1px solid var(--rp-line);
  color: var(--rp-text);
  min-width: 140px;
}
.rp-map .maplibregl-popup-close-button {
  font-size: 1.1rem;
  color: var(--rp-muted);
  padding: 0.15rem 0.4rem;
}
.rp-map .maplibregl-popup-tip {
  border-top-color: #fff;
}
.rp-map-popup__title {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--rp-text);
}
.rp-map-popup__meta {
  margin: 0.25rem 0 0.45rem;
  color: var(--rp-muted);
  font-size: 0.82rem;
}
.rp-map-popup__link {
  font-weight: 700;
  color: var(--rp-accent-ink);
  text-decoration: none;
}
.rp-map-popup__link:hover { text-decoration: underline; }
.rp-map-marker {
  width: 34px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(18, 56, 52, 0.35));
}
.rp-map-marker__pin {
  display: block;
  width: 34px;
  height: 44px;
}
.rp-map-marker--user {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1d4ed8;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.35), 0 2px 6px rgba(18, 56, 52, 0.25);
  filter: none;
}
.rp-map-toolbar {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}
.rp-map-toolbar__btn { pointer-events: auto; }
.rp-map-toolbar__meta {
  pointer-events: none;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  padding: 0.4rem 0.7rem;
  font-size: 0.84rem;
  color: var(--rp-muted);
  box-shadow: var(--rp-shadow);
}
.rp-card--map-active { outline: 2px solid rgba(31, 92, 87, 0.28); }
.rp-card--selected { outline: 2px solid var(--rp-accent); }

/* Detail */
.rp-detail { padding: 1.5rem 0 3.5rem; }
.rp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--rp-muted);
}
.rp-crumbs a {
  color: var(--rp-muted);
  text-decoration: none;
  font-weight: 600;
}
.rp-crumbs a:hover { color: var(--rp-accent); }
.rp-crumbs__sep { opacity: 0.45; }
.rp-detail__hero { margin-bottom: 1.25rem; }
.rp-detail__title {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  margin: 0 0 0.4rem;
  font-weight: 800;
}
.rp-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  color: var(--rp-muted);
  margin: 0;
}
.rp-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--rp-text);
}
.rp-rating__stars {
  color: var(--rp-star);
  letter-spacing: 0.04em;
}
.rp-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}
.rp-panel {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-lg);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}
.rp-panel h2,
.rp-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rp-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rp-facts li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rp-line);
  font-size: 0.95rem;
}
.rp-facts li:first-child { border-top: 0; padding-top: 0; }
.rp-facts__label {
  color: var(--rp-muted);
  font-weight: 600;
  font-size: 0.84rem;
}
.rp-facts a { word-break: break-word; }
.rp-aside { position: sticky; top: calc(var(--rp-header-h) + 0.75rem); }

/* Reviews */
.rp-review {
  padding: 1rem 0;
  border-top: 1px solid var(--rp-line);
}
.rp-review:first-of-type { border-top: 0; padding-top: 0; }
.rp-review__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}
.rp-review__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}
.rp-review__meta {
  color: var(--rp-muted);
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}
.rp-review p { margin: 0; }

.rp-form {
  display: grid;
  gap: 0.75rem;
}
.rp-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--rp-muted);
  margin-bottom: 0.3rem;
}
.rp-field input,
.rp-field textarea,
.rp-field select {
  width: 100%;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  padding: 0.7rem 0.8rem;
  background: #fff;
}
.rp-field textarea { resize: vertical; min-height: 110px; }
.rp-field input:focus,
.rp-field textarea:focus,
.rp-field select:focus {
  outline: 2px solid rgba(31, 92, 87, 0.25);
  border-color: var(--rp-accent);
}

.rp-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.15rem;
}
.rp-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rp-stars label {
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
  color: #d0d5db;
  margin: 0;
}
.rp-stars label:hover,
.rp-stars label:hover ~ label,
.rp-stars input:checked ~ label {
  color: var(--rp-star);
}

.rp-footer {
  border-top: 1px solid var(--rp-line);
  padding: 2rem 0 2.5rem;
  color: var(--rp-muted);
  font-size: 0.92rem;
  background: #fff;
}

.rp-gallery { margin-bottom: 0.25rem; }
.rp-gallery__hero,
.rp-gallery__thumb {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: block;
  width: 100%;
}
.rp-gallery__hero {
  border-radius: var(--rp-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dbe3ea;
}
.rp-gallery__hero img,
.rp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rp-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.rp-gallery__thumb {
  aspect-ratio: 1;
  border-radius: var(--rp-radius);
  overflow: hidden;
  border: 1px solid var(--rp-line);
}
.rp-gallery__empty {
  border: 1px dashed var(--rp-line);
  border-radius: var(--rp-radius-lg);
  padding: 2rem;
  text-align: center;
  background: rgba(255,255,255,0.7);
}
.rp-hours { padding: 1.15rem 1.2rem; }
.rp-hours__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--rp-line);
}
.rp-hours__head h2 {
  margin: 0;
  font-size: 1.25rem;
  white-space: nowrap;
}
.rp-hours__status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin: 0;
  white-space: nowrap;
  font-size: 0.86rem;
}
.rp-hours__state {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}
.rp-hours__state--open { background: #197044; }
.rp-hours__state--closed { background: #bd3153; }
.rp-hours__detail { color: var(--rp-muted); font-weight: 650; }
.rp-hours__week {
  display: grid;
  gap: 0;
  margin: 0.2rem 0 0;
}
.rp-hours__day {
  display: grid;
  grid-template-columns: minmax(6.8rem, 0.75fr) 1.25fr;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
}
.rp-hours__day dt,
.rp-hours__day dd { margin: 0; font-size: 0.9rem; }
.rp-hours__day dt { color: var(--rp-muted); font-size: 0.88rem; font-weight: 650; }
.rp-hours__day:nth-child(even):not(.is-today) { background: #fafbfa; }
.rp-hours__day.is-today { background: var(--rp-accent-soft); }
.rp-hours__day.is-today dt,
.rp-hours__day.is-today dd { color: var(--rp-accent-ink); font-weight: 800; }
.rp-hours__raw {
  padding: 0.8rem;
  border-radius: var(--rp-radius);
  background: var(--rp-accent-soft);
  line-height: 1.55;
}
.rp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 21, 26, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.rp-lightbox.is-open { display: flex; }
.rp-lightbox__inner {
  position: relative;
  max-width: min(960px, 100%);
  max-height: 90vh;
}
.rp-lightbox__inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--rp-radius);
  background: #111;
}
.rp-lightbox__close,
.rp-lightbox__nav {
  position: absolute;
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.94);
  color: #12151a;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}
.rp-lightbox__close { top: -12px; right: -12px; }
.rp-lightbox__nav--prev { left: -12px; top: 50%; transform: translateY(-50%); }
.rp-lightbox__nav--next { right: -12px; top: 50%; transform: translateY(-50%); }
.rp-owner-reply {
  margin-top: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--rp-accent);
  background: var(--rp-accent-soft);
  border-radius: 0 8px 8px 0;
}
.rp-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.rp-pagination a {
  display: inline-flex;
  min-width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  text-decoration: none;
  color: var(--rp-text);
  font-weight: 650;
  background: #fff;
  padding: 0 0.55rem;
}
.rp-pagination a[aria-current="page"] {
  background: var(--rp-accent);
  border-color: var(--rp-accent);
  color: #fff;
}

.rp-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .65s var(--rp-ease), transform .65s var(--rp-ease);
}
.rp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .rp-search-layout,
  .rp-detail__grid,
  .rp-photo-row,
  .rp-split { grid-template-columns: 1fr; }
  .rp-search-layout__map { position: static; }
  .rp-aside { display: contents; }
  .rp-hours { order: -1; }
  .rp-map--search { min-height: 360px; }
  .rp-cuisine-gallery__viewport { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@media (max-width: 720px) {
  .rp-search { grid-template-columns: 1fr; }
  .rp-header__inner { align-items: flex-start; flex-direction: column; }
  .rp-nav { width: 100%; gap: 0.75rem 1rem; }
  .rp-nav-dropdown__menu {
    left: 0;
    width: min(17rem, calc(100vw - 2rem));
    transform: none;
  }
  .rp-lang { border-left: 0; padding-left: 0; }
  .rp-facts li { grid-template-columns: 1fr; gap: 0.15rem; }
  .rp-cuisine-gallery__viewport { grid-auto-columns: 82%; }
  .rp-cuisine-gallery__slide { min-height: 190px; }
  .rp-hours__head { align-items: flex-start; flex-wrap: wrap; gap: 0.45rem; }
  .rp-hours__head h2 { font-size: 1.05rem; }
  .rp-hours__status { flex-basis: 100%; justify-content: flex-start; gap: 0.3rem; font-size: 0.78rem; }
  .rp-hours__state { min-height: 1.65rem; padding: 0.24rem 0.45rem; font-size: 0.7rem; }
  .rp-hours__day { grid-template-columns: 6.2rem 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-hero-bleed__image,
  .rp-hero-bleed__content,
  .rp-reveal,
  .rp-photo-tile img { animation: none !important; transition: none !important; transform: none !important; }
  .rp-reveal { opacity: 1; }
}
/* Zero-result fallback: a small, accessible loading state while OSM is queried. */
.rp-live-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--rp-border, #dfe5df);
    border-radius: 14px;
    background: #f7faf7;
}

.rp-spinner {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    border: 2px solid #c8d5ca;
    border-top-color: #146c43;
    border-radius: 50%;
    animation: rp-spin 0.75s linear infinite;
}

.rp-card__media--osm {
    display: grid;
    place-items: center;
    height: 180px;
    min-height: 180px;
    aspect-ratio: auto;
    color: var(--rp-accent-ink);
    background: linear-gradient(135deg, #e5f4e9, #cce8d4);
    font-size: 2.2rem;
}

@keyframes rp-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .rp-spinner { animation: none; }
}
