.room-tours {
  padding-block: clamp(42px, 6vw, 90px);
  background: var(--logo-cream);
  color: var(--ink);
}
.room-tours__header, .room-tours__admissions {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.room-tours__header h2 { margin: 0; }
.room-tours__header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.room-tours__header a, .room-tour__rooms a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-underline-offset: .25em;
}
.room-tour {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(0, 2.65fr);
  gap: clamp(24px, 5vw, 72px);
  margin-top: 28px;
  padding-block: clamp(24px, 3vw, 42px) 12px;
  border-top: 1px solid #c7bbac;
  scroll-margin-top: var(--masthead-height);
}
.room-tour__index h3 {
  margin: 0 0 16px;
  font: 400 clamp(27px, 3vw, 40px)/1.1 Georgia, serif;
  letter-spacing: -.025em;
}
.room-tour__rooms { display: grid; }
.room-tour__rooms a { padding-inline: 12px; width: fit-content; text-decoration: none; }
.room-tour__rooms a[aria-current], .room-tour__rooms a:hover { background: #ece0ce; }
.room-tour__rooms a[aria-current] { font-weight: 700; box-shadow: inset 2px 0 currentColor; }
.room-tour__picker { display: none; }
.room-tour [hidden] { display: none; }
.room-tour__gallery { align-self: start; min-width: 0; }
.room-tour .gallery__track { aspect-ratio: auto; align-items: flex-start; }
.room-tour .gallery__slide { min-width: 0; scroll-margin-top: var(--masthead-height); }
.room-tour figure { margin: 0; }
.room-tour__photo { aspect-ratio: 3 / 2; overflow: hidden; background: #e6dfd4; }
.room-tour__photo img { object-fit: contain; background: transparent; }
.room-tour figcaption { padding-top: 12px; font: 400 clamp(17px, 1.7vw, 22px)/1.35 Georgia, serif; }
.room-tour .gallery__controls { justify-content: flex-end; gap: 16px; }
.room-tour .gallery__button { width: 44px; height: 44px; }
.room-tour .gallery__count { min-width: 5ch; text-align: center; }
.room-tours__admissions { align-items: center; border-top: 1px solid #c7bbac; padding-top: 24px; margin-top: 28px; }
.room-tours__admissions p { margin: 0; }
.room-tours__admissions strong { font: 400 clamp(24px, 3vw, 36px)/1.2 Georgia, serif; margin-left: .35em; }
.room-tours__admissions strong span { margin-left: .2em; }
.room-tours__admissions a.hero__button { background: var(--ink); color: var(--logo-cream); border-color: var(--ink); }
.room-tours__admissions .hero__button::before, .sl-callbar--tour a.hero__button::before { content: none; }
.room-tours__admissions .hero__button:is(:hover, :focus-visible),
.sl-callbar--tour a.hero__button:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .2em; }

/* Only grade the archived originals. Editor-uploaded replacements retain their own color and framing. */
#lansdale-main-st-photo-2 .room-tour__original img { filter: brightness(1.075) saturate(.91); }
#lansdale-main-st-photo-3 .room-tour__original img,
#lansdale-main-st-photo-4 .room-tour__original img { filter: brightness(1.035) saturate(.95); }
#lansdale-mens .room-tour__original img { filter: saturate(.94) contrast(1.035); }
/* The original portrait exports include blurred side fills. Reveal their photographic centers. */
#lansdale-main-st-photo-5 .room-tour__original img,
#lansdale-main-st-photo-6 .room-tour__original img { clip-path: inset(0 25%); }
#lansdale-mens-photo-8 .room-tour__original img { clip-path: inset(0 13.5%); }

/* Reduce the orange cast in the older Hatfield interiors and lift the shaded porch. */
#hatfield-mens-photo-5 .room-tour__original img,
#hatfield-mens-photo-6 .room-tour__original img,
#hatfield-mens-photo-7 .room-tour__original img,
#hatfield-mens-photo-9 .room-tour__original img { filter: saturate(.86); }
#hatfield-mens-photo-16 .room-tour__original img,
#hatfield-mens-photo-17 .room-tour__original img { filter: brightness(1.08) contrast(.98); }

/* Restore definition in the pale Lansdale interiors and open up the dark hall. */
#lansdale-womens-photo-1 .room-tour__original img { filter: brightness(1.045) saturate(.93); }
#lansdale-womens-photo-2 .room-tour__original img,
#lansdale-womens-photo-3 .room-tour__original img,
#lansdale-womens-photo-4 .room-tour__original img,
#lansdale-womens-photo-5 .room-tour__original img { filter: contrast(1.055); }

@media (max-width: 740px) {
  .room-tour { display: block; }
  .room-tour__index h3 { margin-bottom: 12px; }
  .room-tour__rooms { display: flex; flex-wrap: wrap; gap: 0 4px; }
  .room-tour__index:has(.room-tour__picker:not([hidden])) .room-tour__rooms { display: none; }
  .room-tour__picker:not([hidden]) {
    display: flex; align-items: center; gap: 10px 16px; justify-content: space-between;
    font-size: 14px; flex-wrap: wrap; margin-bottom: 12px;
  }
  .room-tour__picker select {
    min-height: 44px; min-width: 135px; padding: 6px 10px;
    font: inherit; color: var(--ink); background: var(--logo-cream); border: 1px solid #796d60;
  }
  .room-tour .gallery__controls { justify-content: flex-start; }
  .room-tour figcaption { padding-top: 8px; }
}
@media (max-width: 700px) {
  /* The phone bar carries the same rent and call link while browsing. */
  body:has(.sl-callbar--tour) .room-tours__admissions { display: none; }
  .fullscreen-view .room-tour-page .hero--house .hero__content { display: flex; flex-direction: column; padding-block: 18px 14px; }
  .room-tour-page .hero .house-hero-price { margin: 0; }
  .room-tour-page .hero .hero__actions { margin: 2px 0 0; }
  .room-tour-page .hero .house-intro { order: 1; margin: 14px 0 0; }
  .fullscreen-view .room-tour-page .hero .hero__image { height: clamp(165px, 25svh, 220px); }
  .room-tour-page .hero .hero__actions a { min-width: 0; min-height: 44px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .room-tour .gallery__track { scroll-behavior: auto; }
}


.sl-callbar--tour { align-items: center; }
.sl-callbar--tour p { margin: 0; padding-left: 8px; font-size: 13px; color: var(--logo-cream); }
.sl-callbar--tour p strong { display: block; margin-top: 2px; font: 700 18px/1.15 Arial, sans-serif; }
.sl-callbar--tour p strong span { margin-left: .15em; font-size: 14px; }
.sl-callbar--tour a.hero__button { width: auto; min-width: 0; margin: 0; text-align: center; color: var(--ink); background: var(--logo-cream); }
