.site-header {
  position: relative;
  z-index: 8;
  flex: none;
  height: 46px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.header-inner.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(14px, 2vw, 30px);
  gap: clamp(20px, 3vw, 46px);
  flex-wrap: nowrap;
}
.site-header .brand { flex: none; gap: 7px; font-size: 21px; letter-spacing: -.9px; }
.site-header .brand img { width: 28px; height: 28px; }
.site-header .main-nav { gap: clamp(2px, .7vw, 10px); }
/* The menus are words on the bar, with no box about any of them. The one for the page in view is in colour; the
   rest are in grey, and darken under the pointer. */
.site-header .main-nav a, .site-header .main-nav button {
  color: #6b7479;
  gap: 6px;
  height: 100%;
  font-size: 14px;
  font-weight: 570;
  padding: 0 clamp(5px, .8vw, 11px);
  background: none;
}
.site-header .main-nav a:hover, .site-header .main-nav button:hover { color: #1c262b; }
.site-header .main-nav a[aria-current="page"] { color: var(--forest); background: none; font-weight: 760; }
.site-header .main-nav a[aria-current="page"]::after { display: none; }
.site-header .main-nav [data-icon] { color: currentColor; }
.site-header .main-nav a[aria-current="page"] [data-icon] { color: #00aeef; }
.site-header .saved-nav {
  gap: 6px;
  height: 100%;
  border: 0;
  color: #6b7479;
  padding: 0 4px;
  background: none;
}
.site-header .saved-nav:hover { color: #1c262b; }
.site-header .saved-nav[aria-current="page"] { color: var(--forest); font-weight: 760; }
.site-header #saved-count { background: #e9edef; color: #4a555a; }
.site-header .saved-nav[aria-current="page"] #saved-count { background: #cdeefc; color: #066896; }
.site-header :is(a,button):focus-visible { outline-color: var(--forest); outline-offset: 3px; }
.site-menu-toggle, .map-filter-trigger { display: none; }
/* The name, with a place beside it for the search box of the map (app.js puts it there on a wide screen). On a
   narrow bar the two are not a group: the name is laid out among the bar's other things as it was. */
.header-lead { display: contents; }
.header-search:empty { display: none; }
/* On a wide bar the menus stand in its middle while there is room either side of them for what is there; with
   the search box beside the name, a narrower bar has them as near the middle as the box leaves. */
@media (min-width: 941px) {
  .header-inner.wrap { display: grid; grid-template-columns: minmax(min-content,1fr) auto minmax(max-content,1fr); }
  .header-lead { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 22px); min-width: 0; }
  .header-search { flex: 0 1 300px; min-width: 190px; }
  .header-search .search-box { width: 100%; height: 34px; margin: 0; padding: 3px 3px 3px 10px; gap: 6px; border: 1px solid #abbbc2; border-radius: 6px; }
  .header-search .search-box > span { font-size: 15px; }
  /* The field takes what room the box has, and asks for none of its own when the bar is short of it. */
  .header-search .search-box input { width: 0; }
  .site-header .saved-nav { justify-self: end; margin-left: 0; }

}
/* Between a phone's bar and a wide one there is not room for the box and the menus' pictures both. */
@media (min-width: 941px) and (max-width: 1279px) {
  .header-search { min-width: 126px; }
  .map-home .site-header .main-nav [data-icon] { display: none; }
}
.skip-link:focus { z-index: 12; }
.map-home {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.map-home .footer { display: none; }
.map-home #main {
  --tool-gutter: clamp(12px, 1.5vw, 24px);
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template: auto minmax(0,1fr) / clamp(240px, 24vw, 350px) minmax(0,1fr);
  width: 100%;
  max-width: none;
  margin: 0;
  background: white;
}
.map-home .hero.map-heading {
  display: flex;
  align-items: center;
  grid-area: 1 / 1;
  padding: 6px var(--tool-gutter);
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.map-home .map-heading .hero-content { width: 100%; padding: 0; }
.map-home .map-heading h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.map-home .map-heading .search-box {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 3px 3px 3px 10px;
  gap: 6px;
  border: 1px solid #abbbc2;
  border-radius: 6px;
}
.map-home .search-box input { min-width: 0; font-size: 13px; padding: 5px 0; }
.map-home .search-box button {
  padding-inline: 12px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 4px;
  font-size: 12px;
}
.map-home .search-box button:hover { background: #33c1f5; }
.map-home .search-box button [data-icon] { display: none; }
.map-home #filters {
  grid-area: 1 / 2;
  z-index: 4;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  min-width: 0;
  padding: 5px var(--tool-gutter) 5px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: white;
}
.map-home .filter-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.map-home .category-tabs { border: 0; padding: 3px; gap: 0; border-radius: 5px; background: #edf1f3; }
.map-home .category-tab {
  flex: none;
  min-width: 0;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 3px;
  color: #4a616a;
  font-size: 13px;
  line-height: 18px;
}
.map-home .category-tab[aria-pressed="true"] { color: #06628c; background: white; box-shadow: 0 1px 3px #20353e29; }
.map-home .category-tab[aria-pressed="true"]::after { display: none; }
.map-home .category-tab .icon { width: 14px; height: 14px; }
.map-home .map-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 7px 8px;
  border: 1px solid #c6d2d7;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
  line-height: 17px;
  color: #304b57;
}
.map-home .map-filter-trigger[aria-expanded="true"] { border-color: var(--forest); background: #e8f3f8; }
.map-filter-trigger .icon { width: 15px; height: 15px; }
.applied-filter-count { min-width: 16px; border-radius: 3px; color: white; background: var(--forest); font-size: 10px; }
.map-home #property-filters {
  flex: 0 1 auto;
  padding: 2px 0 2px 12px;
  border-inline-start: 1px solid var(--line);
}
.map-home .pf-trigger { min-height: 32px; font-size: 12.5px; }
.map-home .pf-panel { left: 12px; }
.amount-filter-form {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr)) auto;
  align-items: end;
  gap: 9px;
  grid-column: 1 / -1;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.amount-range { min-width: 0; padding: 0; margin: 0; border: 0; }
.amount-range legend { margin-bottom: 5px; padding: 0; color: var(--ink); font-size: 13px; font-weight: 650; }
.amount-range legend small { color: var(--muted); font-size: 11px; font-weight: 500; }
.filters .filter-row .amount-range .select-box { width: 100%; max-width: none; }
.amount-bounds { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 4px; align-items: center; margin-top: 5px; }
.amount-bounds span { color: var(--muted); font-size: 11px; }
.amount-bounds input { width: 100%; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
.amount-filter-form button { min-height: 32px; justify-self: end; padding: 5px 13px; font-size: 12px; white-space: nowrap; }
.map-home .amount-filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
.map-home .amount-filter-form button { grid-column: 1 / -1; }
@media (max-width:620px) {
  .amount-filter-form, .map-home .amount-filter-form { grid-template-columns: minmax(0,1fr); }
  .amount-range { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr); gap: 5px; align-items: center; }
  .amount-bounds { margin-top: 0; }
}
.map-home #filter-extra { display: none; }
.map-home #filters:has(.map-filter-trigger[aria-expanded="true"]) #filter-extra {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(485px,100%);
  max-height: min(65dvh,520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  padding: 12px;
  border: 1px solid #b7c7ce;
  border-radius: 0 0 8px 8px;
  background: white;
  box-shadow: 0 5px 12px #1a313b24;
}
.map-home #filter-extra .select-box { width: 100%; max-width: none; }
.map-home #filter-extra .filter-heading { display: none; }
.map-home #filter-extra .filter-actions { grid-column: 1 / -1; justify-self: end; }
.map-home #map-slot { grid-column: 1/-1; margin: 0; min-height: 0; }
.map-home .am-layout, .map-home .am-map { width: 100%; height: 100%; min-height: 0; }
/* The list of lots stands beside the map, not over it: opened, it takes the left of the page for itself and the
   map is drawn in what is left, so nothing on the map is under the list. */
.map-home .am-layout { --am-list: clamp(300px,26vw,380px); display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-rows: minmax(0,1fr); position: relative; border: 0; border-radius: 0; }
.map-home .am-map { grid-column: 2; grid-row: 1; display: grid; grid-template-rows: minmax(0,1fr) auto; }
.map-home .am-stage { height: 100%; min-height: 0; }
.map-home .am-map-footer {
  flex-wrap: nowrap;
  min-height: 22px;
  padding: 2px 12px;
  font-size: 10px;
  background: #f5f9fb;
}
.map-home .am-credit { margin-left: auto; }
/* The strip under the map is one line whatever it has to say. Were its words to wrap, the map above would
   change size as they come and go with every zoom, and its picture would jump. What does not fit is cut
   short; the base map's credit is never the one to give way. */
.map-home .am-map-footer { height: 24px; box-sizing: border-box; overflow: hidden; white-space: nowrap; }
.map-home .am-map-footer > :is(.am-grouping, .am-boundary-credit) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.map-home .am-map-footer > :is(.am-price-choice, .am-sale-legend, .am-sale-note, .am-credit) { flex: none; }
/* There is no strip under the map: the map has the room. Of what stood on it, two notes stay, over the map's
   foot and only while they have something to say: that public sales are left out of a search, and whose data an
   outline being shown is drawn from. The choice of price shown is put away. */
.map-home .am-map { position: relative; }
.map-home .am-map-footer { position: absolute; left: 8px; bottom: 30px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: auto; padding: 0; border: 0; background: none; overflow: visible; pointer-events: none; }
.map-home .am-map-footer > :not(.am-sale-note, .am-boundary-credit) { display: none; }
.map-home .am-map-footer > :is(.am-sale-note, .am-boundary-credit) { padding: 2px 7px; background: rgb(255 255 255 / 92%); box-shadow: 0 1px 4px rgb(6 46 66 / 22%); color: #33505c; font-size: 11px; pointer-events: auto; }
.map-home .am-map-footer > [hidden] { display: none; }
.am-price-choice { display: none !important; }
.am-debug { display: none; }
.map-home #map-keys { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.map-home .am-base-status { position: absolute; bottom: 30px; left: 12px; background: white; border-radius: 5px; }
.am-panel-toggle {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #315361;
  background: #06648f;
  color: white;
  font-size: 13px;
  font-weight: 680;
  box-shadow: 0 2px 6px #253d4830;
}
.map-home .am-panel {
  grid-column: 1;
  grid-row: 1;
  width: var(--am-list);
  height: auto;
  min-height: 0;
  max-height: none;
  border: 0;
  border-right: 1px solid #b4c5cd;
  background: white;
  overflow: hidden;
}
/* The button that opens the list lies on the map, at the map's own corner wherever that now is. */
.map-home .am-layout:has(.am-panel:not([hidden])) .am-panel-toggle { left: calc(var(--am-list) + 12px); }
.map-home .am-panel-head { padding: 10px 8px 10px 14px; min-height: 46px; border-bottom-color: #d5dfe4; }
.map-home .am-panel-head h2 { font-size: 16px; font-weight: 750; letter-spacing: -.03em; }
.map-home .am-panel .am-list-toolbar { padding: 7px 10px 7px 14px; border-bottom: 1px solid #d5dfe4; }
.map-home .am-panel-close { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border-radius: 4px; color: #445c67; }
.map-home .am-panel-close:hover { background: #e8eef1; }
.map-home .am-panel .am-coverage { flex: none; padding: 6px 11px; margin: 0; background: #f0f5f7; color: #435d68; font-size: 11px; }
.map-home .am-panel .am-list { flex: 1; min-height: 0; max-height: none; }
.map-home .am-panel .am-more { margin: 5px 10px; }
.map-home .toast { z-index: 10; }
@media (max-width: 1170px) {
  .map-home #filters { align-content: center; }
  .map-home #property-filters { padding-inline-start: 0; border: 0; }
}
@media (max-width: 940px) {
  .site-header { height: 49px; }
  .header-inner.wrap { padding-inline: 13px; gap: 9px; }
  .site-header .brand { margin-right: auto; font-size: 21px; }
  .site-header .brand img { width: 29px; height: 29px; }
  .site-header .saved-nav { margin: 0; padding: 5px 8px; font-size: 12px; }
  .site-menu-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 6px 7px; color: var(--ink); font-size: 13px; }
  .site-menu-toggle .icon { width: 18px; height: 18px; }
  .site-header .main-nav { display: none; }
  #site-menu-toggle[aria-expanded="true"] + .main-nav {
    position: absolute;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    top: 100%;
    right: 12px;
    width: min(310px,calc(100vw - 24px));
    height: auto;
    padding: 6px;
    margin: 0;
    overflow: auto;
    border: 1px solid #b4c6cd;
    border-radius: 0 0 7px 7px;
    background: white;
    box-shadow: 0 4px 12px #06699724;
  }
  .site-header .main-nav a,.site-header .main-nav button { min-height: 39px; padding: 7px 10px; color: #30464f; font-size: 14px; }
  .site-header .main-nav a:hover,.site-header .main-nav button:hover { color: #1c262b; background: #f1f4f5; }
  .site-header .main-nav a[aria-current="page"] { color: var(--forest); background: none; }
  .site-header .main-nav a[aria-current="page"]::after { display: none; }
  .site-header .main-nav [data-icon] { color: currentColor; }
  .site-header .main-nav :focus-visible { outline-color: var(--forest); outline-offset: -3px; }
}
@media (max-width: 760px) {
  /* A phone gives the map every line it can: the search, the conditions and the kinds share one row above
     it, and the strip under it is not shown. What opens from that row hangs from the row, across the screen. */
  .map-home #main { --tool-gutter: 10px; --tool-row: 47px; position: relative; grid-template: var(--tool-row) minmax(0,1fr) / minmax(0,1fr) auto; }
  .map-home .hero.map-heading { padding: 6px 6px 6px var(--tool-gutter); }
  .map-home .map-heading .search-box { height: 35px; padding-left: 8px; gap: 5px; }
  .map-home .search-box input { text-overflow: ellipsis; }
  .map-home .search-box button { width: 30px; padding: 0; font-size: 0; }
  .map-home .search-box button [data-icon] { display: inline-flex; }
  .map-home .search-box button .icon { display: block; width: 15px; height: 15px; }
  /* Only the icon is shown: with no room kept between it and the word that is not, it sits in the middle. */
  .map-home .search-box button { display: flex; align-items: center; justify-content: center; gap: 0; }
  .map-home #filters { grid-area: 1 / 2; position: static; flex-wrap: nowrap; padding: 6px var(--tool-gutter) 6px 0; gap: 6px; }
  .map-home .filter-main { gap: 4px; }
  .map-home .map-filter-trigger { position: relative; justify-content: center; gap: 0; width: 35px; height: 35px; padding: 0; font-size: 0; }
  .map-home .map-filter-trigger .icon { width: 17px; height: 17px; }
  .map-home .map-filter-trigger .applied-filter-count { position: absolute; top: -5px; right: -5px; padding: 0 3px; font-size: 10px; line-height: 15px; }
  .map-home #property-filters { position: static; flex: 0 1 auto; padding: 0; border: 0; }
  .map-home .pf-trigger { min-height: 35px; max-width: 132px; padding-inline: 10px; }
  .map-home .pf-panel { top: calc(var(--tool-row) - 1px); left: var(--tool-gutter); width: min(430px,calc(100% - 2 * var(--tool-gutter))); max-height: calc(100dvh - 150px); }
  .map-home .category-tabs { flex: 0 1 auto; }
  .map-home .category-tab { padding-inline: 7px; }
  .map-home #filters:has(.map-filter-trigger[aria-expanded="true"]) #filter-extra { z-index: 5; top: calc(var(--tool-row) - 1px); left: auto; right: 0; width: min(100%,430px); }
  .map-home #filter-extra .am-price-choice { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; color: #304b57; font-size: 13px; font-weight: 650; }
  .map-home #filter-extra .am-price-choice[hidden] { display: none; }
  .map-home #filter-extra .am-price-mode { flex: 0 1 190px; min-height: 38px; padding: 6px 8px; border: 1px solid #c6d2d7; border-radius: 5px; background: white; color: var(--ink); font-size: 13px; }
  /* On a phone the list takes the foot of the page, the full width of it, and the map the rest above. */
  .map-home .am-layout { grid-template-columns: minmax(0,1fr); }
  .map-home .am-layout:has(.am-panel:not([hidden])) { grid-template-rows: minmax(0,54%) minmax(0,46%); }
  .map-home .am-map { grid-column: 1; }
  .map-home .am-panel { grid-column: 1; grid-row: 2; width: auto; border-right: 0; border-top: 1px solid #b4c5cd; }
  .map-home .am-layout:has(.am-panel:not([hidden])) .am-panel-toggle { left: 9px; }
  .map-home .am-zoom { right: 9px; top: 9px; }
  .am-panel-toggle { left: 9px; top: 9px; }
}
@media (max-width: 428px) {
  .map-home .category-tab { padding-inline: 5px; font-size: 12px; }
  .map-home .category-tab .icon { display: none; }
}
/* A phone on its side is too low to give the list its foot: there too the list stands at the left. */
@media (max-height: 440px) and (max-width: 940px) {
  .map-home .am-layout { --am-list: min(300px,44vw); grid-template-columns: auto minmax(0,1fr); }
  .map-home .am-layout:has(.am-panel:not([hidden])) { grid-template-rows: minmax(0,1fr); }
  .map-home .am-map { grid-column: 2; }
  .map-home .am-panel { grid-column: 1; grid-row: 1; width: var(--am-list); border-top: 0; border-right: 1px solid #b4c5cd; }
  .map-home .am-layout:has(.am-panel:not([hidden])) .am-panel-toggle { left: calc(var(--am-list) + 9px); }
}
/* Leave the lower half of a phone map free for the open results list. */
@media (max-width:760px) {
  .map-home .am-layout:has(.am-panel-toggle[aria-expanded="true"]) .am-zoom { --am-presets-direction:row; --am-presets-top:-1px; --am-presets-right:100%; --am-presets-head:none; }
  .map-home .am-layout:has(.am-panel-toggle[aria-expanded="true"]) .am-zoom [data-map-level] { height:36px; border-top:0; }
}
@media (max-height:520px) {
  .map-home .am-zoom { --am-presets-direction:row; --am-presets-top:-1px; --am-presets-right:100%; --am-presets-head:none; right:9px; top:9px; }
  .map-home .am-zoom [data-map-level] { width:38px; height:36px; border-top:0; }
}
@media (max-width:400px) {
  .map-home .am-layout:has(.am-panel-toggle[aria-expanded="true"]) .am-zoom-presets:not([hidden]) {
    display:grid;grid-template-columns:repeat(3,42px);
  }
}
@media (max-width:400px) and (max-height:520px) {
  .map-home .am-zoom-presets:not([hidden]) {display:grid;grid-template-columns:repeat(3,38px);}
}
@media (min-width: 941px) {
  /* The map has the page under the bar to itself. What stood in a row over it is on it: the search's
     conditions and kinds beside the button that opens the list, wherever the list has put that. */
  .map-home .hero.map-heading { display: none; }
  .map-home #main { --am-list: clamp(300px,26vw,380px); --am-tools: 12px; position: relative; grid-template: minmax(0,1fr) / minmax(0,1fr); }
  .map-home #main:has(.am-panel:not([hidden])) { --am-tools: calc(var(--am-list) + 12px); }
  .map-home .am-panel-toggle { box-sizing: border-box; width: 98px; justify-content: center; padding-inline: 0; }
  .map-home #filters {
    position: absolute;
    grid-area: auto;
    top: 12px;
    left: calc(var(--am-tools) + 98px + 8px);
    width: max-content;
    max-width: calc(100% - var(--am-tools) - 98px - 8px - 64px);
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    pointer-events: none;
  }
  .map-home #filters > * { pointer-events: auto; }
  .map-home .map-filter-trigger { min-height: 34px; border-color: #a4b8c1; background: #fff; box-shadow: 0 2px 6px #253d4830; }
  .map-home .map-filter-trigger:hover { background: #f1f6f8; }
  .map-home .category-tabs { background: #fff; border: 1px solid #a4b8c1; box-shadow: 0 2px 6px #253d4830; }
  .map-home #property-filters { padding: 0; border: 0; }
  .map-home .pf-trigger { min-height: 34px; box-shadow: 0 2px 6px #253d4830; }
  .map-home .pf-panel { top: calc(100% + 6px); left: 0; }
  .map-home #filters:has(.map-filter-trigger[aria-expanded="true"]) #filter-extra {
    top: calc(100% + 6px);
    width: min(485px, calc(100vw - var(--am-tools) - 98px - 28px));
    border-radius: 8px;
    box-shadow: 0 8px 22px #1a313b33;
  }
}
