/* rental — the page's own styles, on this page only. */

/* ---------- The booking card of a stay (rent-card): the rules the layout's main.css held for every page, now this folder's alone (before the page's own, as they were linked). ---------- */
.rent-card__hint { font-size: .92rem; color: var(--muted); }

.rent-card {
  scroll-margin-top: calc(var(--header-sticky-h, 0px) + 1.5rem);
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rent-card .cal { max-width: none; margin: .6rem 0 1rem; }

.rent-card .rental-fields { grid-template-columns: 1fr; }

.rent-card__label { font-size: .85rem; font-weight: 600; color: var(--ink); }

.rental-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; margin-bottom: .9rem; }

.rental-fields input, .rent-notes {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .95rem;
}

.rental-fields input:focus, .rent-notes:focus { outline: none; border-color: var(--mark, var(--primary)); }

@media (max-width: 960px) {
  .rental-fields { grid-template-columns: 1fr; }
}

.rent-guests { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }

.rent-guests input { width: 6rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: .95rem; }

.rent-guests input:focus { outline: none; border-color: var(--mark, var(--primary)); }

@media (max-width: 640px) {
  .rental-fields { grid-template-columns: 1fr; }
}

.rent-card > .rent-card__title { font-size: 1.25rem; margin: 0 0 1.1rem; }

.rent-card .rent-card__label { display: block; margin-bottom: .5rem; }

.rent-card .rent-card__hint { margin: .2rem 0 0; font-size: .85rem; }

.rent-card .field-error { color: var(--danger); font-weight: 500; font-size: .8rem; }

.rent-details { margin-top: 1.2rem; display: grid; gap: .9rem; }

.rent-details .notice { margin: 0; }

.rent-chosen {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem;
  background: var(--success-soft); border-radius: var(--radius-small); color: var(--ink); font-size: .92rem; font-weight: 600;
}

.rent-chosen svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--success, var(--ink)); }

.rent-chosen span { flex: 1; min-width: 0; }

.rent-chosen__change {
  border: 0; background: none; padding: .2rem 0; font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--mark, var(--primary)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.rent-card .rental-fields { display: grid; grid-template-columns: 1fr; gap: .2rem; margin: 0; }

.rental-fields label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }

.rental-fields input, .rental-fields textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-small);
  background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: .97rem; margin-bottom: .35rem;
}

.rental-fields textarea { resize: vertical; min-height: 5rem; }

.rental-fields input:focus, .rental-fields textarea:focus { outline: none; border-color: var(--mark, var(--primary)); box-shadow: 0 0 0 1px var(--mark, var(--primary)); }

.rental-fields [aria-invalid='true'] { border-color: var(--danger); }

.rental-fields .field-error { color: var(--danger); font-weight: 500; font-size: .8rem; margin-bottom: .3rem; }

.rent-card__submit { width: 100%; justify-content: center; text-align: center; }

.rent-card__text { margin: 0 0 1.1rem; color: var(--body-text); }

.rent-card__ask { width: 100%; justify-content: center; text-align: center; }

.rent-card__phone { margin: 1rem 0 .6rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; user-select: all; }

.rent-card__phone a { color: var(--ink); text-decoration: none; }

.rental-page__book { margin-top: 1.4rem; }

.rental-page__book .rent-card { padding: 1.4rem; }

.rent-hours { list-style: none; margin: 0; padding: .8rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .3rem; font-size: .9rem; }

.rent-hours__day { display: flex; justify-content: space-between; gap: 1rem; color: var(--body-text); }

.rent-hours__day span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }

.rent-hours__day.is-off span:last-child { color: var(--muted); }

.rent-hours__special-title { display: block; margin-top: .8rem; font-size: .8rem; color: var(--muted); }

.rent-hours--special { border-top: 0; padding-top: .3rem; }

.rent-total__line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--body-text); font-variant-numeric: tabular-nums; }

.rent-total__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .45rem; border-top: 1px solid var(--line); }

.rent-total__sum span { color: var(--ink); font-weight: 600; }

.rent-total__sum strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.rent-total__note { font-size: .82rem; color: var(--muted); }

.rent-card > h2 { font-size: 1.3rem; margin: 0 0 .4rem; }

.rent-guests .qty { height: 44px; background: var(--bg); }

.rent-hint {
  display: flex; align-items: flex-start; gap: .55rem; margin: .4rem 0 .6rem; padding: .7rem .9rem;
  border-radius: var(--radius-small); background: var(--tint); color: var(--ink); font-size: .88rem; line-height: 1.45;
}

.rent-hint::before {
  content: '→'; flex: none; font-weight: 700; color: var(--muted);
}

