/* =====================================================================
   Timberroot rental page, layout v2
   Loaded only on single rental pages (see inc/rental-v2.php).
   Scoped under .trv2 so the rest of the site is untouched.

   Booking widget: the theme's original styles (index.css) still apply.
   This file only changes the card background and adds the logo.
   ===================================================================== */

/* Space between the nav bar and the page. Increase if the breadcrumbs
   ever tuck under the header; decrease to tighten the gap. */
body.single-rental {
  --trv2-top-offset: 50px;
}
@media (max-width: 1366px) { body.single-rental { --trv2-top-offset: 45px; } }
@media (max-width: 767px)  { body.single-rental { --trv2-top-offset: 25px; } }

/* Cream behind everything on rental pages, including the gap above the footer */
body.single-rental { background-color: #fbf8f1; }

body.single-rental #content {
  margin-top: 0;
  padding-top: var(--trv2-top-offset);
  background: #fbf8f1;
}

.trv2 {
  --trv2-green: #4f6a41;
  --trv2-brown: #473129;
  --trv2-brown-dark: #312824;
  --trv2-muted: #5a5347;
  --trv2-cream: #fbf8f1;
  --trv2-panel: #fffefb;
  --trv2-line: #ece4d2;
  --trv2-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --trv2-body: 'Libre Franklin', 'Helvetica', Arial, sans-serif;
  --trv2-gutter: clamp(20px, 5vw, 64px);
}

.single-rental #content .trv2 {
  color: var(--trv2-brown-dark);
  font-family: var(--trv2-body);
  font-size: 15px;
  line-height: 1.6;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--trv2-gutter) 64px;
  box-sizing: border-box;
}
.single-rental #content .trv2 *,
.single-rental #content .trv2 *::before,
.single-rental #content .trv2 *::after { box-sizing: border-box; }

/* Type: all headers #473129 */
.single-rental #content .trv2 h1,
.single-rental #content .trv2 h2 {
  font-family: var(--trv2-display);
  color: var(--trv2-brown);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0;
}
.single-rental #content .trv2 h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.single-rental #content .trv2 h2 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; }
.single-rental #content .trv2 h3 {
  font-family: var(--trv2-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--trv2-brown);
  margin: 0;
}
.single-rental #content .trv2 p { margin: 0 0 12px; }
.single-rental #content .trv2 p:last-child { margin-bottom: 0; }
.single-rental #content .trv2 a { color: var(--trv2-green); }
.single-rental #content .trv2 a:hover { color: var(--trv2-brown); }
.single-rental #content .trv2 .trv2-muted { color: var(--trv2-muted); }
.single-rental #content .trv2 :focus-visible { outline: 2px solid var(--trv2-green); outline-offset: 2px; }

/* Shared pieces */
.single-rental #content .trv2 .trv2-card {
  background: var(--trv2-panel);
  border: 1px solid var(--trv2-line);
  border-radius: 10px;
}
.single-rental #content .trv2 .trv2-section { display: flex; flex-direction: column; gap: 12px; }
.single-rental #content .trv2 .trv2-badge { font-size: 13px; font-weight: 600; color: var(--trv2-green); }
.single-rental #content .trv2 .trv2-btn {
  display: inline-block;
  background: var(--trv2-brown);
  color: #fff;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.single-rental #content .trv2 .trv2-btn:hover { background: var(--trv2-brown-dark); color: #fff; }
.single-rental #content .trv2 .trv2-link-btn {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--trv2-brown);
  border-radius: 8px;
  color: var(--trv2-brown);
  font: 600 14px/1.4 var(--trv2-body);
  padding: 10px 18px;
  margin-top: 6px;
  cursor: pointer;
}
.single-rental #content .trv2 .trv2-link-btn:hover { background: var(--trv2-brown); color: #fff; }

/* Text-style button (matches "View all policies") */
.single-rental #content .trv2 .trv2-text-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  margin: 0;
  color: var(--trv2-green);
  font: 600 13px/1.4 var(--trv2-body);
  text-transform: none;   /* the site's global button style makes buttons uppercase */
  letter-spacing: normal;
  white-space: nowrap;
  cursor: pointer;
}
.single-rental #content .trv2 .trv2-text-btn::after { content: ' \203A'; }
.single-rental #content .trv2 .trv2-text-btn[aria-expanded="true"]::after { content: ''; }
.single-rental #content .trv2 .trv2-text-btn:hover { color: var(--trv2-brown); background: none; }

