/* ============================================================
   Shared components: icons, buttons, chips, form fields, segmented
   control, header, footer, listing card, skeleton, state panels.
   Used by both index.html and properties.html.
   ============================================================ */

/* ---- icon (sprite: /assets/icons.svg) ----------------------------- */
.ico {
  width: 1.25em; height: 1.25em; flex: none;
  stroke: currentColor; stroke-width: 1.7; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5);
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-weight: 700; font-size: var(--fs-sm); line-height: 1; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), transform .1s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.btn--sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-xs); }
.btn--primary { background: var(--turquoise-ink); color: var(--white); }
.btn--primary:hover { background: var(--ocean-deep); }
.btn--secondary { background: var(--white); color: var(--ocean-deep); border-color: var(--hairline-strong); }
.btn--secondary:hover { border-color: var(--ocean); color: var(--ocean); }
.btn--onDark { background: var(--white); color: var(--ocean-deep); }
.btn--onDark:hover { background: var(--seafoam); }
.btn--ghostDark { background: transparent; color: var(--on-dark); border-color: var(--on-dark-line); }
.btn--ghostDark:hover { border-color: var(--on-dark); }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .btn__label { opacity: .7; }

.spinner {
  width: 1.1em; height: 1.1em; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.textLink {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-weight: 700; font-size: var(--fs-sm); color: var(--ocean);
}
.textLink .ico { width: 1em; height: 1em; stroke-width: 2.2; transition: transform var(--dur-fast) var(--ease); }
.textLink:hover .ico { transform: translateX(3px); }

/* ---- chips -------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: var(--fs-xs); font-weight: 700; line-height: 1; white-space: nowrap;
}
.chip--rent { color: var(--rental-ink); background: var(--rental-bg); border-color: var(--rental); }
.chip--sale { color: var(--sale-ink); background: var(--sale-bg); border-color: var(--sale); }

.dot { width: 8px; height: 8px; border-radius: var(--r-pill); flex: none; }
.dot--rent { background: var(--rental); }
.dot--sale { background: var(--sale); }

/* ---- form fields (hero search + filter bar) ----------------------- */
/* Town suggestions come from a <datalist>; Chromium draws a dropdown chevron
   on any input with `list`. The suggestions still open as you type. */
input[list]::-webkit-calendar-picker-indicator { display: none !important; }

/* boxed field (filter bar) — matches the app's premiumFieldDecoration */
.boxField {
  height: 44px; padding: 0 var(--sp-3); min-width: 0;
  border: 1.5px solid var(--hairline-strong); border-radius: var(--r-md);
  background: var(--white); font-size: var(--fs-sm); color: var(--charcoal);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.boxField:hover { border-color: var(--slate); }
.boxField:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px var(--focus-halo); }
select.boxField {
  appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--white) no-repeat right 12px center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6B6E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.boxField:disabled { color: var(--slate); background-color: var(--seafoam-tint); }

/* labelled field (tour form, auth pages): label above a full-width .boxField,
   red * when required, error line under it (aria-describedby). */
.formField { display: grid; gap: 6px; }
.formField label { font-size: var(--fs-sm); font-weight: 700; color: var(--charcoal); }
.formField__req { color: var(--negative-ink); }
.formField__opt { font-weight: 400; color: var(--slate); }
.formField .boxField { width: 100%; }
.formField textarea.boxField { height: auto; min-height: 88px; padding: var(--sp-3); resize: vertical; font-family: inherit; line-height: var(--lh-body); }
.formField .boxField[aria-invalid="true"] { border-color: var(--negative-ink); }
.formField__error, .phoneField__note { font-size: var(--fs-xs); color: var(--negative-ink); }
.phoneField__note { margin: 0; } /* under .phoneField when the number isn't whole for its country */

/* ---- segmented control (Buy / Rent, All / Rent / Sale) ------------- */
.segmented {
  display: inline-flex; padding: 4px; gap: 2px; margin: 0; min-inline-size: 0;
  background: var(--seafoam-tint); border: 1px solid var(--hairline); border-radius: var(--r-pill);
}
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented__opt span {
  display: block; padding: 8px 18px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 700; color: var(--slate); white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.segmented__opt:hover span { color: var(--ocean-deep); }
.segmented__opt input:checked + span { background: var(--white); color: var(--ocean-deep); box-shadow: var(--shadow-soft); }
.segmented__opt input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 1px; }

/* ============================================================ HEADER */
.siteHeader {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-glass);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--hairline);
  view-transition-name: site-header;
}
.siteHeader__row { display: flex; align-items: center; gap: var(--sp-5); height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: var(--sp-2); flex: none;
  font-weight: 700; font-size: 1.3125rem; letter-spacing: -.01em; color: var(--ocean-deep);
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; color: var(--turquoise); stroke-width: 2; }

