/* A floating card with a bounded scrolling body and persistent actions. */
.lpk-pop[data-open] {
  width: min(368px, calc(100vw - 24px));
  inset: auto;
  padding: 8px;
  border: 1px solid #536359;
  border-radius: 16px;
  background: #142d27;
  box-shadow: 0 12px 40px rgb(13 29 23 / 28%), 0 2px 8px rgb(13 29 23 / 14%);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #819187 #142d27;
  z-index: 140;
}
.lpk-pop-dates[data-open] { width: min(620px, calc(100vw - 24px)); }
.lpk-pop-guests[data-open] { width: min(348px, calc(100vw - 24px)); }
.lpk-pop .lpk-head { padding: 0 4px 3px 8px; margin: 0 0 6px; flex: none; }
.lpk-pop .lpk-head p.lpk-title { font-size: 1.4rem; line-height: 1.15; }
.lpk-pop .lpk-x { border-radius: 50%; }
.lpk-pop .lpk-x:hover { background: #294139; }
.lpk-pop .lpk-searchwrap, .lpk-pop .lpk-when, .lpk-pop .lpk-foot { flex: none; }
.lpk-pop .lpk-search { font-size: 1rem; }
.lpk-options-body, .lpk-pop .lpk-months, .lpk-pop .lpk-style-grid, .lpk-guest-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #819187 #142d27;
}
.lpk-options-body { padding: 2px 3px; }
.lpk-options-body .lpk-list { overflow: visible; mask-image: none; }
.lpk-options-body .lpk-popular { flex-wrap: nowrap; overflow-x: auto; padding: 1px 1px 6px; }
.lpk-options-body .lpk-chip { white-space: nowrap; }
.lpk-pop .lpk-months { mask-image: none; align-items: flex-start; }
.lpk-pop .lpk-when { padding-bottom: 5px; }
.lpk-pop .lpk-foot { position: static; padding: 6px 2px 0; margin-top: 4px; background: inherit; }
.lpk-pop .lpk-mhead { margin: 0; padding: 0; }
.lpk-pop .lpk-day { min-height: 37px; }
.lpk-pop .lpk-style-grid { align-content: start; gap: 5px; }
.lpk-pop .lpk-style-option { min-height: 44px; padding: 6px 8px; }
.lpk-pop .lpk-stepper { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 4px; }
.lpk-stepper button, .lpk-stepper .lpk-count {
  box-sizing: border-box; min-height: 44px; width: 44px; border: 1px solid #728279;
  border-radius: 50%; background: transparent; color: #fffaf0; font: inherit; font-size: 1.22rem;
}
.lpk-stepper button { cursor: pointer; }
.lpk-stepper button:disabled { opacity: .4; }
.lpk-stepper .lpk-count { width: 64px; border-radius: 8px; text-align: center; appearance: textfield; }
.lpk-count::-webkit-inner-spin-button { appearance: none; }
.lpk-pop-guests .lpk-foot { justify-content: space-between; }
@media (max-width: 760px) {
  .lpk-pop-dates[data-open] { width: min(380px, calc(100vw - 24px)); }
  .lpk-pop .lpk-day { min-height: 41px; }
}
@media (max-height: 420px) {
  .lpk-pop .lpk-months, .lpk-options-body, .lpk-pop .lpk-style-grid, .lpk-guest-body { min-height: 76px; }
}


body.villa-home .home-intro.hero .home-search form.herosearch {
  padding-block: 6px;
}
body.villa-home .home-intro.hero .home-search form.herosearch > label {
  min-height: 48px;
  padding-block: 4px;
}
@media (max-width: 780px) {
  body.villa-home .home-intro.hero .home-search form.herosearch { min-height: 176px; }
}
.lpk-pop .lpk-months:has(.lpk-month + .lpk-month) .lpk-month:first-child .lpk-arrow:last-child,
.lpk-pop .lpk-month + .lpk-month .lpk-arrow:first-child { visibility: hidden; }

/* Keep the search action above the first-visit notice on compact phones. */
@media (orientation: portrait) and (max-width: 560px) and (max-height: 740px) {
  body.villa-home section.home-intro.hero .heroinner { padding-block: 22px 12px; }
}

/* On a phone held sideways there is room for one row of booking fields. */
@media (min-width: 640px) and (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  body.villa-home section.home-intro.hero {
    min-height: 0;
    grid-template-rows: minmax(142px, calc(100svh - 164px)) auto;
  }
  body.villa-home section.home-intro.hero .heroinner {
    grid-area: 1 / 1;
    min-height: 0;
    justify-content: center;
    padding: 12px var(--guest-gutter);
  }
  body.villa-home section.home-intro.hero h1 { font-size: clamp(1.65rem, 3.6vw, 2.15rem); }
  body.villa-home section.home-intro.hero .home-search { padding-block: 4px 10px; background: transparent; }
  body.villa-home section.home-intro.hero .home-search form.herosearch.lpk-ready {
    grid-template: auto / minmax(0,1.3fr) minmax(0,1.15fr) minmax(0,.7fr) minmax(0,1.1fr) auto;
    min-height: 0;
  }
  body.villa-home section.home-intro.hero .home-search form.herosearch.lpk-ready > label[data-picker],
  body.villa-home section.home-intro.hero .home-search form.herosearch.lpk-ready > button[type=submit] {
    grid-area: auto;
    min-width: 0;
  }
  body.villa-home section.home-intro.hero .home-search form.herosearch.lpk-ready > label[data-picker="from"] { grid-area: 1 / 2; }
  body.villa-home section.home-intro.hero .home-search form.herosearch.lpk-ready > label:has(input[name="guests"]) { grid-area: 1 / 3; }
  body.villa-home:has(#consent:not([hidden]) [data-cookie-intro]:not([hidden])) section.home-intro.hero .heroinner { padding-right: 51%; }
  body.villa-home #consent.cookie-banner:has([data-cookie-intro]:not([hidden])) {
    inset: 72px max(12px,env(safe-area-inset-right)) auto auto;
    width: min(47vw,440px);
    padding: 10px 14px;
    font-size: .875rem;
    line-height: 1.3;
  }
  body.villa-home #consent.cookie-banner h2 { margin-bottom: 4px; font-size: 1.2rem; }
  body.villa-home #consent.cookie-banner p { line-height: 1.3; }
  body.villa-home #consent .cookie-actions { margin-top: 6px; }
  body.villa-home .guest-help {
    inset: 10px max(76px,calc(env(safe-area-inset-right) + 68px)) auto auto;
  }
  body.villa-home .guest-help section {
    inset: calc(100% + 6px) 0 auto auto;
  }
  body.villa-home:has(.navt:checked) .guest-help { display: none; }
}

.lpk-guest-body .lpk-stepper { display: grid; grid-template-columns: minmax(0,1fr) 44px 46px 44px; gap: 6px; align-items: center; }
.lpk-guest-body .lpk-stepper + .lpk-stepper { border-top: 1px solid #536359; }
.lpk-person strong, .lpk-person small { display: block; color: #fffaf0; }
.lpk-person small { margin-top: 3px; color: #c5d3c9; font-size: .8rem; }
.lpk-guest-body .lpk-count { width: 100%; }

@media (orientation: portrait) and (max-width: 680px) {
  /* Frame the film in the visible title area above the reservation fields. */
  body.villa-home section.home-intro.hero .hero-bg { grid-area: 1 / 1; }
  body.villa-home section.home-intro.hero .hero-bg :is(img, video) {
    object-fit: cover;
    object-position: 50% 50%;
  }
}