/* Gallery */
.single-rental #content .trv2 .trv2-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  aspect-ratio: 2.1 / 1;
}
.single-rental #content .trv2 .trv2-gallery--single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.single-rental #content .trv2 .trv2-gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--trv2-line);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.single-rental #content .trv2 .trv2-gallery__item img { transition: filter 0.2s ease; }
.single-rental #content .trv2 .trv2-gallery__item:hover img { filter: brightness(0.92); }
.single-rental #content .trv2 .trv2-gallery__item--0 { grid-row: 1 / span 2; }
.single-rental #content .trv2 .trv2-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-rental #content .trv2 .trv2-gallery__all {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: var(--trv2-panel);
  color: var(--trv2-brown-dark);
  border: 1px solid var(--trv2-line);
  border-radius: 8px;
  padding: 8px 14px;
  font: 600 13px/1.3 var(--trv2-body);
  cursor: pointer;
}
.single-rental #content .trv2 .trv2-gallery__all:hover { background: #fff; }

/* Two-column layout (overrides the old wrapper sizing only) */
.single-rental #content .trv2 .trv2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
  padding-bottom: 0;
}
.single-rental #content .trv2 .trv2-main {
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}
.single-rental #content .trv2 .rental-sidebar { width: auto; max-width: none; align-self: stretch; }

/* Title */
.single-rental #content .trv2 .trv2-title { display: flex; flex-direction: column; gap: 10px; }
.single-rental #content .trv2 .trv2-tagline { font-size: 16px; color: var(--trv2-muted); margin: 0; max-width: 60ch; }

/* Quick facts: icon, small label, big value, detail line */
.single-rental #content .trv2 .trv2-facts { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.single-rental #content .trv2 .trv2-facts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
  margin: 0;
}
.single-rental #content .trv2 .trv2-fact {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  align-content: start;
  margin: 0;
}
.single-rental #content .trv2 .trv2-fact .trv2-icon { grid-row: 1 / span 3; margin-top: 1px; }
.single-rental #content .trv2 .trv2-fact__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--trv2-muted);
  margin: 0 0 2px;
}
.single-rental #content .trv2 .trv2-fact__value {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--trv2-brown-dark);
  margin: 0;
}
.single-rental #content .trv2 .trv2-fact__sub {
  font-size: 13px;
  line-height: 1.4;
  color: var(--trv2-muted);
  margin: 3px 0 0;
}

.single-rental #content .trv2 .trv2-prose { max-width: 68ch; }

/* The space: first 4 lines, then "Show more" */
.single-rental #content .trv2 .trv2-clamp {
  position: relative;
  max-height: calc(4 * 1.6em);
  overflow: hidden;
}
.single-rental #content .trv2 .trv2-clamp.is-open { max-height: none; }
.single-rental #content .trv2 .trv2-clamp.is-clamped:not(.is-open)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.6em;
  background: linear-gradient(to bottom, rgba(251, 248, 241, 0), #fbf8f1);
  pointer-events: none;
}

/* Amenities with icons */
.single-rental #content .trv2 .trv2-amenities__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
  font-size: 14px;
}
.single-rental #content .trv2 .trv2-amenities__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.single-rental #content .trv2 .trv2-amenities__list li::before { display: none; }
.single-rental #content .trv2 .trv2-icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--trv2-green); }

/* Amenities pop-up */
.trv2 .trv2-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--trv2-panel);
  color: var(--trv2-brown-dark);
  box-shadow: 0 24px 60px rgba(49, 40, 36, 0.25);
}
.trv2 .trv2-modal::backdrop { background: rgba(49, 40, 36, 0.55); }
.trv2 .trv2-modal__inner { padding: 24px 28px 28px; }
.trv2 .trv2-modal__head {
  position: sticky;
  top: -24px;
  margin: -24px -28px 20px;
  padding: 20px 28px 16px;
  background: var(--trv2-panel);
  border-bottom: 1px solid var(--trv2-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1;
}
.single-rental #content .trv2 .trv2-modal__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--trv2-line);
  border-radius: 50%;
  background: var(--trv2-panel);
  color: var(--trv2-brown);
  font-size: 22px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.single-rental #content .trv2 .trv2-modal__close:hover { background: var(--trv2-cream); }
.single-rental #content .trv2 .trv2-amenities__list--all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; font-size: 15px; }
.single-rental #content .trv2 .trv2-amen-group { padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--trv2-line); }
.single-rental #content .trv2 .trv2-amen-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.single-rental #content .trv2 .trv2-amen-group__title {
  font-family: var(--trv2-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--trv2-brown);
  margin: 0 0 14px;
}

