/* Stay dates and guests (date-range.js) and the home search's Check in · Check out · Who bar (app.js).
   ZamPlace teal; the Airbnb-style pattern from the owner-approved mockup (2026-10-17). */

/* The bar: under "Where" on phones (one card: Check in | Check out, then Who); on wide screens it
   sits beside "Where" as one row with a round search button. */
.stay-dates-bar[hidden] { display: none !important; }
.stay-dates-bar {
  display: grid;
  margin: 0 0 9px;
  border: 1px solid rgba(34, 39, 48, .09);
  border-radius: 17px;
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 22px rgba(24, 29, 38, .05);
  overflow: hidden;
}
.stay-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #e8eff0; }
.stay-seg {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 15px;
  border: 0;
  background: none;
  color: #22262d;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.stay-when .stay-seg:first-child { border-right: 1px solid #e8eff0; }
.stay-seg:hover { background: rgba(227, 242, 239, .55); }
.stay-seg:focus-visible { outline: 3px solid #75a6a0; outline-offset: -3px; }
.stay-seg small { color: #6e7678; font-size: 8.5px; font-weight: 950; letter-spacing: 1.15px; line-height: 1; text-transform: uppercase; }
.stay-seg span { overflow: hidden; color: #22262d; font-size: 15px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.stay-seg span.is-empty { color: #8d9097; font-weight: 650; }
.stay-seg.is-open { background: #fff; box-shadow: inset 0 0 0 2px #13958a; border-radius: 15px; }
.stay-go { display: none; }

@media (min-width: 1025px) {
  /* Where | Check in | Check out | Who | ⌕ in one row. */
  #exploreView .home-search-main.is-stay { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 0; margin: 0 0 9px; border: 1px solid rgba(34, 39, 48, .09); border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 22px rgba(24, 29, 38, .06); }
  #exploreView .home-search-main.is-stay .homepage-keyword-search { margin: 0; border: 0 !important; border-radius: 999px !important; background: transparent !important; box-shadow: none !important; }
  #exploreView .home-search-main.is-stay .stay-dates-bar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: center; margin: 0; border: 0; background: transparent; box-shadow: none; border-radius: 999px; overflow: visible; }
  .stay-when { border-bottom: 0; }
  .stay-seg { position: relative; border-radius: 999px; padding: 8px 22px; }
  .stay-seg::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: #e2eaec; }
  .stay-when .stay-seg:first-child { border-right: 0; }
  .stay-seg.is-open { border-radius: 999px; box-shadow: 0 6px 20px rgba(11, 59, 58, .16); }
  .stay-seg.is-open::before, .stay-seg.is-open + .stay-seg::before { display: none; }
  .stay-go {
    display: grid; place-items: center; width: 50px; height: 50px; margin: 0 6px 0 4px; border: 0; border-radius: 50%;
    background: linear-gradient(135deg, #17a092 0%, #13958a 46%, #0b6e69 100%); color: #fff; font-size: 22px; font-weight: 900; cursor: pointer;
  }
  /* In Stay, the round button searches; the long one below hides. */
  #exploreView .search-panel.is-stay #searchBtn { display: none; }
}

/* The calendar and guests cards. */
.zpdr-card {
  position: absolute;
  z-index: 1200;
  display: grid;
  gap: 10px;
  padding: 14px 14px 12px;
  border: 1px solid #dbe5ea;
  border-radius: 18px;
  background: #fff;
  color: #13302f;
  box-shadow: 0 16px 44px rgba(11, 59, 58, .24);
  font-family: inherit;
  text-align: left;
}
@media (prefers-reduced-motion: no-preference) {
  .zpdr-card { animation: zpdr-in .16s ease-out; }
  @keyframes zpdr-in { from { opacity: .6; transform: translateY(6px); } }
}
.zpdr-title { margin: 0; font-size: 16px; line-height: 1.2; }
.zpdr-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zpdr-sum { padding: 7px 10px; border: 1px solid #dbe5ea; border-radius: 12px; }
.zpdr-sum.is-on { border-color: #13958a; box-shadow: 0 0 0 2px rgba(19, 149, 138, .15); }
.zpdr-sum small { display: block; color: #536b68; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.zpdr-sum strong { font-size: 14px; }
.zpdr-help { margin: 0; color: #536b68; font-size: 12.5px; }
.zpdr-months { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 700px) { .zpdr-months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zpdr-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.zpdr-month-head strong { font-size: 15px; }
.zpdr-nav { width: 40px; height: 40px; border: 1px solid #dbe5ea; border-radius: 50%; background: #fff; color: #0b6e69; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.zpdr-nav:disabled { opacity: .35; cursor: default; }
.zpdr-nav.is-ghost { visibility: hidden; }
.zpdr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 3px; text-align: center; font-variant-numeric: tabular-nums; }
.zpdr-wd { padding-bottom: 4px; color: #536b68; font-size: 11px; font-weight: 700; }
.zpdr-day { position: relative; height: 40px; padding: 0; border: 0; background: none; color: #13302f; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.zpdr-day span { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto; border-radius: 50%; }
.zpdr-day:hover:not(:disabled) span { background: #eef5f4; }
.zpdr-day:focus-visible { outline: none; }
.zpdr-day:focus-visible span { box-shadow: 0 0 0 3px #75a6a0; }
.zpdr-day:disabled { color: #b8c4c2; cursor: default; text-decoration: line-through; text-decoration-color: #d4dcdb; }
.zpdr-day.is-today span { box-shadow: inset 0 0 0 1.5px #9fb9b5; }
.zpdr-day.is-in { background: #e3f2ef; }
.zpdr-day.is-start { background: linear-gradient(90deg, transparent 50%, #e3f2ef 50%); }
.zpdr-day.is-end { background: linear-gradient(90deg, #e3f2ef 50%, transparent 50%); }
.zpdr-day.is-start.is-end { background: none; }
.zpdr-day.is-start span, .zpdr-day.is-end span { background: #0b6e69 !important; color: #fff; }
.zpdr-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid #edf2f3; }
.zpdr-link { padding: 8px 2px; border: 0; background: none; color: #13302f; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.zpdr-done { padding: 10px 20px; border: 0; border-radius: 12px; background: #0b6e69; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.zpdr-done:disabled { opacity: .45; cursor: default; }
.zpdr-step { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #edf2f3; }
.zpdr-step small { display: block; color: #536b68; font-size: 12px; }
.zpdr-step-ctl { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.zpdr-step-ctl button { width: 38px; height: 38px; border: 1px solid #c9d6da; border-radius: 50%; background: #fff; color: #13302f; font-size: 19px; cursor: pointer; }
.zpdr-step-ctl button:disabled { opacity: .35; cursor: default; }
.zpdr-step-ctl b { min-width: 18px; text-align: center; }

/* All Listings (catalog.js): the same bar under the search box on the Stay tab, the "Only N left"
   badge, the total for the stay and other dates when nothing is free. */
.catalog-stay-bar { margin: 10px 0 0; }
@media (min-width: 700px) {
  .catalog-stay-bar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .catalog-stay-bar .stay-when { border-bottom: 0; border-right: 1px solid #e8eff0; }
}
@media (min-width: 1025px) {
  .catalog-stay-bar { border-radius: 999px; }
  .catalog-stay-bar .stay-when { border-right: 0; }
  .catalog-stay-bar .stay-when .stay-seg:first-child::before { display: none; }
}
.catalog-left-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 3px 10px; border-radius: 999px; background: #0b6e69; color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .01em;
}
.catalog-stay-total { margin: 2px 0 4px; color: #3f5d57; font-size: 13px; font-weight: 750; }
.catalog-date-suggestions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 4px 0 8px; }
.catalog-date-suggestions:empty { display: none; }
.catalog-date-suggestions span { width: 100%; color: #536b68; font-size: 13px; font-weight: 700; }