.rent-terms-note { margin: .2rem 0 .4rem; font-size: .82rem; color: var(--muted); }

/* What was chosen, and what it costs. */
.rent-chosen { align-items: flex-start; }

.rent-chosen svg { margin-top: .15rem; }

.rent-chosen__text { display: grid; gap: .15rem; }

.rent-chosen__text small { font-weight: 400; color: var(--body-text); font-size: .85rem; }

.rent-total { display: grid; gap: .35rem; padding: .2rem 0 .4rem; }

.rent-total p { margin: 0; }

.rent-card .rent-guests { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; }

.rent-card .rent-guests .rent-card__label { margin: 0; }

/* --- product page (the record pages) ------------------------
   Gallery and description left, the buy box right — the name, the price and
   the button together, staying in sight while the left side scrolls (when it
   fits the window: record.js sets .is-sticky). One column from 720px,
   with a bar at the bottom once the button scrolled away. The .product-detail
   rules below stay for designs that draw their own product page. */
.product-page { padding-top: 1.6rem; }

.product-back { display: inline-block; margin-bottom: 1.4rem; color: var(--muted); font-size: .92rem; }

.product-back:hover { color: var(--mark, var(--primary)); }

.product-crumbs .product-back { margin-bottom: 0; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "gallery buy" "about buy";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 4vw, 3rem);
  row-gap: 2.4rem;
  align-items: start;
}

.product-buy { grid-area: buy; min-width: 0; }

.product-about { grid-area: about; min-width: 0; }

.product-buy.is-sticky { position: sticky; top: calc(var(--header-sticky-h, 0px) + 1.5rem); }

/* The buy box. */
.product-buy__title { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.12; margin-bottom: .6rem; text-wrap: balance; }

.product-buy__lead { font-size: 1rem; color: var(--body-text); max-width: 46ch; margin: 0 0 .5rem; }

/* The bar at the bottom of a narrow screen. */
.product-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
}

.product-bar__text { display: grid; min-width: 0; flex: 1; }

.product-bar__name { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.product-bar__price { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 721px) {
  .product-bar { display: none !important; }
}

@media (max-width: 1100px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; }
}

@media (max-width: 720px) {
  .product-layout, .product-layout--nophoto { display: flex; flex-direction: column; gap: 1.8rem; }
  .product-buy.is-sticky { position: static; }
}

/* The price (_price.twig) in a card of «More» under a page (the related component): smaller than on the page, no
   rule above it. */
.related-card__price .rental-price { display: grid; gap: 0; margin: 0; padding: 0; border: 0; min-width: 0; color: var(--ink); }

.related-card__price .rental-price .price-main { display: flex; flex-wrap: nowrap; align-items: baseline; gap: .35rem; white-space: nowrap; }

.related-card__price .rental-price .price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: inherit; font-variant-numeric: tabular-nums; }

.related-card__price .rental-price .price-from, .related-card__price .rental-price .price-unit { font-size: .8rem; color: var(--muted); }

.related-card__price .rental-price .rental-price__was { display: block; }

.related-card__price .rental-price .price-was { font-size: .8rem; color: var(--muted); margin: 0; }

.related-card__price .rental-price .price-ask { font-family: inherit; font-size: .92rem; font-weight: 600; }

/* The price on the page (_price.twig): the old price, «from», the amount, the unit. */
.rental-price { display: grid; gap: .2rem; margin: 1.2rem 0 .7rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--ink); grid-template-columns: auto; }

.rental-price__was { display: flex; align-items: center; gap: .5rem; }

.rental-price__was .price-was { font-size: .95rem; margin: 0; color: var(--muted); }

.rental-price .price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; }

.rental-price .price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }

.rental-price .price-from,
.rental-price .price-unit { font-size: 1rem; color: var(--muted); }

.rental-price .price-ask { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

@media (max-width: 560px) {
  .rental-price .price { font-size: 1.85rem; }
}

/* ---------- The area's rules (_rules.twig) — were the booking_rules component's; after the page's own, as they were linked. ----------
   The area's rules: one line under a list's heading, a column under the price on a record's page. */
.rent-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--body-text); font-size: .92rem; }

.rent-rules li { display: inline-flex; align-items: center; gap: .45rem; }

.rent-rules svg { width: 1.05rem; height: 1.05rem; color: var(--muted); flex: none; }

/* under the list's heading */
.rent-rules--row { margin-top: 1rem; }

.rent-rules--list { flex-direction: column; gap: .45rem; margin: .2rem 0 0; }

.rent-rules__quiet { color: var(--muted); }
