:root {
  --navy: #061827;
  --navy-2: #0d2234;
  --ink: #0c1622;
  --muted: #5f6770;
  --line: #e2ded7;
  --paper: #f8f5ef;
  --white: #ffffff;
  --gold: #c69a5e;
  --gold-dark: #a97f46;
  --green: #536b5c;
  --header-height: 104px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 132px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.section-inner {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 16px 48px;
  background: rgba(6, 24, 39, 0.98);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  width: 160px;
  align-items: center;
}

.brand img {
  width: 160px;
  height: auto;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.9);
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 16px;
  min-width: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.language-button {
  display: inline-flex;
  width: 44px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.flag-icon {
  display: block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(1px);
}

.language-button:last-child {
  border-right: 0;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
  background: var(--gold);
  color: #11100d;
  outline: 0;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-cta,
.button-gold {
  background: var(--gold);
  color: #11100d;
}

.header-cta:hover,
.button-gold:hover {
  background: #d6ae73;
  transform: translateY(-1px);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-navy {
  background: var(--navy);
  color: var(--white);
}

.button-navy:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.top-property-search {
  position: relative;
  z-index: 20;
  padding: 16px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-property-search .property-search {
  margin: 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height) - 92px);
  overflow: hidden;
  background: var(--navy) url("assets/port-adriano-el-toro.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 44%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, rgba(6, 24, 39, 0.38), rgba(6, 24, 39, 0.06));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 96px;
}

.eyebrow,
.section-kicker,
.property-location {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.property-reference {
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: 4.1rem;
  font-weight: 400;
  line-height: 1.02;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 92px;
  padding: 18px 32px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.6;
}

.trust-item h2,
.trust-item p {
  margin: 0;
}

.trust-item h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.trust-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.intro {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 64px;
  padding: 74px 0 64px;
}

.intro-copy {
  align-self: center;
}

.intro-copy h2,
.section-heading h2,
.services h2,
.area-guide h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.45rem;
  font-weight: 400;
  line-height: 1.12;
}

.intro-copy p:not(.section-kicker) {
  max-width: 430px;
  margin: 28px 0;
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.property-card {
  overflow: hidden;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.featured-property-link {
  display: block;
}

.property-card img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  background: var(--paper);
}

.property-body {
  padding: 22px 24px 24px;
}

.property-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
}

.property-meta {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.property-price {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.properties-section {
  scroll-margin-top: calc(var(--header-height) + 24px);
  padding: 76px 0;
  background: #fbfaf7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 720px;
}

.section-heading > p,
.section-heading.compact > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.property-search {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.9fr)
    minmax(130px, 1fr)
    minmax(170px, 1.2fr)
    minmax(110px, 0.75fr)
    minmax(110px, 0.75fr)
    auto
    auto
    auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 30px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(8, 23, 35, 0.06);
}

.search-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.search-field input,
.search-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #d7d1c8;
  border-radius: 2px;
  background: #fffdfa;
  color: var(--ink);
  outline: 0;
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(198, 154, 94, 0.16);
}

.exclusive-toggle {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdfa;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.exclusive-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-dark);
}

.clear-filters {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.clear-filters:hover {
  background: var(--navy-2);
}

.view-results {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: #11100d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.view-results:hover {
  background: #d6ae73;
}

.search-summary {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.listing-card {
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.listing-card:hover,
.listing-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(8, 23, 35, 0.1);
}

.listing-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.listing-card.is-hidden {
  display: none;
}

.no-results {
  margin: 26px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

.image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.badge {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-dark {
  background: var(--navy);
  color: var(--white);
}

.property-footer {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.property-footer .property-price {
  margin: 0;
}

.property-footer a {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.button-outline {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.button-outline:hover {
  background: rgba(6, 24, 39, 0.06);
}

.property-page {
  background: #fbfaf7;
}

.property-detail-hero {
  padding: 42px 0 68px;
  background: linear-gradient(180deg, var(--paper) 0%, #fbfaf7 100%);
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.property-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 36px;
  align-items: start;
}

.property-detail-media {
  min-width: 0;
}

.detail-gallery-shell {
  position: relative;
  min-width: 0;
}

.property-detail-media img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.detail-scroll-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) #eee8de;
}

.detail-scroll-gallery::-webkit-scrollbar {
  height: 10px;
}

.detail-scroll-gallery::-webkit-scrollbar-track {
  background: #eee8de;
}

.detail-scroll-gallery::-webkit-scrollbar-thumb {
  background: var(--gold);
}

.detail-photo {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  scroll-snap-align: start;
}

.detail-photo img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.detail-photo.is-primary img {
  height: auto;
}

.exclusive-image-banner {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 2;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 0 24px;
  border: 1px solid #b98a4d;
  border-radius: 2px;
  background: linear-gradient(90deg, #a97f46 0%, #dfbf83 48%, #b98a4d 100%);
  color: #16120b;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(169, 127, 70, 0.22);
}

.gallery-arrows {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 12px;
  pointer-events: none;
}

.gallery-arrow {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(6, 24, 39, 0.72);
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 14px 32px rgba(6, 24, 39, 0.25);
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--gold);
  color: #16120b;
  transform: translateY(-1px);
}

.gallery-arrow span {
  display: block;
  margin-top: -2px;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}

.gallery-arrow[hidden] {
  display: none;
}

.property-detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: start;
  min-width: 0;
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.property-detail-summary h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.06;
}

.detail-location {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-reference {
  margin: 18px 0 0;
  color: var(--gold-dark);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-price {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.detail-facts span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdfa;
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}

.property-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  padding: 68px 0 78px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-main p {
  max-width: 790px;
  margin: 0 0 18px;
  color: var(--muted);
}

.detail-section {
  margin-top: 42px;
}

.detail-section h2,
.detail-contact-card h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.15;
}

.detail-section ul {
  display: grid;
  gap: 12px;
  max-width: 790px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-section li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
}

.detail-section li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
}

.detail-contact-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(8, 23, 35, 0.06);
}

.detail-contact-card p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
}

.contact-card-links {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.sidebar-actions {
  display: grid;
  gap: 12px;
}

.services {
  padding: 78px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  min-height: 240px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid span {
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.service-grid h3,
.area-grid h3 {
  margin: 24px 0 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.service-grid p,
.area-grid p {
  margin: 0;
  color: var(--muted);
}

.area-guide {
  padding: 76px 0;
  color: var(--white);
  background: var(--navy);
}

.area-guide .section-kicker,
.contact .section-kicker {
  color: var(--gold);
}

.area-guide .section-heading > p,
.area-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.area-grid article {
  min-height: 210px;
  padding: 30px;
  background: var(--navy);
}

.area-grid h3 {
  margin-top: 0;
}

.contact {
  padding: 78px 0;
  background: var(--paper);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact p:not(.section-kicker) {
  max-width: 520px;
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: var(--gold-dark);
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-feedback {
  margin: 16px 0 0;
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-action-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 24, 39, 0.7);
}

.contact-action-overlay[hidden] {
  display: none;
}

.contact-action-panel {
  position: relative;
  width: min(100%, 480px);
  padding: 30px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.contact-action-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
}

.contact-action-panel h2 {
  margin: 4px 0 10px;
  color: var(--navy);
  font-size: 1.8rem;
}

.contact-action-intro {
  color: var(--muted);
}

.contact-action-value {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.contact-action-option {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  padding: 12px 14px;
}

.contact-action-option.is-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.contact-copy-status {
  min-height: 1.3em;
  margin: 16px 0 0;
  color: var(--gold-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form label:nth-child(4),
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7d1c8;
  border-radius: 2px;
  background: #fffdfa;
  color: var(--ink);
  min-height: 48px;
  padding: 11px 12px;
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(198, 154, 94, 0.16);
}

.site-footer {
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner img {
  width: 128px;
  height: auto;
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 150px 1fr auto;
    padding: 14px 28px;
  }

  .brand,
  .brand img {
    width: 138px;
  }

  .primary-nav {
    gap: 16px;
    font-size: 0.74rem;
  }

  .header-actions {
    gap: 10px;
  }

  .language-button {
    width: 40px;
    height: 36px;
  }

  .flag-icon {
    font-size: 1.2rem;
  }

  .properties-grid,
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-detail-grid,
  .property-detail-content {
    grid-template-columns: 1fr;
  }

  .detail-scroll-gallery {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 12px;
  }

  .detail-photo img,
  .detail-photo.is-primary img {
    height: auto;
    min-height: 0;
  }

  .detail-contact-card {
    position: static;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 78px;
  }

  .section-inner {
    width: min(100% - 34px, 1320px);
  }

  .site-header {
    grid-template-columns: 150px 1fr 44px;
    min-height: var(--header-height);
    padding: 10px 17px;
  }

  .brand,
  .brand img {
    width: 126px;
  }

  .nav-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
  }

  .header-actions {
    grid-column: 2;
    justify-self: end;
    padding-right: 10px;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: rgba(6, 24, 39, 0.99);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32);
  }

  body.nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    min-height: calc(100svh - var(--header-height) - 82px);
    background-position: 58% center;
  }

  .hero-content {
    padding: 56px 0 68px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .property-detail-summary h1 {
    font-size: 2.45rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .trust-inner,
  .intro,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .intro {
    gap: 36px;
    padding: 58px 0;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .property-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-summary {
    grid-column: auto;
    align-self: center;
    margin: 0;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .intro-copy h2,
  .section-heading h2,
  .services h2,
  .area-guide h2,
  .contact h2 {
    font-size: 2rem;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .featured-grid,
  .properties-grid,
  .service-grid,
  .area-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    display: grid;
  }

  .property-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }

  .search-summary {
    grid-column: 1 / -1;
  }

  .clear-filters,
  .exclusive-toggle,
  .view-results {
    width: 100%;
  }

  .contact-form label:nth-child(4),
  .contact-form button {
    grid-column: auto;
  }

  .property-detail-hero {
    padding: 28px 0 44px;
  }

  .property-detail-grid {
    gap: 18px;
  }

  .detail-photo img,
  .detail-photo.is-primary img {
    height: auto;
    min-height: 0;
  }

  .property-detail-summary,
  .detail-contact-card {
    padding: 22px;
  }

  .property-detail-summary h1 {
    font-size: 2rem;
  }

  .property-detail-content {
    padding: 44px 0 58px;
  }

  .detail-actions .button {
    width: 100%;
  }

  .property-footer {
    display: grid;
    align-items: start;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 360px) {
  .property-search {
    grid-template-columns: 1fr;
  }
}