/* Getting around table */
.single-rental #content .trv2 .trv2-table { overflow: hidden; }
.single-rental #content .trv2 .trv2-table__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--trv2-line);
}
.single-rental #content .trv2 .trv2-table__row:last-child { border-bottom: 0; }

/* Accordion: FAQ, The area, Things to note */
.single-rental #content .trv2 .trv2-accordion { display: flex; flex-direction: column; gap: 10px; }
.single-rental #content .trv2 .trv2-acc {
  background: var(--trv2-panel);
  border: 1px solid var(--trv2-line);
  border-radius: 10px;
}
.single-rental #content .trv2 .trv2-acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
}
.single-rental #content .trv2 .trv2-acc summary::-webkit-details-marker { display: none; }
.single-rental #content .trv2 .trv2-acc__chev {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--trv2-brown);
  border-bottom: 2px solid var(--trv2-brown);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.single-rental #content .trv2 .trv2-acc[open] .trv2-acc__chev { transform: rotate(-135deg) translate(-2px, -2px); }
.single-rental #content .trv2 .trv2-acc__body {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--trv2-muted);
}

/* Things to note: sideways-scrolling cards (same build on every screen size) */
.single-rental #content .trv2 .trv2-scroller__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.single-rental #content .trv2 .trv2-scroller__nav { display: flex; gap: 8px; }
.single-rental #content .trv2 .trv2-scroller__nav[hidden] { display: none; }
.single-rental #content .trv2 .trv2-scroller__btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--trv2-brown);
  background: transparent;
  color: var(--trv2-brown);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.single-rental #content .trv2 .trv2-scroller__btn:hover:not(:disabled) { background: var(--trv2-brown); color: #fff; }
.single-rental #content .trv2 .trv2-scroller__btn:disabled { opacity: 0.35; cursor: default; }
.single-rental #content .trv2 .trv2-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding: 2px 2px 14px;
  margin: 0 -2px;
  scrollbar-width: thin;
  scrollbar-color: var(--trv2-line) transparent;
  -webkit-overflow-scrolling: touch;
}
.single-rental #content .trv2 .trv2-note-card {
  flex: 0 0 min(300px, 82%);
  scroll-snap-align: start;
  background: var(--trv2-panel);
  border: 1px solid var(--trv2-line);
  border-radius: 10px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.single-rental #content .trv2 .trv2-note-card .trv2-icon { width: 24px; height: 24px; margin-bottom: 4px; }
.single-rental #content .trv2 .trv2-note-card h3 { font-size: 16px; }
.single-rental #content .trv2 .trv2-note-card__body { font-size: 14px; line-height: 1.6; color: var(--trv2-muted); }

/* Policies, collapsed with <details> */
.single-rental #content .trv2 .trv2-policies__box summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  font-size: 14px;
  cursor: pointer;
}
.single-rental #content .trv2 .trv2-policies__box summary::-webkit-details-marker { display: none; }
.single-rental #content .trv2 .trv2-policies__toggle { color: var(--trv2-green); font-weight: 600; font-size: 13px; white-space: nowrap; }
.single-rental #content .trv2 .trv2-policies__toggle::after { content: ' \203A'; }
.single-rental #content .trv2 .trv2-policies__box[open] .trv2-policies__toggle { font-size: 0; }
.single-rental #content .trv2 .trv2-policies__box[open] .trv2-policies__toggle::after { content: 'Hide policies'; font-size: 13px; }
.single-rental #content .trv2 .trv2-policies__body {
  border-top: 1px solid var(--trv2-line);
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 14px;
}
.single-rental #content .trv2 .trv2-policy h3 { margin-bottom: 6px; }
.single-rental #content .trv2 .trv2-policy .trv2-prose { color: var(--trv2-muted); }