.siteNav { display: flex; align-items: center; gap: var(--sp-5); flex: 1; min-width: 0; }
.siteNav__links { display: flex; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.siteNav__links a {
  display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700; color: var(--charcoal);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.siteNav__links a:hover { color: var(--ocean); background: var(--seafoam-tint); text-decoration: none; }
.siteNav__links a[aria-current="page"] { color: var(--ocean); }
.siteNav__auth { display: flex; align-items: center; gap: var(--sp-2); }

/* Language menu: a <details> disclosure, so it opens without JS;
   site-header.js closes it on outside click and Escape. */
.langMenu { position: relative; margin-left: auto; }
.langMenu summary {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700; color: var(--charcoal);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.langMenu summary::-webkit-details-marker { display: none; }
.langMenu summary:hover, .langMenu[open] summary { color: var(--ocean); background: var(--seafoam-tint); }
.langMenu summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.langMenu .ico { width: 18px; height: 18px; stroke-width: 1.8; }
.langMenu__chev { width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--dur-fast) var(--ease); }
.langMenu[open] .langMenu__chev { transform: rotate(-90deg); }
.langMenu__list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 196px;
  margin: 0; padding: var(--sp-2); list-style: none;
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-lift);
  animation: navIn var(--dur-med) var(--ease);
}
.langMenu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700; color: var(--charcoal);
}
.langMenu__list a:hover { background: var(--seafoam-tint); color: var(--ocean); text-decoration: none; }
.langMenu__list small { font-size: var(--fs-xs); font-weight: 400; color: var(--slate); }
.langMenu__list a[aria-current="true"] { color: var(--ocean-deep); }
.langMenu__list a[aria-current="true"]::after {
  content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--turquoise); flex: none;
}

.menuToggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; place-items: center;
  border: 1.5px solid var(--hairline-strong); border-radius: var(--r-sm);
  background: var(--white); color: var(--ocean-deep);
}
.menuToggle .ico { width: 22px; height: 22px; stroke-width: 2; }
.menuToggle .ico--close { display: none; }
.menuToggle[aria-expanded="true"] .ico--open { display: none; }
.menuToggle[aria-expanded="true"] .ico--close { display: block; }

@media (max-width: 860px) {
  .menuToggle { display: grid; }
  .siteNav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--sp-4);
    padding: var(--sp-4) var(--gutter) var(--sp-5);
    background: var(--white); border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-med);
  }
  .js .siteNav { display: none; }
  .js .siteNav.is-open { display: flex; animation: navIn var(--dur-med) var(--ease); }
  .siteNav__links { flex-direction: column; }
  .siteNav__links a { padding: var(--sp-3); font-size: var(--fs-md); }
  .siteNav__auth { padding-top: var(--sp-4); border-top: 1px solid var(--hairline); }
  .langMenu { margin-left: 0; }
  .langMenu__list { position: static; box-shadow: none; border: 1px solid var(--hairline); margin-top: var(--sp-2); }
  .siteNav__auth .btn { flex: 1; }

  /* without JavaScript the toggle can't work: show the nav in flow instead */
  html:not(.js) .menuToggle { display: none; }
  html:not(.js) .siteHeader__row { flex-wrap: wrap; height: auto; min-height: var(--header-h); }
  html:not(.js) .siteNav { position: static; flex-basis: 100%; box-shadow: none; border-bottom: 0; padding-inline: 0; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } }

