/* R43 rental presentation. Functional filters, coordinates, Map3DElement,
   canonicals and product data remain unchanged. */

.ttrc-main {
  overflow-x: clip;
}

.ttrc-hero {
  min-height: clamp(610px, 78vh, 840px);
  display: flex;
  align-items: center;
  padding-block: clamp(70px, 9vw, 118px);
  background: rgba(3, 29, 35, .2);
}

.ttrc-hero__poster {
  opacity: .14;
  filter: saturate(.8) contrast(1.05);
  mix-blend-mode: luminosity;
}

.ttrc-hero__scrim {
  background:
    linear-gradient(90deg, rgba(3, 29, 35, .78) 0 24%, rgba(3, 29, 35, .42) 56%, rgba(3, 29, 35, .12)),
    linear-gradient(0deg, rgba(3, 29, 35, .38), transparent 48%);
}

.ttrc-hero__copy {
  align-items: start;
}

.ttrc-hero__copy h1 {
  max-width: 11ch;
  text-wrap: balance;
}

.ttrc-filter-form--task {
  border: 1px solid rgba(255, 255, 255, .23);
  background: rgba(3, 29, 35, .48);
  box-shadow: 0 32px 92px rgba(0, 0, 0, .2);
  backdrop-filter: blur(22px);
}

.ttrc-workspace {
  position: relative;
  isolation: isolate;
}

.ttrc-workspace::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -42px -24px -80px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 32px;
  background:
    linear-gradient(126deg, rgba(255, 250, 240, .94), rgba(233, 255, 248, .78) 62%, rgba(244, 231, 203, .88));
  box-shadow: 0 36px 110px rgba(3, 29, 35, .15);
  pointer-events: none;
}

.ttrc-results-shell,
.ttrc-editorial-hub {
  position: relative;
  z-index: 1;
}

.ttrc-single {
  width: min(1240px, calc(100% - 40px));
}

.ttrc-single__header--r43 {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: clamp(560px, 68vh, 740px);
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  margin: clamp(32px, 5vw, 66px) 0 34px;
  padding: clamp(42px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: clamp(26px, 3vw, 42px);
  background: var(--tt-r43-deep, #031d23);
  box-shadow: 0 42px 120px rgba(3, 29, 35, .24);
  color: rgba(255, 255, 255, .78);
}

.ttrc-single__hero-media,
.ttrc-single__hero-media > span {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.ttrc-single__hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ttrc-single__hero-media > span {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 29, 35, .96), rgba(3, 29, 35, .6) 58%, rgba(3, 29, 35, .18)),
    linear-gradient(0deg, rgba(3, 29, 35, .88), transparent 58%);
}

.ttrc-single__header--r43 :is(.ttss-breadcrumb, .ttrc-single__heading) {
  position: relative;
  z-index: 1;
}

.ttrc-single__header--r43 h1 {
  max-width: 15ch;
  font-size: clamp(44px, 4.7vw, 60px);
  line-height: .98;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .28);
}

.ttrc-single__summary {
  align-items: start;
}

.ttrc-single__facts,
.ttrc-request-card {
  border: 1px solid rgba(9, 44, 51, .13);
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 26px 76px rgba(3, 29, 35, .11);
  backdrop-filter: blur(18px);
}