/* ---------- Booking widget: card + logo ---------- */
.single-rental #content .trv2 .rental-sidebar .sidebar-booking-form .sb-card {
  background: var(--trv2-panel);   /* card background color */
  border-color: var(--trv2-line);
}
.single-rental #content .trv2 .trv2-side__logo {
  text-align: center;
  line-height: 0;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--trv2-line);
}
.single-rental #content .trv2 .trv2-side__logo img {
  display: inline-block;
  width: auto !important;
  max-width: 100% !important;
  height: 130px !important;        /* logo size: change this number */
  object-fit: contain;
}

/* Guests dropdown: brand brown, custom caret with breathing room (look only) */
.single-rental #content .trv2 .rental-sidebar .sidebar-booking-form .booking-sidebar .sb-guests select {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100%;
  background-color: var(--trv2-brown) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf8f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 22px center !important;
  background-size: 16px 16px !important;
  color: #fff !important;
  border: 1px solid var(--trv2-brown) !important;
  border-radius: 8px;
  padding: 14px 56px 14px 46px !important;
  font-family: var(--trv2-body);
  font-size: 15px;
  font-weight: 600;
  opacity: 1 !important;
  cursor: pointer;
}
.single-rental #content .trv2 .rental-sidebar .sidebar-booking-form .booking-sidebar .sb-guests select:hover {
  background-color: var(--trv2-brown-dark) !important;
  border-color: var(--trv2-brown-dark) !important;
}
.single-rental #content .trv2 .rental-sidebar .sidebar-booking-form .booking-sidebar .sb-guests select:focus-visible {
  outline: 2px solid var(--trv2-green);
  outline-offset: 2px;
}
.single-rental #content .trv2 .rental-sidebar .sidebar-booking-form .booking-sidebar .sb-guests select option {
  background: #fff;
  color: var(--trv2-brown-dark);
}
/* The people icon on the left of the dropdown: white so it shows on brown */
.single-rental #content .trv2 .rental-sidebar .sidebar-booking-form .booking-sidebar .sb-guests:before {
  left: 14px;
  z-index: 1;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

/* ---------- Photo pop-up (masonry) ---------- */
html.trv2-no-scroll { overflow: hidden; }

.trv2 .trv2-photos {
  width: min(1200px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--trv2-cream);
  color: var(--trv2-brown-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.trv2 .trv2-photos::backdrop { background: rgba(49, 40, 36, 0.7); }
.trv2 .trv2-photos__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--trv2-cream);
  border-bottom: 1px solid var(--trv2-line);
}
.trv2 .trv2-photos__title {
  flex: 1;
  font-family: var(--trv2-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--trv2-brown);
}
.trv2 .trv2-photos__title span {
  font-family: var(--trv2-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--trv2-muted);
  margin-left: 8px;
}
.single-rental #content .trv2 .trv2-photos__close,
.single-rental #content .trv2 .trv2-viewer__close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  border: 1px solid var(--trv2-line);
  background: var(--trv2-panel);
  color: var(--trv2-brown);
  font-size: 24px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.single-rental #content .trv2 .trv2-photos__book { padding: 10px 20px; font-size: 14px; }

/* Masonry: photos keep their natural shape and stack in columns.
   The script deals photos into columns left to right; CSS columns are the fallback. */
.trv2 .trv2-photos__grid {
  columns: 3 280px;
  column-gap: 12px;
  padding: 20px;
}
.trv2 .trv2-photos__grid.is-js { columns: auto; display: flex; gap: 12px; align-items: flex-start; }
.trv2 .trv2-photos__col { flex: 1 1 0; min-width: 0; }
.single-rental #content .trv2 .trv2-photos__item {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--trv2-line);
  break-inside: avoid;
  cursor: zoom-in;
}
.trv2 .trv2-photos__item img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
  transition: filter 0.2s ease;
}
.trv2 .trv2-photos__item:hover img { filter: brightness(0.92); }

