:root {
  --ink: #101722;
  --muted: #65707e;
  --line: #d9d2c7;
  --paper: #f7f3ed;
  --white: #ffffff;
  --gold: #b98d3b;
  --green: #145c52;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  min-height: 88px;
  padding: 16px clamp(18px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo-wide {
  width: clamp(320px, 34vw, 460px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-cta { color: var(--white); background: var(--green); padding: 10px 14px; }

.hero {
  min-height: calc(100vh - 88px);
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 64px);
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(9, 16, 28, .84) 0%, rgba(9, 16, 28, .58) 42%, rgba(9, 16, 28, .12) 100%),
    url("/assets/images/hero/phuket-infinity-pool-seaview.jpg") center center / cover no-repeat;
  position: relative;
}
.hero-copy { color: var(--white); max-width: 760px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 7vw, 88px); font-weight: 400; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 54px); font-weight: 400; }
h3 { font-size: 20px; line-height: 1.18; }
.hero p:not(.eyebrow) { color: rgba(255,255,255,.76); max-width: 620px; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid currentColor;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.button.primary { background: var(--gold); color: #111; border-color: var(--gold); }
.button.secondary { color: var(--white); }
.button.outline { color: var(--ink); background: transparent; border-color: var(--line); }
.search-panel {
  padding: 0 clamp(18px, 5vw, 64px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.property-search {
  max-width: 1160px;
  margin: -42px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr .8fr 1.1fr auto;
  align-items: end;
  gap: 12px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(16, 23, 34, .14);
  position: relative;
  z-index: 3;
}
.property-search label {
  display: grid;
  gap: 8px;
}
.property-search label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.property-search select,
.property-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}
.property-search button {
  min-width: 118px;
}
.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  width: 100%;
  border-right: 1px solid var(--line);
  background: var(--white);
  color: inherit;
  padding: 28px clamp(18px, 4vw, 48px);
  text-align: left;
  font: inherit;
}
.trust-item summary { cursor: pointer; list-style: none; }
.trust-item summary::-webkit-details-marker { display: none; }
.trust-item strong { display: block; font-size: 18px; }
.trust-item span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.55; }
.trust-item p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.trust-item[open] {
  background: var(--paper);
}
.trust-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.section { padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 64px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.clear-search {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.empty-results {
  max-width: 620px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.empty-results p {
  color: var(--muted);
  line-height: 1.65;
}
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.property-card { border: 1px solid var(--line); background: var(--white); }
.property-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.property-card-body { padding: 20px; display: grid; gap: 9px; }
.property-card p { margin: 0; color: var(--muted); }
.badge { width: fit-content; background: var(--paper); color: var(--green); padding: 5px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.split { display: grid; grid-template-columns: .8fr 1fr; gap: 48px; background: var(--paper); }
.steps { display: grid; gap: 18px; color: var(--muted); line-height: 1.75; }
.contact-section { background: var(--ink); color: var(--white); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 820px; margin-top: 26px; }
.contact-form textarea { grid-column: 1 / -1; min-height: 130px; resize: vertical; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
  color: var(--white);
  padding: 14px;
  font: inherit;
}
.contact-form button { width: fit-content; }
.site-footer { padding: 34px clamp(18px, 5vw, 64px); background: #0b1018; color: rgba(255,255,255,.72); display: flex; justify-content: space-between; gap: 20px; }
.page-main, .property-page { max-width: 980px; margin: 0 auto; padding: clamp(50px, 8vw, 100px) 20px; }
.content-hero {
  min-height: calc(78vh - 88px);
  padding: clamp(70px, 9vw, 118px) clamp(18px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: clamp(34px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 46%, rgba(255,255,255,.66) 100%),
    url("/assets/images/hero/phuket-infinity-pool-seaview.jpg") center center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.content-hero h1 { max-width: 980px; }
.content-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #2d3745;
  font-size: 18px;
  line-height: 1.75;
}
.content-hero .hero-actions { margin-top: 30px; }
.hero-note {
  padding: 28px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(16, 23, 34, .1);
}
.hero-note strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}
.hero-note span {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}
.intro-grid {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: clamp(34px, 6vw, 84px);
}
.text-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}
.text-stack p { margin: 0; }
.cards-section { background: #fbfaf7; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  align-content: start;
  gap: 14px;
}
.service-grid article span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}
.service-grid article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}
.feature-band {
  display: grid;
  grid-template-columns: .75fr 1fr;
  gap: clamp(34px, 6vw, 84px);
  background: var(--ink);
  color: var(--white);
}
.feature-band h2 { color: var(--white); }
.process-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.process-list p {
  margin: 0;
  padding: 20px 0;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.process-list strong {
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.faq-list {
  max-width: 1040px;
  margin: 0 auto;
}
.faq-list h2 { margin-bottom: 30px; }
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}
.cta-panel {
  margin: clamp(18px, 5vw, 64px);
  padding: clamp(40px, 7vw, 78px);
  background: var(--paper);
  border: 1px solid var(--line);
}
.cta-panel h2 { max-width: 860px; }
.cta-panel p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}
.cta-panel .button { margin-top: 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.price { display: block; margin-top: 18px; font-size: 24px; color: var(--green); }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; gap: 16px; flex-direction: column; }
  .brand-logo-wide { width: min(86vw, 340px); }
  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 12px 18px;
    padding-bottom: 4px;
  }
  .main-nav a { white-space: nowrap; }
  .property-search { grid-template-columns: 1fr; margin-top: -28px; }
  .property-search button { width: 100%; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .split, .content-hero, .intro-grid, .feature-band { grid-template-columns: 1fr; }
  .content-hero { min-height: auto; padding-top: 52px; }
  .hero-note { padding: 22px; }
  .trust-band, .property-grid, .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: auto; }
  .cta-panel { margin: 18px; padding: 30px 22px; }
  .contact-form { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
