/* Mobile quality pass. Append after the current theme stylesheet. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: #202428;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.mobile-quick-actions {
  display: none !important;
}

.home-neighbourhood-all {
  display: none;
}

.mobile-hero-actions,
.mobile-home-intro,
.mobile-service-section,
.mobile-testimonial-section {
  display: none;
}

.mobile-search-kicker {
  display: none;
}

/* The in-menu contact action is for the collapsed mobile navigation. The
   header already has its own desktop consultation button. */
.main-nav .mobile-consultation {
  display: none;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.footer-legal-links a {
  color: inherit;
  text-underline-offset: 3px;
}

.privacy-choices-button {
  margin-top: 10px;
  border: 0;
  padding: 4px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tracking-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 11000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(720px, calc(100% - 36px));
  margin-inline: auto;
  padding: 18px;
  border: 1px solid rgba(49, 84, 65, 0.18);
  border-radius: 16px;
  background: #ffffff;
  color: #202428;
  box-shadow: 0 18px 48px rgba(24, 44, 57, 0.2);
}

.tracking-consent[hidden] {
  display: none !important;
}

.tracking-consent strong {
  display: block;
  margin-bottom: 5px;
}

.tracking-consent p {
  margin: 0 0 5px;
  line-height: 1.45;
}

.tracking-consent a {
  color: #8B642D;
  font-weight: 700;
}

.tracking-consent-actions {
  display: flex;
  gap: 8px;
}

.tracking-consent-actions button {
  min-height: 42px;
  border: 1px solid #8B642D;
  border-radius: 10px;
  padding: 9px 16px;
  color: #8B642D;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.tracking-consent-actions button:last-child {
  color: #ffffff;
  background: #8B642D;
}

.privacy-prose,
.disclaimer-prose {
  width: min(820px, 100%);
  margin-inline: auto;
}

.privacy-prose h2,
.disclaimer-prose h2 {
  margin-top: 32px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.privacy-prose p,
.disclaimer-prose p {
  line-height: 1.75;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.primary-button,
.secondary-button,
.header-contact,
.mobile-consultation,
.calculator-button,
.island-home-button,
button[type="submit"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 20px;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
  max-width: 100%;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.hero-search input,
.hero-search select,
.filters input,
.filters select {
  width: 100%;
}

.consent-row {
  align-items: flex-start;
}

.consent-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.required-mark {
  color: #b42318;
  font-weight: 700;
}

/* The markup already contains the accessible red required marker. An older
   theme rule also generated one with ::after, producing a visible double **. */
.lead-form label:has(.required-mark)::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 82px;
  }

  body {
    font-size: 16px;
  }

  .tracking-consent {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: calc(100% - 24px);
    padding: 16px;
  }

  .tracking-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tracking-consent-actions button {
    width: 100%;
  }

  .site-header,
  .site-header[data-elevated="true"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    column-gap: 10px;
    width: 100%;
    max-width: 100vw;
    min-height: 76px;
    padding-inline: 16px;
    overflow: visible;
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 90px);
    overflow: hidden;
  }

  .brand-complete {
    width: min(235px, 100%);
    max-height: 56px;
    object-fit: contain;
  }

  .site-header > .header-contact {
    display: none !important;
  }

  .menu-button {
    display: inline-flex;
    position: relative;
    right: auto;
    justify-self: end;
    z-index: 10002;
    width: 48px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .menu-button span {
    display: block !important;
    position: absolute;
    left: 50%;
    width: 22px !important;
    height: 2px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background: #202428 !important;
    opacity: 1 !important;
    transform-origin: center;
    transition: transform 180ms ease;
  }

  .menu-button span:first-child {
    transform: translate(-50%, -4px);
  }

  .menu-button span:last-child {
    transform: translate(-50%, 4px);
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translate(-50%, 0) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translate(-50%, 0) rotate(-45deg);
  }

  .main-nav {
    z-index: 10001;
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .main-nav > a,
  .main-nav .nav-dropdown > button,
  .main-nav .mobile-consultation {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 11px 14px;
    text-align: left;
  }

  .main-nav .mobile-consultation {
    display: inline-flex;
    justify-content: center;
    text-align: center;
  }

  .nav-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 2px 0 8px;
    box-shadow: none;
  }

  .nav-menu a {
    min-height: 44px;
    padding: 11px 18px;
  }

  main,
  section,
  .search-shell,
  .results-panel,
  .map-search-panel {
    min-width: 0;
  }

  section:not(.hero),
  section.home-links,
  section.home-neighbourhoods,
  section.home-island-search,
  section.home-connect-section {
    padding: 36px 18px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  h1,
  .hero-banner-copy h1,
  .neighbourhood-hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    line-height: 1.02;
  }

  h2,
  .section-heading h2,
  .home-island-callout h2,
  .parallax-copy h2,
  .home-connect-heading h2 {
    overflow-wrap: anywhere;
    font-size: clamp(1.85rem, 8vw, 2.8rem);
    line-height: 1.08;
  }

  .hero {
    padding-top: 88px;
    padding-bottom: 38px;
  }

  .hero-banner {
    width: calc(100% - 24px);
    border-radius: 16px;
  }

  .hero-banner img {
    height: min(410px, 112vw);
    min-height: 350px;
    object-position: 66% center;
  }

  .hero-banner-copy {
    right: 22px;
    bottom: 118px;
    left: 22px;
    width: auto;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-top: -70px;
  }

  .hero-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(49, 84, 65, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 38px rgba(24, 44, 57, 0.18);
  }

  .mobile-search-kicker {
    display: block;
    grid-column: 1 / -1;
    margin: 2px 4px 3px;
    color: #202428;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.2;
  }

  .hero-search > label:not(.hero-location) {
    display: none !important;
  }

  .hero-search .hero-location {
    display: block;
    min-width: 0;
    color: transparent;
    font-size: 0;
  }

  .hero-search .hero-location input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(41, 67, 84, 0.18);
    border-radius: 12px;
    padding: 0 13px;
    background: #f4f7f8;
    color: #202428;
    font-size: 16px;
  }

  .hero-search .hero-location input::placeholder {
    color: #667984;
    opacity: 1;
  }

  .hero-search button[type="submit"] {
    width: auto;
    min-width: 112px;
    min-height: 52px;
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .mobile-hero-actions {
    display: none !important;
  }

  .mobile-home-intro {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 30px 18px;
    background: #ffffff;
  }

  .mobile-home-intro figure {
    margin: 0;
  }

  .mobile-home-intro img {
    width: 104px;
    height: 132px;
    border-radius: 14px;
    object-fit: cover;
    object-position: center top;
  }

  .mobile-home-intro h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.4rem, 6vw, 1.75rem);
    line-height: 1.08;
  }

  .mobile-home-intro p {
    margin: 0 0 12px;
    line-height: 1.55;
  }

  .mobile-home-intro ul {
    margin: 0 0 13px;
    padding-left: 18px;
  }

  .mobile-home-intro li {
    margin: 5px 0;
    line-height: 1.35;
  }

  .mobile-home-intro a,
  .mobile-testimonial-section > a {
    color: #8B642D;
    font-weight: 700;
    text-underline-offset: 3px;
  }

  .mobile-service-section {
    display: block;
    padding: 30px 18px;
    background: #eef5f8;
  }

  .mobile-service-section .section-heading {
    margin-bottom: 16px;
    text-align: left;
  }

  .mobile-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-service-grid a {
    display: flex;
    min-height: 128px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(145deg, #202428, #8B642D);
    box-shadow: 0 8px 20px rgba(24, 44, 57, 0.12);
  }

  .mobile-service-grid span {
    font-size: 1.25rem;
    font-weight: 800;
  }

  .mobile-service-grid small {
    margin-top: 5px;
    line-height: 1.3;
    opacity: 0.88;
  }

  .home-links {
    display: none !important;
  }

  .hero-search,
  .filter-grid,
  .filter-row,
  .lead-form,
  .home-connect-layout,
  .home-contact-grid,
  .popular-grid,
  .neighbourhood-grid,
  .home-neighbourhood-grid,
  .island-community-grid,
  .island-lifestyle-grid,
  .neighbourhood-hero-grid,
  .neighbourhood-detail-grid,
  .neighbourhood-story-grid,
  .neighbourhood-photo-grid,
  .resource-link-grid,
  .guide-grid,
  .guide-photo-grid,
  .guide-image-split,
  .guide-roadmap,
  .checklist-grid,
  .testimonial-grid,
  .team-member-grid,
  .marketing-grid,
  .seller-marketing-grid,
  .seller-rule-flow,
  .mortgage-grid,
  .about-section,
  .split-section,
  .island-map-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .popular-grid,
  .neighbourhood-grid,
  .home-neighbourhood-grid,
  .island-community-grid,
  .neighbourhood-photo-grid,
  .resource-link-grid,
  .guide-grid,
  .guide-photo-grid,
  .testimonial-grid {
    gap: 14px;
  }

  .home-links .popular-grid {
    gap: 10px;
  }

  .home-links .popular-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    padding: 16px;
  }

  .home-links .popular-card h3 {
    margin: 0;
    font-size: 1.05rem;
  }

  .home-links .popular-card p {
    display: none;
  }

  .home-links .popular-card .secondary-button {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .home-neighbourhood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-neighbourhood-grid .compact-neighbourhood-card {
    min-height: 112px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .home-neighbourhood-grid .compact-neighbourhood-card:nth-child(n + 7) {
    display: none;
  }

  .home-neighbourhood-grid .compact-neighbourhood-card span {
    padding: 9px 10px;
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .home-neighbourhood-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: #8B642D;
    font-weight: 700;
    text-underline-offset: 3px;
  }

  .home-island-search .cta-actions .primary-button,
  .interior-parallax .primary-button {
    display: none;
  }

  .mobile-testimonial-section {
    display: block;
    padding: 30px 18px;
    background: #ffffff;
  }

  .mobile-testimonial-section blockquote {
    margin: 12px 0 14px;
    padding: 20px;
    border: 1px solid rgba(49, 84, 65, 0.14);
    border-radius: 14px;
    background: #f7fafb;
  }

  .mobile-testimonial-section blockquote p {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.6;
  }

  .mobile-testimonial-section cite {
    display: block;
    margin-top: 12px;
    color: #8B642D;
    font-style: normal;
    font-weight: 800;
  }

  .home-connect-heading {
    margin-bottom: 18px;
  }

  .home-contact-feature {
    overflow: hidden;
    border: 1px solid rgba(49, 84, 65, 0.14);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(24, 44, 57, 0.1);
  }

  .home-contact-portrait {
    margin: 0;
  }

  .home-contact-portrait img {
    display: block;
    width: 100%;
    height: min(330px, 88vw);
    object-fit: cover;
    object-position: center top;
  }

  .home-contact-content {
    padding: 20px;
  }

  .home-contact-brand {
    display: none;
  }

  .home-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .home-contact-card {
    padding: 16px;
    border: 1px solid rgba(49, 84, 65, 0.12);
    border-radius: 13px;
    background: #f7fafb;
  }

  .home-contact-card h3,
  .home-contact-card strong {
    color: #202428;
  }

  .home-contact-card a {
    min-height: 42px;
    align-items: center;
  }

  .home-contact-office {
    display: grid;
    gap: 5px;
    text-align: center;
  }

  .home-contact-office span:first-of-type {
    color: #647681;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .home-contact-social {
    display: none;
  }

  .home-contact-brokerage {
    display: block;
    width: min(210px, 72%);
    max-height: 90px;
    margin: 18px auto 0;
    object-fit: contain;
  }

  .home-connect-heading p:last-of-type {
    max-width: 34rem;
  }

  .popular-card,
  .guide-feature,
  .neighbourhood-fit-card,
  .neighbourhood-resource-card,
  .island-lifestyle-card,
  .home-contact-card {
    min-width: 0;
    min-height: 0;
    padding: 22px 18px;
  }

  .home-island-callout,
  .guide-cta-section,
  .neighbourhood-listings-cta,
  .island-final-cta,
  .team-listings-cta,
  .meet-team-cta {
    gap: 24px;
    padding: 26px 20px;
  }

  .cta-actions {
    width: 100%;
    min-width: 0;
  }

  .interior-parallax {
    min-height: 460px;
    background-attachment: scroll;
  }

  .home-lead-form,
  .form-section,
  .mortgage-card,
  .rent-own-calculator {
    padding: 22px 18px;
  }

  .home-contact-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-contact-portrait {
    width: 100%;
    max-height: 520px;
    aspect-ratio: 4 / 5;
  }

  .home-contact-portrait img,
  .about-photo img,
  .team-photo img,
  .neighbourhood-hero-photo img,
  .neighbourhood-photo-card img,
  .guide-photo-card img,
  .island-community-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .filters,
  .results-bar {
    overflow: visible;
  }

  .listing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-preview,
  .inline-map,
  .island-map-canvas {
    min-height: 360px;
  }

  .lead-dialog,
  .property-dialog {
    width: calc(100% - 24px);
    max-width: 620px;
    max-height: calc(100dvh - 24px);
    padding: 0;
  }

  .dialog-card {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 24px 18px;
  }

  .site-footer {
    padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .mobile-quick-actions {
    display: none !important;
  }

  .mobile-quick-actions a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 9px 12px;
    text-align: center;
    text-decoration: none;
    line-height: 1.15;
  }

  .mobile-quick-actions a:first-child {
    background: #8B642D;
    color: #ffffff;
  }

  .mobile-quick-actions a:last-child {
    border: 1px solid #8B642D;
    color: #8B642D;
    background: #ffffff;
  }
}

@media (max-width: 520px) {
  section:not(.hero),
  section.home-links,
  section.home-neighbourhoods,
  section.home-island-search,
  section.home-connect-section {
    padding: 32px 16px;
  }

  .primary-button,
  .secondary-button,
  .calculator-button,
  .island-home-button,
  button[type="submit"] {
    width: 100%;
  }

  .close-button,
  .menu-button,
  .nav-dropdown > button {
    width: auto;
  }

  .hero-banner-copy {
    right: 18px;
    left: 18px;
  }

  .hero-content {
    width: calc(100% - 24px);
  }

  .home-contact-content,
  .about-copy,
  .guide-image-copy,
  .seller-marketing-copy {
    padding-inline: 0;
  }

  .home-contact-feature .home-contact-content {
    padding: 18px;
  }

  .map-preview,
  .inline-map,
  .island-map-canvas {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* SPENCER AIRY DESIGN FIX V1.3 */

/* SPENCER AIRY DESIGN FIX V1.4 */

/* SPENCER AIRY DESIGN FIX V1.5 */

/* SPENCER AIRY DESIGN FIX V1.6 */

/* SPENCER AIRY DESIGN FIX V1.7 */

/* SPENCER AIRY DESIGN FIX V3.6 */

/* SPENCER AIRY DESIGN FIX V4.5.7 */

/* SPENCER AIRY DESIGN FIX V4.5.8 */

/* SPENCER AIRY DESIGN FIX V4.5.9 */

/* SPENCER AIRY DESIGN FIX V4.6.0 */

/* SPENCER AIRY DESIGN FIX V4.6.1 */

/* SPENCER AIRY DESIGN FIX V4.6.2 */

/* SPENCER AIRY DESIGN FIX V4.6.4 */

/* SPENCER AIRY DESIGN FIX V4.6.5 */

/* SPENCER AIRY DESIGN FIX V4.6.6 */

/* SPENCER AIRY DESIGN FIX V4.6.7 */

/* SPENCER AIRY DESIGN FIX V4.6.10 */

/* SPENCER AIRY DESIGN FIX V4.6.11 */

/* SPENCER AIRY DESIGN FIX V4.6.12 */

/* SPENCER AIRY DESIGN FIX V4.6.13 */

/* SPENCER AIRY DESIGN FIX V4.6.14 */

/* SPENCER AIRY DESIGN FIX V4.6.15 */

/* SPENCER AIRY DESIGN FIX V4.6.16 */

/* SPENCER AIRY DESIGN FIX V4.6.17 */

/* SPENCER AIRY DESIGN FIX V4.6.18 */

/* SPENCER AIRY DESIGN FIX V4.6.19 */

/* SPENCER AIRY DESIGN FIX V4.6.20 */

/* SPENCER AIRY DESIGN FIX V4.6.21 */

/* SPENCER AIRY DESIGN FIX V4.6.22 */

/* SPENCER AIRY DESIGN FIX V4.6.23 */

/* SPENCER AIRY DESIGN FIX V4.6.24 */

/* SPENCER AIRY DESIGN FIX V4.6.25 */

/* SPENCER AIRY DESIGN FIX V4.6.26 */