.ttrc-request-card :is(h2, h3, p, small, label),
.ttrc-single__facts :is(h2, h3, p, dt, dd) {
  color: var(--tt-r43-ink, #092c33);
}

.ttrc-request-card :is(input, select, textarea) {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(9, 44, 51, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  color: var(--tt-r43-ink, #092c33);
  font: 500 16px/1.4 Manrope, system-ui, sans-serif;
}

.ttrc-gallery :is(h2, h3),
.ttrc-single__summary > :is(h2, h3) {
  color: var(--tt-r43-ink, #092c33);
}

.ttrc-gallery--r43-mosaic {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: minmax(150px, 19vw);
  gap: 12px;
  width: 100%;
}

.ttrc-gallery--r43-mosaic figure,
.ttrc-gallery--r43-mosaic figure:first-child {
  grid-column: span 4;
  grid-row: span 1;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #e9f4f1;
}

.ttrc-gallery--r43-mosaic figure:first-child {
  grid-column: span 8;
  grid-row: span 2;
  aspect-ratio: auto;
}

.ttrc-gallery--r43-mosaic figure:nth-child(4n + 4) {
  grid-column: span 5;
}

.ttrc-gallery--r43-mosaic figure:nth-child(4n + 5) {
  grid-column: span 7;
}

.ttrc-gallery__open {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  color: inherit;
}

.ttrc-gallery__more {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(3, 29, 35, .76);
  color: #fff;
  font: 700 13px/1 Manrope, system-ui, sans-serif;
}

.ttrc-gallery__all-links {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(9, 44, 51, .14);
  border-radius: 14px;
  background: rgba(255, 250, 240, .94);
  color: var(--tt-r43-ink, #092c33);
}

.ttrc-gallery__all-links summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}

.ttrc-map-outliers {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(9, 44, 51, .14);
  border-radius: 12px;
  background: rgba(255, 250, 240, .94);
  color: var(--tt-r43-ink, #092c33);
}

.ttrc-map-outliers summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}

.ttrc-map-selection-sheet {
  position: fixed;
  z-index: 99999;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  background: rgba(3, 29, 35, .96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
  color: #fff;
}

.ttrc-map-selection-sheet[hidden] {
  display: none;
}

.ttrc-map-selection-sheet strong {
  grid-column: 1 / -1;
  font: 500 23px/1.2 var(--tt-v6-serif, Georgia, serif);
}

.ttrc-map-selection-sheet :is(a, button) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.ttrc-map-selection-sheet a {
  background: var(--tt-r43-gold, #dda95d);
  color: var(--tt-r43-deep, #031d23);
  font-weight: 700;
  text-decoration: none;
}

.ttrc-lightbox {
  width: min(1160px, calc(100% - 32px));
  height: min(820px, calc(100% - 32px));
  padding: 54px 64px 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  background: rgba(3, 29, 35, .96);
  color: #fff;
}

.ttrc-lightbox::backdrop {
  background: rgba(1, 15, 19, .82);
  backdrop-filter: blur(12px);
}

.ttrc-lightbox[open] {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}

.ttrc-lightbox figure {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0;
}

.ttrc-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ttrc-lightbox button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}

.ttrc-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto;
  padding-inline: 16px;
}

.ttrc-gallery__open::after {
  content: "↗";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(3, 29, 35, .62);
  color: #fff;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.ttrc-gallery__open:hover::after,
.ttrc-gallery__open:focus-visible::after {
  opacity: 1;
  transform: translateY(-2px);
}

.ttrc-gallery--r43-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ttrc-single__location {
  overflow: hidden;
  border: 1px solid rgba(9, 44, 51, .13);
  border-radius: 26px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 32px 90px rgba(3, 29, 35, .14);
}

.ttrc-single__content.ttrc-reading-plane {
  width: min(1040px, 100%);
  margin-inline: auto;
  padding: clamp(42px, 6vw, 72px) clamp(26px, 8vw, 96px);
  border: 1px solid rgba(9, 44, 51, .12);
  border-radius: 24px;
  background: rgba(255, 250, 240, .975);
  box-shadow: 0 30px 90px rgba(3, 29, 35, .13);
}

.ttrc-single__content.ttrc-reading-plane .ttss-prose {
  width: min(68ch, 100%);
  max-width: 68ch;
  margin-inline: auto;
  font-size: clamp(18px, 1.25vw, 19px);
  line-height: 1.72;
}

@media (max-width: 980px) {
  .ttrc-gallery--r43-mosaic {
    grid-auto-rows: 210px;
  }

  .ttrc-gallery--r43-mosaic figure:first-child {
    grid-column: 1 / -1;
    min-height: 440px;
  }

  .ttrc-gallery--r43-mosaic figure:not(:first-child) {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .ttrc-hero {
    min-height: calc(100svh - 68px);
    padding-block: 54px 34px;
  }

  .ttrc-workspace::before {
    inset: -20px -4px -54px;
    border-radius: 22px;
  }

  .ttrc-single {
    width: calc(100% - 20px);
  }

  .ttrc-single__header--r43 {
    min-height: 590px;
    margin-top: 12px;
    padding: 28px 20px 36px;
    border-radius: 22px;
  }

  .ttrc-single__header--r43 h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .ttrc-single__hero-media > span {
    background: linear-gradient(0deg, rgba(3, 29, 35, .94) 0 50%, rgba(3, 29, 35, .18));
  }

  .ttrc-gallery--r43-mosaic {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 360px);
    grid-template-columns: none;
    grid-template-rows: 330px;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .ttrc-gallery--r43-mosaic figure,
  .ttrc-gallery--r43-mosaic figure:first-child,
  .ttrc-gallery--r43-mosaic figure:not(:first-child) {
    grid-column: auto;
    grid-row: 1;
    min-height: 0;
    aspect-ratio: auto;
    scroll-snap-align: center;
  }

  .ttrc-gallery__open::after {
    opacity: 1;
  }

  .ttrc-single__content.ttrc-reading-plane {
    padding: 34px 18px 48px;
  }

  .ttrc-single__content.ttrc-reading-plane .ttss-prose {
    font-size: 17px;
    line-height: 1.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttrc-gallery__open::after {
    transition: none;
  }
}

@media (forced-colors: active) {
  .ttrc-filter-form--task,
  .ttrc-workspace::before,
  .ttrc-single__header--r43,
  .ttrc-single__facts,
  .ttrc-request-card,
  .ttrc-single__location,
  .ttrc-single__content.ttrc-reading-plane {
    border: 2px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
    backdrop-filter: none;
  }
}