/* ============================================================ LISTING CARD */
.listingGrid {
  display: grid; gap: var(--sp-6) var(--sp-5); align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

/* Design canvas "Listing Details" › Card view (ListingCard). The app's
   listing-form preview draws the same card: lib/widgets/listing_card/. */
.lcard {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: var(--shadow-soft); color: var(--charcoal);
  transition: translate var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease);
}
/* hover: the homepage pin card's treatment. Lifts, turquoise border, soft ring */
.lcard:has(a, .lcard__open, .ccard__row):hover {
  translate: 0 -4px; border-color: var(--turquoise);
  box-shadow: var(--shadow-lift), 0 0 0 3px var(--rental-bg);
}
@media (prefers-reduced-motion: reduce) { .lcard:hover { translate: none; } }

.lcard__media { position: relative; flex: none; height: 220px; overflow: hidden; background: var(--seafoam); }
.lcard__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), opacity var(--dur-med) var(--ease);
}
.lcard__media img[data-loading] { opacity: 0; }
.lcard__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
  color: var(--slate);
}
.lcard__ph .ico { width: 52px; height: 52px; color: var(--turquoise); opacity: .45; }
.lcard__ph span { font-size: var(--fs-ui); font-weight: 600; }

/* chips on the photo */
.lcard__mode {
  position: absolute; left: var(--sp-3); bottom: var(--sp-3);
  display: flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.lcard__mode--rent { background: var(--rental-bg); color: var(--rental-ink); }
.lcard__mode--sale { background: var(--sale-bg); color: var(--sale-ink); }
.lcard__company {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3); max-width: 58%; min-width: 0; box-sizing: border-box;
  display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--r-pill);
  background: var(--ocean-deep); color: var(--white); box-shadow: var(--shadow-chip-sm);
  font-size: var(--fs-2xs); font-weight: 600; line-height: 1;
}
.lcard__company .ico { width: 13px; height: 13px; stroke-width: 2.2; }
/* A company's logo in place of the company icon (listing-card.js companyMark):
   on white, so a dark or transparent logo still reads on the navy chips. */
.companyLogo { display: block; flex: none; box-sizing: border-box; object-fit: contain; background: var(--white); }
.lcard__company .companyLogo { width: 18px; height: 18px; margin-left: -3px; border-radius: 50%; }
.lcard__company span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard__topChip, .lcard__manageChip {
  position: absolute; left: var(--sp-3); top: var(--sp-3); z-index: 2;
  display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-chip); font-size: var(--fs-xs); font-weight: 600; line-height: 1; white-space: nowrap;
}
.lcard__topChip { background: var(--white); color: var(--ocean-deep); }
.lcard__topChip:has(.ico) { padding-left: 10px; }
.lcard__topChip .ico { width: 15px; height: 15px; stroke-width: 2; }
.lcard__manageChip { padding-left: 10px; background: var(--rental-ink); color: var(--white); box-shadow: var(--shadow-chip-sm); }
.lcard__manageChip .ico { width: 14px; height: 14px; stroke-width: 2.2; }
.lcard--managed .lcard__topChip { display: none; }
.lcard__heart {
  position: absolute; right: var(--sp-3); top: var(--sp-3); z-index: 2; /* above the stretched title link */
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: var(--r-pill); background: var(--white); color: var(--ocean);
  box-shadow: var(--shadow-chip); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lcard__heart .ico { width: 18px; height: 18px; stroke-width: 2; }
.lcard__heart:hover { transform: scale(1.08); }
.lcard__heart[aria-pressed="true"] .ico { fill: currentColor; }
.lcard__heart:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.lcard--managed .lcard__heart { display: none; }

/* body */
.lcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 16px; }
.lcard--complex .lcard__body { padding-bottom: 18px; }
.lcard__title {
  margin: 0; font-size: var(--fs-card-title); font-weight: 600; line-height: var(--lh-snug); color: var(--ocean-deep);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}
