/* The Opportunities pages (src/pages/opportunities.js): the list (the type bar, one stall per offer, a
   compact comparison; the controls, the picker and the map as the list grows) and each offer's own page (pictures, at a glance, the
   price against asking prices, facts, what to ask, the listing in detail folded, the total cost, three
   checks, the share link). Each offer's page links this file through its own
   one-line stylesheet. Shared parts come from parts.css; the map's own styles (.pmap) from
   drawing.css. Tokens only, no typed colours. */

/* ---------- controls: big enough to hit with a thumb, and to read */
.lots__table .chip, .unit-filters .chip, .nagi-table .chip { font-size: 1rem; padding: 0.5rem 1.05rem; min-height: 2.75rem; }
.chip__n { font-weight: 400; }

/* ---------- the map (drawn by ../map/map.js; without JavaScript, its still picture) */
.opp-map { margin-bottom: 2.4rem; }
.opp-map__still { display: block; width: 100%; height: auto; }

/* ---------- an offer's draft badge (the head of its page) */
.opp-card__badge { margin: 0.55rem 0 0.4rem; }
.opp-card__badge .badge { font-size: 0.95rem; white-space: normal; }

.suits { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.45rem; margin: 0.4rem 0 1rem; font-size: 0.92rem; }
.suits__label { color: var(--ink-soft); font-weight: 600; }
/* the dot ends a tag, so a wrapped line never starts with one ("Tener una segunda casa" wraps on a phone) */
.suits__tag:not(:last-child)::after { content: "·"; display: inline-block; margin-left: 0.45rem; color: var(--ink-soft); }
.opp-soon { font-weight: 650; }
.opp-more { font-size: 1rem; }
.opp-more .opp-soon { color: var(--paper); }

/* ---------- an offer's page */
.opp-detail { padding-bottom: 2.5rem; }
.opp__facts { max-width: 52rem; }
.opp__facts dd { overflow-wrap: anywhere; }
.fact-note { display: block; margin-top: 0.25rem; font-size: 0.95rem; color: var(--ink-soft); }
.opp__maps { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; margin-top: 1rem; }
.opp__maplink { font-weight: 650; }
.opp__mapnote { font-size: 0.92rem; color: var(--ink-soft); }
.opp__where { scroll-margin-top: 5rem; }
.opp__pinfrom { margin-top: 0.4rem; font-size: 0.92rem; color: var(--ink-soft); max-width: 46rem; }
.opp__pin { margin-top: 1rem; font-weight: 600; color: var(--coral-deep); }

.opp-ask__list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem 0.8rem; }
.opp-ask__list .btn { white-space: normal; text-align: left; }
.opp-ask__main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 0.8rem; }

/* ---------- every lot or apartment and its price: a section of its own after "at a glance", and the link to it
   at the top of the page (a touch area of 44 px, taken back by the margin) */
.opp-prices-link { margin: 0.2rem 0 0.8rem; font-weight: 650; }
.opp-prices-link a { display: inline-block; padding-block: 0.65rem; margin-block: -0.65rem; }
.opp-prices { padding-top: clamp(1.6rem, 4vw, 2.6rem); scroll-margin-top: calc(var(--header-h, 4.5rem) + 0.5rem); }
.opp-prices:focus { outline: none; }
.opp-prices .section__title { margin-bottom: 0.6rem; }

.learn__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 52rem; }
.learn__check { padding: 0.9rem 1rem 1rem; background: var(--card); border-left: 4px solid var(--gold); border-radius: 2px 10px 4px 12px; }
.learn__said { display: block; }
.learn__more { display: inline-block; margin-top: 0.4rem; font-weight: 650; }

.opp-papers__request { margin: 0.8rem 0 1.2rem; padding: 0.9rem 1.1rem; max-width: 46rem; background: var(--card); border: 2px dashed var(--ink-soft); border-radius: 10px 4px 12px 5px; font-style: italic; }

/* the listing in detail, folded */
.opp-fold { border: 2px solid var(--ink); border-radius: 8px 4px 10px 5px; background: var(--card); }
.opp-fold__summary {
  cursor: pointer; padding: 1rem 1.2rem; min-height: 2.75rem; font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}
.opp-fold[open] .opp-fold__summary { border-bottom: 1.5px dashed var(--rule); }
/* the same "+ Open" / "− Close" mark as the folds of "Avoid scams" (scams.css), not the browser's ▶ */
.opp-fold__summary {
  list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.8rem 1.4rem;
}
.opp-fold__summary::-webkit-details-marker { display: none; }
.opp-fold__summary::marker { content: ""; }
.opp-fold__summary:hover { background: color-mix(in srgb, var(--gold-light) 18%, transparent); }
.opp-fold__summary:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.opp-fold__title { min-width: 0; }
.opp-fold__mark { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-body, inherit); font-size: 1rem; font-weight: 650; color: var(--ink); }
.opp-fold__sign {
  position: relative; flex: none; width: 2.8rem; height: 2.8rem;
  background: var(--gold); border: 2px solid var(--ink); border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  box-shadow: 2px 3px 0 var(--ink);
}
.opp-fold__sign::before, .opp-fold__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1.15rem; height: 3px; border-radius: 2px;
  background: var(--ink); transform: translate(-50%, -50%);
}
.opp-fold__sign::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s ease; }
.opp-fold[open] .opp-fold__sign { background: var(--card); }
.opp-fold[open] .opp-fold__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.opp-fold__word--close, .opp-fold[open] .opp-fold__word--open { display: none; }
.opp-fold[open] .opp-fold__word--close { display: inline; }
.opp-fold__body { padding: 1.2rem 1.2rem 1.6rem; }
/* the share line sits below the "Ask Wander" band: it sends the page to someone else, not to Wander */
.opp-share-wrap { padding-block: 1.25rem 0; }
.opp-share { margin: 0; }
.opp-share__note { font-size: 0.95rem; color: var(--ink-soft); }

/* the write-up's own parts */
.listing__note { font-size: 0.98rem; color: var(--ink-soft); max-width: 46rem; margin-block: 0.8rem; }
.listing__lead { color: var(--ink-soft); max-width: 46rem; margin-bottom: 1.2rem; }
.listing .section__intro { margin-bottom: 1.6rem; }

/* ---------- the listing in detail (moved from Invest) */
.listing__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; margin-block: 2rem 1rem; align-items: start; }
.listing__sub { font-size: min(1.4rem, 6.4vw); margin-bottom: 0.9rem; }
.listing__sub--big { font-size: clamp(min(1.55rem, 7vw), 2.6vw, 2rem); margin-top: 3rem; }

.amenities { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; font-size: 1.05rem; }
.amenities li { position: relative; padding-left: 1.4rem; }
.amenities li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.55rem; height: 0.55rem; border: 2px solid var(--gold-deep); border-radius: 50% 40% 55% 45%; }

.price-line {
  max-width: 46rem; margin-bottom: 1.6rem; padding: 0.7rem 1rem; font-weight: 600;
  background: var(--card); border-left: 4px solid var(--gold); border-radius: 2px 10px 4px 12px;
}

/* the master plan beside the lot table */
.lots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 2.4rem; align-items: start; }
.plan {
  position: relative; margin: 0; padding: 0.55rem 0.55rem 0.8rem; background: var(--card);
  border: 2px solid var(--ink); border-radius: 6px 3px 7px 4px; box-shadow: 4px 5px 0 var(--rule);
}
.plan__img { display: block; width: 100%; height: auto; border-radius: 2px; }
.plan__caption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.lots__table .chips { margin-bottom: 0.8rem; }
/* a budget carried from the list, just above the count: pressed, with its × */
.lots__budget { margin-bottom: 0.5rem; font-size: 1rem; padding: 0.5rem 1.05rem; min-height: 2.75rem; background: var(--ink); color: var(--paper); }
.lots__budget[hidden] { display: none; }

/* no frame scrolls inside these pages (a wheel or a finger would be caught in it): a table is as tall as its rows;
   a long one shows its first rows and a button for the rest (the script, ROWS_FIRST) */
.table-wrap__scroll { max-height: none; }
.table-more { margin-top: 0.8rem; min-height: 2.75rem; }
.table-more[hidden] { display: none; }
/* the list's price or size carried to the table: a pressed chip that takes it away */
.arrived { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.5rem; }
.arrived[hidden] { display: none; }
.arrived__chip { min-height: 2.75rem; padding: 0.5rem 1.05rem; font-size: 1rem; background: var(--ink); color: var(--paper); }
.filter-status { min-height: 1.6em; color: var(--ink-soft); font-weight: 600; }
.area__m2 { font-size: 0.92em; color: var(--ink-soft); }
.table tbody tr[hidden] { display: none; }

/* sortable column headers */
.sort {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: max(44px, 2.75rem); padding: 0.2rem 0;
  font: inherit; font-size: max(16px, 1rem); font-weight: 650; color: var(--ink); background: none; border: 0; cursor: pointer;
  text-decoration: underline dotted var(--gold-deep); text-underline-offset: 0.25em;
}
.sort:hover { color: var(--gold-deep); }
.sort__icon::before { content: "\2195\FE0E"; font-family: var(--font-body); color: var(--ink-soft); }
th[aria-sort="ascending"] .sort__icon::before { content: "\25B2\FE0E"; color: var(--ink); font-size: 0.8em; }
th[aria-sort="descending"] .sort__icon::before { content: "\25BC\FE0E"; color: var(--ink); font-size: 0.8em; }
.lots-table thead th { padding-block: 0.4rem; }
/* a lot not for sale (Las Palmas' lot 19): in the table, said in its price cell, in no count */
.lots-table__sold th, .lots-table__sold td { color: var(--ink-soft); }
.lots-table__sold .unit-price { font-weight: 600; font-style: italic; }

