/*
  Kaia Place (rentkaia.ca): static rebuild of the original WordPress/Elementor site.
  Sizes and colours are taken from the live site's rendered styles.
  Breakpoints match the original: tablet <= 1024px, mobile <= 767px.
*/

/* ---------- Fonts (Poppins, self-hosted) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400-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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500-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: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600-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: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700-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; }

/* ---------- Base ---------- */
:root {
  --red: #BF2228;
  --grey: #EAEAEA;
  --text: #3B3B3B;
  --white: #FFFFFF;
  --font: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
button { font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--white); color: var(--text); padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Shared type ---------- */
.eyebrow { font-size: 18px; font-weight: 600; line-height: 1; color: var(--red); }
.title { font-size: 62px; font-weight: 600; line-height: 1; color: var(--text); }
.lead { font-size: 16px; line-height: 25px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  padding: 20px 50px;
  border: 0;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color .3s, color .3s, opacity .3s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-dark { background: var(--text); color: var(--white); }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--red); }
.btn-light { background: var(--grey); color: var(--text); }
.btn-light:hover, .btn-light:focus-visible { background: var(--red); color: var(--white); }
.btn-white { background: var(--white); color: var(--red); padding: 12px 24px; border-radius: 25px; }
.fp-inquire:hover, .fp-inquire:focus-visible { background: var(--text); }

/* ---------- Header and menu ---------- */
.topbar {
  position: absolute; top: 0; left: 0; z-index: 20;
  width: 100%;
  display: flex;
  align-items: flex-start;
  padding: 35px 0;
}
.logo { flex: none; margin: 0 120px; }
.logo img { display: block; width: 164px; height: auto; }
.nav { align-self: center; position: relative; }
.nav-toggle { display: none; }
.nav-menu, .foot-menu { list-style: none; padding: 0; margin: 0; display: flex; }
.nav-menu a, .foot-menu a {
  position: relative;
  display: block;
  padding: 13px 25px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--white);
}
.nav-menu a::after, .foot-menu a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--white);
  opacity: 0;
  transition: opacity .3s;
}
.nav-menu a:hover::after, .nav-menu a:focus-visible::after, .nav-menu a.active::after,
.foot-menu a:hover::after, .foot-menu a:focus-visible::after, .foot-menu a.active::after { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; background: url(../media/CastlepointeHero-2.jpg) top center / cover no-repeat; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: #9A9A9A; opacity: .5; mix-blend-mode: multiply;
}
.hero-inner { position: relative; display: flex; padding-bottom: 110px; }
.hero-copy {
  width: 50%;
  padding: 205px 0 150px 120px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 55px;
}
.hero h1 { max-width: 660px; font-size: 62px; font-weight: 600; line-height: 1; color: var(--white); }
.hero-lead { max-width: 660px; font-size: 16px; line-height: 25px; color: var(--white); }

