/**
 * BnbBooking — photo-first stays.
 *
 * Design direction, stated once here so the two pages stay coherent:
 * generous whitespace, large rounded photography, a light warm-neutral
 * ground and exactly one accent (terracotta). No bordered data boxes, no
 * dense tabular rows, no badges or urgency messaging — the picture carries
 * the page and the type stays quiet underneath it.
 *
 * Typeface pairing: Fraunces (a soft optical serif) for display, DM Sans for
 * everything else. Deliberately nothing from the Inter/Helvetica family.
 */

:root {
  --bg: #fffcf9;
  --surface: #ffffff;
  --ink: #1f1b17;
  --ink-2: #554c44;
  --muted: #857a70;
  --line: #ece5dd;
  --line-strong: #dcd2c7;
  /* 4.67:1 against white — white text sits on this in the search button,
     Reserve, the map pill and cluster pins. The previous #d2603a measured
     3.84 and failed. */
  --accent: #bf5330;
  --accent-deep: #99401f;
  --accent-wash: #fdf1ea;

  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 2px 6px rgba(31, 27, 23, 0.06), 0 12px 28px -18px rgba(31, 27, 23, 0.28);
  --shadow-pop: 0 10px 40px -12px rgba(31, 27, 23, 0.3);

  --page-max: 1560px;
  --page-pad: 48px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  letter-spacing: -0.015em;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rb-page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.rb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------- */

.rb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 249, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.rb-header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px var(--page-pad);
  display: grid;
  /* Wordmark, then the search pill centred in the remaining width. The
     reference had a third track for the theme picker and the cross-shop
     dashboard link; both are gone, so the track is gone with them rather than
     left behind as an empty gutter. */
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.rb-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: Fraunces, Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  letter-spacing: -0.03em;
  justify-self: start;
}

.rb-wordmark svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.rb-wordmark span {
  color: var(--ink);
}

/* Search pill --------------------------------------------------------------- */

.rb-search {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(31, 27, 23, 0.06);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.rb-search.is-open {
  background: #faf6f2;
  box-shadow: var(--shadow-pop);
}

.rb-search-seg {
  cursor: pointer;
  position: relative;
  display: grid;
  gap: 1px;
  padding: 8px 18px;
  background: none;
  border: 0;
  border-radius: 999px;
  text-align: left;
  min-width: 132px;
  transition: background 0.15s ease;
}

.rb-search-seg:hover {
  background: rgba(31, 27, 23, 0.05);
}

.rb-search.is-open .rb-search-seg.is-active {
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(31, 27, 23, 0.12);
}

.rb-seg-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.rb-seg-value {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.rb-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 17px;
  line-height: 1;
}

.rb-step:hover {
  border-color: var(--ink);
}

.rb-seg-guests output {
  min-width: 28px;
  text-align: center;
}

.rb-search-rule {
  width: 1px;
  height: 26px;
  background: var(--line-strong);
}

.rb-search-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  margin-left: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  transition: background 0.15s ease;
}

.rb-search-go:hover {
  background: var(--accent-deep);
}

.rb-search-go svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.rb-search:not(.is-open) .rb-search-go span {
  display: none;
}

.rb-search:not(.is-open) .rb-search-go {
  width: 44px;
  padding: 0;
  justify-content: center;
}

.rb-avatar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.rb-avatar svg {
  width: 16px;
  height: 16px;
}

.rb-avatar-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #e6a06f);
}

/* ---------------------------------------------------------------------------
 * Category strip
 * ------------------------------------------------------------------------- */