/* the units' filters, three small groups */
.unit-filters { display: flex; flex-wrap: wrap; gap: 0.4rem 2.2rem; margin-bottom: 0.6rem; }
.unit-filters__label { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.35rem; }
.unit-filters .chips { margin-bottom: 0.6rem; }
.units-table__none td, .lots-table__none td { padding: 1.4rem 1rem; color: var(--ink-soft); }
.units-table__none .chip, .lots-table__none .chip { margin-left: 0.5rem; }
.unit-price { font-weight: 650; }

/* Amber Sand's payment stages, under the bar of the chart "When you pay": one row per stage, a swatch of its part's
   colour, the stage, its share and its amount (the page's script writes the amounts again for the unit chosen) */
.pay-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.3rem; max-width: 30rem; margin-inline: auto; }
.pay-list__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: baseline; gap: 0.2rem 0.6rem; padding-block: 0.25rem; border-bottom: 1.5px dashed var(--rule); font-size: 0.95rem; }
.pay-list__swatch { align-self: center; width: 0.95rem; height: 0.95rem; border: 1.5px solid var(--ink); border-radius: 3px 1px 3px 2px; }
.pay-list__swatch--a { background: var(--gold); }
.pay-list__swatch--b { background: var(--sea); }
.pay-list__swatch--d { background: var(--palm); }
.pay-list__swatch--c { background: var(--coral); }
.pay-list__share { font-weight: 700; }
.pay-list__amount { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-reserve { max-width: 30rem; margin: 0.7rem auto 0; font-size: 0.95rem; }
/* a narrow list (a 320 px phone, or larger text): the stage takes the row's whole width, its share and amount on the
   line under it; beside them the stage's column was so thin that "construcción" broke into "construcc" / "ión" */
.pay-list { container-type: inline-size; }
@container (max-width: 17rem) {
  .pay-list__row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "swatch stage stage" ". share amount"; }
  .pay-list__swatch { grid-area: swatch; }
  .pay-list__stage { grid-area: stage; }
  .pay-list__share { grid-area: share; }
  .pay-list__amount { grid-area: amount; }
}


/* questions for the owner: shown only in review mode (the shared .review-only) */
.owner-q {
  max-width: 46rem; margin-top: 2.4rem; padding: 1rem 1.2rem;
  background: var(--card); border: 2px dashed var(--coral-deep); border-radius: 10px 4px 12px 5px;
}
.owner-q__title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.owner-q__list { margin: 0; padding-left: 1.3em; display: grid; gap: 0.35rem; }


/* ---------- smaller screens */
@media (max-width: 62rem) {
  .listing__cols { grid-template-columns: minmax(0, 1fr); }
}
/* Las Palmas: the master plan above its lot table up to 1,215 px (beside it the table was wider than its half and
   its price column was cut), and the header's words may wrap */
@media (max-width: 76rem) {
  .lots { grid-template-columns: minmax(0, 1fr); }
}
.lots-table thead th { white-space: normal; }
@media (max-width: 48rem) {
  .opp-fold__body { padding: 1rem 0.8rem 1.4rem; }
  .lots-table .area__m2 { display: block; }
  .unit-filters { gap: 0 1.5rem; }
  .filter-status { min-height: 3.2em; }

}
/* tables shown as cards below 1,280 px (Amber Sand's table was wider than its frame in Spanish up to 1,249 px): on a tablet (900 to 1,100 px) the full table was wider than
   its box (words split inside cells, the last column cut off); it fits from 1,200 px. On a screen only: on paper every
   price table is one compact table, every row alike (the print rules below) */
@media screen and (max-width: 79.99rem) {
  /* the units: one card per row (the roles keep it a table for screen readers) */
  .table-wrap--cards .table-wrap__hint { display: none; }
  .table-wrap--cards table, .table-wrap--cards tbody, .table-wrap--cards caption { display: block; }
  /* the header row stays for screen readers but takes no room: a table row group ignores overflow,
     so the cells themselves are hidden too, and nothing can widen the page */
  .table-wrap--cards thead, .table-wrap--cards thead tr, .table-wrap--cards thead th {
    display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .table-wrap--cards tbody tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem 0.9rem;
    padding: 0.95rem 1rem 1.05rem; border-bottom: 1.5px dashed var(--rule);
  }
  .table-wrap--cards tbody tr[hidden] { display: none; }
  .table-wrap--cards tbody tr:last-child { border-bottom: 0; }
  .table-wrap--cards .table tbody th, .table-wrap--cards .table tbody td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  .table-wrap--cards td[data-label]::before {
    content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 650; color: var(--ink-soft);
  }
  /* the unit and its price on top, then its type, the three counts, the four areas, the price per
     interior area, the parking and the jacuzzi; each label above its figure (classes from the page) */
  .units-table tbody tr { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.45rem 0.6rem; }
  .units-table tbody td[data-label]::before { display: block; margin-right: 0; }
  .units-table tbody th.u-unit { grid-column: 1 / 4; order: -2; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
  .units-table tbody th.u-unit::before { content: attr(data-label) " "; font-family: var(--font-body); font-size: 0.85rem; font-weight: 650; color: var(--ink-soft); }
  .table-wrap--cards .units-table tbody .unit-price { grid-column: 4 / -1; order: -1; text-align: right; font-size: 1.15rem; line-height: 1.3; }
  .units-table tbody td.unit-price[data-label]::before { display: none; }
  .units-table tbody .u-type { grid-column: 1 / -1; }
  .units-table tbody .u-n, .units-table tbody .u-area { grid-column: span 2; }
  .units-table tbody .u-total, .units-table tbody .u-per, .units-table tbody .u-x { grid-column: span 3; }
  .units-table__none td { grid-column: 1 / -1; }
}
/* a phone: two figures to a row, so a long label ("Habitaciones") is never split */
@media screen and (max-width: 30rem) {
  .units-table tbody .u-n, .units-table tbody .u-area { grid-column: span 3; }
  /* the unit and its price each take the card's width: a price never breaks inside the number */
  .units-table tbody th.u-unit { grid-column: 1 / -1; }
  .table-wrap--cards .units-table tbody .unit-price { grid-column: 1 / -1; text-align: left; white-space: nowrap; font-size: min(1.15rem, 6vw); }
  .units-table tbody td[data-label]::before { overflow-wrap: normal; hyphens: manual; }
}
/* a narrow phone (also any phone at a large text size): the fold's sign alone, under its title; the
   payment steps with smaller numbers, so the words keep most of the line */
@media (max-width: 48rem) {
  .opp-fold__word { display: none !important; }
  /* one column of facts: the label's 10rem minimum (parts.css) was wider than a 320 px phone at large text */
  .facts dt { min-width: 0; overflow-wrap: break-word; }
}
@media (max-width: 30rem) {
  .opp-fold__summary { grid-template-columns: minmax(0, 1fr); }
  .opp-fold__mark { justify-self: start; }
}
/* the narrowest screens (320 px, or 390 px at a large text size): one line of the card per row */
@media screen and (max-width: 22rem) {
  .table-wrap--cards .units-table tbody tr { grid-template-columns: minmax(0, 1fr); }
  .table-wrap--cards .units-table tbody tr > * { grid-column: 1 / -1 !important; }
  .table-wrap--cards .units-table tbody tr { padding-inline: 0.6rem; }
  .table-wrap--cards .units-table tbody .unit-price { font-size: min(1.15rem, 5.4vw); }
}
/* print (shared rules in parts.css): every card and row on paper, no controls, frames at full height. Every price
   table prints as one compact table, its rows hidden on the screen ("Show all", a choice) laid out as the others (the
   card layouts above are for a screen only); the caption then says all of them (.cap-print); the lines that lead down
   to the prices are for a screen */
@media print {
  .unit-filters, .filter-status, .sort__icon, .opp-ask, .opp-share, .opp-map, .opp-filtered, .opp-arrived-line, .opp-prices-link { display: none !important; }
  .showcase__item[hidden] { display: block !important; }
  .table tbody tr[hidden]:not([data-none]) { display: table-row !important; }
  .table-more, .arrived, .lots__budget { display: none !important; }
  /* (".table." before each: the screen's own rules for these tables come later in this file) */
  .table.lots-table, .table.nagi-table { font-size: 8.5pt; }
  .table.units-table { font-size: 7pt; }
  .table.units-table .u-type { min-width: 0; }
  .table:is(.units-table, .lots-table, .nagi-table) :is(th, td) { padding: 0.15rem 0.3rem; white-space: normal; }
  .table:is(.units-table, .lots-table, .nagi-table) .num { white-space: nowrap; }
  .table.units-table td.u-area { white-space: normal; }
  .table.units-table :is(th, td) { padding-inline: 0.18rem; }
  .table:is(.units-table, .lots-table, .nagi-table) .area__m2 { display: block; }
  .units-table thead .sort, .lots-table thead .sort, .nagi-table thead .sort { min-height: 0; padding: 0; font-size: inherit; text-decoration: none; }
}

/* ---------- large text: tables and long words stay inside the screen */
.lots__table, .table-wrap, .table-wrap__scroll { max-width: 100%; }
.opp-detail, .opp-fold__body, .listing__cols > div { min-width: 0; }
.table td, .table th { overflow-wrap: anywhere; }

/* a heading for screen readers only */
.opp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the How page's worked total cost (costExample() in src/pages/how.js), shown on its offer's page */
.how-cost__ex { max-width: 52rem; padding: 1rem 1.2rem 1.2rem; background: var(--card); border: 2px solid var(--ink); border-radius: 8px 4px 10px 5px; }
.how-cost__title { font-size: min(1.25rem, 6vw); margin-bottom: 0.6rem; }
.how-cost__list { margin: 0; padding-left: 1.2em; display: grid; gap: 0.5rem; }

/* the swipe hint, while its table fits */
.table-wrap__hint.is-off { display: none !important; }
/* "What does this mean?": a small link to the Help page, once per subject */
.help-link { font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.opp-map__help { margin: -1.6rem 0 2rem; }

/* ==========================================================================================
   Added 2026-11-16: the pictures with their photo viewer, "at a glance", the comparison, the
   charts, "where the papers disagree", and Nagi's zones and lots
   ========================================================================================== */
.btn--quiet { background: var(--card); color: var(--ink); box-shadow: 3px 4px 0 var(--rule); }
.btn--quiet:hover { color: var(--ink); box-shadow: 5px 7px 0 var(--rule); }

/* ---------- an offer's page: the pictures beside "at a glance" */
.opp-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.6rem 2.2rem; align-items: start; margin-top: 0.4rem; margin-bottom: 2rem; }
.opp-hero__pics { min-width: 0; }
.pgallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.pgallery__item { position: relative; margin: 0; min-width: 0; background: var(--card); border: 2px solid var(--ink); border-radius: 6px 3px 7px 4px; overflow: hidden; }
.pgallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pgallery__item--lead { grid-column: 1 / -1; box-shadow: 4px 5px 0 var(--rule); }
.pgallery__item--lead img { aspect-ratio: 16 / 9; }
.pgallery__cap { padding: 0.45rem 0.6rem 0.55rem; font-size: 0.92rem; font-weight: 650; border-top: 1.5px dashed var(--rule); }
/* the button the script lays over each picture: the whole picture is the target */
.pgallery__open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.pgallery__open:focus-visible { outline: 3px solid var(--gold); outline-offset: -5px; }
.pgallery__item--js:hover img { filter: brightness(1.06); }
.pgallery__note { margin-top: 0.7rem; }
.pgallery__hint { display: block; margin-top: 0.2rem; font-family: var(--font-hand); font-size: 1.3rem; color: var(--gold-deep); }
.pgallery__hint[hidden] { display: none; }
/* Nagi's plans: one a row at the content's width (three side by side made the lot numbers about 5 px high), each with
   its zone's name; a tap opens it full screen. Each keeps its own proportions (its width and height attributes) */
.pgallery.pgallery--plans { grid-template-columns: minmax(0, 1fr); max-width: 46rem; gap: 1.2rem; margin-bottom: 1rem; }
.pgallery--plans .pgallery__item img { aspect-ratio: auto; height: auto; object-fit: contain; }
/* a preview build's "awaiting permission" box (parts.css) takes a picture's place in the grid */
.pgallery .photo-pending { aspect-ratio: 4 / 3; }

/* at a glance: big figures in a card, the two ways to ask under them */
.opp-glance {
  padding: 1.1rem 1.2rem 1.2rem; background: var(--card);
  border: 2px solid var(--ink); border-radius: 8px 4px 10px 5px; box-shadow: 4px 5px 0 var(--gold);
}
.glance__title { font-size: 1.3rem; margin-bottom: 0.6rem; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem 1rem; margin: 0; }
.glance__item { min-width: 0; padding: 0.55rem 0; border-bottom: 1.5px dashed var(--rule); }
/* the price across the card, then pairs; an odd one out at the end takes the whole row */
.glance__item:first-child, .glance__item:last-child:nth-child(even) { grid-column: 1 / -1; }
.glance__value .fact-note, .compare-table .fact-note, .compare-card .fact-note { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; line-height: 1.35; }
.glance__label { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }
.glance__value { margin: 0.15rem 0 0; font-family: var(--font-display); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.3; overflow-wrap: anywhere; }
.glance__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 1rem; }
.glance__cta .btn { white-space: normal; }

