/* Local theme and layout for the long-term rental landing page. */
html:has(body.long-term-rental-page) {
  scrollbar-width: none;
  height: auto;
  overflow: visible;
}
body.long-term-rental-page {
  --bg: #171513;
  --panel: #25211d;
  --ink: #dbd1c4;
  --muted: #bcb0a2;
  --accent: #c4a984;
  --line: #423930;
  --display: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(22px, 6vw, 96px);
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}
body.long-term-rental-page main {
  flex: 1;
  margin: 0;
  padding: 0;
  overflow: visible;
}
body.long-term-rental-page .page-inner {
  display: block;
  height: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
}
.long-term-rental-page .site-menu-panel { background: var(--panel); }
.long-term-rental-page .site-menu-links a:is(:hover, :focus-visible) { background: #362c24; }
.long-term-rental-page .site-footer { flex-shrink: 0; min-height: 102px; margin-bottom: 0; padding-block: 16px 22px; }

.ltr-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(430px, 44vw, 680px);
  padding: 48px var(--gutter);
}
.ltr-intro { width: min(37%, 485px); }
.ltr-image {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 20%;
}
.ltr-hero .ltr-image img {
  height: 100%;
  object-position: right center;
  mask-image: linear-gradient(90deg, transparent 8%, #000 42%), linear-gradient(#000 80%, transparent);
  mask-composite: intersect;
}
.ltr-hero .ltr-image figcaption {
  position: absolute;
  inset: auto var(--gutter) 16px auto;
  padding: 4px 8px;
  background: #171513de;
}
.ltr-hero h1 {
  text-wrap: balance;
  margin: 0;
  font: 650 clamp(30px, 3.9vw, 62px)/.95 var(--display);
  letter-spacing: -.065em;
  color: var(--ink);
}

.ltr-subtitle {
  max-width: 36ch;
  margin: 22px 0 26px;
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.45;
}
.ltr-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ltr-primary,
.ltr-secondary,
.ltr-car-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font-size: 14px;
  font-weight: 600;
}
.ltr-primary { padding: 12px 19px; background: var(--accent); color: #211a14; }
.ltr-primary:hover { background: #d8bd97; }
.ltr-secondary,
.ltr-car-link { color: var(--ink); border-bottom: 1px solid #806d55; }
.ltr-secondary:hover,
.ltr-car-link:hover { color: var(--accent); border-color: var(--accent); }
.ltr-image, .ltr-story figure, .ltr-close figure { margin: 0; min-width: 0; }
.ltr-image img, .ltr-story img, .ltr-close img, .ltr-car img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.ltr-image figcaption, .ltr-story figcaption, .ltr-close figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.ltr-section {
  max-width: 1680px;
  margin-inline: auto;
  padding: clamp(32px, 4.6vw, 72px) var(--gutter);
}
.ltr-section h2 {
  max-width: 1000px;
  margin: 0;
  color: var(--ink);
  font: 400 clamp(28px, 3.5vw, 52px)/1.05 var(--display);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.ltr-periods { padding-top: clamp(28px, 4vw, 60px); }
.ltr-periods h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 32px; }
.ltr-period-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.ltr-period-list > div { padding: 24px 10px 24px 0; }
.ltr-period-list > div + div { border-left: 1px solid var(--line); padding-left: clamp(13px, 3vw, 42px); }
.ltr-period-list h3 {
  margin: 0;
  font: 400 clamp(34px, 5.5vw, 82px)/1.05 var(--display);
  color: var(--ink);
  letter-spacing: -.035em;
  white-space: nowrap;
}
.ltr-period-list h3 span { color: var(--accent); font: 500 clamp(12px, 1.4vw, 18px)/1.5 "Avenir Next", Arial, sans-serif; letter-spacing: 0; }
.ltr-rate-note,
.ltr-section-note { max-width: 66ch; margin: 24px 0 0; font-size: 15px; line-height: 1.65; }

.ltr-stories { padding-top: 32px; }
.ltr-stories { padding-top: 12px; }
.ltr-story-layout { display: grid; gap: 10px; }
.ltr-story {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(300px, 35vw, 520px);
  border-block: 1px solid var(--line);
}
.ltr-story-copy { width: 42%; padding: 16px 0 16px 5%; }
.ltr-story:nth-child(even) .ltr-story-copy { justify-self: end; padding: 16px 5% 16px 0; }
.ltr-story figure { position: absolute; inset: 0 0 0 23%; z-index: -1; }
.ltr-story:nth-child(even) figure { inset: 0 23% 0 0; }
.ltr-story img { height: 100%; object-position: right center; mask-image: linear-gradient(90deg, transparent, #000 30%); }
.ltr-story:nth-child(even) img { object-position: left center; mask-image: linear-gradient(270deg, transparent, #000 30%); }
.ltr-story figcaption { position: absolute; bottom: 8px; right: 10px; }
.ltr-story:nth-child(even) figcaption { right: auto; left: 10px; }
.ltr-story h3 { margin: 0; font: 600 clamp(23px, 2.6vw, 40px)/1.1 var(--display); }
.ltr-story p { max-width: 34ch; margin-block: 8px; color: var(--muted); line-height: 1.55; }
.ltr-selection { padding-top: 24px; }
.ltr-cars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px clamp(12px, 2vw, 28px);
  margin-top: 20px;
}
.ltr-car:first-child { grid-column: span 2; }
.ltr-car .ltr-car-link { display: block; height: 100%; padding-bottom: 8px; }
.ltr-car img { aspect-ratio: 3 / 2; object-fit: contain; filter: saturate(.83); }

.ltr-car-link:hover img { filter: none; }
.ltr-car-caption { display: flex; gap: 9px; margin-top: 9px; }
.ltr-index { flex: none; color: var(--accent); font: 600 11px/1.65 var(--display); font-variant-numeric: tabular-nums; }
.ltr-car h3 { margin: 0; color: inherit; font-size: clamp(14px, 1.3vw, 21px); overflow-wrap: anywhere; }
.ltr-car-price { margin: 4px 0 0; font-size: 14px; }
.ltr-car-price span { color: var(--muted); }
.ltr-essentials { padding-top: 18px; }
.ltr-essentials > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.ltr-essentials dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.ltr-essentials dl > div { padding: 16px 18px; background: #211d19; border-bottom: 1px solid var(--line); }
.ltr-essentials dl > div + div { border-left: 1px solid var(--line); }
.ltr-essentials dt { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; font-weight: 600; }
.ltr-essentials dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ltr-close { position: relative; isolation: isolate; border-top: 1px solid var(--line); }
.ltr-close figure { margin-inline: calc(-1 * var(--gutter)); }
.ltr-close img { aspect-ratio: auto; mask-image: linear-gradient(transparent, #000 14%, #000 75%, transparent); }
.ltr-close figcaption { text-align: right; padding-inline: var(--gutter); }
.ltr-close h2 { margin-top: 12px; }
.ltr-close .ltr-actions { margin-top: 16px; }

#ltr-consultant-dialog {
  width: min(480px, calc(100% - 32px));
  height: min(740px, calc(100dvh - 36px));
  max-width: none;
  max-height: none;
  padding: 0;
  margin: auto;
  border: 1px solid #755e47;
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  overflow: hidden;
}
#ltr-consultant-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
#ltr-consultant-dialog::backdrop { background: #0c0907b8; }
html:has(#ltr-consultant-dialog[open]) { overflow: hidden; }
.ltr-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.ltr-dialog-heading h2 { color: var(--ink); font: 400 24px/1.1 var(--display); }
.ltr-dialog-heading button { min-height: 42px; padding: 7px 11px; background: transparent; color: var(--accent); border: 1px solid var(--line); }
.ltr-dialog-heading button:hover { border-color: var(--accent); }
#ltr-consultant-dialog .consultant {
  position: relative;
  inset: auto !important;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--panel);
}
#ltr-consultant-dialog .consultant details[open] { position: relative; height: 100%; container-type: normal; }
#ltr-consultant-dialog .consultant summary { display: none; }
#ltr-consultant-dialog .consultant .chat-body {
  position: absolute;
  inset: 0;
  height: auto;
  max-height: none;
  padding: 14px 16px 16px;
}
#ltr-consultant-dialog .message { border-color: var(--line); }
#ltr-consultant-dialog .message.user { background: #352b22; }
#ltr-consultant-dialog #messages .lf-location-button {
  border-color: #6a5744;
  background: #352b22;
  color: var(--ink);
}
#ltr-consultant-dialog #messages .lf-location-button:is(:hover, [aria-pressed="true"]) {
  border-color: var(--accent);
  background: #463729;
  color: var(--ink);
  box-shadow: none;
}

@media (max-width: 850px) {
  .ltr-hero { min-height: auto; padding-block: 26px 0; gap: 12px; }
  .ltr-intro { width: auto; }
  .ltr-hero h1 { font-size: clamp(30px, 8vw, 56px); }
  .ltr-image { position: relative; inset: auto; margin-inline: calc(-1 * var(--gutter)); }
  .ltr-hero .ltr-image img { height: auto; mask-image: linear-gradient(transparent, #000 16%, #000 83%, transparent); }
  .ltr-hero .ltr-image figcaption { bottom: 4px; }
  .ltr-actions { gap: 8px 16px; }
  .ltr-period-list h3 span { display: block; margin-top: 5px; }
  .ltr-essentials dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ltr-essentials dl > div:nth-child(odd) { border-left: 0; }
  .long-term-rental-page .site-footer { padding-bottom: 22px; }
}
@media (min-width: 621px) {
  .ltr-car:nth-child(-n + 2) { grid-column: span 3; }
  .ltr-car:nth-child(n + 3) { grid-column: span 2; }
}
@media (max-width: 620px) {
  .ltr-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ltr-car:first-child { grid-row: auto; }
  .ltr-essentials dl > div { padding: 12px 9px; }
  #ltr-consultant-dialog { height: calc(100dvh - 24px); width: calc(100% - 22px); }
  .ltr-dialog-heading h2 { font-size: 20px; }
}

.ltr-close h2 { margin-top: clamp(20px, 4vw, 52px); }
.ltr-close-note { max-width: 64ch; margin: 10px 0 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.55; }
.ltr-advisor {
  position: fixed;
  z-index: 12;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--accent);
  text-shadow: 0 1px 4px #000, 0 0 8px #000;
  font-size: 13px;
  font-weight: 600;
}
.ltr-advisor svg { width: 46px; height: 46px; filter: drop-shadow(0 1px 3px #000); color: var(--accent); flex: none; }
.ltr-advisor:hover, .ltr-advisor:focus-visible { color: #fff1dc; }
.long-term-rental-page .site-footer { padding-bottom: 86px; }
@media (max-width: 620px) {
  .ltr-story p { font-size: 14px; }
  .ltr-advisor { padding: 5px 7px; font-size: 10px; }
  .ltr-advisor svg { width: 32px; height: 32px; }
}

@media (max-width: 620px) {
  .ltr-story { display: flex; flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .ltr-story figure, .ltr-story:nth-child(even) figure { position: relative; inset: auto; }
  .ltr-story img, .ltr-story:nth-child(even) img { height: auto; aspect-ratio: auto; mask-image: linear-gradient(#000 80%, transparent); }
  .ltr-story-copy, .ltr-story:nth-child(even) .ltr-story-copy { width: auto; padding: 8px 0 12px; }
}