.rb-categories {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.rb-categories-track {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px var(--page-pad);
  display: flex;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rb-categories-track::-webkit-scrollbar {
  display: none;
}

.rb-chip {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 4px 2px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.rb-chip svg {
  width: 24px;
  height: 24px;
}

.rb-chip:hover {
  color: var(--ink);
}

.rb-chip.is-on {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
 * Explore grid
 * ------------------------------------------------------------------------- */

.rb-explore-head {
  padding: 40px 0 8px;
}

.rb-explore-head h1 {
  font-size: clamp(28px, 3vw, 40px);
}

.rb-explore-head p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.rb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 40px 24px;
  padding: 32px 0 80px;
}

.rb-card {
  display: block;
  color: inherit;
}

.rb-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f1ebe4;
}

.rb-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.rb-track img {
  flex: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rb-card-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
}

.rb-card-save svg {
  width: 22px;
  height: 22px;
  fill: rgba(31, 27, 23, 0.45);
  stroke: #fff;
  stroke-width: 1.8;
  transition: fill 0.15s ease, transform 0.15s ease;
}

.rb-card-save:hover svg {
  transform: scale(1.1);
}

.rb-card-save[aria-pressed="true"] svg {
  fill: var(--accent);
  stroke: #fff;
}

.rb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.rb-arrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.rb-arrow.prev {
  left: 10px;
}

.rb-arrow.next {
  right: 10px;
}

.rb-card-media:hover .rb-arrow {
  opacity: 1;
}

.rb-arrow[hidden] {
  display: none;
}

.rb-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.rb-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rb-dots i.is-on {
  background: #fff;
  transform: scale(1.15);
}

.rb-card-body {
  padding: 14px 2px 0;
  display: grid;
  gap: 2px;
}

.rb-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rb-card-title h3 {
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  font-size: 14px;
}

.rb-star {
  width: 12px;
  height: 12px;
  fill: var(--ink);
  stroke: none;
}

.rb-card-meta {
  color: var(--muted);
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-card-price {
  margin-top: 6px;
  font-size: 15px;
}

.rb-card-price b {
  font-weight: 600;
}

.rb-card-price span {
  color: var(--ink-2);
}

/* Loading skeleton.
   Deliberately NOT the .rb-card class: a screenshot that waits for real cards
   waits on [data-listing-id], which no skeleton ever carries. */
.sk-card {
  display: grid;
  gap: 12px;
}

.sk-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
}

.sk-line {
  height: 12px;
  border-radius: 6px;
}

.sk-media,
.sk-line {
  background: linear-gradient(100deg, #f2ece5 30%, #f9f5f1 50%, #f2ece5 70%);
  background-size: 300% 100%;
  animation: sk 1.4s ease-in-out infinite;
}

@keyframes sk {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -30% 0;
  }
}

.rb-error {
  padding: 80px 0 120px;
  text-align: center;
}

.rb-error h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.rb-error p {
  color: var(--muted);
  margin: 0 auto 22px;
  max-width: 46ch;
}

.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
}

.rb-btn:hover {
  background: var(--accent-deep);
}

.rb-btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.rb-btn.ghost:hover {
  background: #f6f0ea;
}

.rb-empty {
  padding: 60px 0 100px;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
 * Stay (detail) page
 * ------------------------------------------------------------------------- */

.rb-stay {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px var(--page-pad) 120px;
}

.rb-stay-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.rb-stay-head h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  max-width: 20ch;
}

.rb-stay-actions {
  display: flex;
  gap: 6px;
  flex: none;
}

.rb-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rb-linkbtn:hover {
  background: rgba(31, 27, 23, 0.05);
}

.rb-linkbtn svg {
  width: 16px;
  height: 16px;
}

.rb-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  aspect-ratio: 2.1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rb-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f1ebe4;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.rb-mosaic img:hover {
  filter: brightness(0.94);
}

.rb-mosaic img:first-child {
  grid-row: span 2;
}

.rb-mosaic-all {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
}

.rb-mosaic-all svg {
  width: 14px;
  height: 14px;
}

.rb-stay-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 80px;
  padding-top: 44px;
}

.rb-sec {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.rb-sec:first-child {
  padding-top: 0;
  border-top: 0;
}

.rb-sec h2 {
  font-size: 21px;
  margin-bottom: 14px;
}

.rb-lede h2 {
  font-size: 23px;
  margin-bottom: 4px;
}

.rb-lede p {
  color: var(--muted);
  margin: 0;
}

.rb-prose {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0;
}

.rb-host {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rb-host-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #e8a97a);
  color: #fff;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
}

.rb-host b {
  display: block;
  font-weight: 600;
  font-size: 16px;
}

.rb-host span {
  color: var(--muted);
  font-size: 14px;
}

.rb-amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-amenities li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}

.rb-amenity-icon {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--ink-2);
}

.rb-amenities li[hidden] {
  display: none;
}

.rb-more {
  margin-top: 22px;
}

/* Section furniture -------------------------------------------------------- */

.rb-sec-note {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 18px;
}

.rb-wide-sec {
  border-top: 1px solid var(--line);
}

.rb-highlights {
  display: grid;
  gap: 20px;
}

.rb-highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.rb-highlight svg {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 2px;
  color: var(--ink-2);
}

.rb-highlight b {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
}

.rb-highlight span {
  color: var(--muted);
  font-size: 14.5px;
}

.rb-host-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.rb-host-row b {
  display: block;
  font-weight: 600;
}

.rb-host-row span {
  color: var(--muted);
  font-size: 14px;
}

/* About this space --------------------------------------------------------- */

.rb-prose.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rb-showmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rb-showmore svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

/* Where you'll sleep -------------------------------------------------------- */

.rb-beds {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.rb-beds::-webkit-scrollbar {
  display: none;
}

.rb-bed-card {
  flex: none;
  width: 232px;
  display: grid;
  gap: 2px;
}

.rb-bed-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: #f1ebe4;
}

.rb-bed-card b {
  font-weight: 600;
  font-size: 15px;
}

.rb-bed-card span {
  color: var(--muted);
  font-size: 14.5px;
}

/* Calendar (display only) --------------------------------------------------- */

.rb-calendar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 700px;
}

.rb-month > b {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 14px;
}

.rb-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.rb-month-grid u,
.rb-month-grid i {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  font-size: 13.5px;
  font-style: normal;
  text-decoration: none;
  border-radius: 50%;
}

.rb-month-grid u {
  color: var(--muted);
  font-size: 12px;
}

.rb-month-grid i.is-between {
  background: var(--accent-wash);
  border-radius: 0;
}

.rb-month-grid i.is-edge {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

/* Map ----------------------------------------------------------------------- */

.rb-map {
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #eee7df;
  z-index: 0;
}

.rb-map-note {
  margin: 22px 0 10px;
}

.rb-pin {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
}

.rb-pin svg {
  width: 34px;
  height: 34px;
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 1.6;
  filter: drop-shadow(0 2px 4px rgba(31, 27, 23, 0.35));
}

.rb-pin svg circle {
  fill: #fff;
  stroke: none;
}

/* Meet your host ------------------------------------------------------------ */

.rb-host-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.rb-host-card {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--surface);
  text-align: center;
}