/* ---------- Full-screen single photo ---------- */
.trv2 .trv2-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #1c1714;
  overflow: hidden;
}
.trv2 .trv2-viewer::backdrop { background: #1c1714; }
.trv2 .trv2-viewer__figure {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 56px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.trv2 .trv2-viewer__img {
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 4px;
}
.trv2 .trv2-viewer__caption { color: var(--trv2-cream); font-size: 14px; text-align: center; }
.trv2 .trv2-viewer__caption:empty { display: none; }
.single-rental #content .trv2 .trv2-viewer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: rgba(251, 248, 241, 0.12);
  border-color: rgba(251, 248, 241, 0.3);
  color: var(--trv2-cream);
}

/* ---------- Mobile sticky bar ---------- */
.single-rental #content .trv2 .trv2-mobile-bar { display: none; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 980px) {
  .single-rental #content .trv2 { font-size: 14px; padding-bottom: 110px; }

  .single-rental #content .trv2 .trv2-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: auto;
    gap: 8px;
    margin-top: 14px;
  }
  .single-rental #content .trv2 .trv2-gallery__item--0 { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .single-rental #content .trv2 .trv2-gallery__item--1,
  .single-rental #content .trv2 .trv2-gallery__item--2 { aspect-ratio: 1 / 1; }
  .single-rental #content .trv2 .trv2-gallery__all { bottom: auto; top: 10px; right: 10px; }

  /* Single column; the booking widget slots in right after Quick facts */
  .single-rental #content .trv2 .trv2-layout { display: flex; flex-direction: column; align-items: stretch; gap: 24px; margin-top: 20px; }
  .single-rental #content .trv2 .trv2-main { display: contents; }
  .single-rental #content .trv2 .trv2-main > * { order: 3; }
  .single-rental #content .trv2 .trv2-title { order: 1; }
  .single-rental #content .trv2 .trv2-facts { order: 2; }
  .single-rental #content .trv2 .rental-sidebar.trv2-side { display: block; order: 2; width: 100%; scroll-margin-top: 90px; }

  .single-rental #content .trv2 .trv2-facts { padding: 18px 18px 20px; }
  .single-rental #content .trv2 .trv2-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .single-rental #content .trv2 .trv2-amenities__list { grid-template-columns: 1fr 1fr; gap: 12px 16px; font-size: 13px; }
  .single-rental #content .trv2 .trv2-amenities__list--all { grid-template-columns: 1fr; font-size: 14px; }
  .trv2 .trv2-modal { max-height: 85vh; }
  /* Phones: pin the pop-up to the visible screen. 100dvh is the height that
     excludes the browser's own toolbars, so the top bar can't be pushed out of view. */
  .trv2 .trv2-photos {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .trv2 .trv2-photos__bar { padding-top: max(14px, env(safe-area-inset-top, 0px)); }
  .trv2 .trv2-photos__grid { columns: 2 150px; column-gap: 8px; padding: 12px; }
  .trv2 .trv2-photos__grid.is-js { gap: 8px; }
  .single-rental #content .trv2 .trv2-photos__item { margin-bottom: 8px; border-radius: 8px; }
  .trv2 .trv2-photos__title { font-size: 17px; }
  .trv2 .trv2-photos__title span { display: block; margin-left: 0; }
  .trv2 .trv2-viewer__figure { padding: 56px 8px 16px; }
  .trv2 .trv2-modal__inner { padding: 20px; }
  .trv2 .trv2-modal__head { margin: -20px -20px 16px; padding: 16px 20px 12px; top: -20px; }

  .single-rental #content .trv2 .trv2-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    /* right padding leaves room for the chat bubble so it can't cover Book Now */
    padding: 12px 96px calc(12px + env(safe-area-inset-bottom, 0px)) 20px;
    background: var(--trv2-panel);
    border-top: 1px solid var(--trv2-line);
    box-shadow: 0 -6px 16px rgba(49, 40, 36, 0.06);
  }
  .single-rental #content .trv2 .trv2-mobile-bar__price { font-size: 16px; font-weight: 600; }
  .single-rental #content .trv2 .trv2-mobile-bar__price span { font-size: 13px; font-weight: 400; color: var(--trv2-muted); }
  .single-rental #content .trv2 .trv2-mobile-bar__dates { font-size: 12px; color: var(--trv2-muted); text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  .single-rental #content .trv2 * { transition: none !important; }
}
/* The space: smaller sideways-scrolling cards (own classes, so the Things to note script never touches it) */
.single-rental #content .trv2 .trv2-space__intro { margin-bottom: 18px; }
.single-rental #content .trv2 .trv2-space__group + .trv2-space__group { margin-top: 22px; }
.single-rental #content .trv2 .trv2-space__label {
  font-size: 18px;
  line-height: 1.3;
  color: var(--trv2-brown-dark);
  margin: 0;
}
.single-rental #content .trv2 .trv2-space__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.single-rental #content .trv2 .trv2-space__head h2 { margin-bottom: 0; }
.single-rental #content .trv2 .trv2-space__nav { display: flex; gap: 8px; }
.single-rental #content .trv2 .trv2-space__nav[hidden] { display: none; }
.single-rental #content .trv2 .trv2-space__btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--trv2-brown);
  background: transparent;
  color: var(--trv2-brown);
  font-size: 20px;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
}
.single-rental #content .trv2 .trv2-space__btn:hover:not(:disabled) { background: var(--trv2-brown); color: #fff; }
.single-rental #content .trv2 .trv2-space__btn:disabled { opacity: 0.35; cursor: default; }
.single-rental #content .trv2 .trv2-space__btn:focus-visible { outline: 2px solid #4f6a41; outline-offset: 2px; }
.single-rental #content .trv2 .trv2-space__row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 14px;
  margin: 0 -2px;
  scrollbar-width: thin;
  scrollbar-color: var(--trv2-line) transparent;
  -webkit-overflow-scrolling: touch;
}
.single-rental #content .trv2 .trv2-space-card {
  flex: 0 0 min(210px, 62%);
  scroll-snap-align: start;
  background: var(--trv2-panel);
  border: 1px solid var(--trv2-line);
  border-radius: 10px;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.single-rental #content .trv2 .trv2-space-card__icon {
  width: 22px;
  height: 22px;
  color: #4f6a41;
  margin-bottom: 6px;
}
.single-rental #content .trv2 .trv2-space-card__title {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--trv2-brown-dark);
  margin: 0;
}
.single-rental #content .trv2 .trv2-space-card__detail {
  font-size: 13px;
  line-height: 1.5;
  color: var(--trv2-muted);
  margin: 0;
}
/* Local Events dropdown: event name with its dates underneath */
.single-rental #content .trv2 .trv2-events {
  list-style: none;
  margin: 0;
  padding: 0;
}
.single-rental #content .trv2 .trv2-events li {
  padding: 10px 0;
  border-top: 1px solid var(--trv2-line);
}
.single-rental #content .trv2 .trv2-events li:first-child { border-top: 0; padding-top: 0; }
.single-rental #content .trv2 .trv2-events__name {
  display: block;
  font-weight: 600;
  color: var(--trv2-brown-dark);
}
.single-rental #content .trv2 .trv2-events__dates {
  display: block;
  font-size: 14px;
  color: var(--trv2-muted);
}

