@import url('/public/fonts/home-fonts.css');

:root {
  --navy: #102638;
  --ink: #172438;
  --gold: #a9895d;
  --cream: #f8f7f4;
  --gutter: clamp(18px, 5.5vw, 84px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
h1, h2, h3, h4 { overflow-wrap: break-word; text-wrap: balance; }
p { text-wrap: pretty; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: #fff; font: clamp(0.875rem, 0.75rem + 0.156vw, 0.9375rem)/1.55 'DM Sans', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select { min-width: 0; }
img { display: block; max-width: 100%; }
.site-preloader { display: none; }
.site-preloading .site-preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--navy); color: #fff; }
.site-preloader-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.site-preloader-brand img { width: 168px; height: auto; padding: 14px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px #00000040; }
.site-preloader-line { width: 120px; height: 2px; margin-top: 14px; overflow: hidden; background: #ffffff3d; }
.site-preloader-line::after { display: block; width: 45%; height: 100%; content: ''; background: var(--gold); animation: site-preloader-progress 1s ease-in-out infinite alternate; }
@keyframes site-preloader-progress { from { transform: translateX(0); } to { transform: translateX(150%); } }
@media (prefers-reduced-motion: reduce) { .site-preloader-line::after { animation: none; width: 100%; } }
.floating-social { position: fixed; z-index: 30; top: 50%; right: 18px; transform: translateY(-50%); display: grid; gap: 9px; padding: 9px; border: 1px solid #ffffff55; border-radius: 12px; background: #102638e8; box-shadow: 0 8px 25px #07182755; }
.floating-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffff55; border-radius: 9px; background: #ffffff14; transition: background .2s, transform .2s; }
.floating-social a:hover { background: var(--gold); transform: translateX(-3px); }
.floating-social img { width: 21px; height: 21px; filter: invert(1); }
body:not(.inner-page) .floating-social { right: auto; left: 18px; }
@media (max-width: 639px) { .floating-social, body:not(.inner-page) .floating-social { top: auto; right: 12px; bottom: 12px; left: auto; transform: none; display: flex; gap: 5px; padding: 6px; } .floating-social a { width: 40px; height: 40px; } }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid #c9a778; outline-offset: 4px; }
.shell { width: min(1400px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.shell > *, .property-grid > *, .location-grid > *, .testimonial-cards > * { min-width: 0; }
.gold-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 22px; border: 1px solid transparent; border-radius: 5px; color: #fff; background: var(--gold); font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); text-align: center; transition: background .2s; }
.gold-button:hover { background: #917149; }
.eyebrow { display: block; color: #866339; font-size: 0.6875rem; font-weight: 600; letter-spacing: .19em; }
.eyebrow.light { color: #f1e6d4; }

/* The header switches to a menu before its links can collide. */
.topbar { position: absolute; inset: 0 0 auto; z-index: 20; color: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 86px; }
.logo { display: flex; flex: 0 0 auto; align-items: center; line-height: 1; }
.logo img { height: 64px; width: auto; padding: 5px; border-radius: 50%; background: #fffdf8; box-shadow: 0 0 0 2px #c6a77c, 0 6px 18px #00000059; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 30px); }
.main-nav a { position: relative; padding-block: 13px; font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); }
.main-nav a.active::after, .main-nav a:hover::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: #c6a77c; }
.nav-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 24px; font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); }
.phone { white-space: nowrap; }
.nav-actions .gold-button { min-height: 40px; padding: 9px 22px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #ffffff60; border-radius: 4px; background: #10263830; color: #fff; font-size: clamp(1.25rem, 1.1522rem + 0.435vw, 1.5rem); }

/* Search stays in document flow, so changes in height cannot overlap content. */
.hero { position: relative; z-index: 1; isolation: isolate; color: #fff; background: var(--navy); padding-top: 86px; }
.hero-image, .hero-shade { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 58%; }
.hero-shade { background: linear-gradient(90deg, #081b2bc4, #0b203342 49%, #07121d22), linear-gradient(0deg, #0a23376e, transparent 45%); }
.hero-content { position: relative; padding-top: clamp(34px, 4vw, 64px); padding-bottom: 10px; }
.hero h1 { max-width: 620px; margin: 14px 0 15px; font: 500 clamp(2.75rem, 4.1vw, 4.0625rem)/1.02 'Playfair Display', Georgia, serif; letter-spacing: -.025em; }
.hero-title-line { display: block; }
.hero h1 .accent { color: #c2a171; font-style: italic; font-weight: 400; }
.hero-content > p { max-width: 350px; margin-bottom: 20px; font-size: clamp(1rem, 0.875rem + 0.156vw, 1.0625rem); line-height: 1.5; }
.watch-link { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); }
.play { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid #ffffffb3; border-radius: 50%; background: #ffffff14; font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); }
.slide-count { margin-top: 24px; color: #e0e6eb; font-size: 0.6875rem; letter-spacing: .18em; }
.hero-property { position: absolute; top: 32%; right: 17%; display: flex; align-items: center; gap: 12px; width: 240px; padding: 9px; border: 1px solid #ffffff69; border-radius: 6px; background: #0c1d2bd9; font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); }
.hero-property img { flex: 0 0 68px; width: 68px; height: 59px; object-fit: cover; border-radius: 3px; }
.hero-property div { display: grid; flex: 1; gap: 2px; }
.hero-property div span { font-size: 0.6875rem; }
.hero-property > span { font-size: clamp(1.0625rem, 0.9891rem + 0.326vw, 1.25rem); }
.hero-categories { position: absolute; top: 114px; right: max(20px, 3vw); display: grid; gap: 12px; }
.hero-categories button { display: grid; justify-items: start; gap: 5px; padding: 3px; border: 0; background: transparent; color: #fff; font-size: 0.6875rem; }
.hero-categories img { width: 74px; height: 62px; border: 1px solid #ffffff7a; border-radius: 6px; object-fit: cover; }
.hero-categories .selected img { border-color: #fff; box-shadow: 0 0 0 2px #b79a6c; }
.hero-bottom { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: end; gap: 28px; margin-top: 0; transform: translateY(42px); }
.search-panel { min-width: 0; border-radius: 8px; background: #fff; box-shadow: 0 14px 35px #1b2c3e16; }
.search-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 52px; overflow: hidden; border-radius: 8px 8px 0 0; background: #0d2335f2; }
.search-tabs button { min-height: 48px; padding: 12px 7px; border: 0; background: transparent; color: #fff; font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); }
.search-tabs button.active { background: var(--gold); }
/* Search tab and field icons: masked SVGs so they follow the text colour. */
.search-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.search-tabs button::before, .search-form .field-label::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.search-form .field-label { display: inline-flex; align-items: center; gap: 6px; }
.search-form .field-label::before { width: 13px; height: 13px; color: #a8875a; }
.search-tabs [data-purpose="Buy"] { --icon: url("/public/icons/search/buy.svg"); }
.search-tabs [data-purpose="Rent"] { --icon: url("/public/icons/search/rent.svg"); }
.search-tabs [data-purpose="Projects"] { --icon: url("/public/icons/search/projects.svg"); }
.search-tabs [data-purpose="Land"] { --icon: url("/public/icons/search/land.svg"); }
.search-tabs [data-purpose="Commercial"] { --icon: url("/public/icons/search/commercial.svg"); }
.search-form [data-icon="location"] { --icon: url("/public/icons/search/location.svg"); }
.search-form [data-icon="type"] { --icon: url("/public/icons/search/buy.svg"); }
.search-form [data-icon="price"] { --icon: url("/public/icons/search/price.svg"); }
.search-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(155px, 1.1fr); gap: 12px; padding: 15px; }
.search-form label { display: grid; gap: 2px; min-width: 0; padding: 8px 12px; border: 1px solid #e2e4e7; border-radius: 5px; color: #344052; background: #fff; box-shadow: 0 2px 7px #00000007; font-size: 0.6875rem; }
.search-form select { width: 100%; min-height: 25px; border: 0; border-radius: 0; color: var(--ink); background: #fff; font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); }
.search-submit { font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); padding-inline: 10px; }
.advice-card { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 133px; padding: 22px; border-radius: 9px; color: white; background: linear-gradient(115deg, #293540, #1a2a37); }
.advice-card > span { color: #d5b686; font-size: clamp(1.6875rem, 1.4185rem + 1.196vw, 2.375rem); }
.advice-card div { display: grid; gap: 3px; }
.advice-card strong { font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); }
.advice-card div > span { font-size: 0.6875rem; }
.advice-card a { width: fit-content; margin-top: 7px; padding: 7px 13px; border: 1px solid #b19874; border-radius: 3px; font-size: clamp(0.6875rem, 0.5625rem + 0.156vw, 0.75rem); }

.featured { position: relative; padding: 92px 0 52px; background: linear-gradient(110deg, #f9f8f5, #fff 40%, #f9f9f8); }
.featured-layout { display: grid; grid-template-columns: minmax(235px, .9fr) minmax(0, 2.1fr); gap: 38px; align-items: center; }
.featured-intro h2, .locations h2, .why-copy h2, .testimonial-heading h2, .newsletter h2 { margin: 12px 0 16px; font: 500 clamp(1.8125rem, 2.4vw, 2.375rem)/1.12 'Playfair Display', Georgia, serif; letter-spacing: -.025em; }
.featured-intro h2 { max-width: 330px; }
.featured-intro p, .locations-intro p, .why-copy p { max-width: 330px; margin-bottom: 24px; font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); line-height: 1.6; }
.featured-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.property-card { overflow: hidden; border: 1px solid #e8e9e8; border-radius: 7px; background: #fff; box-shadow: 0 9px 24px #1b293011; }
.card-image { position: relative; aspect-ratio: 1.6; background: #c5cfd3; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 12px; left: 12px; padding: 4px 7px; border-radius: 2px; color: #1c2c3b; background: #fff; font-size: 0.6875rem; font-weight: 700; }
.favorite { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; color: #fff; background: transparent; font-size: clamp(1.25rem, 1.0788rem + 0.761vw, 1.6875rem); text-shadow: 0 1px 5px #172438; }
.favorite.saved { color: #f29a87; }
.card-content { padding: 15px; }
.card-content h3 { margin-bottom: 3px; font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); line-height: 1.4; }
.location { margin-bottom: 10px; font-size: 0.6875rem; }
.facts { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 14px; color: #526072; font-size: 0.6875rem; }
.facts span { white-space: nowrap; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-bottom strong { font-size: clamp(0.75rem, 1.05vw, 1rem); line-height: 1.4; }
.card-bottom a { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--gold); }
.no-results { grid-column: 2; margin: 0; padding: 20px; border: 1px solid #d9dfe2; border-radius: 6px; }

.locations { padding: 40px 0; color: #fff; background: linear-gradient(90deg, #0d263cee, #0c2235e8), url('/public/images/home/colombo.jpg') center 55% / cover; }
.locations-layout { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(120px, .58fr) minmax(0, 1.9fr); gap: 28px; align-items: center; }
.locations h2 { font-size: clamp(1.75rem, 2.3vw, 2.1875rem); }
.locations-intro p { color: #e0e7ec; font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); }
.island-outline img { width: 100%; max-height: 245px; object-fit: contain; }
.location-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.location-card { overflow: hidden; border: 1px solid #ffffff59; border-radius: 8px; background: #0c2031c9; transition: border-color .2s; }
.location-card:hover { border-color: #d6b78b; }
.location-card img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; }
.location-card div { display: grid; gap: 4px; padding: 12px; }
.location-card strong { font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); }
.location-card span { color: #dce4e9; font-size: 0.6875rem; }
.location-card span:last-child { margin-top: 6px; color: #dfc6a1; }

.why-layout, .testimonial-layout, .newsletter-inner, .footer-grid, .footer-bottom-inner { width: min(1600px, calc(100% - var(--gutter) * 2)); }

.why-section { background: linear-gradient(110deg, #f7f5f0, #fff 45%); }
.why-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(22px, 2.2vw, 38px); min-height: 320px; align-items: center; }
.why-copy { padding-block: 32px; }
.why-copy h2 { max-width: 330px; font-size: clamp(1.875rem, 2.2vw, 2.375rem); }
.why-copy p { max-width: 380px; margin-bottom: 22px; font-size: clamp(0.875rem, 0.75rem + 0.156vw, 0.9375rem); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.service-item { display: flex; flex-direction: column; justify-content: center; min-height: 112px; padding: 15px; border: 1px solid #eeeae3; border-radius: 5px; }
.service-item > span:first-child { margin-bottom: 7px; color: var(--gold); font-size: clamp(1.3125rem, 1.1168rem + 0.87vw, 1.8125rem); line-height: 1; }
.service-item strong { font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); }
.service-item > span:last-child { margin-top: 4px; font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); }
.inspire { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; min-height: 290px; padding: 30px; color: #fff; background: url('/public/images/home/living-room.jpg') center / cover; overflow: hidden; }
.inspire p { max-width: 220px; margin: 0; font: clamp(1.75rem, 2.2vw, 2.375rem)/1.1 'Playfair Display', Georgia, serif; }
.inspire::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 25%, #132333c4); pointer-events: none; }
.inspire { transition: background-image .4s ease; }
.inspire p { position: relative; transition: opacity .3s ease; }
.inspire.fading p { opacity: 0; }
.inspire-controls { position: absolute; right: 25px; bottom: 20px; display: flex; align-items: center; gap: 8px; font-size: 0.6875rem; z-index: 1; }
.inspire-controls button { background: none; border: 0; color: #fff; cursor: pointer; font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); padding: 4px 6px; }
.inspire-controls button:hover { color: #c9a26b; }
.testimonials { padding: 28px 0; color: #fff; background: linear-gradient(90deg, #10283eed, #0c2235ed), url('/public/images/home/colombo.jpg') center 75% / cover; }
.testimonial-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.7fr) minmax(0, .5fr); gap: clamp(20px, 2vw, 32px); align-items: center; }
.testimonial-heading h2 { font-size: clamp(1.25rem, 1.0788rem + 0.761vw, 1.6875rem); }
.testimonial-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.testimonial-cards article { display: flex; flex-direction: column; min-height: 196px; padding: 22px; border-radius: 8px; color: var(--ink); background: #fff; }
.quote { color: var(--gold); font: clamp(1.875rem, 1.5815rem + 1.304vw, 2.625rem)/.7 Georgia, serif; }
.testimonial-cards p { flex: 1; margin: 9px 0 20px; font-size: clamp(0.875rem, 0.75rem + 0.156vw, 0.9375rem); line-height: 1.6; }
.testimonial-cards strong { font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); }
.testimonial-cards article > span:last-child { font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); }
.future-card { font: clamp(1.25rem, 1.0788rem + 0.761vw, 1.6875rem)/1.1 'Playfair Display', Georgia, serif; }
.newsletter { padding: 26px 0; color: #fff; background: linear-gradient(90deg, #102d3cbf, #0b455ae8 45%, #0e293bd9), url('/public/images/home/coast.jpg') center 58% / cover; }
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 72px); padding-block: 6px; }
.newsletter h2 { max-width: 440px; margin: 0 0 8px; font-size: clamp(1.75rem, 2.2vw, 2.25rem); }
.newsletter p { margin: 0; font-size: clamp(0.875rem, 0.75rem + 0.156vw, 0.9375rem); }
.newsletter-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; }
.newsletter-form input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #dedfe1; border-radius: 5px; background: #fff; color: var(--ink); font-size: clamp(1rem, 0.875rem + 0.156vw, 1.0625rem); }
.newsletter-form .gold-button { flex: 0 0 auto; }
.newsletter-form .gold-button:disabled { opacity: .7; cursor: progress; }
.newsletter-status { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border: 1px solid #a0bfae; border-radius: 5px; color: #20553a; background: #edf6f0; font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); }
.newsletter-status.is-error { border-color: #d2a4a0; color: #813a35; background: #fcf1ee; }
.newsletter-status[hidden] { display: none; }
/* Named areas keep each footer group together as columns reflow. */
.footer { background: #f9f9f8; }
.footer-grid {
  display: grid;
  grid-template-areas: "brand links services contact gallery";
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(20px, 2vw, 36px);
  padding-block: clamp(32px, 3vw, 52px);
}
.footer-grid > div:not(.footer-images) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand { grid-area: brand; }
.footer-links { grid-area: links; }
.footer-services { grid-area: services; }
.footer-contact { grid-area: contact; }
.footer-brand img { width: clamp(120px, 10vw, 150px); height: auto; padding: 10px; border-radius: 50%; background: #fffdf8; box-shadow: 0 0 0 2px #c6a77c; }
.footer-brand p { max-width: 220px; margin: 18px 0 12px; font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); }
.footer-brand > span:last-child { font-size: clamp(0.9375rem, 0.8641rem + 0.326vw, 1.125rem); }
.footer-grid h3 { margin: 0 0 14px; font-size: clamp(0.875rem, 0.75rem + 0.156vw, 0.9375rem); }
.footer-links a, .footer-services > a, .footer-contact > a, .footer-contact > span { max-width: 100%; min-height: 28px; padding-block: 3px; font-size: clamp(0.8125rem, 0.6875rem + 0.156vw, 0.875rem); line-height: 1.7; overflow-wrap: anywhere; }
.footer-contact { gap: 4px; }
.footer-contact h3 { margin-bottom: 10px; }
.footer-images { grid-area: gallery; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.footer-images img { width: 100%; aspect-ratio: .8; object-fit: cover; border-radius: 4px; }
.footer-bottom { padding-block: 20px; color: #e3e9ed; background: #1b2b3a; font-size: clamp(0.75rem, 0.625rem + 0.156vw, 0.8125rem); }
.footer-bottom-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px 28px; }
.footer-bottom-inner > span:last-child { text-align: right; }
.footer-policies { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
.footer-policies a { white-space: nowrap; }
.footer-bottom a:hover, .footer-services > a:hover { color: var(--gold); }

@media (min-width: 1700px) {
  .hero-content { padding-top: 80px; }
  .hero-bottom { margin-top: 30px; }
}

@media (max-width: 1199px) {
  :root { --gutter: 36px; }
  .nav-actions .phone { display: none; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; }
  .advice-card { gap: 12px; padding: 18px; }
  .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-submit { min-height: 54px; }
  .hero-property { right: 15%; }
  .featured-layout { grid-template-columns: 1fr; gap: 26px; }
  .featured-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; align-items: center; }
  .featured-intro > .eyebrow { grid-column: 1 / -1; }
  .featured-intro h2 { grid-row: 2 / 4; margin-bottom: 0; }
  .featured-intro p { max-width: none; margin-bottom: 10px; }
  .card-image { aspect-ratio: 1.65; }
  .card-bottom strong { font-size: 0.9375rem; }
  .no-results { grid-column: 1 / -1; }
  .locations-layout { grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr); gap: 26px; }
  .island-outline { display: none; }
  .location-grid { gap: 10px; }
  .location-card div { padding: 10px; }
  .why-layout { grid-template-columns: minmax(200px, .85fr) minmax(230px, 1fr) minmax(0, 1fr); gap: 20px; }
  .inspire { padding: 22px; }
  .inspire p { font-size: 1.6875rem; }
  .testimonial-layout { grid-template-columns: minmax(170px, .8fr) minmax(0, 3fr); gap: 22px; }
  .future-card { display: none; }
  .testimonial-cards { gap: 12px; }
  .testimonial-cards article { padding: 16px; }
  .footer-grid { grid-template-areas: "brand links services" "contact gallery gallery"; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
  .footer-images { width: min(100%, 420px); }
  .footer-images img { aspect-ratio: 1.1; }
  .footer-bottom-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-bottom-inner > span:last-child { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 959px) {
  :root { --gutter: 28px; }
  .nav-inner { min-height: 78px; }
  .menu-toggle { display: flex; }
  .main-nav { display: none; position: absolute; inset: 78px var(--gutter) auto; align-items: stretch; gap: 0; padding: 12px 20px; border: 1px solid #ffffff26; border-radius: 8px; background: #102638fa; box-shadow: 0 15px 30px #07172740; }
  .main-nav.open { display: flex; flex-direction: column; }
  .main-nav a { min-height: 44px; }
  .main-nav a.active::after, .main-nav a:hover::after { right: auto; width: 28px; bottom: 6px; }
  .nav-actions { gap: 14px; }
  .hero { padding-top: 78px; }
  .hero-content { padding-top: 44px; }
  .hero h1 { font-size: clamp(2.625rem, 6.2vw, 3.5625rem); }
  .hero-property { top: 40%; right: 8%; width: 210px; }
  .hero-categories { display: none; }
  .hero-bottom { grid-template-columns: 1fr; margin-top: 10px; }
  .search-form { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(145px, 1.1fr); }
  .advice-card { display: none; }
  .search-form select { font-size: 0.8125rem; }
  .search-submit { min-height: 52px; }
  .featured { padding-top: 80px; }
  .property-grid { gap: 14px; }
  .card-content { padding: 13px; }
  .card-bottom strong { font-size: 0.8125rem; }
  .locations-layout { grid-template-columns: 1fr; }
  .locations-intro { max-width: 560px; }
  .locations-intro p { max-width: 500px; }
  .location-card img { aspect-ratio: 1.2; }
  .why-layout { grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 32px; }
  .why-copy { padding: 0; }
  .why-copy h2 { max-width: none; }
  .inspire { grid-column: 1 / -1; min-height: 270px; background-position: center 55%; }
  .testimonial-layout { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-heading h2 { margin-bottom: 0; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 22px; }
  .newsletter h2 { max-width: none; }
  .newsletter-form { max-width: 680px; }
  .footer-grid { grid-template-areas: "brand contact" "links services" "gallery gallery"; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
  .footer-images { width: 100%; max-width: 600px; }
  .footer-images img { aspect-ratio: 1.3; }
}

@media (max-width: 639px) {
  :root { --gutter: 20px; }
  .nav-inner { min-height: 76px; }
  .logo img { height: 50px; padding: 4px; }
  .nav-actions .gold-button { min-height: 38px; padding: 8px 12px; font-size: 0.6875rem; }
  .nav-actions { gap: 10px; }
  .hero { padding-top: 76px; padding-bottom: 24px; }
  .hero-image { object-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, #0a1f31d9, #081b2b66), linear-gradient(0deg, #0e273cf2 7%, transparent 65%); }
  .hero-content { padding-top: 42px; padding-bottom: 0; }
  .hero h1 { margin-top: 16px; font-size: clamp(2.3125rem, 9.5vw, 3.5rem); line-height: 1.07; }
  .hero-content > p { max-width: 320px; font-size: 0.875rem; }
  .hero-property { display: none; }
  .slide-count { margin-top: 20px; }
  .hero-bottom { margin-top: 28px; transform: none; }
  .search-tabs { min-height: 50px; }
  .search-tabs button { flex-direction: column; gap: 4px; padding: 9px 3px; font-size: 0.6875rem; }
  .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .search-form label { min-height: 66px; padding: 7px 10px; }
  .search-form select { min-height: 30px; font-size: 1rem; }
  .search-submit { min-height: 66px; font-size: 0.75rem; }
  .featured { padding: 42px 0; }
  .featured-intro { display: block; }
  .featured-intro h2 { max-width: 320px; margin: 12px 0 16px; }
  .featured-intro p { margin-bottom: 20px; }
  .featured-layout { gap: 25px; }
  .featured-actions { gap: 14px; }
  .property-grid { grid-template-columns: 1fr; gap: 22px; }
  .card-image { aspect-ratio: 1.6; }
  .card-content { padding: 18px; }
  .card-content h3 { font-size: 1rem; }
  .location { font-size: 0.75rem; }
  .facts { gap: 8px 16px; font-size: 0.6875rem; }
  .card-bottom strong { font-size: 1.0625rem; }
  .card-bottom a { flex-basis: 38px; width: 38px; height: 38px; }
  .locations { padding-block: 38px; }
  .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .location-card img { aspect-ratio: 1.05; }
  .location-card div { padding: 13px; }
  .location-card strong { font-size: 0.875rem; }
  .location-card span { font-size: 0.6875rem; }
  .why-layout { grid-template-columns: 1fr; gap: 26px; padding-block: 38px; }
  .why-copy p { max-width: 100%; }
  .service-item { min-height: 122px; padding: 16px; }
  .inspire { min-height: 240px; border-radius: 5px; }
  .testimonials { padding-block: 38px; }
  .testimonial-cards { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-cards article { min-height: 0; padding: 22px; }
  .newsletter { padding-block: 32px; }
  .newsletter-inner { gap: 20px; }
  .newsletter h2 { max-width: 340px; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form .gold-button { min-height: 48px; }
  .footer-grid { grid-template-areas: "brand brand" "links services" "contact contact" "gallery gallery"; gap: 28px 20px; }
  .footer-brand p { max-width: none; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .footer-services > a { min-height: 44px; display: flex; align-items: center; }
  .footer-contact a { display: flex; align-items: center; min-height: 44px; }
  .footer-images { max-width: none; }
  .footer-images img { aspect-ratio: 1; }
  .footer-bottom-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-policies { justify-content: flex-start; }
  .footer-bottom-inner > span:last-child { grid-column: auto; }

}

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .nav-actions .gold-button { display: none; }
  .search-tabs button { font-size: 0.6875rem; }
  .search-form { grid-template-columns: 1fr; }
  .search-submit { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