.rb-host-avatar.big {
  width: 92px;
  height: 92px;
  font-size: 36px;
  margin-bottom: 10px;
}

.rb-host-card > b {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}

.rb-host-card > span {
  color: var(--muted);
  font-size: 13.5px;
}

.rb-host-card dl {
  display: flex;
  gap: 26px;
  margin: 20px 0 0;
}

.rb-host-card dl div {
  display: grid;
  gap: 1px;
}

.rb-host-card dt {
  font-weight: 600;
  font-size: 17px;
}

.rb-host-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.rb-host-detail h3 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  margin: 26px 0 8px;
}

.rb-host-detail .rb-btn {
  margin-top: 18px;
}

/* Things to know ------------------------------------------------------------ */

.rb-know {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 56px;
}

.rb-know h3 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.rb-know p {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* ---------------------------------------------------------------------------
 * Reviews
 * ------------------------------------------------------------------------- */

.rb-score-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding-top: 6px;
}

.rb-score-hero > div {
  display: grid;
  gap: 2px;
}

.rb-score-hero b {
  font-size: 15px;
  font-weight: 600;
}

.rb-score-number {
  font-family: Fraunces, Georgia, serif;
  font-size: 62px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rb-laurel {
  width: 34px;
  height: 62px;
  color: var(--ink);
  stroke-width: 1.4;
}

.rb-laurel.right {
  transform: scaleX(-1);
}

.rb-score-lede {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 10px auto 30px;
  max-width: 52ch;
}

.rb-stats {
  display: grid;
  grid-template-columns: 1.4fr repeat(6, 1fr);
  gap: 0;
  padding: 6px 0 26px;
  border-bottom: 1px solid var(--line);
}

.rb-stat {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.rb-stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.rb-stat b,
.rb-stat > span,
.rb-stat-dist > b {
  font-size: 13px;
}

.rb-stat-label {
  color: var(--ink);
  font-weight: 500;
}

.rb-stat-value {
  font-size: 15px !important;
  font-weight: 600;
}

.rb-stat-icon {
  width: 24px;
  height: 24px;
  color: var(--ink-2);
}

.rb-stat-dist {
  gap: 3px;
}

.rb-dist-row {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.rb-dist-row i {
  height: 4px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.rb-dist-row i b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--ink);
}

.rb-topics {
  padding: 26px 0 4px;
}

.rb-topics h3 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.rb-topics-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.rb-topics-row::-webkit-scrollbar {
  display: none;
}

.rb-topic {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  white-space: nowrap;
}

.rb-topic b {
  color: var(--muted);
  font-weight: 500;
}

.rb-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 56px;
  padding: 30px 0 4px;
}

.rb-review header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rb-review-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #e2b79a, #c98f68);
  color: #fff;
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
}

.rb-review header b {
  display: block;
  font-weight: 600;
  font-size: 15px;
}

.rb-review header span {
  color: var(--muted);
  font-size: 13px;
}

.rb-review-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 8px;
}

.rb-stars {
  display: inline-flex;
  gap: 1px;
}

.rb-mini-star {
  width: 11px;
  height: 11px;
  fill: var(--ink);
  stroke: none;
}

.rb-mini-star.is-off {
  fill: var(--line-strong);
}

.rb-review p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.rb-review.is-clamped p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rb-review-more {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------------------
 * Modal (About this space / all reviews)
 * ------------------------------------------------------------------------- */

.rb-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: rgba(31, 27, 23, 0.42);
}

.rb-modal[hidden] {
  display: none;
}

.rb-modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.rb-modal-wide {
  width: min(1020px, 100%);
}

.rb-modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
}

.rb-modal-close:hover {
  background: #f2ece6;
}

.rb-modal-close svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.rb-modal-scroll {
  overflow-y: auto;
  padding: 66px 0 44px;
}

.rb-modal-inner {
  padding: 0 48px;
}

.rb-modal-inner h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.rb-modal-inner h3 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 6px;
}

.rb-modal-inner .rb-prose {
  max-width: none;
}

.rb-reviews-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
}

.rb-reviews-toolbar > b {
  font-size: 19px;
}

.rb-toolbar-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rb-search-field {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
}

.rb-search-field svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.rb-search-field input {
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  outline: none;
  width: 170px;
}

.rb-toolbar-controls select {
  font: inherit;
  font-size: 14px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.rb-review-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 48px;
}

/* Booking widget ------------------------------------------------------------ */

.rb-booking {
  position: sticky;
  top: 116px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.rb-booking-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 18px;
}

.rb-booking-price b {
  font-size: 23px;
  font-weight: 600;
}

.rb-booking-price span {
  color: var(--muted);
}