.lcard__title a { color: inherit; }
.lcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }  /* whole card clickable */
.lcard__address { display: none; } /* the map carousel's one-line address (properties.css) */
.lcard__place { margin: 0; font-size: var(--fs-ui); color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard__specs {
  display: flex; flex-wrap: nowrap; gap: 14px; margin: 0; padding: 0; list-style: none; overflow: hidden;
  font-size: var(--fs-ui); color: var(--charcoal);
}
.lcard__specs li { flex: none; display: inline-flex; align-items: center; gap: 5px; }
.lcard__specs .ico { width: 16px; height: 16px; stroke-width: 1.8; color: var(--slate); }
.lcard__specs b { font-weight: 600; }
.lcard__specShort { display: none; } /* the map carousel's icons-only facts (properties.css) */

.lcard__priceRow {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2);
  margin-top: 6px; padding-top: var(--sp-3); border-top: 1px solid var(--hairline);
}
.lcard__price {
  margin: 0; min-width: 0; font-size: var(--fs-lg); font-weight: 600; line-height: var(--lh-snug);
  color: var(--turquoise-ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lcard__price small { font-size: var(--fs-xs); font-weight: 400; color: var(--slate); }
.lcard__price--none { font-size: var(--fs-sm); color: var(--slate); }
.lcard__extra { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.lcard__extra .ico { width: 14px; height: 14px; stroke-width: 2; }
.lcard__extra--moveIn { color: var(--rental-ink); }
.lcard__extra--perM2 { color: var(--sale-ink); }
.lcard__note {
  display: flex; align-items: center; gap: var(--sp-2); margin: 4px 0 0; padding: 10px var(--sp-3);
  border-radius: var(--r-md); background: var(--seafoam-tint); font-size: var(--fs-xs); color: var(--slate);
}
.lcard__note .ico { width: 16px; height: 16px; stroke-width: 1.8; color: var(--ocean); }

/* you manage it: the way into the app */
.lcard__manage {
  display: flex; flex-direction: column; gap: 10px; margin-top: var(--sp-2); padding: var(--sp-3);
  border-radius: 14px; background: var(--seafoam-tint);
}
.lcard__manageLink {
  position: relative; z-index: 2; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-ui); font-weight: 600; color: var(--ocean);
}
.lcard__manageLink .ico { width: 15px; height: 15px; stroke-width: 2; transition: transform var(--dur-fast) var(--ease); }
.lcard__manageLink:hover { color: var(--ocean-deep); text-decoration: none; }
.lcard__manageLink:hover .ico { transform: translateX(3px); }

/* opens the detail card in place: a real button stretched over the card */
.lcard__open {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: inherit;
  font: inherit; color: inherit; line-height: inherit; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lcard__open::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }

.lcard:has(a, .lcard__open, .ccard__row):hover .lcard__media img { transform: scale(1.04); }
.lcard:not(.lcard--complex):has(a, .lcard__open):hover :is(.lcard__title a, .lcard__open) { text-decoration: underline; text-underline-offset: 3px; }
.lcard:not(.lcard--complex):has(a, .lcard__open):hover .lcard__title { color: var(--ocean); }
.lcard:has(.lcard__title a:focus-visible, .lcard__open:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
:is(.lcard__title a, .lcard__open):focus-visible { outline: none; }

/* apartment complex: two or more matching units as one card */
.ccard__units { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); }
.ccard__count { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--charcoal); }
.ccard__rows { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ccard__row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px 10px var(--sp-3);
  border: 1px solid transparent; border-radius: var(--r-md); background: var(--seafoam-tint);
  font: inherit; color: var(--charcoal); text-align: left; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.ccard__row:hover { border-color: var(--hairline-strong); background: var(--white); }
.ccard__row:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.ccard__row > .ico { width: 16px; height: 16px; stroke-width: 2; color: var(--slate); }
.ccard__rowMain { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ccard__rowTitle { font-size: var(--fs-ui); font-weight: 600; color: var(--ocean-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard__rowFacts { font-size: var(--fs-2xs); color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard__rowPrice { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ccard__rowAmount { font-size: var(--fs-ui); font-weight: 600; color: var(--turquoise-ink); font-variant-numeric: tabular-nums; }
.ccard__rowAmount small { font-size: inherit; font-weight: 400; color: var(--slate); }
.ccard__rowExtra { font-size: var(--fs-2xs); font-weight: 600; }
.ccard__rowExtra--moveIn { color: var(--rental-ink); }
.ccard__rowExtra--perM2 { color: var(--sale-ink); }
.ccard__link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-ui); font-weight: 600; color: var(--ocean);
}
.ccard__link .ico { width: 15px; height: 15px; stroke-width: 2; transition: transform var(--dur-fast) var(--ease); }
.ccard__link:hover { color: var(--ocean-deep); text-decoration: none; }
.ccard__link:hover .ico { transform: translateX(3px); }
/* the name underlines over the photo and header, not over the unit rows */
.lcard--complex:not(:has(.ccard__units:hover, .lcard__heart:hover)):hover .lcard__open { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .ccard__row, .ccard__link { min-height: 44px; }
}

/* ---- skeleton ----------------------------------------------------- */
.skel {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--shimmer-base) 0%, var(--shimmer-highlight) 50%, var(--shimmer-base) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
.skel--media { flex: 1 1 0; min-height: 0; border-radius: var(--r-photo); }
.lcard .skel--media { flex: none; height: 220px; border-radius: 0; } /* flush inside the framed card, like the photo */
.lcard--skeleton .lcard__body { gap: 10px; }
.skel--line { height: 14px; }
.skel--price { height: 20px; width: 46%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---- state panel (empty / error) ---------------------------------- */
.statePanel {
  grid-column: 1 / -1;
  display: grid; justify-items: center; gap: var(--sp-3); text-align: center;
  padding: var(--sp-8) var(--sp-5);
  border: 1.5px dashed var(--hairline-strong); border-radius: var(--r-lg); background: var(--seafoam-tint);
}
.statePanel__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--sp-1);
  border-radius: var(--r-pill); background: var(--white); color: var(--ocean); box-shadow: var(--shadow-soft);
}
.statePanel__icon .ico { width: 26px; height: 26px; }
.statePanel--error .statePanel__icon { color: var(--negative-ink); background: var(--negative-bg); }
.statePanel h3 { font-size: var(--fs-lg); color: var(--charcoal); }
.statePanel p { font-size: var(--fs-sm); color: var(--slate); max-width: 44ch; }
.statePanel .btn { margin-top: var(--sp-2); }

/* ============================================================ FOOTER */
.siteFooter { background: var(--seafoam-tint); border-top: 1px solid var(--hairline); padding-block: var(--sp-8) var(--sp-6); }
.siteFooter__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); }
.siteFooter__about p { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--slate); max-width: 34ch; }
.siteFooter__col h2 { font-size: var(--fs-sm); color: var(--ocean-deep); margin-bottom: var(--sp-3); }
.siteFooter__col ul { display: grid; gap: var(--sp-2); }
.siteFooter__col a { font-size: var(--fs-sm); color: var(--slate); }
.siteFooter__col a:hover { color: var(--ocean); }
.siteFooter__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--hairline-strong);
  display: grid; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--stone); line-height: 1.7;
}
.siteFooter__bottom a { color: var(--stone); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .siteFooter__top { grid-template-columns: repeat(2, 1fr); }
  .siteFooter__about { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .siteFooter__top { grid-template-columns: 1fr; }
}

/* ---- phone field: country code + national number (listing contact / tour forms, signup) ----
   One box with a field's states and timing: a seafoam-tinted code segment fused with
   the number. Sized like the listing detail's fields; auth.css matches its own. */
.phoneField {
  display: flex; align-items: stretch; height: 46px; overflow: hidden;
  border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--white);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.phoneField:hover { border-color: var(--slate); }
.phoneField:focus-within { border-color: var(--ocean); box-shadow: 0 0 0 4px var(--focus-halo); }
.phoneField__codeWrap {
  position: relative; display: flex; flex: none;
  background: var(--seafoam-tint); border-right: 1px solid var(--hairline);
  transition: background-color var(--dur-fast) var(--ease);
}
.phoneField__codeWrap:hover, .phoneField__codeWrap:focus-within { background: var(--seafoam); }
.phoneField__code {
  appearance: none; -webkit-appearance: none; height: 100%; padding: 0 30px 0 12px; border: 0; background: transparent;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ocean-deep); font-variant-numeric: tabular-nums; cursor: pointer;
}
.phoneField__code:focus { outline: none; }
.phoneField__chev {
  position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  color: var(--slate); stroke-width: 2.2; pointer-events: none; transition: color var(--dur-fast) var(--ease);
}
.phoneField__codeWrap:hover .phoneField__chev, .phoneField__codeWrap:focus-within .phoneField__chev { color: var(--ocean); }
.phoneField__input {
  flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; background: transparent;
  font: inherit; font-size: var(--fs-sm); color: var(--charcoal); font-variant-numeric: tabular-nums;
}
.phoneField__input:focus { outline: none; }
.phoneField:has([aria-invalid="true"]) { border-color: var(--negative-ink); }
.phoneField:has([aria-invalid="true"]):focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--negative-ink) 16%, transparent); }
/* disabled (the auth forms ship disabled until their script runs) */
.phoneField:has(:disabled) { border-color: var(--hairline-strong); background: var(--seafoam-tint); }
.phoneField:has(:disabled) .phoneField__codeWrap { background: transparent; }
.phoneField__code:disabled, .phoneField__input:disabled { color: var(--slate); cursor: not-allowed; }