/* ---------- Building ---------- */
.building { position: relative; display: flex; justify-content: flex-end; background: var(--white); }
.building-photos {
  position: absolute; left: 0; bottom: 56px; z-index: 1;
  width: 54%;
  display: flex;
}
.building-photos img { display: block; width: 33.333%; height: auto; aspect-ratio: 259 / 462; object-fit: cover; }
.building-panel { width: 811px; background: var(--grey); display: flex; flex-direction: column; }
.building-copy {
  width: 610px; align-self: flex-end;
  padding: 50px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.building-copy .eyebrow, .interiors .eyebrow { padding-left: 40px; }
.building-copy .title { max-width: 660px; margin-bottom: 40px; }
.rich { font-size: 16px; line-height: 24px; }
.rich p { margin-bottom: 14.4px; }
.rich ul { padding-left: 40px; }

/* ---------- Interiors ---------- */
.interiors { display: flex; background: var(--white); }
.interiors-head {
  flex: 0 0 51.53%;
  padding: 40px 40px 40px 120px;
  display: flex; flex-direction: column; gap: 20px;
}
.interiors-head .title { max-width: 660px; }
.interiors-text { flex: 1 1 auto; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.interiors-text p { max-width: 660px; }

/* ---------- Room cards (flip on hover) ---------- */
.rooms {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 25px;
  background: var(--white);
}
.room {
  position: relative;
  height: 540px;
  background: 0 0 / cover no-repeat;
  outline: none;
}
.room:nth-child(1), .room:nth-child(4) { width: 54%; }
.room:nth-child(2), .room:nth-child(3) { width: 44%; }
.room-living { background-image: url(../media/021_Unit-304_103mosaic.jpg); }
.room-kitchen { background-image: url(../media/013_Unit-402_062mosaic.jpg); }
.room-bedroom { background-image: url(../media/027_Unit-320_131mosaic.jpg); }
.room-bathroom { background-image: url(../media/004_Unit-320_020mosaic.jpg); }
.room-back {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0 105px 80px;
  text-align: center;
  color: var(--white);
  background: rgba(59, 59, 59, .62);
  opacity: 0;
  transition: opacity .6s;
}
.room:hover .room-back, .room:focus-within .room-back, .room.is-active .room-back { opacity: 1; }
.room h3 { font-size: 21px; font-weight: 600; line-height: 1; margin-bottom: 20px; }
.room p { font-size: 14px; line-height: 21px; }

/* ---------- Floorplans ---------- */
.floorplans {
  padding: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  text-align: center;
  background: var(--white);
}
.floorplans .title, .location .title, .gallery .title { margin-bottom: 20px; }
.fp-filters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; padding: 10px; }
.fp-filters .btn.is-active, .map-filter.is-active { opacity: .85; }
.fp-list { width: 1100px; max-width: 100%; display: grid; grid-template-columns: 1fr; row-gap: 30px; }
.fp-item { display: flex; padding-right: 40px; }
.fp-item[hidden] { display: none; }
.fp-media { flex: 0 1 80%; min-width: 0; }
.fp-media a { display: block; }
.fp-media img { display: block; width: 800px; max-width: 100%; height: auto; margin: 0 auto; }
.fp-info {
  flex: 0 1 22%; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding-bottom: 50px;
}
.fp-name { font-size: 50px; font-weight: 400; line-height: 1; margin-bottom: 5px; }
.fp-spec { font-size: 27px; line-height: 1; text-transform: uppercase; margin-bottom: 5px; }
.fp-area { font-size: 27px; line-height: 1; text-transform: uppercase; margin-bottom: 45px; }
.fp-info .btn { display: block; width: 100%; }
.fp-info .btn-light { margin-bottom: 15px; }

/* ---------- Location and map ---------- */
.location {
  padding-top: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  text-align: center;
  background: var(--grey);
}
.location-text { width: 660px; max-width: 100%; padding: 0 40px; text-align: left; }
.map-wrap { position: relative; width: 100%; }
.map-canvas { width: 100%; height: 667px; background: #c9c9c9; }
.map-fallback {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-weight: 600; color: var(--text);
}
.map-fallback a { text-decoration: underline; }
/* MapLibre map (assets/vendor): pins are buttons so they work from the keyboard. */
.map-pin { display: block; padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; }
.map-pin img { display: block; }
.map-pin:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.map-pop { font: 400 14px/1.45 var(--font); color: var(--text); text-align: center; }
.map-pop-cat { display: block; text-transform: capitalize; }
.map-pop strong { display: block; font-weight: 600; }
.map-pop a { display: block; color: #062530; }
.map-canvas .maplibregl-popup-content { padding: 12px 26px 12px 16px; border-radius: 8px; }
.map-filters {
  position: absolute; left: 0; right: 0; bottom: 20px; z-index: 5;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  padding: 10px;
  pointer-events: none;
}
.map-filter {
  pointer-events: auto;
  padding: 0; border: 0; background: none; cursor: pointer;
  transition: opacity .3s;
}
.map-filter img { display: block; height: 47px; }

/* ---------- Gallery ---------- */
.gallery {
  padding: 80px 0;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  text-align: center;
  background: var(--grey);
}
.gallery-box { width: 100%; padding: 10px; }
.g-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 30px; }
.g-filter {
  padding: 20px 50px;
  border: 0; border-radius: 50px;
  background: var(--text); color: var(--white);
  font: 600 16px/24px var(--font);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s;
}
.g-filter.is-active { background: var(--red); }
.g-grid { position: relative; }
.g-item { position: absolute; top: 0; left: 0; display: block; overflow: hidden; }
.g-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Like the original: a photo waits invisible at half size (anchored at its top
   edge) until it scrolls into view, then fades and grows in over 0.8s. */
html:not(.no-js) .g-item img { opacity: 0; transform: scale(.5); transform-origin: center top; }
/* The transition sits on the loaded state only, so the switch into the waiting
   state when the script starts is instant rather than a fade-out. */
html:not(.no-js) .g-item.is-loaded img { opacity: 1; transform: none; transition: opacity .8s, transform .8s; }
/* Filtering: for 0.35s photos slide to their new places, filtered-out photos
   shrink away and the gallery's height follows. */
.g-grid.is-animating { transition: height .35s; }
.g-grid.is-animating .g-item { transition: transform .35s, opacity .35s; }
.g-grid .g-item.is-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .35s, opacity .35s, visibility 0s .35s;
}
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) .g-item.is-loaded img, .g-grid.is-animating, .g-grid.is-animating .g-item, .g-grid .g-item.is-hidden { transition: none; }
}
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color .8s;
}
.g-item:hover::after, .g-item:focus-visible::after { background: rgba(0, 0, 0, .5); }
/* Without JavaScript the gallery is a plain three-column list. */
.no-js .g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.no-js .g-item { position: static; }