.rb-fields {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rb-field {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
}

.rb-field + .rb-field {
  border-top: 1px solid var(--line-strong);
}

.rb-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rb-fields-row .rb-field + .rb-field {
  border-top: 0;
  border-left: 1px solid var(--line-strong);
}

.rb-field label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rb-field input,
.rb-field select {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  outline: none;
  width: 100%;
}

.rb-reserve {
  width: 100%;
  margin: 18px 0 12px;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.rb-reserve:hover {
  background: var(--accent-deep);
}

.rb-booking-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}

.rb-breakdown {
  display: grid;
  gap: 11px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.rb-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.rb-breakdown u {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.rb-breakdown .total {
  margin-top: 5px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
}

.rb-mobile-bar {
  display: none;
}

/* Lightbox ------------------------------------------------------------------ */

.rb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  overflow-y: auto;
  padding: 76px var(--page-pad) 80px;
}

.rb-lightbox[hidden] {
  display: none;
}

.rb-lightbox-close {
  position: fixed;
  top: 18px;
  left: var(--page-pad);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.rb-lightbox-close svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.rb-lightbox-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.rb-lightbox-grid img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------- */

.rb-footer {
  border-top: 1px solid var(--line);
  background: #fbf6f1;
}

.rb-footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 30px var(--page-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  color: var(--muted);
  font-size: 13.5px;
}

.rb-footer-inner b {
  color: var(--ink);
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  :root {
    --page-pad: 32px;
  }

  .rb-stay-cols {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 48px;
  }
}

@media (max-width: 1024px) {
  .rb-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .rb-search-seg {
    min-width: 0;
    padding: 8px 12px;
  }

  .rb-seg-value {
    max-width: 92px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .rb-stay-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .rb-booking {
    display: none;
  }

  .rb-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    margin: 0 calc(var(--page-pad) * -1);
    gap: 0;
  }

  .rb-mosaic img:not(:first-child) {
    display: none;
  }

  .rb-mosaic img:first-child {
    grid-row: auto;
  }

  .rb-mosaic-all {
    right: 16px;
    bottom: 16px;
  }

  .rb-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

  .rb-mobile-bar b {
    font-size: 17px;
  }

  .rb-mobile-bar small {
    display: block;
    color: var(--muted);
    font-size: 13px;
  }

  .rb-mobile-bar .rb-btn {
    padding: 12px 30px;
  }
}

@media (max-width: 760px) {
  :root {
    --page-pad: 20px;
  }

  .rb-header-inner {
    grid-template-columns: 1fr;
    padding: 12px var(--page-pad);
    gap: 12px;
  }

  .rb-header-inner .rb-wordmark {
    font-size: 22px;
  }

  /* The pill collapses to a single tap target on phones, the way the search
     control does on small screens generally: one row, one affordance. */
  .rb-search {
    width: 100%;
    padding: 7px 7px 7px 16px;
  }

  .rb-search-rule,
  .rb-search .rb-seg-label {
    display: none;
  }

  .rb-search-seg {
    flex: 1;
    padding: 6px 4px;
  }

  .rb-search-seg:not([data-seg="where"]) {
    display: none;
  }

  .rb-search.is-open .rb-search-seg {
    display: grid;
  }

  .rb-search.is-open .rb-seg-label {
    display: block;
  }

  .rb-seg-value {
    font-size: 14.5px;
    color: var(--ink);
    max-width: none;
  }


  .rb-categories-track {
    gap: 26px;
    padding: 14px var(--page-pad);
  }

  .rb-explore-head {
    padding: 26px 0 4px;
  }

  .rb-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 22px 0 60px;
  }

  .rb-card-media {
    aspect-ratio: 20 / 19;
  }

  .rb-arrow {
    display: none;
  }

  .rb-stay {
    padding: 18px var(--page-pad) 110px;
  }

  .rb-stay-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .rb-stay-actions {
    margin-left: -13px;
  }

  .rb-amenities {
    grid-template-columns: 1fr;
  }

  .rb-lightbox {
    padding-top: 70px;
  }
}

/* ---------------------------------------------------------------------------
 * Responsive — sections added in the deepening pass
 * ------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  /* The six category columns stop fitting side by side well before the page
     does. They become a scrolling row rather than shrinking into illegibility. */
  .rb-stats {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rb-stats::-webkit-scrollbar {
    display: none;
  }

  .rb-stat {
    flex: none;
    min-width: 128px;
  }

  .rb-stat-dist {
    min-width: 190px;
  }

  .rb-host-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
  }

  .rb-know {
    gap: 20px 36px;
  }
}

@media (max-width: 900px) {
  .rb-review-grid,
  .rb-review-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .rb-host-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .rb-know {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .rb-map {
    height: 380px;
  }
}

@media (max-width: 760px) {
  .rb-calendar {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rb-score-number {
    font-size: 50px;
  }

  .rb-laurel {
    height: 52px;
  }

  .rb-map {
    height: 300px;
  }

  .rb-bed-card {
    width: 190px;
  }

  .rb-modal {
    padding: 0;
  }

  .rb-modal-panel {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .rb-modal-inner {
    padding: 0 20px;
  }

  .rb-modal-scroll {
    padding-top: 62px;
  }

  .rb-reviews-toolbar {
    gap: 12px;
  }

  .rb-search-field input {
    width: 120px;
  }
}

/* ---------------------------------------------------------------------------
 * Corrections after the first screenshot review
 * ------------------------------------------------------------------------- */

/* Bed cards: an illustrated bed, because no listing photo is tagged by room. */
.rb-bed-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #fdf6f0, #f6efe8);
}

.rb-bed-visual svg {
  width: 54px;
  height: 54px;
  color: var(--accent);
  stroke-width: 1.4;
}

/* Laurel: filled leaves on a drawn stem. */
.rb-laurel .stem {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.rb-laurel .leaves {
  fill: currentColor;
  stroke: none;
}

/* Horizontal scrollers fade at their right edge, so a cut-off card or column
   reads as "continues off-screen" rather than as a clipping bug. The gradient
   itself is defined once, here, and referenced wherever it is needed.

   `.rb-beds` and `.rb-topics-row` scroll at every width. `.rb-stats` is a
   seven-column grid on a wide screen and only becomes a scroller at 1180px,
   so it picks the mask up in that media query rather than here — masking it
   on desktop would fade the right-hand edge of the Value column for no
   reason. */
:root {
  --scroll-fade: linear-gradient(90deg, #000 92%, transparent 100%);
}

.rb-topics-row,
.rb-beds {
  -webkit-mask-image: var(--scroll-fade);
  mask-image: var(--scroll-fade);
}

@media (max-width: 1180px) {
  .rb-stats {
    -webkit-mask-image: var(--scroll-fade);
    mask-image: var(--scroll-fade);
  }
}

/* ---------------------------------------------------------------------------
 * Mobile price sheet
 *
 * The sticky bar's price is a control, not a label: tapping it raises the
 * line items and total that the hidden desktop widget holds.
 * ------------------------------------------------------------------------- */

.rb-mobile-price {
  display: grid;
  gap: 1px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.rb-mobile-price b {
  font-size: 17px;
  border-bottom: 1px solid var(--line-strong);
}

/* Anchored to the bottom edge and sized to its content. Both declarations have
   to out-rank the full-screen `.rb-modal-panel` rule that applies below 760px,
   which the doubled class does on specificity alone, whatever the order. */
.rb-modal-panel.rb-modal-sheet {
  align-self: end;
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: 80vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.rb-modal-sheet .rb-modal-scroll {
  padding: 60px 0 28px;
}

.rb-modal-sheet .rb-modal-inner h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.rb-modal-sheet .rb-booking-note {
  margin: 18px 0 0;
}

/* ---------------------------------------------------------------------------
 * Pagination
 *
 * Only rendered when there is more than one page, so the default
 * eight-listing catalogue shows no affordance at all.
 * ------------------------------------------------------------------------- */

.rb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 90px;
}

.rb-pager[hidden] {
  display: none;
}

.rb-page-no,
.rb-page-step {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 14.5px;
  transition: background 0.15s ease;
}

.rb-page-no:hover,
.rb-page-step:not([disabled]):hover {
  background: rgba(31, 27, 23, 0.06);
}

.rb-page-no.is-on {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}

.rb-page-step svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.rb-page-step[disabled] {
  opacity: 0.3;
  cursor: default;
}

.rb-page-gap {
  padding: 0 2px;
  color: var(--muted);
}

.rb-page-count {
  margin-left: 14px;
  color: var(--muted);
  font-size: 13.5px;
}

@media (max-width: 760px) {
  .rb-pager {
    flex-wrap: wrap;
    padding-bottom: 60px;
  }

  /* The running total wraps to its own line rather than squeezing the
     numbers, which are the part you actually tap. */
  .rb-page-count {
    flex: 1 0 100%;
    margin: 6px 0 0;
    text-align: center;
  }
}

/* ---------------------------------------------------------------------------
 * Split view: results + map
 *
 * At >=1180px the results scroll against a map that stays put. Below that the
 * map becomes a full-screen overlay opened from a pill — a side map at phone
 * width would be too narrow to read and would halve the list.
 * ------------------------------------------------------------------------- */

:root {
  --header-h: 85px;
}

.rb-results {
  padding: 0 var(--page-pad);
}

.rb-map-panel {
  position: relative;
  background: #eee7df;
}

.rb-map-canvas {
  width: 100%;
  height: 100%;
  z-index: 0;
  /* OpenStreetMap's own sea colour. A globe-spanning result set fits at a
     zoom where the tiles do not fill the panel; without this the surplus
     reads as a broken tile layer rather than as ocean. */
  background: #aad3df;
}

.rb-map-caption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 500;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 252, 249, 0.94);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  white-space: nowrap;
}

.rb-map-close,
.rb-map-toggle {
  display: none;
}

@media (min-width: 1180px) {
  .rb-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44%;
    align-items: start;
  }

  /* Only the split needs a narrow, right-aligned results column. Without a
     map the results own the full width and simply centre.
     
     `width: 100%` is load-bearing. An auto margin on a grid item overrides the
     default `stretch`, so with `margin-left: auto` alone the column sized to
     its CONTENT: a search that matched one stay produced a 528px column pinned
     to the right of an 806px track, with 278px of unexplained empty page beside
     it. Explicit width makes the column fill the track, and max-width is then
     the only thing that can narrow it — which is what the auto margin was
     there to balance in the first place. */
  body.has-map .rb-results {
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
  }

  body:not(.has-map) .rb-results {
    max-width: var(--page-max);
    margin: 0 auto;
  }

  /* Sticks under the header and fills what is left of the viewport, so only
     the list scrolls. */
  .rb-map-panel {
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
  }

  /* The footer sits below both columns; without this the sticky map would
     scroll away from under it and leave a gap. */
  .rb-split + .rb-map-toggle {
    display: none;
  }
}

@media (max-width: 1179px) {
  .rb-map-panel {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
  }

  .rb-map-panel.is-open {
    display: block;
  }

  /* Top-right, not top-left: Leaflet parks its zoom control top-left and the
     two were sitting on top of each other. */
  .rb-map-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 500;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-card);
  }

  .rb-map-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
  }

  .rb-map-toggle {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14.5px;
    font-weight: 500;
    box-shadow: 0 6px 20px -6px rgba(31, 27, 23, 0.6);
  }

  .rb-map-toggle svg {
    width: 17px;
    height: 17px;
  }
}