/* ---- country picker (components/phone-picker.js): the <select> above stays as the
   form value + no-JS fallback; once enhanced a button (flag, "+52", chevron) covers it
   and opens .phonePick — a popover under the field, a bottom sheet at ≤600px. ---- */
.flag {
  position: relative; display: inline-block; flex: none; width: 24px; height: 24px;
  border-radius: 50%; overflow: hidden;
}
.flag svg { display: block; width: 100%; height: 100%; }
.flag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

.phoneField__codeWrap[data-picker] .phoneField__code {
  position: absolute; inset: 0; width: 100%; opacity: 0; pointer-events: none;
}
.phoneField__pick {
  display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 8px 0 12px;
  border: 0; background: transparent; font: inherit; font-size: var(--fs-sm); font-weight: 600;
  color: var(--ocean-deep); font-variant-numeric: tabular-nums; cursor: pointer;
}
.phoneField__pick:focus { outline: none; }
.phoneField__pick .flag { width: 20px; height: 20px; }
.phoneField__flag { display: inline-flex; }
.phoneField__pick .phoneField__chev {
  position: static; margin: 0; width: 16px; height: 16px;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.phoneField[data-open] { border-color: var(--ocean); box-shadow: 0 0 0 4px var(--focus-halo); }
.phoneField[data-open] .phoneField__codeWrap { background: var(--seafoam); }
.phoneField[data-open] .phoneField__chev { transform: rotate(180deg); color: var(--ocean); }
.phoneField__pick:disabled { color: var(--slate); cursor: not-allowed; }
.phoneField__pick:disabled .flag { opacity: .5; }

.phonePick {
  margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background: var(--white); color: var(--charcoal); box-shadow: var(--shadow-lift);
  position: fixed; inset: auto; left: var(--pp-x, 16px); top: var(--pp-y, 16px); width: var(--pp-w, 320px);
  max-height: min(460px, calc(100dvh - 32px)); overflow: hidden;
}
.phonePick:popover-open { display: flex; flex-direction: column; animation: phonePickIn var(--dur-fast) var(--ease); }
@keyframes phonePickIn { from { opacity: 0; transform: translateY(-4px); } }
.phonePick::backdrop { background: transparent; }
.phonePick__head { display: none; }
.phonePick__searchWrap { position: relative; flex: none; padding: var(--sp-3) var(--sp-3) var(--sp-2); }
.phonePick__searchIco {
  position: absolute; left: calc(var(--sp-3) + 14px); top: 50%; margin-top: calc(var(--sp-1) / 2 - 9px);
  width: 18px; height: 18px; color: var(--slate); pointer-events: none;
}
.phonePick__search {
  width: 100%; height: 42px; padding: 0 var(--sp-4) 0 42px;
  border: 1.5px solid var(--hairline-strong); border-radius: var(--r-pill); background: var(--white);
  font: inherit; font-size: var(--fs-sm); color: var(--charcoal); appearance: none; -webkit-appearance: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.phonePick__search::placeholder { color: var(--slate); }
.phonePick__search::-webkit-search-cancel-button { cursor: pointer; }
.phonePick__search:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px var(--focus-halo); }
.phonePick__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 0 var(--sp-2); list-style: none; }
.phonePick__opt {
  display: flex; align-items: center; gap: var(--sp-3); min-height: 52px; padding: 0 var(--sp-4);
  cursor: pointer; position: relative;
}
.phonePick__opt + .phonePick__opt::before {
  content: ""; position: absolute; top: 0; left: var(--sp-4); right: var(--sp-4); border-top: 1px solid var(--hairline);
}
.phonePick__opt[data-active] { background: var(--seafoam-tint); }
.phonePick__opt[data-active]::before, .phonePick__opt[data-active] + .phonePick__opt::before { border-color: transparent; }
.phonePick__opt .flag { width: 28px; height: 28px; }
.phonePick__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: 500; }
.phonePick__opt[aria-selected="true"] .phonePick__name { font-weight: 600; color: var(--ocean-deep); }
.phonePick__code { margin-left: var(--sp-2); font-weight: 400; color: var(--slate); font-variant-numeric: tabular-nums; }
.phonePick__mark {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--hairline-strong); color: var(--white);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.phonePick__opt[aria-selected="true"] .phonePick__mark { background: var(--turquoise); border-color: var(--turquoise); }
.phonePick__mark .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.phonePick__empty { margin: 0; padding: var(--sp-5) var(--sp-4); text-align: center; font-size: var(--fs-sm); color: var(--slate); }

@media (max-width: 600px) {
  .phonePick {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-width: none; height: 88dvh; max-height: 88dvh;
    border: 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-dialog);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .phonePick:popover-open { animation: phonePickUp var(--dur-med) var(--ease); }
  @keyframes phonePickUp { from { transform: translateY(100%); } }
  .phonePick::backdrop { background: rgba(23, 61, 95, .32); }
  .phonePick__head {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: var(--sp-5) var(--sp-3) 0 var(--sp-5);
  }
  .phonePick__title { margin: 0; font-size: var(--fs-lg); font-weight: 600; color: var(--ocean-deep); }
  .phonePick__cancel {
    min-height: 44px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-sm); background: transparent;
    font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--turquoise-ink); cursor: pointer;
  }
  .phonePick__searchWrap { padding: var(--sp-4) var(--sp-4) var(--sp-2); }
  .phonePick__searchIco { left: calc(var(--sp-4) + 14px); margin-top: calc(var(--sp-2) / 2 - 9px); }
  .phonePick__search { height: 48px; font-size: 16px; } /* 16px+: no zoom-on-focus in iOS Safari */
  .phonePick__opt { min-height: 60px; }
  .phonePick__name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .phonePick:popover-open { animation: none; }
}