/* Highlights: "Property amenities" panel under Amenities. Static row, stacks on phones */
.single-rental #content .trv2 .trv2-highlights {
  background: #eef1e8;
  border-radius: 12px;
  padding: 26px 28px;
}
.single-rental #content .trv2 .trv2-highlights .trv2-highlights__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0px 0px 10px 0px !important;
}
.single-rental #content .trv2 .trv2-highlights .trv2-highlights__head h2 {
  font-size: 24px;
  line-height: 1.2 !important;
  margin: 0px 0px 10px 0px !important;
  padding: 0 !important;
}
.single-rental #content .trv2 .trv2-highlights .trv2-highlights__head h2::after { display: none !important; }
.single-rental #content .trv2 .trv2-highlights .trv2-highlights__head .trv2-highlights__sub {
  font-size: 14px !important;
  line-height: 1.4;
  color: var(--trv2-muted);
  0px 0px 15px 0px !important;
  padding: 0 !important;
}
.single-rental #content .trv2 .trv2-highlights__list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.single-rental #content .trv2 .trv2-highlight {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.single-rental #content .trv2 .trv2-highlight svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: #4f6a41;
}
.single-rental #content .trv2 .trv2-highlight__title {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  color: var(--trv2-brown-dark);
  margin: 0 0 4px;
}
.single-rental #content .trv2 .trv2-highlight__details {
  font-size: 14px;
  line-height: 1.6;
  color: var(--trv2-muted);
  margin: 0;
}
@media (max-width: 600px) {
  .single-rental #content .trv2 .trv2-highlights { padding: 22px 20px; }
}

/* Area attractions table inside its dropdown */
.single-rental #content .trv2 .trv2-table--in-acc .trv2-table__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--trv2-line);
}
.single-rental #content .trv2 .trv2-table--in-acc .trv2-table__row:first-child { border-top: 0; padding-top: 0; }