/* ---------------------------------------------------------------------------
 * Pins, clusters and the pin preview
 * ------------------------------------------------------------------------- */

.rb-price-pin,
.rb-cluster-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(31, 27, 23, 0.28);
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.rb-price-pin {
  padding: 6px 11px;
  font-size: 13px;
}

.rb-price-pin:hover,
.rb-price-pin.is-active {
  background: var(--ink);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
  z-index: 600;
}

.rb-cluster-pin {
  width: 40px;
  height: 40px;
  font-size: 14px;
  background: var(--accent);
  color: #fff;
  border: 2px solid #fff;
}

.rb-cluster-pin:hover {
  background: var(--accent-deep);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Leaflet's own popup chrome, restyled to match the cards. */
.rb-preview-popup .leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
}

.rb-preview-popup .leaflet-popup-content {
  margin: 0;
  width: 232px !important;
}

.rb-preview-popup .leaflet-popup-tip {
  background: var(--surface);
}

/* Leaflet styles `.leaflet-container a` blue; the preview is a card, not a
   link in prose, so it takes the page's ink instead. */
.rb-preview-popup .rb-preview,
.rb-preview-popup .rb-preview b {
  display: block;
  color: var(--ink);
}

.rb-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f1ebe4;
}

.rb-preview-body {
  padding: 10px 12px 12px;
  display: grid;
  gap: 2px;
}

