/* All Listings › Stay on phones (phone-stay.js, catalog.js; docs/phone-stay-results.md).
   A search pill and quick chips on top, the map under them, the list in a sheet pulled up over
   the map. ZamPlace teal; the page's own cards and map inside. */
.phone-stay[hidden], .phone-stay [hidden], .catalog-filters .catalog-filters-done { display: none !important; }

body.phone-stay-on { overflow: hidden; }
body.phone-stay-on > header, body.phone-stay-on > main, body.phone-stay-on > footer, body.phone-stay-on .catalog-compare-bar { display: none !important; }

.phone-stay {
  position: fixed;
  inset: 0;
  z-index: 150;
  overflow: hidden;
  background: #e8eef0;
  color: #13302f;
  -webkit-tap-highlight-color: transparent;
}
/* No weight of its own (:where), so each button's own rule wins. */
:where(.phone-stay) button { font: inherit; color: inherit; }
.phone-stay :focus-visible { outline: 3px solid #75a6a0; outline-offset: 2px; }

/* Top: back, the search pill, Filters; then the quick chips. */
.phone-stay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  background: #fff;
  box-shadow: 0 1px 0 #dbe5ea;
}
.phone-stay-bar { display: flex; align-items: center; gap: 8px; }
.phone-stay-icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dbe5ea;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.phone-stay-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.phone-stay-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #0b6e69;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.phone-stay-pill {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(19, 48, 47, .14), 0 0 0 1px rgba(19, 48, 47, .06);
  text-align: center;
  cursor: pointer;
}
.phone-stay-pill b, .phone-stay-pill small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-stay-pill b { font-size: 14px; }
.phone-stay-pill small { color: #536b68; font-size: 12px; }
.phone-stay-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.phone-stay-chips::-webkit-scrollbar { display: none; }
.phone-stay-chip {
  flex: none;
  padding: 7px 12px;
  border: 1px solid #dbe5ea;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.phone-stay-chip[aria-pressed="true"] { border-color: #13958a; background: #e3f2ef; color: #0b6e69; }

/* The map: the page's results map, filling the space under the top. */
.phone-stay-map { position: absolute; left: 0; right: 0; bottom: 0; top: var(--phone-stay-top, 112px); }
.phone-stay-map .catalog-map-panel { position: absolute; inset: 0; margin: 0; }
.phone-stay-map :is(.zprm-frame, .zprm-locked) { height: 100%; min-height: 0; border: 0; border-radius: 0; }
.phone-stay-map .zprm-note { display: none; }
.phone-stay-map :is(.zprm-loading, .zprm-error) { margin: 18px 14px; }
.phone-stay-map .zprm-lock { top: 22px; transform: translateX(-50%); }
.phone-stay-area {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0b6e69 !important;
  box-shadow: 0 4px 16px rgba(19, 48, 47, .24);
  font-size: 13.5px !important;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

/* The pull-up list. */
.phone-stay-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 55%;
  z-index: 7;
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -6px 26px rgba(19, 48, 47, .14);
  transition: top .3s cubic-bezier(.2, .8, .2, 1);
}
.phone-stay-sheet.is-dragging { transition: none; }
.phone-stay-grab {
  flex: none;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px 16px 12px;
  text-align: center;
  touch-action: none;
  cursor: grab;
}
.phone-stay-handle { width: 40px; height: 5px; margin-bottom: 7px; border-radius: 99px; background: #c9d3d6; }
.phone-stay-grab strong { font-size: 15px; }
.phone-stay-grab small { color: #536b68; font-size: 12px; line-height: 1.35; }
.phone-stay-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px max(12px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}
/* Two cards per row, as on All Listings today (mobile-property-feed.css styles the cards). */
.phone-stay-list .catalog-listing-grid { grid-auto-rows: max-content; margin: 0; }
.phone-stay-list .catalog-empty { grid-column: 1 / -1; }

/* A hotel: one card for its rooms. */
.phone-stay-rooms { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #13302f; font-size: 11px; font-weight: 800; }
.phone-stay-hotel .catalog-left-badge { top: 8px; bottom: auto; }

/* The card over the map after tapping a price tag. */
.phone-stay-preview {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 8;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(19, 48, 47, .3);
}
.phone-stay-pv { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.phone-stay-pv-photo { display: block; width: 112px; height: 100%; min-height: 150px; padding: 0; border: 0; background: #dfe8ea; cursor: pointer; }
.phone-stay-pv-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-stay-pv-body { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 10px 12px 12px; }
.phone-stay-pv-kind { padding-right: 28px; color: #536b68; font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-stay-pv-title { padding: 0 24px 0 0; border: 0; background: none; color: #13302f; font-size: 14.5px !important; font-weight: 800; line-height: 1.25; text-align: left; cursor: pointer; }
.phone-stay-pv-price { margin: 3px 0 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.phone-stay-pv-price b { text-decoration: underline; text-underline-offset: 2px; }
.phone-stay-pv-price span { color: #536b68; }
.phone-stay-pv-left { margin: 2px 0 0; color: #0b6e69; font-size: 12px; font-weight: 800; }
.phone-stay-pv-actions { display: flex; gap: 8px; margin-top: 8px; }
.phone-stay-btn {
  flex: 1;
  min-height: 38px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  font-size: 13.5px !important;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.phone-stay-btn.is-primary { background: linear-gradient(135deg, #17a092 0%, #13958a 46%, #0b6e69 100%); color: #fff !important; }
.phone-stay-btn.is-soft { background: #e3f2ef; color: #0b6e69 !important; }
.phone-stay-pv-x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
  font-size: 15px;
  cursor: pointer;
}

/* Map and Compare at the bottom. */
.phone-stay-float {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 9;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.phone-stay-float.is-peek .phone-stay-compare { display: none !important; }
.phone-stay-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #13302f;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(11, 59, 58, .32);
  font-size: 14px !important;
  font-weight: 800;
  pointer-events: auto;
  cursor: pointer;
}
.phone-stay-float-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.phone-stay-compare { background: #fff; color: #0b6e69 !important; box-shadow: 0 8px 22px rgba(11, 59, 58, .22), inset 0 0 0 1.5px #13958a; }

/* Filters: the page's own panel as a full sheet. */
.phone-stay .catalog-filters.phone-stay-filters {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: block !important;
  overflow-y: auto;
  margin: 0;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  background: #fff;
}
.phone-stay .phone-stay-filters .catalog-filters-done { display: flex !important; justify-content: center; margin-top: 10px; }

/* Change your search. */
.phone-stay-edit {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  background: #f3f7f8;
}
.phone-stay-edit-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.phone-stay-edit-head b { font-size: 16px; }
.phone-stay-edit-body { flex: 1; min-height: 0; display: grid; align-content: start; gap: 10px; overflow-y: auto; padding: 4px 14px 14px; }
.phone-stay-panel { display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 4px 18px rgba(19, 48, 47, .08); }
.phone-stay-panel h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.phone-stay-where { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #c9d6da; border-radius: 14px; }
.phone-stay-where svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.phone-stay-where input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; }
.phone-stay-sub { color: #536b68; font-size: 12.5px; font-weight: 700; }
.phone-stay-places { display: grid; gap: 2px; }
.phone-stay-place { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.phone-stay-place::before { content: '📍'; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e3f2ef; font-size: 18px; }
.phone-stay-place b { display: block; font-size: 14.5px; }
.phone-stay-place small { color: #536b68; font-size: 12.5px; }
.phone-stay-place[aria-pressed="true"] b { color: #0b6e69; }
.phone-stay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(19, 48, 47, .06);
  cursor: pointer;
}
.phone-stay-row span { color: #536b68; font-size: 14px; }
.phone-stay-row b { font-size: 14px; }
.phone-stay-edit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #dbe5ea;
  background: #fff;
}
.phone-stay-link { padding: 6px 2px; border: 0; background: none; font-weight: 800; text-decoration: underline; cursor: pointer; }
.phone-stay-search { min-width: 132px; justify-content: center; }

/* The date and guest cards open over this layout, held to the bottom of the screen so a short
   phone never cuts them off (this layout does not scroll). */
body.phone-stay-on .zpdr-card {
  position: fixed;
  top: auto !important;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 1300;
  max-height: calc(100% - 16px);
  overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) { .phone-stay-sheet { transition: none; } }

/* Every category is map first (docs/map-first.md): the Category picker is the first chip. */
.phone-stay-chip.phone-stay-category { appearance: none; -webkit-appearance: none; padding-right: 28px; border-color: #13302f; background: #13302f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 14px; color: #fff; font: inherit; font-size: 13px; font-weight: 800; }
.phone-stay-chip.phone-stay-category:focus-visible { outline: 3px solid #75a6a0; outline-offset: 2px; }
