/* The flat pages and the price list: plain HTML on top of app.css. */
.mast-slim { grid-template-columns: auto 1fr auto; align-items: center; padding-bottom: 26px; }
.slim-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.slim-nav a { color: var(--white); font-size: 15px; text-decoration: none; }
.slim-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.panel.flat, .panel.flat-more { padding: clamp(28px, 3.4vw, 56px) var(--pad) clamp(28px, 3.4vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); color: var(--ink-3); font-size: 14px; }
.crumbs a { color: var(--ink-2); }
.flat h1 { font-size: clamp(32px, 3.8vw, 58px); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; }
.flat h1 b { color: var(--brand); font-weight: 500; }
.flat-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: start; }
.flat-plan { padding: clamp(14px, 2vw, 28px); border-radius: var(--r-sm); background: var(--mist); }
.flat-plan svg { display: block; width: 100%; height: auto; max-height: 70vh; }
.flat-plan figcaption { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; }
.flat-side { display: grid; gap: 18px; justify-items: start; }
.flat-price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.flat-price dt, .flat-facts dt { color: var(--ink-3); font-size: 13.5px; }
.flat-price dd { margin: 2px 0 0; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.flat-note { color: var(--ink-2); font-size: 14.5px; }
.flat-facts { display: grid; width: 100%; border-top: 1px solid var(--line); }
.flat-facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.flat-facts dd { margin: 0; }
.flat-side .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.flat-link a, .list-files a { color: var(--brand); }
.flat-more .sec-top { margin-bottom: clamp(28px, 3vw, 44px); }
.flat-more .sec-top > div { max-width: 760px; }
.flat-more .history { margin-bottom: 8px; }
.price-history { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.price-history th { padding: 8px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-3); font-size: 12.5px; font-weight: 500; text-align: left; }
.price-history td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.price-history td:nth-child(n+3), .price-history th:nth-child(n+3) { text-align: right; white-space: nowrap; }
.price-history .up { color: var(--brown); }
.price-history .down { color: var(--brand); }
.flat-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.flat-pager a { color: var(--ink); }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.price-table thead th { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-3); font-size: 12.5px; font-weight: 500; text-align: left; white-space: nowrap; }
.price-table td, .price-table tbody th { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.price-table tbody th a { color: var(--brand); font-weight: 500; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table .floor-row th { padding-top: 26px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.price-table tr.is-sold td { color: var(--ink-3); }
.list-files { margin-top: 24px; color: var(--ink-2); font-size: 14.5px; }
.list-legend { display: none; }
@media (max-width: 860px) {
  .mast-slim { grid-template-columns: 1fr auto; }
  .slim-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; }
  .flat-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .slim-nav { display: none; }
  /* on a phone the list keeps unit, rooms, area, price and status; the rest is on the flat's page */
  .price-table { min-width: 0; font-size: 14.5px; }
  .price-table tr > :nth-child(4), .price-table tr > :nth-child(5), .price-table tr > :nth-child(7) { display: none; }
  .price-table .floor-row th { display: table-cell; }
  .price-table td, .price-table tbody th { padding-right: 8px; }
  /* the status as its coloured dot, the legend above says which is which; screen readers still read the word */
  .price-table .status { gap: 0; padding: 0; background: none; font-size: 0; }
  .price-table .status::before { width: 10px; height: 10px; }
  .price-table thead th:last-child { width: 10px; font-size: 0; }
  .list-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
  .list-legend .status { padding: 3px 9px; font-size: 12px; }
  .flat-price { grid-template-columns: 1fr; }
  .flat-facts div { grid-template-columns: 8em 1fr; }
}
/* the plan drawings, from plan.mjs */

.plan { display: block; width: 100%; height: auto; }
.plan text { font-family: inherit; }
.pl-room { fill: #FBFAF7; }
.pl-room.is-dry { fill: #F4EEE4; }
.pl-room.is-wet { fill: #E6EBEE; }
.pl-room.is-hall { fill: #F8F5EF; }
.pl-room.is-common { fill: #ECECEA; }
.pl-wall { fill: #262522; }
.pl-win rect { fill: #FFFFFF; stroke: #262522; }
.pl-win path { fill: none; stroke: #262522; }
.pl-leaf { stroke: #262522; stroke-width: 1.6px; fill: none; }
.pl-leaf.is-entry { stroke-width: 2.6px; }
.pl-swing { stroke: #262522; stroke-width: .8px; fill: none; stroke-dasharray: 3 3; }
.pl-slide { stroke: #262522; stroke-width: 2px; fill: none; }
.pl-lift { stroke: #262522; stroke-width: 3px; }
.pl-furn { fill: #FFFFFF; stroke: #8E897F; }
.pl-furn * { stroke-width: .9px; }
.pl-furn .thin { stroke-width: .5px; }
.pl-out { stroke: #8E897F; }
.pl-deck-bg { fill: #EFE9DE; }
.pl-deck-line { stroke: #DED5C5; stroke-width: 1.2; }
.pl-garden { fill: #E7F2DF; stroke: #C9E3B8; }
.pl-rail { fill: none; stroke: #262522; stroke-width: 2px; }
.pl-win *, .pl-leaf, .pl-swing, .pl-slide, .pl-lift, .pl-furn *, .pl-out, .pl-garden, .pl-rail, .pl-dim path, .pl-compass circle, .pl-stairs path, .pl-liftcar *, .pk-outline, .pk-unit, .pk-common, .pk-out { vector-effect: non-scaling-stroke; }
.pl-win rect, .pl-win path, .pl-out, .pl-garden { stroke-width: 1px; }
.pl-label { fill: #262522; font-size: 1em; font-weight: 500; text-anchor: middle; dominant-baseline: middle; }
.pl-label.is-small { font-size: .84em; }
.pl-label .pl-area { font-weight: 500; }
.pl-label.is-out { fill: #1F5A3A; }
.pl-dim path { fill: none; stroke: #6B675F; stroke-width: .8px; }
.pl-dim text { fill: #6B675F; font-size: .82em; text-anchor: middle; }
.pl-compass circle { fill: none; stroke: #262522; stroke-width: 1px; }
.pl-compass path { fill: #262522; }
.pl-compass text { fill: #262522; font-size: .9em; font-weight: 500; text-anchor: middle; }
.pl-stairs path { fill: none; stroke: #8E897F; stroke-width: .8px; }
.pl-stairs .pl-arrow { stroke: #262522; }
.pl-liftcar rect, .pl-liftcar path { fill: none; stroke: #8E897F; stroke-width: .8px; }
.pk-outline { fill: none; stroke: #262522; stroke-width: 1.5px; }
.pk-unit, .pk-common { fill: #FFFFFF; stroke: #B8B3AA; stroke-width: .8px; }
.pk-common { fill: #ECECEA; }
.pk-out { fill: none; stroke: #B8B3AA; stroke-width: .8px; }
.pk-unit.is-on { fill: #1F5A3A; }
.pk-out.is-on { fill: #C9E3B8; stroke: #1F5A3A; }