.rb-preview-body > b {
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-preview-body > span {
  color: var(--muted);
  font-size: 13px;
}

.rb-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  font-size: 13.5px;
}

.rb-preview-score {
  color: var(--ink);
}

/* Card highlighted from a pin hover. */
.rb-card.is-active .rb-card-media {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
 * Map appears only with a search on
 *
 * Unfiltered, the catalogue spans 25 cities on four continents and the map is
 * a world view — mostly ocean, European pins stacked on each other. It earns
 * its half of the screen only once a destination or a type has narrowed the
 * results. explore.js puts `has-map` on <body> when that is true.
 * ------------------------------------------------------------------------- */

.rb-map-panel,
.rb-map-toggle {
  display: none;
}

@media (min-width: 1180px) {
  /* Without a search the results take the whole width, and the grid fills it
     with more columns rather than stretching two. */
  .rb-split {
    display: block;
  }

  body.has-map .rb-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44%;
    align-items: start;
  }

  body.has-map .rb-map-panel {
    display: block;
  }
}

@media (max-width: 1179px) {
  body.has-map .rb-map-toggle {
    display: inline-flex;
  }

  body.has-map .rb-map-panel.is-open {
    display: block;
  }
}

/* ---------------------------------------------------------------------------
 * Compact cards in the split column
 *
 * At full width the card is right; sharing the viewport with a map it was too
 * tall, and the first row's price sat on the fold — visible at 900px, cut on
 * any shorter laptop. A shallower image and tighter type lift the whole first
 * row clear. Below 1180 the cards keep their original size.
 * ------------------------------------------------------------------------- */

@media (min-width: 1180px) {
  body.has-map .rb-explore-head {
    padding: 26px 0 2px;
  }

  body.has-map .rb-explore-head h1 {
    font-size: clamp(24px, 2.1vw, 30px);
  }

  body.has-map .rb-explore-head p {
    font-size: 14px;
  }

  body.has-map .rb-grid {
    gap: 26px 20px;
    padding: 22px 0 60px;
  }

  body.has-map .rb-card-media {
    aspect-ratio: 4 / 3;
  }

  body.has-map .rb-card-body {
    padding-top: 10px;
    gap: 0;
  }

  body.has-map .rb-card-title h3 {
    font-size: 14.5px;
  }

  body.has-map .rb-card-meta {
    font-size: 13.5px;
  }

  body.has-map .rb-card-price {
    margin-top: 4px;
    font-size: 14.5px;
  }
}

/* ---------------------------------------------------------------------------
 * Wider search bar
 *
 * WHERE now has to hold names like "Joshua Tree" and "Windermere" from a
 * 25-city catalogue, so it gets more room than WHEN or WHO, which hold a
 * fixed-width date range and a short guest count.
 * ------------------------------------------------------------------------- */

@media (min-width: 1025px) {
  .rb-header-inner {
    /* `auto` sized the middle column to the pill's content, so max-width was
       never reached however large it was set. */
    grid-template-columns: 1fr minmax(0, 720px) 1fr;
    gap: 18px;
  }

  .rb-search {
    width: 100%;
    max-width: 720px;
  }

  .rb-search-seg[data-seg="where"] {
    flex: 1.6;
    min-width: 190px;
  }

  .rb-search-seg[data-seg="when"],
  .rb-search-seg[data-seg="who"] {
    flex: 1;
    min-width: 124px;
  }

  /* The value no longer needs its own clamp — the segment sizes it now, and a
     hard 160px was what cut the longer names off. */
  .rb-seg-value {
    max-width: none;
  }

}