/* ---------- where the papers disagree */
.disagree { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; max-width: 52rem; }
.disagree__item { padding: 0.75rem 1rem 0.8rem; background: var(--card); border-left: 4px solid var(--gold); border-radius: 2px 10px 4px 12px; font-size: 0.98rem; }
/* before you decide: what is open and the checks, side by side on a wide screen, calm and compact */
.settle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; align-items: start; }
.settle__col { min-width: 0; }
.settle__sub { font-size: min(1.3rem, 6vw); margin: 0 0 0.8rem; }
.settle__col .disagree, .settle__facts { margin-bottom: 1.8rem; }
.settle__facts dd { font-size: 1rem; }
/* what it offers: the amenities beside the facts */
.opp-offers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem 3rem; align-items: start; }
.opp-offers__title { font-size: min(1.4rem, 6.4vw); margin-bottom: 0.9rem; }
.opp-offers__list { padding: 1rem 1.2rem 1.2rem; background: var(--card); border: 2px solid var(--ink); border-radius: 8px 4px 10px 5px; box-shadow: 4px 5px 0 var(--gold); }

/* ---------- the charts: drawn at phone width by src/charts.js (Rough.js lines); here, their colours */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 1.6rem 2rem; align-items: start; }
.charts--n1 { max-width: 40rem; }
.chart-box { margin: 0; min-width: 0; padding: 0.9rem 1rem 1rem; background: var(--card); border: 2px solid var(--ink); border-radius: 8px 4px 10px 5px; box-shadow: 4px 5px 0 var(--rule); }
.chart-box__title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; margin-bottom: 0.5rem; }
.chart-box__intro, .chart-box__note { font-size: 0.95rem; color: var(--ink-soft); margin-block: 0.4rem; }
.chart-box__pick label { display: grid; gap: 0.3rem; font-weight: 650; }
.chart-box__pick select { width: 100%; max-width: 100%; min-height: 2.75rem; font: inherit; font-size: 0.95rem; padding: 0.35rem 0.6rem; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 6px 3px 7px 4px; }
.chart-box__pick[hidden] { display: none; }
.chart { display: block; width: 100%; max-width: 30rem; height: auto; margin-inline: auto; overflow: visible; font-family: var(--font-body); }
.chart text { fill: var(--ink); }
.chart .ch-tick { font-size: 11.5px; fill: var(--ink-soft); }
.chart .ch-sub { font-size: 10px; fill: var(--ink-soft); }
.chart .ch-label { font-size: 11.5px; font-weight: 650; fill: var(--ink-soft); }
.chart .ch-row { font-size: 12.5px; font-weight: 650; }
.chart .ch-val { font-size: 11.5px; }
.chart .ch-legend { font-size: 11px; }
.chart .ch-note { font-size: 10.5px; font-weight: 650; fill: var(--coral-deep); }
.chart .ch-share { font-size: 13px; font-weight: 700; }
.chart .ch-grid { stroke: var(--rule); stroke-width: 0.8; stroke-dasharray: 2 3; }
.chart path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .ch-axis-line, .chart .ch-arrow-line { stroke: var(--ink); stroke-width: 1.4; }
.chart .ch-arrowhead { fill: var(--coral-deep); stroke: none; }
/* the bars: an ink outline and a coloured hachure (the fill is drawn as pencil lines) */
.chart [class$="-line"] { stroke: var(--ink); stroke-width: 1.3; }
.chart .ch-a-fill { stroke: var(--gold); }
.chart .ch-b-fill { stroke: var(--sea); }
.chart .ch-c-fill { stroke: var(--coral); }
.chart .ch-d-fill { stroke: var(--palm); }
.chart .ch-za-fill { stroke: var(--navy-deep); }
.chart .ch-zb-fill { stroke: var(--sea); }
.chart .ch-zc-fill { stroke: var(--palm); }
.chart .ch-zn-fill { stroke: var(--ink-soft); }
.chart [class$="-fill"] { stroke-width: 1.5; }
/* the rate lines: reference lines, not series, so in neutral ink, told apart by their dashes */
.chart .ch-rate1-line, .chart .ch-rate2-line, .chart .ch-rate3-line { stroke: var(--ink); stroke-width: 1.1; }
.chart .ch-rate1-line { stroke-dasharray: 7 4; }
.chart .ch-rate2-line { stroke-dasharray: 1.5 3; }
.chart .ch-rate3-line { stroke-dasharray: 9 3 2 3; }
/* the points: a filled shape with an ink edge, so the groups differ by shape as well as colour */
.chart .ch-pt { stroke: var(--ink); stroke-width: 1; }
.chart .ch-pt.ch-a { fill: var(--gold); }
.chart .ch-pt.ch-b { fill: var(--sea); }
.chart .ch-pt.ch-c { fill: var(--coral); }
.chart .ch-pt.ch-za { fill: var(--navy-deep); }
.chart .ch-pt.ch-zb { fill: var(--sea); }
.chart .ch-pt.ch-zc { fill: var(--palm); }
.chart .ch-pt.ch-ink { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.chart .ch-pt:hover { stroke-width: 2.4; }

/* ---------- side by side */
.compare-table tbody th, .compare-table .compare-table__what { position: sticky; left: 0; z-index: 2; background: var(--paper-deep); min-width: 8.5rem; }
.compare-table thead .compare-table__what { z-index: 3; }
.compare-table td, .compare-table thead th { min-width: 13rem; }
.compare-table thead th { white-space: normal; }
.compare-table__type { display: block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- the map, under the cards and the comparison */
.opp-mapsec { padding-top: 0; }
.opp-mapsec .opp-map__help { margin: 0.6rem 0 0; }

/* ---------- Nagi: zones, plans, lots, distances */
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.zone { min-width: 0; padding: 1rem 1.1rem 1.1rem; background: var(--paper); border: 2px solid var(--ink); border-top-width: 8px; border-radius: 8px 4px 10px 5px; }
.zone--ki { border-top-color: var(--navy-deep); }
.zone--hikari { border-top-color: var(--sea); }
.zone--sora { border-top-color: var(--palm); }
.zone__name { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; margin-bottom: 0.5rem; }
.zone__letter { display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none; font-family: var(--font-body); font-size: 1rem; color: var(--paper); background: var(--ink); border-radius: 50%; }
.zone--ki .zone__letter { background: var(--navy-deep); }
.zone--hikari .zone__letter { background: var(--sea-deep); }
.zone--sora .zone__letter { background: var(--palm-deep); } /* paper on it 6.0:1 */
.zone__rates { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.zone__says { font-style: italic; margin-bottom: 0.4rem; }
.zone-dot { display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.45rem; border: 1.5px solid var(--ink); border-radius: 50%; vertical-align: 0.05em; }
.zone-dot--ki { background: var(--navy-deep); }
.zone-dot--hikari { background: var(--sea); }
.zone-dot--sora { background: var(--palm); }
.nagi-table td:first-child { white-space: nowrap; }
.dist-table td, .dist-table th { white-space: normal; }

/* ---------- the photo viewer's caption (PhotoSwipe's own styles: vendor/photoswipe/photoswipe.css) */
.pswp__caption, .pswp-caption-probe {
  position: absolute; left: 50%; bottom: 0.6rem; transform: translateX(-50%); width: min(46rem, calc(100% - 2rem));
  padding: 0.5rem 0.9rem; font-size: 0.98rem; line-height: 1.4; color: var(--paper);
  background: var(--navy-deep); border-radius: 8px 4px 10px 5px;
}
.pswp__caption:empty { display: none; }
/* the "1 of 8" counter on a dark translucent backing like the caption's, so it reads over a light corner of a
   picture: paper on this navy at 82% stays 9:1 or better even over white */
.pswp .pswp__counter {
  height: auto; align-self: flex-start; margin-top: 15px; padding: 0.2rem 0.6rem; font-size: 0.95rem; line-height: 1.4;
  color: var(--paper); text-shadow: none; opacity: 1; background: color-mix(in srgb, var(--navy-deep) 82%, transparent); border-radius: 6px 3px 7px 4px;
}
/* the copy the script measures a caption's height with (captionRoom), with the caption's own style */
.pswp-caption-probe { position: fixed; visibility: hidden; pointer-events: none; }

@media (max-width: 62rem) {
  .opp-hero, .settle, .opp-offers { grid-template-columns: minmax(0, 1fr); }
  .zones { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .pgallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
  .compare-table td, .compare-table thead th { min-width: 11rem; }
  .compare-table tbody th, .compare-table .compare-table__what { min-width: 6.5rem; }
}
@media (max-width: 26rem) {
  .chart-box { padding-inline: 0.45rem; }
  .glance { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pgallery__item--js:hover img { filter: none; }
}
@media print {
  .pgallery__open, .pgallery__hint, .chart-box__pick, .glance__cta { display: none !important; }
}

/* ==========================================================================================
   Added 2026-11-16, after the customer test: the opportunities first, fewer warnings, prices a
   buyer can grasp, readable on a phone
   ========================================================================================== */

/* ---------- the list: a market street (2026-11-17). A short head, the type bar (parts.css), then one stall
   per opportunity: a pencil awning in its type's colour (src/store-art.js), its picture, a hanging price tag
   in the hand font, its name and what it holds, chips into its own table, "Ask Wander" */
.opp-head { padding-top: clamp(1.1rem, 3vw, 2rem); padding-bottom: 0.2rem; }
.opp-head .page-head__title { font-size: clamp(min(2.1rem, 9.4vw), 3.6vw, 3rem); max-width: 40ch; }
.opp-head .page-head__lead { margin-top: 0.6rem; font-size: 1.12rem; max-width: 62rem; }
/* "Skip to the opportunities": out of sight until the keyboard reaches it */
.opp-skip { position: absolute; left: -999rem; }
.opp-skip:focus { position: static; display: inline-block; margin-top: 0.5rem; padding: 0.6rem 0; font-weight: 650; }
.opp-showcase { margin-bottom: 0.4rem; }
.showcase { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 1.4rem; }
.showcase--n1 { grid-template-columns: minmax(0, 28rem); }
.showcase--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.showcase:focus { outline: none; }
.showcase__item { min-width: 0; }
.stall--gold { --stall: var(--gold); --stall-soft: color-mix(in srgb, var(--gold-light) 70%, var(--card)); }
.stall--sea { --stall: var(--sea); --stall-soft: color-mix(in srgb, var(--sea) 20%, var(--card)); }
.stall--coral { --stall: var(--coral); --stall-soft: color-mix(in srgb, var(--coral) 18%, var(--card)); }
.stall { position: relative; display: flex; flex-direction: column; }
/* the awning over the stall, a little wider than it, the stall's box hanging under it */
.stall__awning { position: relative; z-index: 1; height: 2.5rem; margin: 0 -0.4rem -0.7rem; }
/* (its drawing is longer than any stall and cut to the stall's width: nothing of it shows past its box) */
.awning { display: block; width: 100%; height: 100%; overflow: hidden; }
.awning path, .tag__shape path, .like .tag__shape path, .star path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.awning .aw-base-solid { fill: var(--card); stroke: none; }
.awning .aw-c-fill { stroke: var(--stall); stroke-width: 1.7; }
.awning .aw-c-line, .awning .aw-p-line { stroke: var(--ink); stroke-width: 1.2; }
.awning .aw-rod-line { stroke: var(--ink); stroke-width: 2.6; }
.stall__box {
  position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--card); border: 2px solid var(--ink); border-radius: 3px 3px 10px 6px; box-shadow: 4px 5px 0 var(--stall);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stall__box:has(.stall__link:hover) { transform: translate(-1px, -2px); box-shadow: 6px 8px 0 var(--stall); }
.stall__box { container: stall / inline-size; }
/* the tag on one line at any stall width: it is 11.6 of its letters wide, so its size follows the stall's, never under
   1.2rem (a 320 px phone's stall holds that much: 250 of its 255 px) */
.stall__box .tag { font-size: max(1.2rem, min(1.55rem, calc((100cqi - 2.2rem) / 11.6))); }
.stall__link { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.stall__link:hover { color: var(--ink); }
.stall__link:focus-visible { outline: 3px solid var(--sea); outline-offset: -3px; }
.stall__pic { position: relative; display: block; border-bottom: 2px solid var(--ink); }
.stall__pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.stall__box { --pic-h: calc(100cqi * 9 / 16); }
/* "To be confirmed": beside the kind's word, off the picture (on it, it sat on the project's name on a sign) */
.stall__kind .showcase__badge { font-size: 0.72rem; letter-spacing: 0.02em; text-transform: none; white-space: nowrap; }
/* "8 pictures": a small chip at the picture's bottom right, a word without the script, a button that opens them with
   it (its touch area, 44 px high, reaches past the chip without covering more of the picture) */
.stall__count, .stall__pics {
  position: absolute; right: 0.5rem; bottom: 0.5rem; font-size: 0.78rem; font-weight: 650; line-height: 1.3; color: var(--ink);
  background: color-mix(in srgb, var(--card) 92%, transparent); border: 1.5px solid var(--ink); border-radius: var(--wobble); padding: 0.05rem 0.5rem;
}
.stall__pics { z-index: 2; top: calc(2px + var(--pic-h) - 0.5rem); bottom: auto; transform: translateY(-100%); font: inherit; font-size: 0.78rem; font-weight: 650; line-height: 1.3; cursor: pointer; }
.stall__pics::before { content: ""; position: absolute; inset: -0.75rem -0.4rem -0.55rem; }
.stall__pics:hover { background: var(--card); box-shadow: 2px 3px 0 var(--stall); }
.stall__body { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.8rem 1rem 0.6rem; min-width: 0; }
/* at least the "To be confirmed" badge's height: a confirmed offer's kind line (no badge) keeps the names level across a row */
.stall__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; min-height: 1.45rem; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }
.stall--sea .stall__kind { color: var(--sea-deep); }
.stall--coral .stall__kind { color: var(--coral-deep); }
.stall__new {
  position: absolute; left: 0.5rem; top: 0.95rem; display: inline-flex; align-items: center; gap: 0.1rem; padding: 0 0.45rem 0.05rem 0.25rem; white-space: nowrap;
  font-family: var(--font-hand); font-size: 1rem; line-height: 1.2; font-weight: 700; color: var(--coral-deep);
  /* solid: coral-deep at 1rem needs 4.5:1, which 92% card over a dark photo missed (4.38:1); on the card it is 5.2:1 */
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--wobble);
}
.stall__new[hidden] { display: none; }
.star { width: 1rem; height: 1rem; }
.star .st-fill { stroke: var(--sun); stroke-width: 1.4; }
.star .st-line { stroke: var(--coral-deep); stroke-width: 1.2; }
/* the price tag: the hand font on a pencil label, hung at one of three slight tilts. The label has the proportions of
   its drawing (src/store-art.js priceTag: 220 x 44 for one line, 220 x 64 when a second line shows), 11.6 of its letters
   wide: the drawing is never stretched; the words start right of the hole */
.tag {
  position: relative; isolation: isolate; box-sizing: border-box; display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start;
  align-self: flex-start; width: 11.6em; max-width: 100%; aspect-ratio: 220 / 44; margin: 0.25rem 0 0.35rem -0.25rem; padding: 0 0.35em 0.05em 1.45em;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.55rem; line-height: 1.05; color: var(--ink);
}
.tag:has(.from-sub) { aspect-ratio: 220 / 64; }
.tag__shape { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; }
.tag__shape--2, .tag:has(.from-sub) .tag__shape--1 { display: none; }
.tag:has(.from-sub) .tag__shape--2 { display: block; }
.tag .tg-solid { fill: var(--stall-soft, var(--gold-light)); stroke: none; }
.tag .tg-line, .tag .tg-hole-line { stroke: var(--ink); stroke-width: 1.3; }
.tag__text { min-width: 0; max-width: 100%; white-space: nowrap; }
/* the price's second line under a budget: "up to US$150,000" */
.tag .from-sub { display: block; margin-top: 0.1em; font-family: var(--font-body); font-size: max(0.72rem, 0.5em); font-weight: 650; line-height: 1.2; color: var(--ink-soft); white-space: normal; }
/* the stalls' names on one line across a row when one tag has a second line: a one-line tag keeps the difference
   (20 of its drawing's 220 units) under it */
@media (min-width: 48.01rem) {
  .stalls:has(.tag .from-sub) .stall__body > .tag:not(:has(.from-sub)) { margin-bottom: calc(0.35rem + 1.055em); }
}
.from-sub { font-weight: 500; }
.tag--t1 { transform: rotate(-2deg); }
.tag--t2 { transform: rotate(1.4deg); }
.tag--t3 { transform: rotate(-0.8deg); }
.showcase__name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.showcase__size { font-size: 0.95rem; line-height: 1.4; overflow-wrap: break-word; }
.stall__where, .stall__stage { font-size: 0.92rem; line-height: 1.4; color: var(--ink-soft); overflow-wrap: break-word; }
.stall__suits { margin-top: 0.3rem; font-size: 0.88rem; color: var(--ink-soft); }
.stall__suits-label { font-weight: 650; }
/* the chips: how many lots or apartments in each band, each opening the offer's table already narrowed */
.stall__chips { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.2rem 1rem 0.4rem; border-top: 1.5px dashed var(--rule); margin-top: 0.3rem; }
.stall__chips-label { font-size: 0.8rem; font-weight: 650; color: var(--ink-soft); padding-top: 0.4rem; }
.stall__chips-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
/* a chip's words may wrap, its count stays beside them (never alone on a line of its own) */
.stall__chip { display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; min-height: 2.75rem; padding: 0.55rem 0.7rem 0.45rem; font-size: 0.86rem; line-height: 1.35; text-align: left; text-decoration: none; color: var(--ink); }
.chip__label { min-width: 0; }
.stall__chip .chip__n, .store-budget .chip__n, .store-filter .chip__n { flex: none; white-space: nowrap; font-weight: 700; padding: 0 0.35rem; border-radius: 999px; background: var(--stall-soft, color-mix(in srgb, var(--gold-light) 60%, var(--card))); }
.stall__chip .unit-alt { font-size: 0.85em; }
.stall__chips-note { font-size: 0.82rem; color: var(--ink-soft); }
.stall__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: auto 0 0; padding: 0.5rem 1rem 0.95rem; }
.stall__actions .btn { min-height: 2.75rem; padding: 0.5rem 0.8rem; font-size: 0.95rem; white-space: nowrap; }
.stall__wa { padding-inline: 0.6rem; min-width: 2.75rem; justify-content: center; }
/* a narrow stall: the three buttons compact, still one row (the narrowest say "Ask", below) */
@container stall (max-width: 25rem) {
  .stall__actions { gap: 0.35rem; padding-inline: 0.8rem; }
  .stall__actions .btn { padding-inline: 0.6rem; font-size: 0.85rem; }
  .stall__actions .stall__wa { padding-inline: 0.5rem; }
}
@container stall (max-width: 21rem) {
  .stall__actions { gap: 0.3rem; padding-inline: 0.7rem; }
  .stall__actions .btn { padding-inline: 0.45rem; font-size: 0.8rem; }
  .stall__actions .stall__wa { padding-inline: 0.4rem; }
}
.stall__wa .wa-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stall__see { box-shadow: 3px 4px 0 var(--stall); }
/* WhatsApp beside "Ask Wander" (on the stalls and the offer pages): the same number as the header's */
.btn--wa { gap: 0.4rem; min-height: 2.75rem; background: var(--card); color: var(--ink); border-color: var(--ink); box-shadow: 3px 4px 0 var(--palm); }
.btn--wa:hover { color: var(--ink); }
.btn--wa .wa-mark { width: 1.25rem; height: 1.25rem; color: var(--palm); }
.stall__cmp { min-height: 2.75rem; padding: 0.4rem 0.9rem; font-size: 0.95rem; }
.stall__cmp[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.stall__cmp[aria-disabled="true"] { opacity: 0.5; cursor: default; }
/* a numbered sign over the stall, matching its pin on the map (map.js writes data-map-number) */
.stall[data-map-number]::before {
  content: attr(data-map-number); position: absolute; z-index: 3; top: -0.55rem; left: 0.4rem; display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem; font-weight: 700; font-size: 0.95rem; color: var(--paper); background: var(--ink); border: 2px solid var(--card); border-radius: 50%;
}
.opp-note { margin-top: 1.4rem; font-size: 0.98rem; color: var(--ink-soft); max-width: 52rem; }
/* under the stalls: Prime Inversiones has other lots and villas, ask Wander */
.opp-others { margin: 1.6rem 0 0; max-width: 52rem; font-size: 1.05rem; font-weight: 600; }
.opp-showcase + .opp-compare { padding-top: clamp(2rem, 5vw, 3.2rem); }

/* ---------- the controls a longer list brings (from seven offers): one row of chips and a sort */
.store-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem; margin: 0.8rem 0 0.2rem; padding: 0.7rem 1rem; background: var(--paper-deep); border-radius: 8px 4px 10px 5px; }
.store-controls__title { flex-basis: 100%; margin: 0; font-weight: 650; }
.store-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.store-filter__label, .store-sort__label { font-weight: 650; color: var(--ink-soft); margin-right: 0.2rem; }
.store-filter .chip, .store-budget .chip, .store-view .chip, .opp-applied .chip, .opp-filtered .chip { min-height: 2.75rem; padding: 0.4rem 0.9rem; font-size: 0.95rem; }
.store-filter .chip, .store-budget .chip { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.store-filter .chip[aria-pressed="true"], .store-budget .chip[aria-pressed="true"], .store-view .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.store-filter .chip[aria-pressed="true"] .chip__n, .store-budget .chip[aria-pressed="true"] .chip__n { color: var(--ink); }
.store-filter .chip[aria-disabled="true"], .store-budget .chip[aria-disabled="true"] { opacity: 0.5; cursor: default; }
/* the budget: three chips under the type bar, at every count; on a phone the same choices in one native list */
.store-budget { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.45rem; margin: 0.3rem 0 0.2rem; }
.store-budget-pick { display: none; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin: 0.3rem 0 0.2rem; }
.store-budget-pick select { flex: 1 1 13rem; min-width: 0; min-height: 2.75rem; font: inherit; font-size: 0.95rem; padding: 0.35rem 0.6rem; color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 6px 3px 7px 4px; }
.store-sort { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.store-sort select { min-height: 2.75rem; font: inherit; font-size: 0.95rem; padding: 0.35rem 0.6rem; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 6px 3px 7px 4px; }
/* what an address or a choice asked for: the status line, a chip per choice to remove it, "Show all" */
.opp-narrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.opp-applied { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.opp-applied__x { font-weight: 700; margin-left: 0.15rem; }
.opp-asktype { margin: 0.6rem 0 0; }
.opp-asktype .btn { min-height: 2.75rem; }
/* a choice nothing on offer fits: every stall shows under this heading */
.opp-now { margin: 1.2rem 0 0; font-size: clamp(1.25rem, 3vw, 1.6rem); }
/* words for screen readers only (the comparison's status line) */
.opp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* a phone with a map: List or Map */
.store-view { display: none; gap: 0.4rem; margin-top: 0.8rem; }

/* ---------- with a map (two pins or more): the stalls beside a map that stays in view on a wide screen */
.store__main { min-width: 0; }
.store--map .store__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 1.6rem; align-items: start; }
.store--map .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.store__map { position: sticky; top: calc(var(--header-h, 5rem) + 1rem); margin-top: 1.1rem; }
/* below 1,600 px the stalls keep their three columns (beside the map their buttons wrapped at 1,024 px, and at 1,440 px a
   third stall stood alone under two), and the map
   follows them at a reading width */
@media (max-width: 99.99rem) {
  .store--map .store__main { grid-template-columns: minmax(0, 1fr); }
  .store--map .showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store--map .store__map { position: static; max-width: 46rem; }
}

/* ---------- the comparison picker (from five offers): a tray at the screen's bottom, clear of the chat button */
.cmp-tray {
  position: fixed; z-index: 25; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(56rem, calc(100% - 2rem));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; padding: 0.6rem 1rem;
  background: var(--card); border: 2px solid var(--ink); border-radius: 8px 4px 10px 5px; box-shadow: 4px 5px 0 var(--gold);
}
.cmp-tray p { margin: 0; }
.cmp-tray__count { font-weight: 700; }
.cmp-tray__max { font-size: 0.85rem; color: var(--ink-soft); }
.cmp-tray__do { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.cmp-tray__do .btn { min-height: 2.75rem; padding: 0.5rem 0.9rem; font-size: 0.92rem; }
.cmp-tray__do .chip { min-height: 2.75rem; }
.opp-compare--waiting .opp-compare__wrap, .opp-compare--waiting .compare-cards { display: none; }
.opp-compare__hint { font-weight: 650; color: var(--sea-deep); }

/* two stalls a row below 1,024 px; from 1,024 three, their buttons compact ("Ask") and their tags sized to them */
@media (max-width: 63.99rem) {
  .showcase, .store--map .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
}
/* a tablet */
@media (max-width: 62rem) {
  .showcase, .store--map .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
  .showcase--n1 { grid-template-columns: minmax(0, 28rem); }
  .store--map .store__main { grid-template-columns: minmax(0, 1fr); }
  .store__map { position: static; }
  .showcase__name { font-size: 1.18rem; }
}
/* a phone: one stall a row, its picture across the top (with its pictures button), then its price tag, name,
   size and place, and a row of "See it", "Ask Wander" and WhatsApp; the chips, stage and "Suits" are on its own
   page. The type bar and the first stall's picture, price and name are on the first screen. With a map, List or Map */
@media (max-width: 48rem) {
  .opp-head { padding-top: 1.1rem; }
  .opp-head .page-head__title { font-size: min(1.8rem, 8.4vw); line-height: 1.12; }
  /* the stalls first: the lead's words are on Home and in the type bar's counts */
  .opp-head .page-head__lead { display: none; }
  .store-budget { display: none; }
  .store-budget-pick { display: flex; }
  .showcase, .store--map .showcase { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; margin-top: 0.6rem; }
  /* never more than 18 times as wide as it is tall (its drawing holds 18 stripes): 41 px high on a 768 px phone */
  .stall__awning { height: max(1.35rem, calc((100vw - 1.5rem) / 18)); margin: 0 -0.25rem -0.4rem; }
  .stall__box { box-shadow: 3px 4px 0 var(--stall); }
  .stall__pic img { height: 10.5rem; aspect-ratio: auto; }
  .stall__box { --pic-h: 10.5rem; }
  .stall__count { bottom: 0.45rem; right: 0.45rem; }
  .stall__pics { top: calc(2px + var(--pic-h) - 0.45rem); right: 0.45rem; }
  .stall__body { padding: 0.55rem 0.8rem 0.3rem; gap: 0.05rem; }
  .stall__kind { font-size: 0.68rem; letter-spacing: 0.04em; }
  .stall__new { top: 0.6rem; font-size: 0.92rem; }
  .tag { margin: 0.15rem 0 0.2rem -0.15rem; }
  .showcase__name { font-size: 1.05rem; }
  .showcase__size { font-size: 0.82rem; line-height: 1.3; color: var(--ink-soft); }
  .stall__where { font-size: 0.85rem; }
  /* the chips keep their heading ("Lots by price"): it says what the figures are */
  .stall__stage, .stall__suits { display: none; }
  .stall__chips-label { padding-top: 0.15rem; font-size: 0.75rem; }
  .stall__chips { padding: 0.35rem 0.8rem 0.2rem; margin-top: 0.15rem; }
  .stall__chips-row { gap: 0.3rem; }
  .stall__chip { padding: 0.5rem 0.55rem 0.4rem; font-size: 0.8rem; gap: 0.25rem; }
  .stall__actions { padding-block: 0.35rem 0.75rem; }
  .showcase { padding-bottom: 4.5rem; }
  .store-budget-pick { flex-direction: column; align-items: stretch; }
  .store-budget-pick select { flex: none; width: 100%; max-width: 100%; }
  /* the narrowing in one compact row: "Show all" and a chip per choice (the count line stays for screen
     readers, and shows when nothing fits) */
  .opp-narrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 0.4rem; }
  .opp-narrow > .opp-asktype { flex-basis: 100%; }
  .opp-narrow .opp-filtered { margin: 0; gap: 0.35rem; }
  .opp-filtered:not(.opp-filtered--none) [data-opp-status-text] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .opp-filtered--none { flex-basis: 100%; }
  .opp-filtered__sep { display: none; }
  .opp-applied { display: contents; }
  .opp-applied[hidden] { display: none; }
  .opp-narrow .chip { padding: 0.3rem 0.45rem; font-size: 0.8rem; }
  /* a kind with its own tab: the tab, current, already says it (a kind nobody offers keeps its chip) */
  .opp-applied__chip--tab { display: none !important; }
  .stall[data-map-number]::before { width: 1.6rem; height: 1.6rem; font-size: 0.85rem; top: -0.45rem; }
  .opp-note { font-size: 0.92rem; margin-top: 1rem; }
  .store-controls { padding: 0.6rem 0.75rem; gap: 0.5rem 1rem; }
  .store-view { display: flex; margin-top: 0.5rem; }
  /* with a map, List or Map takes a row: the budget list's own first choice ("Any budget") names it, so its label is
     for screen readers only, and the first stall's name stays on the first 390 x 844 screen */
  .store--map .store-budget-pick > .store-filter__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .store--map .store__map { display: none; margin-top: 0.6rem; }
  .store--map.store--show-map .store__map { display: block; }
  .store--map.store--show-map .showcase { display: none; }
  /* the tray stops short of the floating chat button (a pill up to 14rem wide here, chat.css): its count and
     its buttons, compact */
  .cmp-tray { left: 0.5rem; right: 15.5rem; width: auto; transform: none; bottom: 0.75rem; padding: 0.4rem 0.6rem; gap: 0.25rem 0.5rem; }
  .cmp-tray__max, .cmp-tray__list { display: none; }
}
/* the round chat button of a phone (about 48 to 60 px, 0.75rem from the corner, chat.css) */
@media (max-width: 40rem) {
  .cmp-tray { right: calc(1.5rem + 60px); }
  .cmp-tray__do { gap: 0.3rem; flex-wrap: nowrap; }
  .cmp-tray__do .btn { padding: 0.4rem 0.6rem; font-size: 0.82rem; }
  /* on a phone the tray holds its count, "See them side by side" and "Clear": each stall has its own "Ask Wander" */
  .cmp-tray__do .btn--chat { display: none; }
}
/* the narrowest phones (320 px) */
@media (max-width: 22rem) {
  .stall__pic img { height: 9rem; }
  .stall__box { --pic-h: 9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stall__box, .stall__box:has(.stall__link:hover) { transition: none; transform: none; }
}

/* ---------- an offer's page: the breadcrumb, and "More like this" before the closing band */
.opp-crumbs { padding-top: 1.1rem; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 0.95rem; font-weight: 650; }
.crumbs__item { display: inline-flex; align-items: center; min-width: 0; }
.crumbs__item:not(:last-child)::after { content: "›"; content: "›" / ""; margin: 0 0.5rem; color: var(--ink-soft); font-weight: 400; }
/* a touch area of at least 44 px; the padding is taken back by the margin, so nothing moves */
.crumbs a { display: inline-block; padding: 0.65rem 0.4rem; margin: -0.65rem -0.4rem; min-width: 2.75rem; text-align: center; }
.crumbs [aria-current] { color: var(--ink-soft); font-weight: 500; overflow-wrap: anywhere; }
.like-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.like-list--n1 { grid-template-columns: minmax(0, 26rem); }
.like-list--n2 { grid-template-columns: repeat(2, minmax(0, 26rem)); }
.like { min-width: 0; }
.like__link {
  display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; overflow: hidden;
  background: var(--card); border: 2px solid var(--ink); border-top-width: 7px; border-top-color: var(--stall); border-radius: 4px 4px 10px 6px; box-shadow: 4px 5px 0 var(--stall);
}
.like__link:hover { color: var(--ink); }
.like__pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid var(--ink); }
.like__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.95rem 0.9rem; min-width: 0; container: like / inline-size; }
.like__kind { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.like__name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.like .tag { font-size: min(1.3rem, calc(100cqi / 11.6)); }
.like__size { font-size: 0.9rem; color: var(--ink-soft); overflow-wrap: break-word; }
.like__all { margin-top: 1.2rem; font-weight: 650; }
.like__all a { display: inline-block; padding-block: 0.65rem; margin-block: -0.65rem 0; }
/* an offer's head: its price tag and where it is (the name above), at every width; "at a glance" does not say them again */
.opp-head-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1rem; margin: 0.1rem 0 0.7rem; }
.opp-head-sum .tag { font-size: 1.45rem; margin: 0; }
.opp-head-sum__where { font-size: 1rem; color: var(--ink-soft); }
/* the pictures' hint: "Click … the arrow keys" with a mouse, "Tap … swipe" on a touch screen or a phone-wide one */
.pgallery__hint-touch { display: none; }
@media (hover: none), (max-width: 40rem) {
  .pgallery__hint-touch { display: inline; }
  .pgallery__hint-keys { display: none; }
}
@media (max-width: 48rem) {
  .lots-table thead, .nagi-table thead { position: static; }
  .opp-head-sum { gap: 0.3rem 0.8rem; margin: 0.2rem 0 0.6rem; }
  .opp-head-sum .tag { font-size: min(1.35rem, calc((100vw - 2.4rem) / 11.6)); }
  .opp-head-sum__where { font-size: 0.92rem; }
}
/* Las Palmas' lot table on a phone: one small card per lot (as Nagi's), its price never cut (a screen only) */
@media screen and (max-width: 48rem) {
  .lots-table, .lots-table tbody, .lots-table tfoot, .lots-table tfoot tr, .lots-table tfoot td { display: block; }
  .lots-table caption { display: block; }
  .lots-table thead { display: block; position: sticky; top: 0; z-index: 2; background: var(--paper-deep); border-bottom: 2px solid var(--ink); }
  .lots-table thead tr { display: flex; flex-wrap: wrap; gap: 0 1.2rem; padding: 0.15rem 0.9rem; }
  .lots-table thead th { display: block; position: static; padding: 0; border: 0; background: none; }
  .lots-table thead th:not([data-col]) { display: none; }
  .lots-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.8rem; padding: 0.7rem 0.9rem; border-bottom: 1.5px dashed var(--rule); }
  .lots-table tbody tr[hidden] { display: none; }
  .lots-table tbody th, .lots-table tbody td { display: block; padding: 0; border: 0; white-space: normal; }
  .lots-table tbody th { font-family: var(--font-display); font-size: 1.2rem; }
  .table.lots-table tbody td.num { text-align: left; }
  .table.lots-table tbody td.unit-price { text-align: right; font-weight: 650; grid-column: 2; grid-row: 1 / span 3; }
  .lots-table tbody td.lot-sector { font-size: 0.9rem; color: var(--ink-soft); }
  .table.lots-table tbody td.unit-price::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }
  .lots-table .area__m2 { display: inline; }
}
@media (max-width: 48rem) {
  .like-list, .like-list--n1, .like-list--n2 { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .like__link { flex-direction: row; border-top-width: 2px; border-left: 7px solid var(--stall); }
  .like__pic { flex: none; width: 5rem; }
  .like__pic img { height: 100%; aspect-ratio: auto; border-bottom: 0; border-right: 2px solid var(--ink); }
  .like__body { padding: 0.5rem 0.75rem; }
}
@media (max-width: 22rem) {
  .like__link { flex-direction: column; border-left-width: 2px; border-top-width: 7px; }
  .like__pic { width: auto; }
  .like__pic img { height: 7rem; border-right: 0; border-bottom: 2px solid var(--ink); }
}
@media print {
  .typebar, .store-controls, .store-view, .cmp-tray, .stall__pics, .stall__cmp, .stall__actions, .opp-applied, .opp-skip, .stall__awning, .store-budget, .store-budget-pick { display: none !important; }
  .opp-compare--waiting .opp-compare__wrap { display: block !important; }
}

/* ---------- side by side on a phone: one card per opportunity instead of the wide table */
.compare-cards { display: none; }
.compare-card { min-width: 0; padding: 0.9rem 1rem 0.6rem; background: var(--card); border: 2px solid var(--ink); border-radius: 8px 4px 10px 5px; box-shadow: 4px 5px 0 var(--rule); }
.compare-card__title { font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.4rem; }
.compare-card__rows { margin: 0; }
.compare-card__row { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 0.2rem 0.8rem; padding: 0.55rem 0; border-top: 1.5px dashed var(--rule); }
.compare-card__row dt { font-size: 0.9rem; font-weight: 650; color: var(--ink-soft); }
.compare-card__row dd { margin: 0; overflow-wrap: break-word; }
.compare-list { margin: 0; padding-left: 1.1em; display: grid; gap: 0.15rem; }
.compare-table tbody th { overflow-wrap: normal; word-break: normal; }
@media (max-width: 48rem) {
  .opp-compare__wrap { display: none; }
  /* one card per offer, side by side: a finger swipes from one to the next (each a little narrower than the
     screen, so the next one shows at the edge) */
  .compare-cards {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(15rem, 82vw), 82%); gap: 0.8rem; min-width: 0; max-width: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 0.2rem 0.2rem 0.9rem;
  }
  .compare-card { scroll-snap-align: start; }
  /* each figure under its label, the card's whole width for it */
  .compare-card__row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 22rem) {
  .compare-card__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- an offer's write-up: its facts on one column; Amber Sand's wider unit table */
.listing__facts { margin-block: 1.4rem 1rem; max-width: 52rem; }
.units-table .area__m2 { display: block; }
.units-table { font-size: 0.95rem; }
.units-table th, .units-table td { padding-inline: 0.4rem; }
.units-table thead th { white-space: normal; vertical-align: bottom; overflow-wrap: normal; hyphens: manual; }
.units-table tbody th, .units-table tbody td { overflow-wrap: normal; }
.units-table .u-unit { white-space: nowrap; }
/* a numbers column's heading may wrap too (at its soft hyphen in "Habita-ciones"): only its figures stay on one line */
.units-table thead th.num { white-space: normal; }
/* "Penthouse (PH)" may take two lines, so the whole table fits a 1,440 px screen in Spanish too */
.units-table .u-type { white-space: normal; min-width: 5.5em; }
/* an offer's own head: one line of title on a wide screen, so the pictures start higher */
.opp-detail-head { padding-block: 1.2rem 0.4rem; }
.opp-detail-head .page-head__title { max-width: none; font-size: clamp(min(2rem, 9vw), 3.6vw, 3rem); }
.opp-detail-head .suits { margin-bottom: 0.6rem; }
.tip { margin-top: 0.2rem; padding: 0.9rem 1rem 1rem; max-width: 52rem; background: var(--card); border-left: 4px solid var(--sea); border-radius: 2px 10px 4px 12px; }
.tip .settle__sub { margin-bottom: 0.4rem; }
.tip p { margin: 0; }
.charts--fold { margin-top: 1.8rem; }

/* ---------- Nagi's lots on a phone: one small card per lot; the sortable headers stay as a bar (a screen only) */
@media screen and (max-width: 48rem) {
  .table-wrap--lotcards .table-wrap__hint { display: none !important; }
  .nagi-table, .nagi-table tbody, .nagi-table caption, .nagi-table tfoot, .nagi-table tfoot tr, .nagi-table tfoot td { display: block; }
  .nagi-table thead { display: block; position: sticky; top: 0; z-index: 2; background: var(--paper-deep); border-bottom: 2px solid var(--ink); }
  .nagi-table thead tr { display: flex; flex-wrap: wrap; gap: 0 1.2rem; padding: 0.15rem 0.9rem; }
  .nagi-table thead th { display: block; position: static; padding: 0; border: 0; background: none; }
  .nagi-table thead th:not([data-col]) { display: none; }
  .nagi-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.8rem; padding: 0.75rem 0.9rem; border-bottom: 1.5px dashed var(--rule); }
  .nagi-table tbody tr[hidden] { display: none; }
  .nagi-table tbody th, .nagi-table tbody td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  .nagi-table tbody .n-lot { order: -2; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.25; }
  .nagi-table tbody .unit-price { order: -1; text-align: right; font-size: 1.1rem; }
  .nagi-table tbody .n-zone { grid-column: 1 / -1; font-size: 0.92rem; }
  .table.nagi-table tbody td.n-area { text-align: left; }
  .table.nagi-table tbody td.n-per { text-align: right; }
  .nagi-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 650; color: var(--ink-soft); }
  .nagi-table .area__m2 { display: inline; }
}

/* ---------- a small table stacked on a phone (Nagi's distances): one row per place */
@media screen and (max-width: 48rem) {
  .table--stack, .table--stack tbody, .table--stack caption { display: block; }
  .table--stack thead, .table--stack thead tr, .table--stack thead th {
    display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .table--stack tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem; padding: 0.7rem 0.9rem; border-bottom: 1.5px dashed var(--rule); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack tbody th { display: block; padding: 0 0 0.15rem; border: 0; }
  /* each figure on its own line: what the source is on the left, its figure on the right */
  .table.table--stack tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 0.3rem 1rem; padding: 0; border: 0; text-align: right; white-space: normal; font-size: 0.92rem; }
  .table--stack td[data-label]::before { content: attr(data-label); flex: 1 1 auto; text-align: left; font-size: 0.8rem; font-weight: 650; color: var(--ink-soft); }
}

/* ---------- the floating chat button never hides the last rows of a table on a phone */
@media (max-width: 48rem) {
  .opp-fold__body { padding-bottom: 4.5rem; }
  /* a chart inside the folded listing keeps a readable width */
  .opp-fold__body .chart-box { padding-inline: 0.4rem; }
  .opp-fold__body .charts--fold { margin-inline: -0.55rem; }
}

/* ---------- the charts' marks: a tooltip on pointing, tapping or the arrow keys (chart-tips.js; the
   tooltip itself is styled in parts.css) */
.chart-box { position: relative; }
.chart[tabindex]:focus-visible { outline: 3px solid var(--sea); outline-offset: 4px; border-radius: 4px; }
.chart .is-on { stroke-width: 2.6; }
.chart g.is-on path[class$="-line"] { stroke: var(--coral-deep); stroke-width: 2.2; }
/* a bar broken at the end of its scale (Nagi's one far dearer lot) */
.chart .ch-break-gap { stroke: var(--card); stroke-width: 4; }
.chart .ch-break { stroke: var(--ink); stroke-width: 1.3; }
@media print {
  .compare-cards { display: none !important; }
  .opp-compare__wrap { display: block !important; }
}

/* ==========================================================================================
   Added 2026-11-17, after the audit and the newcomer-investor test: the list in a few lines, prices
   a buyer can place, the total cost as a table, no empty rows
   ========================================================================================== */

/* ---------- the list: "all in Las Terrenas" in the lead; what a link asked for; how many rows fit */
.opp-head__here { font-weight: 650; }
/* a phone: the stalls first; the three places Wander works in are said on Home and the area page */
@media (max-width: 48rem) {
  .opp-head__places { display: none; }
}
.opp-filtered { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin: 0.6rem 0 0; color: var(--ink-soft); font-weight: 600; }
.opp-filtered[hidden], .showcase__item[hidden] { display: none; }
.showcase__item { scroll-margin-top: 6rem; }
.showcase__item:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.showcase__match { margin: -0.1rem 0 0.25rem; font-size: 0.88rem; font-weight: 650; color: var(--sea-deep); }
.showcase__match[hidden] { display: none; }
.compare-table td, .compare-table thead th { min-width: 12rem; }

/* ---------- an offer's page: the price per area against Las Terrenas asking prices */
.opp-market { margin-bottom: 2.2rem; }
.opp-market__title { font-size: min(1.4rem, 6.4vw); margin-bottom: 0.4rem; }
.opp-market__intro { font-size: 0.95rem; color: var(--ink-soft); max-width: 52rem; margin-bottom: 0.2rem; }
.opp-market .table-wrap { max-width: 60rem; }
/* a short table: it never scrolls inside itself */
.opp-market .table-wrap__scroll { max-height: none; }
.market-table td, .market-table th { white-space: normal; }
.market-table .opp-market__this th, .market-table .opp-market__this td { font-weight: 650; background: color-mix(in srgb, var(--gold-light) 22%, transparent); }
/* a phone: each figure under its label (the long figures need the whole width) */
@media (max-width: 48rem) {
  .table.market-table.table--stack tbody td { display: block; text-align: left; padding-top: 0.2rem; }
  .market-table.table--stack td[data-label]::before { display: block; }
}

/* ---------- the worked total cost: five rows, its reasoning folded under them */
.how-cost__sum { max-width: 40rem; }
.cost-table { background: var(--card); border: 2px solid var(--ink); border-radius: 8px 4px 10px 5px; }
.cost-table caption { text-align: left; font-weight: 650; padding-bottom: 0.4rem; }
.cost-table th, .cost-table td { white-space: normal; }
.cost-table td.num { white-space: nowrap; font-weight: 650; }
.cost-table__total th, .cost-table__total td { border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.08rem; }
/* a phone (or large text): each row's words over its amount, so a long label never pushes the page wider */
@media (max-width: 30rem) {
  .cost-table, .cost-table caption, .cost-table tbody, .cost-table tfoot, .cost-table tr, .cost-table th, .cost-table td { display: block; }
  .cost-table caption { padding: 0.6rem 0.8rem 0.4rem; }
  .cost-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cost-table tr { padding: 0.5rem 0.8rem; border-bottom: 1.5px dashed var(--rule); }
  .table.cost-table th, .table.cost-table td { padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  .cost-table__total th, .cost-table__total td { border-top: 0; }
  .cost-table tfoot tr { border-bottom: 0; border-top: 2px solid var(--ink); }
}
.opp-cost__why { margin-top: 1.2rem; max-width: 52rem; }
.opp-cost__why-summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; font-weight: 650; text-decoration: underline dotted var(--gold-deep); text-underline-offset: 0.25em; }
.opp-cost__why[open] .opp-cost__why-summary { margin-bottom: 0.6rem; }

/* ---------- before you decide: the three checks alone when nothing else is open */
.settle--one { grid-template-columns: minmax(0, 1fr); }
.settle--one .learn__checks { max-width: 52rem; }
/* the way to "Avoid scams" (in the footer since 2026-11-17), under the checks */
.opp-scams { margin-top: 1.2rem; }
.opp-scams__link { display: inline-block; padding-block: 0.6rem; font-weight: 650; }

/* ---------- Amber Sand: C7 and C8, typed "Apartam": a footnote mark in the type cell, the note under the table */
.fn-mark { margin-left: 0.1em; font-weight: 700; color: var(--gold-deep); text-decoration: none; }
.fn-mark:hover { color: var(--ink); }
.fn-note { scroll-margin-top: calc(var(--header-h, 4rem) + 1rem); }
.fn-note__mark { font-weight: 700; color: var(--gold-deep); }

/* ---------- US units first, the metric part smaller and secondary (src/pages/opportunities.js usFirst, usRange):
   on its own line where key figures are set large ("at a glance", the comparison, the market table) */
.unit-alt { font-size: 0.8em; font-weight: 500; color: var(--ink-soft); }
/* a metric line under a small figure is never under 0.75rem (13.5 px): under a stall's size line on a phone it was
   11.8 px, and the m² are the figures a Spanish-speaking buyer reads */
.unit-alt--line { display: block; margin-top: 0.1em; line-height: 1.3; font-size: max(0.8em, 0.75rem); }

/* the line to How buying works, "Buying from the US" (2026-11-17) */
.opp-ask__us { margin-top: 0.8rem; font-weight: 600; }
/* the unit picker on a phone: smaller type, and room kept clear for the dropdown arrow (at 1.6rem the price touched
   it, live test 2026-11-22). A label longer than the picker (Amber Sand's C7 and C8, or larger text) ends in "…";
   its unit and price come first (src/pages/opportunities.js), and the open list shows every label whole */
@media (max-width: 30rem) {
  .chart-box__pick select { font-size: 0.8rem; padding-inline: 0.45rem 2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- the information desk on the list: who answers (the portrait Home shows, his name, Home's line) */
.opp-desk {
  display: flex; align-items: center; gap: 1rem 1.4rem; margin-top: 2rem; padding: 1rem 1.2rem;
  background: var(--card); border: 2px solid var(--ink); border-radius: 8px 4px 10px 5px; box-shadow: 4px 5px 0 var(--gold);
}
.opp-desk__photo { flex: none; margin: 0; width: 6rem; }
.opp-desk__photo img { display: block; width: 6rem; height: 6rem; object-fit: cover; border: 2px solid var(--ink); border-radius: 50%; }
.opp-desk__words { min-width: 0; }
.opp-desk__title { margin: 0; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); font-family: var(--font-body); }
.opp-desk__name { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.opp-desk__role { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.opp-desk__chat { margin: 0.3rem 0 0; font-size: 0.95rem; font-weight: 600; }
.opp-desk__do { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.7rem 0 0; }
@media (max-width: 30rem) {
  /* the portrait beside the title and name, the line and the buttons across the box */
  .opp-desk { display: block; padding: 0.9rem; }
  .opp-desk__photo { float: left; margin: 0 0.8rem 0.3rem 0; }
  .opp-desk__photo, .opp-desk__photo img { width: 4.2rem; height: 4.2rem; }
  .opp-desk__role { clear: left; padding-top: 0.3rem; }
}
.opp-desk__do .btn { white-space: nowrap; }
@media print { .opp-desk__do { display: none; } }

/* the narrowest screens (320 px, or 390 px at a large text size): a tag or a button too long for the line wraps
   rather than widening the page */
@media (max-width: 22rem) {
  .stall__actions .btn, .opp-desk__do .btn { white-space: normal; }
}

/* a tablet or a small laptop (768 to 1,120 px, 1,024 x 768 among them): the first stall's picture, price and name on
   the first screen, as on a phone and a wide screen. The lead's words are on Home and in the type bar's counts; the
   bunting goes; the budget's chips on one row; the stalls' pictures a little lower */
@media (min-width: 48.01rem) and (max-width: 70rem) {
  .opp-head { padding-top: 1.1rem; }
  .opp-head .page-head__lead { display: none; }
  .opp-showcase .typebar { margin-top: 0.7rem; }
  .opp-showcase .typebar__bunting { display: none; }
  .store-budget { gap: 0.3rem; }
  .store-budget .store-filter__label { font-size: 0.85rem; margin-right: 0; }
  .store-budget .chip { padding: 0.3rem 0.5rem; font-size: 0.8rem; gap: 0.3rem; }
  .stall__pic img { aspect-ratio: 2.2 / 1; }
  .stall__box { --pic-h: calc(100cqi / 2.2); }
  .showcase { margin-top: 0.6rem; }
}

/* ---------- the fifth round (the shopper test of 2026-11-18, fourth pass) */
/* a caption counts the matching rows on screen; on paper every row prints, and it says so */
.cap-print { display: none; }
@media print {
  .cap-screen { display: none; }
  .cap-print { display: inline; }
}
/* an offer opened by "See it" under a choice: the line near its title, and its link down to the rows */
.opp-arrived-line { margin: 0.1rem 0 0.8rem; font-weight: 650; color: var(--sea-deep); }
.opp-arrived-line[hidden] { display: none; }
.opp-arrived-line a { display: inline-block; padding-block: 0.65rem; margin-block: -0.65rem; }
/* the lead hidden on a short or middle-width screen still shows in review mode (it carries a draft mark) */
:root.is-review .opp-head .page-head__lead { display: block !important; }
/* the first stall's picture, price and name on the first screen of a laptop (1,280 x 720 to 1,440 x 900): the
   lead's words and the bunting give way, the title and the pictures are a little lower */
@media (min-width: 48.01rem) and (max-height: 900px) {
  .opp-head { padding-top: 0.9rem; }
  .opp-head .page-head__title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
  .opp-head .page-head__lead { display: none; }
  .opp-showcase .typebar { margin-top: 0.5rem; }
  .opp-showcase .typebar__bunting { display: none; }
  .stall__pic img { aspect-ratio: 2.6 / 1; }
  .stall__box { --pic-h: calc(100cqi / 2.6); }
  .showcase { margin-top: 0.5rem; }
}
/* a narrow stall: "Ask" (its full name, "Ask Wander", stays for screen readers) */
.ask-short { display: none; }
@container stall (max-width: 18rem) {
  .stall__actions .ask-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stall__actions .ask-short { display: inline; }
}
/* a phone: room under the price list, so the floating chat button never covers its last row */
@media (max-width: 48rem) {
  .opp-prices { padding-bottom: 4.5rem; }
}
/* Amber Sand's apartments below 1,280 px: one compact card each (the unit and its price, then its type, rooms, level
   and total area); two cards a row from 768 px, so a card is never a tall box of every figure */
@media screen and (max-width: 79.99rem) {
  /* Amber Sand's apartments: one compact card each, the unit and its price, then its type, rooms, level and
     total area on a line (the other figures are in the table on a wider screen and in the papers) */
  .table-wrap--cards .units-table tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0; padding: 0.55rem 0.8rem 0.6rem; }
  .table-wrap--cards .units-table tbody th.u-unit { order: -2; flex: 0 0 50%; font-size: 1.15rem; }
  .table-wrap--cards .units-table tbody .unit-price { order: -1; flex: 0 0 50%; text-align: right; font-size: 1.05rem; white-space: nowrap; }
  .table-wrap--cards .units-table tbody td { flex: 0 0 auto; margin-right: 0.75rem; font-size: 0.88rem; }
  .table-wrap--cards .units-table tbody td[data-label]::before { display: inline; margin-right: 0.25rem; font-size: 0.78rem; }
  .table-wrap--cards .units-table tbody td.u-type::before { display: none; }
  .table-wrap--cards .units-table tbody td.unit-price::before { display: none; }
  .table-wrap--cards .units-table tbody th.u-unit::before { font-size: 0.78rem; }
  .units-table tbody .area__m2 { display: inline; }
  .table-wrap--cards .units-table tbody td.unit-price { margin-right: 0; }
  .units-table tbody td:is(.u-area:not(.u-total), .u-x, .u-per) { display: none !important; }
  .units-table__none td { flex-basis: 100% !important; }
}
@media screen and (min-width: 48.01rem) and (max-width: 79.99rem) {
  .table-wrap--cards .units-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .table-wrap--cards .units-table tbody tr:last-child { border-bottom: 1.5px dashed var(--rule); }
}

/* ---------- the final round (2026-11-18): a stall's picture never flatter than 16 by 10 on a tablet or a small laptop
   (768 to 1,120 px: it was about 297 x 115 px under its badges at 1,024 px) */
@media (min-width: 48.01rem) and (max-width: 70rem) {
  .stall__pic img { aspect-ratio: 16 / 10; }
  .stall__box { --pic-h: calc(100cqi * 10 / 16); }
}
/* a stall in a row of two or three: the kind's first word beside "To be confirmed", on one line (its stage line says
   "Pre-construction"), so the names stand level across the row */
@media (min-width: 48.01rem) {
  .stall__kind-rest { display: none; }
}
/* the budget's chips on one row from 1,120 px, in either language (in Spanish "Más de US$250,000" stood alone on a
   second row at 1,440 px) */
@media (min-width: 70.01rem) {
  .store-budget { gap: 0.3rem; }
  .store-budget .store-filter__label { margin-right: 0; }
  .store-budget .chip { gap: 0.3rem; padding: 0.35rem 0.55rem; font-size: 0.85rem; }
  .store-budget .chip__n { padding: 0 0.3rem; }
}