/* ---------- Contact ---------- */
.contact {
  display: flex; justify-content: center; gap: 32px;
  padding: 80px;
  background: var(--grey) url(../media/023_Unit-320_113form.jpg) top center / cover no-repeat;
}
.contact-head {
  flex: 0 1 60%; min-width: 0;
  padding: 10px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  text-align: center;
}
.contact-head .title { color: var(--white); margin-bottom: 20px; }
.contact-card { flex: 0 1 40%; min-width: 0; background: var(--white); padding: 50px; }

/* ---------- Forms ---------- */
.kform { display: flex; flex-direction: column; gap: 20px; }
.kfield { position: relative; }
.kfield svg {
  position: absolute; left: 10px; top: 11px;
  width: 16px; height: 16px;
  fill: var(--red);
  pointer-events: none;
}
.kfield-message svg { top: 7px; }
.kform input[type=text], .kform input[type=email], .kform input[type=tel], .kform textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 5px 0 5px 40px;
  border: 0;
  border-bottom: 1px solid rgba(48, 48, 48, .404);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font: 400 14px/38px var(--font);
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.kform textarea { height: 96px; line-height: 21px; resize: vertical; }
.kform input::placeholder, .kform textarea::placeholder { color: #303030; opacity: 1; }
.kform input:focus, .kform textarea:focus { border-bottom-color: var(--text); }
.kfield.has-error input, .kfield.has-error textarea { border-bottom-color: #c02b0a; }
.kerror { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: #c02b0a; }
.khoney { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ksubmit {
  width: 100%;
  padding: 20px 50px;
  border: 1px solid transparent; border-radius: 50px;
  background: var(--red); color: var(--white);
  font: 700 16px/16px var(--font);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  cursor: pointer;
}
.ksubmit[disabled] { opacity: .7; cursor: wait; }
.kform-status { font-size: 13px; line-height: 1.5; color: #c02b0a; }
.kform-status:empty { display: none; }

/* ---------- Inquire popup ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(11, 11, 11, .65);
}
.modal.is-open { display: flex; animation: kfade .3s; }
.modal-box { position: relative; width: 550px; max-width: 100%; max-height: 100%; overflow: auto; background: var(--white); padding: 50px; }
.modal-close {
  position: absolute; top: 0; right: 0;
  width: 44px; height: 44px;
  border: 0; background: none;
  font: 28px/44px Arial, sans-serif;
  color: #333; opacity: .65;
  cursor: pointer;
}
.modal-close:hover, .modal-close:focus-visible { opacity: 1; }
@keyframes kfade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 1100;
  display: none;
  background: rgba(0, 0, 0, .8);
  color: rgba(237, 237, 237, .9);
  user-select: none;
  touch-action: none;
}
.lb.is-open { display: block; animation: kfade .3s; }
.lb-stage { position: absolute; inset: 70px 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-stage img {
  display: block; max-width: calc(100% - 30%); max-height: 100%;
  width: auto; height: auto;
  transition: transform .3s, opacity .3s;
  cursor: zoom-in;
}
.lb.is-single .lb-stage img { max-width: calc(100% - 40px); }
.lb.is-zoomed .lb-stage img { cursor: grab; transition: opacity .3s; }
.lb-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 10px 0 20px;
}
.lb-counter { font-size: 14px; line-height: 1; }
.lb-tools { display: flex; align-items: center; margin-left: auto; position: relative; }
.lb-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: inherit; cursor: pointer;
}
.lb-btn svg { width: 26px; height: 26px; fill: currentColor; }
.lb-btn:hover, .lb-btn:focus-visible { color: #fff; }
.lb-nav {
  position: absolute; top: 60px; bottom: 60px; z-index: 2;
  width: 15%;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none; color: inherit; cursor: pointer;
}
.lb-nav svg { width: 25px; height: 25px; fill: currentColor; }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb.is-single .lb-nav, .lb.is-single .lb-counter { display: none; }
.lb-share {
  position: absolute; top: 44px; right: 0;
  display: none; flex-direction: column;
  min-width: 200px; padding: 6px 0;
  background: #fff; border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}
.lb-share.is-open { display: flex; }
.lb-share a { padding: 9px 16px; font-size: 14px; color: var(--text); }
.lb-share a:hover, .lb-share a:focus-visible { background: var(--grey); }

/* ---------- Thank-you page ---------- */
.hero-thanks { background-image: url(../media/hero-image.jpg); }
.thanks-box {
  width: 626px; max-width: 100%;
  padding: 30px;
  display: flex; flex-direction: column; gap: 20px;
  background: rgba(0, 0, 0, .53);
}
.thanks-box h1 { max-width: none; }

/* ---------- Footer ---------- */
/* One section (James 2026-11-09): logo, contact details and menu side by side,
   the PVIntelligence credit underneath (same wording and link as HarmaniPublic
   and TryggBuilt). Tablet puts contact and menu under the logo; phones stack. */
.footer { background: var(--red); color: var(--white); padding: 70px 40px 0; }
.footer-main {
  display: grid; grid-template-columns: auto auto auto; justify-content: space-between; align-items: center;
  gap: 40px 60px; max-width: 1140px; margin: 0 auto; padding-bottom: 60px;
}
.footer-logo { display: block; width: 164px; height: auto; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-list li, .footer-list a { display: flex; align-items: flex-start; }
.footer-list svg { flex: none; width: 20px; height: 20px; margin: 2px 14px 0 0; fill: var(--white); }
.footer-list span { font-size: 16px; line-height: 24px; color: var(--grey); }
.footer-list a:hover span, .footer-list a:focus-visible span { color: var(--white); text-decoration: underline; }
.footer .foot-menu { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 6px 56px; }
.footer .foot-menu a { padding: 8px 0; }
.footer-credit {
  max-width: 1140px; margin: 0 auto; padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .35);
  text-align: center; font-size: 13px; line-height: 20px;
}
.footer-credit a { color: var(--grey); text-decoration: none; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--white); text-decoration: underline; }

/* ================= Tablet ================= */
@media (max-width: 1024px) {
  .logo { margin: 0 40px; }
  .hero-copy { padding: 200px 0 0 20px; gap: 20px; justify-content: space-evenly; }
  .hero h1 { font-size: 45px; }

  .building-photos { width: min(600px, calc(100% - 474px)); }
  .building-copy { width: 500px; }
  .building-copy .title { font-size: 42px; }

  .interiors-head { flex-basis: 50%; padding: 40px; }
  .interiors-head .title { font-size: 45px; }

  .room:nth-child(1), .room:nth-child(4) { width: calc(55% - 12.5px); }
  .room:nth-child(2), .room:nth-child(3) { width: calc(45% - 12.5px); }

  .fp-list { width: 864px; grid-template-columns: 1fr 1fr; column-gap: 30px; }
  .fp-item { flex-direction: column; align-items: center; padding: 20px; }
  .fp-media, .fp-info { flex: none; width: 100%; }
  .fp-info { padding: 10px 0 0; }
  .fp-name { font-size: 36px; }
  .fp-spec, .fp-area { font-size: 21px; }
  .fp-area { margin-bottom: 30px; }
  .fp-info .btn-light { margin: 0 20px 20px; width: auto; }
  .fp-info .btn-red { margin: 0 20px; width: auto; }

  .map-filters { position: static; margin: 6px 0 40px; }

  .footer { padding: 50px 30px 0; }
  .footer-main { grid-template-columns: auto auto; justify-content: space-around; gap: 36px 40px; padding-bottom: 44px; }
  .footer-logo { grid-column: 1 / -1; justify-self: center; }
}

/* ================= Mobile ================= */
@media (max-width: 767px) {
  .topbar { padding: 40px; justify-content: space-between; gap: 20px; }
  .logo { flex: 1 1 0; margin: 0; }
  .logo img { width: 120px; }
  .nav { flex: 1 1 0; align-self: flex-start; margin-top: 15px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 33px; height: 33px; margin: 0 auto; padding: 0;
    border: 0; border-radius: 3px;
    background: var(--red); color: var(--white);
    cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }
  .nav-toggle .icon-close, .nav.is-open .nav-toggle .icon-open { display: none; }
  .nav.is-open .nav-toggle .icon-close { display: block; }
  .nav .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; z-index: 30;
    width: 100%;
    flex-direction: column;
    background: var(--white);
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav .nav-menu a { padding: 8px 10px; color: var(--text); }
  .nav .nav-menu a::after { display: none; }
  .nav .nav-menu a:hover, .nav .nav-menu a:focus-visible, .nav .nav-menu a.active { background: var(--red); color: var(--white); }

  .hero { padding-bottom: 50px; }
  .hero-inner { flex-direction: column; padding: 141px 40px 30px; }
  .hero-copy { width: 100%; padding: 0; gap: 20px; }
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 14px; line-height: 1.2em; }

  .building { flex-direction: column; margin-bottom: -40px; }
  .building-photos { width: 100%; }
  .building-panel { width: 100%; padding-bottom: 205px; margin-bottom: 56px; }
  .building-copy { width: 100%; padding: 40px; }
  .building-copy .title { font-size: 30px; margin-bottom: 0; }

  .interiors { flex-direction: column; }
  .interiors-head { flex: none; padding: 40px; }
  .interiors-head .title { font-size: 30px; }
  .interiors-text { padding: 0 40px 40px; }

  .rooms { flex-direction: column; }
  .room, .room:nth-child(n) { width: 100%; height: 400px; }
  .room-back { padding: 40px; }

  .title { font-size: 30px; }
  .floorplans { padding: 20px 15px; gap: 20px; }
  .fp-filters { gap: 10px; }
  .fp-filters .btn { font-size: 12px; padding: 10px 20px; border-radius: 30px; margin: 5px; }
  .fp-filters .btn:first-child { padding: 10px 15px 9px 10px; }
  .fp-list { grid-template-columns: 1fr; }

  .location { padding: 40px 0; }
  .map-filters { gap: 20px; margin: 0; }
  .map-filter img { height: 35px; object-fit: contain; }

  .gallery { padding: 40px 20px; }

  .contact { flex-direction: column; padding: 40px 20px; }
  .contact-head, .contact-card { flex: none; width: 100%; }
  .contact-card { padding: 10px; }

  .footer { padding: 40px 20px 0; }
  .footer-main { grid-template-columns: 1fr; justify-items: center; gap: 30px; padding-bottom: 36px; }
  .footer-logo { width: 140px; }
  .footer-list span { font-size: 15px; }
  .footer .foot-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; }
}

@media (max-width: 600px) {
  .g-filters { gap: 0; }
  .g-filter { padding: 10px 18px; margin: 5px 10px; font-size: 14px; }
}