/* ---------------------------------------------------------------------------
 * Search popovers
 *
 * Three panels anchored to the form rather than to their segment, so a wide
 * one (the calendar) can be centred under the pill without dragging its
 * segment's width around. Each is capped to the viewport so none can overflow
 * at 390.
 * ------------------------------------------------------------------------- */

.rb-search {
  position: relative;
}

.rb-seg-input {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.rb-seg-input::placeholder {
  color: var(--muted);
}

.rb-pop {
  position: absolute;
  top: calc(100% + 12px);
  z-index: 60;
  max-width: calc(100vw - 24px);
  max-height: min(72vh, 620px);
  overflow-y: auto;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}

.rb-pop[hidden] {
  display: none;
}

.rb-pop-where {
  left: 0;
  width: 420px;
  padding: 14px 10px;
}

.rb-pop-when {
  left: 50%;
  transform: translateX(-50%);
  width: 740px;
}

.rb-pop-who {
  right: 0;
  width: 400px;
}

.rb-pop-title {
  margin: 0 0 6px;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.rb-pop-empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

/* WHERE ---------------------------------------------------------------------- */

.rb-dest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rb-dest {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  text-align: left;
}

.rb-dest:hover,
.rb-dest.is-active {
  background: #f6f0ea;
}

.rb-dest svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink-2);
}

.rb-dest-name {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.rb-dest-name b {
  font-size: 14.5px;
  font-weight: 600;
}

.rb-dest-name em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
}

.rb-dest-count {
  flex: none;
  font-size: 13px;
  color: var(--muted);
}

/* WHEN ----------------------------------------------------------------------- */

.rb-cal-nav {
  position: absolute;
  top: 22px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.rb-cal-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  pointer-events: auto;
}

.rb-cal-arrow:not([disabled]):hover {
  background: rgba(31, 27, 23, 0.06);
}

.rb-cal-arrow[disabled] {
  opacity: 0.28;
  cursor: default;
}

.rb-cal-arrow svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

/* Selectable days. The stay page's calendar renders the same grid without
   data-date, so it stays inert and picks none of this up. */
.rb-month-grid i[data-date] {
  cursor: pointer;
}

.rb-month-grid i[data-date]:hover {
  background: var(--accent-wash);
  border-radius: 50%;
}

.rb-month-grid i.is-off {
  color: var(--line-strong);
  text-decoration: line-through;
}

.rb-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rb-pop-hint {
  font-size: 13.5px;
  color: var(--muted);
}

.rb-linklike {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* WHO ------------------------------------------------------------------------ */

.rb-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 4px;
}

.rb-guest-row + .rb-guest-row {
  border-top: 1px solid var(--line);
}

.rb-guest-label b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}

.rb-guest-label span {
  font-size: 13px;
  color: var(--muted);
}

.rb-guest-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.rb-guest-steps output {
  min-width: 22px;
  text-align: center;
  font-size: 15px;
}

.rb-step[disabled] {
  opacity: 0.3;
  cursor: default;
}

.rb-step[disabled]:hover {
  border-color: var(--line-strong);
}

/* Narrow screens -------------------------------------------------------------
 * Every panel spans the pill and no more, so none can push the page sideways.
 * The calendar stacks its two months, which the stay page already does at this
 * width, and the panel scrolls.
 * -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .rb-pop-where,
  .rb-pop-when,
  .rb-pop-who {
    left: 0;
    right: 0;
    width: auto;
    transform: none;
    max-width: none;
  }

  .rb-pop-when {
    padding-top: 14px;
  }

  .rb-cal-nav {
    top: 18px;
  }
}

/* ===========================================================================
 * Palette lock
 *
 * The reference implementation shipped five interchangeable colourways and a
 * public picker that wrote the choice to localStorage. Both are gone — deleted
 * from source, not hidden with CSS. This is one merchant's storefront, and its
 * palette is a brand decision rather than a reader preference. The approved
 * direction (terracotta on warm sand) is the only one, and it lives in `:root`
 * at the top of this file so the parser applies it before first paint with no
 * script and no flash.
 *
 * The accent #bf5330 clears 4.5:1 against white, which it must: white text sits
 * on it in the search button, Reserve, the mobile map pill and the map's
 * cluster pins. The reference's original terracotta (#d2603a) measured 3.84 and
 * failed; this is the same hue a shade deeper.
 * ======================================================================== */

/* The header is translucent over the page, so its tint has to follow the
   theme's ground rather than staying the default cream. */
.rb-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

/* ===========================================================================
 * Demonstration notice strip
 *
 * Replaces the reference implementation's "Made with Selldone" attribution,
 * which was removed from source rather than hidden. This strip carries the one
 * thing a visitor must know before reading any price: the catalogue behind it
 * is a sample.
 *
 * Unlike the strip it replaces, this one IS tokenised — it is this storefront's
 * own voice, so it belongs inside the brand rather than beside it.
 * ======================================================================== */

.rb-notice {
  background: var(--accent-wash);
  border-bottom: 1px solid var(--line);
}

.rb-notice-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 6px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 17px;
  /* --accent-deep (#99401f) on --accent-wash (#fdf1ea) measures 7.1:1. */
  color: var(--accent-deep);
  text-align: center;
}

.rb-notice-inner strong {
  font-weight: 700;
}

