/*
Theme Name: АПМ — Новостройки
Description: Каталог новостроек и квартир агентства Павла Мерзлякова.
Version: 0.19.6
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: apm
*/
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/inter-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family:Inter; src:url(assets/inter-ruble-400-800.woff2) format("woff2"); font-style:normal; font-weight:400 800; font-display:swap; unicode-range:U+20BD; }
:root {
  --ink: #20211f;
  --muted: #60635e;
  --line: #deded7;
  --paper: #fff;
  --soft: #f5f5f1;
  --sun: #ffdb32;
  --ease: cubic-bezier(0.2, 0.72, 0.21, 1);
  --radius: 16px;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
@media (hover: hover) and (pointer: fine) {
  html {
    overflow-x: clip;
    overscroll-behavior-x: none;
  }
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.hero button:focus-visible {
  outline-color: var(--sun);
}
button:disabled {
  cursor: default;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(calc(100% - clamp(40px, 7.5vw, 138px)), 1536px);
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 14px;
  transform: translateY(-150%);
  background: var(--sun);
  z-index: 10;
}
.skip:focus {
  transform: none;
}
.header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand img {
  width: 89px;
  height: auto;
  display: block;
}
.brand span {
  font-size: 10px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 650;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.topnav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.85vw, 32px);
}
.topnav a,
.topnav button {
  font-size: 14px;
  font-weight: 540;
  letter-spacing: -0.025em;
  padding-block: 9px;
  position: relative;
  white-space: nowrap;
}
.topnav :is(a, button):after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.topnav :is(a, button):hover:after {
  transform: none;
}
.header-actions,
.carousel,
.foot-actions,
.text-btn,
.dark,
.secondary,
.yellow,
.round,
.hero-address,
.hero-arrow,
.story-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-actions {
  gap: 10px;
}
.dark,
.yellow {
  border-radius: 9px;
  gap: 12px;
  font-weight: 640;
  letter-spacing: -0.025em;
  min-height: 46px;
  padding: 0 20px;
  font-size: 14px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.dark {
  background: var(--ink);
  color: white;
}
.dark:hover {
  background: #383b35;
}
.dark:hover .ico,
.text-btn:hover .ico {
  transform: translateX(3px);
}
:is(.secondary,.yellow,.dark,.round,.text-btn) > .ico {
  display:block;
  align-self:center;
}
:is(.secondary,.yellow,.dark) > .ico { width:18px; height:18px; }
button .ico {
  transition: transform 0.2s var(--ease);
}
.round {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}
.round:hover,
.fav:hover {
  background: var(--soft);
}
#saved-dot {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e3b800;
}
.menu-toggle,
.mobile-nav {
  display: none;
}
.hero {
  overflow: hidden;
  isolation: isolate;
  position: relative;
  min-height: 390px;
  height: clamp(398px, 34.5vw, 535px);
  border-radius: var(--radius);
  background: #3d4340;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-image {
  object-fit: cover;
  object-position: 50% 55%;
}
.hero-image.entering {
  animation: arrive 0.42s var(--ease);
}
@keyframes arrive {
  from {
    opacity: 0.65;
    transform: scale(1.012);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(16, 20, 17, 0.76),
      rgba(16, 20, 17, 0.39) 41%,
      transparent 78%
    ),
    linear-gradient(0deg, rgba(14, 18, 15, 0.55), transparent 34%);
}
.hero-content {
  padding: clamp(28px, 3.8vw, 60px) clamp(26px, 3.65vw, 59px) 0;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  letter-spacing: -0.02em;
  font-weight: 550;
}
.hero-meta span {
  width: 20px;
  height: 4px;
  background: var(--sun);
  display: block;
}
.hero h1 {
  font-size: clamp(62px, 5.85vw, 99px);
  line-height: 0.99;
  letter-spacing: -0.068em;
  font-weight: 630;
  margin: 25px 0 16px;
}
.hero-sub {
  font-size: clamp(15px, 1.3vw, 22px);
  letter-spacing: -0.028em;
  line-height: 1.4;
}
.hero-foot {
  padding: 10px clamp(26px, 3.65vw, 59px) 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.hero-address {
  gap: 8px;
  font-size: 13px;
  font-weight: 530;
  padding: 8px 0;
  text-align: left;
}
.hero-address .ico {
  width: 15px;
  height: 15px;
}
.hero-address:hover .ico:last-child {
  transform: translate(2px, -2px);
}
.carousel {
  gap: 8px;
}
.slide-count {
  font-size: 12px;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  margin-right: 9px;
}
.slide-count b {
  color: var(--sun);
}
.hero-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff9c;
  border-radius: 50%;
  background: #171b1980;
  color: white;
}
.hero-arrow:hover {
  background: white;
  color: var(--ink);
}
.hero-arrow .ico {
  width: 17px;
}
.finder {
  display: grid;
  grid-template-columns: 1.08fr 1.5fr 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 26px;
  column-gap: clamp(15px, 2vw, 38px);
  margin-top: 14px;
  min-height: 92px;
}
.select-box {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-right: 20px;
}
.select-box span,
.rooms legend {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--muted);
  padding: 0;
  margin-bottom: 4px;
}
.select-box select {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  font-weight: 590;
  cursor: pointer;
  padding: 3px 20px 3px 0;
  width: 100%;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.select-box > .ico {
  position: absolute;
  bottom: 7px;
  right: 10px;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.rooms {
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  margin: 0;
  min-width: 0;
  padding: 0 clamp(12px, 1.8vw, 31px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}
.rooms legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
}
.room-list {
  display: flex;
  gap: 4px;
  clear: both;
}
.room-list button {
  min-width: 31px;
  height: 29px;
  padding: 0 8px;
  background: var(--soft);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 560;
}
.room-list button:hover {
  background: #e7e7e2;
}
.room-list button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.yellow {
  background: var(--sun);
  color: #181a17;
}
.yellow:hover {
  background: #f4cf1b;
  transform: translateY(-1px);
}
.yellow:active,
.dark:active {
  transform: scale(0.985);
}
.find-button {
  min-height: 53px;
  padding: 0 clamp(17px, 2.45vw, 40px);
  font-size: 16px;
}
.find-button .ico {
  width: 19px;
  height: 19px;
}
.projects,
.buyers {
  margin-top: clamp(46px, 4.9vw, 85px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 21px;
}
h2 {
  font-size: clamp(34px, 3.65vw, 62px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 1.09;
}
.num {
  font-weight: 550;
  margin-left: 9px;
  font-size: 14px;
  vertical-align: top;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border-radius: 20px;
  min-width: 25px;
  height: 23px;
  letter-spacing: 0;
  transform: translateY(3px);
}
.text-btn {
  gap: 9px;
  font-size: 14px;
  min-height: 40px;
  font-weight: 570;
}
.text-btn .ico {
  width: 17px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.tab {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 25px;
  font-size: 13px;
  line-height: 1.35;
  min-height: 36px;
  font-weight: 530;
  letter-spacing: -0.02em;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.tab:hover {
  border-color: #90938d;
}
.tab[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.project-photo {
  aspect-ratio: 1.65;
  overflow: hidden;
  border-radius: 13px;
  position: relative;
  background: #e5e7df;
}
.photo-open,
.photo-open picture,
.photo-open img {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-open img,
.coast-story img {
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.photo-open:hover img,
.coast-story:hover img {
  transform: scale(1.035);
}
.project-tags {
  position: absolute;
  inset: 13px 55px auto 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.project-tags .mortgage-tag {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--sun);
  color: var(--ink);
  pointer-events: auto;
}
.project-tags .mortgage-tag:is(:hover, :focus-visible) {
  background: var(--ink);
  color: white;
}
.project-tag {
  border-radius: 5px;
  background: #fff;
  color: #242721;
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 560;
  pointer-events: none;
}
.fav {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
}
.fav .ico {
  width: 17px;
}
.fav[aria-pressed="true"] .ico {
  fill: var(--ink);
}
.town {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0 6px;
}
.town .ico {
  width: 13px;
  height: 13px;
}
.project :is(h2, h3) {
  font-size: clamp(21px, 1.95vw, 32px);
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.project :is(h2, h3) :is(button, a) {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: inherit;
  font-weight: 590;
  letter-spacing: inherit;
}
.project :is(h2, h3) .ico {
  width: 18px;
}
.project :is(h2, h3) :is(button, a):hover .ico,
.buyer-links :is(button, a):hover > .ico {
  transform: translate(3px, -3px);
}
.buyer-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(24px, 4vw, 70px);
  align-items: stretch;
}
.coast-story {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  min-height: 260px;
  color: white;
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 25px;
}
.coast-story img,
.coast-story:after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.coast-story:after {
  content: "";
  background: linear-gradient(0deg, #112024b3, transparent 77%);
}
.story-title {
  font-size: clamp(32px, 3vw, 48px);
  letter-spacing: -0.065em;
  line-height: 1.02;
  font-weight: 600;
}
.story-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
}
.buyer-links {
  display: grid;
}
.buyer-links :is(button, a) {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 540;
  letter-spacing: -0.035em;
  padding: 12px 0;
}
.buyer-links :is(button, a):first-child {
  border-top: 1px solid var(--line);
}
.buyer-links :is(button, a) > .ico {
  margin-left: auto;
  width: 18px;
}
.benefit-icon {
  background: var(--soft);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.benefit-icon .ico {
  width: 17px;
}
footer {
  margin-top: clamp(46px, 6vw, 92px);
  background: var(--soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 38px;
  gap: 20px;
}
.footer-inner p {
  font-size: 13px;
  color: #52574f;
  margin-top: 12px;
}
.foot-actions {
  gap: 13px;
  align-items: flex-end;
  flex-direction: column;
}
.under {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.under:hover {
  text-decoration: underline;
}
.under .ico {
  width: 14px;
  height: 14px;
}
dialog {
  width: min(620px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 17px;
  color: var(--ink);
  max-height: 86vh;
  max-height: 86dvh;
  box-shadow: 0 18px 75px #1518143d;
}
dialog::backdrop {
  background: #15181495;
}
html:has(dialog[open]) {
  overflow: hidden;
}
.dialog-inner {
  padding: 32px;
  position: relative;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: white;
  width: 37px;
  height: 37px;
  z-index: 1;
}
.dialog-close .ico {
  width: 17px;
}
.dialog-inner h2 {
  font-size: clamp(27px, 3.3vw, 40px);
  line-height: 1.1;
  margin: 10px 32px 15px 0;
  letter-spacing: -0.055em;
}
.dialog-inner p {
  line-height: 1.5;
  color: #555b52;
  font-size: 15px;
  margin: 8px 0 16px;
}
.dialog-inner .micro {
  font-size: 12px;
  color: #5e645c;
}
.dialog-img {
  width: 100%;
  aspect-ratio: 2.35;
  object-fit: cover;
  border-radius: 9px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.dialog-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  font-weight: 550;
  font-size: 15px;
  gap: 9px;
}
.dialog-link .ico {
  width: 17px;
}
.lot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 13px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.lot-row small,
.lot-row strong {
  display: block;
}
.lot-row small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.lot-row strong {
  font-weight: 570;
  font-size: 15px;
}
.lot-row > span:last-child {
  text-align: right;
}
.lead {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}
.lead label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 560;
}
.lead input,
.lead select {
  width: 100%;
  background: white;
  border: 1px solid #b1b3ab;
  border-radius: 7px;
  padding: 12px;
  font-weight: 400;
}
.lead .yellow {
  justify-self: start;
}
.lead .micro {
  margin: 0;
}
.secondary {
  gap: 9px;
  vertical-align: middle;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 550;
}
.secondary:hover {
  background: var(--soft);
}
.dialog-close:focus-visible {
  outline-color: #806000;
}
@media (max-width: 1100px) {
  .header {
    gap: 16px;
  }
  .brand span {
    font-size: 9px;
  }
  .topnav {
    gap: 14px;
  }
  .topnav a,
  .topnav button,
  .top-book {
    font-size: 13px;
  }
  .top-book {
    padding: 0 14px;
  }
  .finder {
    column-gap: 16px;
  }
  .room-list button {
    min-width: 28px;
  }
  .rooms {
    padding-inline: 15px;
  }
}
@media (max-width: 920px) {
  .topnav {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .header {
    min-height: 70px;
  }
  .mobile-nav:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    padding: 5px 0 20px;
  }
  .mobile-nav > * {
    text-align: left;
    font-size: 15px;
    padding: 8px 0;
  }
  .hero {
    height: 410px;
  }
  .finder {
    grid-template-columns: 1fr 1.25fr 1fr;
    row-gap: 14px;
  }
  .find-button {
    grid-column: 1/-1;
    min-height: 43px;
  }
  .project-grid {
    gap: 14px;
  }
  .project :is(h2, h3) {
    font-size: 21px;
  }
  .project-photo {
    aspect-ratio: 1.45;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header {
    min-height: 66px;
    gap: 8px;
  }
  .brand img {
    width: 69px;
  }
  .brand {
    gap: 6px;
  }
  .brand span {
    font-size: 8px;
    padding-left: 7px;
  }
  .header-actions {
    gap: 6px;
  }
  .top-book {
    display: none;
  }
  .round {
    width: 38px;
    height: 38px;
  }
  .hero {
    height: 385px;
    min-height: 0;
    border-radius: 13px;
  }
  .hero-image {
    object-position: 60% 55%;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #101410b8, #10141027 90%),
      linear-gradient(0deg, #11180fc9, transparent 39%);
  }
  .hero-content {
    padding: 32px 20px 0;
  }
  .hero-meta {
    font-size: 12px;
  }
  .hero h1 {
    font-size: clamp(40px, 9.4vw, 62px);
    line-height: 1.03;
    margin: 26px 0 12px;
    letter-spacing: -0.065em;
  }
  .hero-sub {
    font-size: 14px;
    max-width: 250px;
  }
  .hero-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 10px 20px 15px;
  }
  .hero-address {
    font-size: 11px;
  }
  .carousel {
    width: 100%;
    justify-content: flex-end;
  }
  .slide-count {
    margin-right: auto;
  }
  .hero-arrow {
    width: 33px;
    height: 33px;
  }
  .finder {
    padding: 15px 14px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px 12px;
    border-radius: 13px;
    margin-top: 11px;
  }
  .select-box {
    padding: 0;
  }
  .select-box > .ico {
    right: 0;
    width: 12px;
  }
  .select-box select {
    font-size: 14px;
  }
  .rooms {
    border: 0;
    padding: 0;
  }
  .rooms legend,
  .select-box span {
    font-size: 11px;
  }
  .room-list {
    gap: 3px;
  }
  .room-list button {
    font-size: 12px;
    min-width: 23px;
    height: 27px;
    padding: 0 5px;
  }
  .find-button {
    grid-column: auto;
    padding: 0 7px;
    font-size: 13px;
    gap: 6px;
    min-height: 42px;
  }
  .find-button .ico {
    width: 15px;
  }
  .projects,
  .buyers {
    margin-top: 38px;
  }
  .section-head {
    margin-bottom: 14px;
    align-items: center;
  }
  .section-head h2 {
    font-size: clamp(26px, 6.9vw, 39px);
    line-height: 1.15;
  }
  .num {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    margin-left: 5px;
  }
  .text-btn {
    font-size: 11px;
    gap: 4px;
    min-height: 35px;
  }
  .text-btn .ico {
    width: 14px;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 5px;
    margin: 0 0 12px;
    padding: 3px 0;
  }
  .tab {
    font-size: 12px;
    padding: 7px 12px;
    min-height: 32px;
    flex: none;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-photo {
    aspect-ratio: 1.78;
  }
  .project :is(h2, h3) {
    font-size: 24px;
  }
  .town {
    margin: 10px 0 4px;
  }
  .buyer-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .coast-story {
    min-height: 230px;
    padding: 20px;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 25px;
  }
  .foot-actions {
    align-items: flex-start;
  }
  .dialog-inner {
    padding: 24px 19px;
  }
  .dialog-img {
    margin-top: 15px;
  }
  .dialog-close {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
  }
}
@media (max-width: 355px) {
  .wrap {
    width: calc(100% - 20px);
  }
  .brand span {
    font-size: 7px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .finder {
    padding: 12px 10px;
  }
  .hero {
    height: 340px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 650px) {
  .room-list button {
    min-height: 32px;
    min-width: 25px;
  }
  .hero-arrow {
    width: 38px;
    height: 38px;
  }
  .room-list button:focus-visible {
    outline-offset: 1px;
  }
}

/* Header sections share the same destinations on pointer and touch layouts. */
.header { position:relative; z-index:12; }
.skip:focus { z-index:20; }
.nav-group { position:relative; }
.topnav .nav-group { display:flex; align-items:center; }
.nav-branch summary { display:flex; align-items:center; cursor:pointer; list-style:none; border-radius:5px; }
.nav-branch summary::-webkit-details-marker { display:none; }
.nav-branch summary:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.topnav .nav-branch summary { justify-content:center; width:24px; min-height:40px; }
.nav-branch summary .ico { width:13px; height:13px; }
.nav-branch[open] summary .ico { transform:rotate(180deg); }
.nav-panel { background:white; }
.topnav .nav-panel {
  position:absolute; top:100%; left:-12px; z-index:1; width:clamp(460px,37vw,555px);
  display:grid; grid-template-columns:1.05fr 1fr; gap:12px; padding:10px;
  border:1px solid var(--line); border-radius:16px; box-shadow:0 12px 32px #191b191c;
}
.topnav .nav-group:nth-child(n+4) .nav-panel { left:auto; right:0; }
.nav-destinations { display:grid; align-content:center; }
.nav-destinations a,.topnav .nav-destinations a { display:flex; align-items:center; padding:9px 10px; min-height:40px; border-radius:7px; font-size:14px; }
.nav-destinations a:is(:hover,:focus-visible) { background:var(--soft); }
.topnav .nav-panel a::after { display:none; }
.nav-panel .nav-overview,.topnav .nav-overview {
  display:flex; position:relative; isolation:isolate; overflow:hidden; align-items:flex-end; justify-content:space-between;
  gap:8px; padding:14px; min-height:166px; border-radius:10px; color:white; background:#313630;
  font-weight:600; font-size:20px; letter-spacing:-.04em; line-height:1.15; white-space:normal;
}
.nav-overview::before { content:""; position:absolute; inset:0; z-index:-1; background-size:cover; background-position:center; }
.nav-branch[open] .nav-overview::before { background-image:linear-gradient(0deg,#101410d9,transparent 65%),var(--nav-photo); }
.nav-overview .ico { width:26px; height:26px; padding:5px; border-radius:50%; background:var(--sun); color:var(--ink); }
@media(prefers-reduced-motion:no-preference) {
  .nav-overview::before { transition:transform .24s var(--ease); }
  .nav-overview:is(:hover,:focus-visible)::before { transform:scale(1.035); }
}
@media(min-width:921px) and (max-width:1150px) {
  .topnav { gap:8px; }
  .topnav .nav-branch summary { width:20px; }
  .header .brand span { display:none; }
}
@media(max-width:920px) {
  .mobile-nav:not([hidden]) { display:grid; grid-template-columns:minmax(0,1fr); gap:0; padding-block:4px 20px; }
  .mobile-nav > .nav-group { padding:0; border-bottom:1px solid var(--line); }
  .mobile-nav summary,.mobile-nav > a { min-height:48px; display:flex; justify-content:space-between; align-items:center; font-size:17px; font-weight:550; }
  .mobile-nav .nav-panel { display:grid; gap:5px; padding:4px 0 10px; }
  .mobile-nav .nav-overview { min-height:90px; padding:12px 14px; font-size:18px; }
  .mobile-nav .nav-destinations a { min-height:44px; padding-inline:12px; }
  .mobile-nav > button { margin-top:8px; justify-self:start; padding-inline:16px; }
}

/* The empty space above and below the header scrolls away before the bar sticks. */
:root {
  --mast-full:86px;
  --mast-compact:52px;
  --admin-at-start:0px;
  --admin-fixed:0px;
  scroll-padding-top:calc(var(--admin-fixed) + var(--mast-compact) + 8px);
}
html:has(body.admin-bar) { --admin-at-start:32px; --admin-fixed:32px; }
.site-masthead {
  position:sticky;
  top:calc(var(--admin-fixed) + var(--mast-compact) - var(--mast-full));
  z-index:15;
  display:grid;
  align-items:center;
  height:var(--mast-full);
  background:var(--paper);
  box-shadow:0 1px 0 var(--line);
}
.site-masthead .header {
  position:sticky;
  top:var(--admin-fixed);
  min-height:var(--mast-compact);
}
.skip:focus { z-index:16; }
.site-masthead .mobile-nav {
  position:absolute;
  inset:100% 0 auto;
  width:100%;
  padding-inline:max(16px,calc((100% - 92.5vw)/2));
  background:white;
  box-shadow:0 8px 16px #20211f14;
  max-height:calc(100dvh - var(--mast-full) - var(--admin-at-start));
  overflow-y:auto;
  overscroll-behavior:contain;
}
@media (max-width:920px) {
  :root { --mast-full:70px; --mast-compact:48px; }
}
@media (max-width:782px) {
  html:has(body.admin-bar) { --admin-at-start:46px; --admin-fixed:46px; }
}
@media (max-width:650px) {
  :root { --mast-full:66px; }
}
@media (max-width:600px) {
  html:has(body.admin-bar) { --admin-fixed:0px; }
}

.apm-cookie-panel{position:fixed;inset:auto auto max(16px,env(safe-area-inset-bottom)) 16px;z-index:1000;width:min(420px,calc(100% - 32px));max-height:75vh;overflow:auto;padding:22px;background:#fff;color:#20211e;border:1px solid #deded8;border-radius:16px;box-shadow:0 6px 30px #19191420}
.apm-cookie-panel[hidden],.apm-cookie-settings[hidden]{display:none}
.apm-cookie-panel h2{font-size:21px;line-height:1.15;margin:0}
.apm-cookie-panel p{font-size:14px;line-height:1.45;margin:10px 0 16px}
.apm-cookie-panel p a,.apm-cookie-settings{text-decoration:underline;text-underline-offset:3px}
.apm-cookie-settings{color:inherit;font:inherit;background:none;border:0;cursor:pointer;min-height:44px}
.apm-cookie-panel div{display:flex;gap:8px}
.apm-cookie-panel button{flex:1;min-height:44px;border:1px solid #d6d6cc;color:#20211e;background:white;border-radius:8px;cursor:pointer;font:inherit}
.apm-cookie-panel [data-choice=yes]{background:#ffdf33;border-color:#ffdf33}