.rb-notice-mark {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .rb-notice-inner {
    /* Wraps to two lines on a phone rather than shrinking below 12px. */
    text-align: left;
    align-items: flex-start;
  }

  .rb-notice-mark {
    margin-top: 1px;
  }
}

/* ===========================================================================
 * Footer
 *
 * Every link here resolves to a real view: destinations and stay types are
 * searches this page already understands, and the two external links go to
 * pages that exist. Nothing that has no page yet is rendered as a link.
 * ======================================================================== */

.rb-footer-cols {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 34px var(--page-pad) 26px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 30px 56px;
}

.rb-footer-col h2 {
  /* Fraunces here rather than the body face: these are editorial headings on
     an editorial site, not the field labels of an operator tool. */
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 12px;
}

.rb-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.rb-footer-col a {
  font-size: 14px;
  color: var(--ink-2);
}

.rb-footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rb-footer-count {
  color: var(--muted);
}

.rb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.rb-footer-about p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 42ch;
}

@media (max-width: 900px) {
  .rb-footer-cols {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 34px;
  }
}

/* ---------------------------------------------------------------------------
 * Footer bottom bar
 *
 * A hairline, then the small print on the left and the two standing facts on
 * the right. Language and currency are TEXT, not controls: the shop serves one
 * language and the whole catalogue is already priced in the conversion target,
 * so dressing either as a button would offer a choice that does not exist.
 * Legal and social links are absent because there are no pages behind them.
 * ------------------------------------------------------------------------- */

.rb-footer-bottom {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px var(--page-pad) 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  flex-wrap: wrap;
}

.rb-footer-legal,
.rb-footer-prefs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.rb-footer-dot {
  color: var(--line-strong);
}

.rb-footer-pref {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rb-footer-pref svg {
  width: 15px;
  height: 15px;
  flex: none;
}

@media (max-width: 760px) {
  .rb-footer-bottom {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding-bottom: 26px;
  }

  /* Stacked, the separators read as stray punctuation rather than rhythm. */
  .rb-footer-legal {
    display: grid;
    gap: 4px;
  }

  .rb-footer-dot {
    display: none;
  }
}

/* ===========================================================================
 * Photography placeholders
 *
 * A stay with no photographs yet. Not a spinner and not a broken image: an
 * intentional, quiet panel occupying exactly the space the photography will,
 * so a later upload changes the picture and not the layout.
 *
 * The reference implementation had no state for this — it rendered an
 * `<img src="">`, which paints the browser's broken-image glyph and logs a
 * failed request. This catalogue is published ahead of its photography, so the
 * state is real and had to be designed rather than avoided.
 * ======================================================================== */

.rb-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* A hairline diagonal on the surface tint. Enough texture to read as
     deliberate, quiet enough not to compete with a real photo beside it. */
  background: repeating-linear-gradient(
      135deg,
      transparent 0 10px,
      color-mix(in srgb, var(--line-strong) 42%, transparent) 10px 11px
    ),
    var(--accent-wash);
  color: var(--muted);
  text-align: center;
}

.rb-photo-placeholder svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}

.rb-photo-placeholder span {
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

/* The card carousel lays its track out as a row of full-width slides; a single
   placeholder child needs to fill it rather than be one slide of one. */
.rb-card-media.is-placeholder .rb-track {
  width: 100%;
}

/* The mosaic is a photo grid. With one placeholder it becomes one panel at the
   height the grid would have had, so the page below it does not move up. */
.rb-mosaic.is-placeholder {
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

@media (max-width: 760px) {
  .rb-mosaic.is-placeholder {
    aspect-ratio: 4 / 3;
  }

  .rb-photo-placeholder svg {
    width: 22px;
    height: 22px;
  }
}

/* ===========================================================================
 * Touch target floor
 *
 * Two in-content controls sit below a comfortable tap size on a phone: the
 * "Show more" under the description (23px) and the amenities "Show all" when
 * it renders as a text button. Both are styled as links rather than buttons on
 * purpose, so the fix is padding on coarse pointers only — the desktop
 * typography is unchanged.
 *
 * Scoped to `pointer: coarse` rather than a width breakpoint: it is the input
 * device that makes a 23px target hard to hit, not the viewport.
 * ======================================================================== */

@media (pointer: coarse) {
  .rb-showmore {
    min-height: 44px;
    padding-block: 10px;
  }
}

/* ===========================================================================
 * Reserved height for the JS-rendered chrome
 *
 * Both documents ship an EMPTY <header> and an empty category track; ui.js and
 * explore.js fill them after the module loads. Without a reserved height the
 * first paint puts the H1 at the top of the window and then drops it ~205px
 * when the chrome arrives — a visible jump on every uncached load, and exactly
 * the "stale header flash" the brief rules out.
 *
 * The values are the measured rendered heights at each breakpoint, so the
 * reserved box and the real box are the same box. They are min-heights rather
 * than fixed heights: if the content ever grows (a longer wordmark, a second
 * row of chips) it still grows, it just never starts smaller.
 * ======================================================================== */

.rb-header {
  min-height: 102px;
}

.rb-categories {
  min-height: 103px;
}

@media (max-width: 1024px) {
  .rb-header {
    min-height: 98px;
  }
}

@media (max-width: 760px) {
  /* The header stacks the wordmark above a full-width search pill here. */
  .rb-header {
    min-height: 152px;
  }

  .rb-categories {
    min-height: 95px;
  }
}
