/* Phuket Golden Land — shared styles */
:root {
  --navy: #1F3A5F;
  --navy-dark: #132842;
  --ink: #1B2430;
  --muted: #4A5260;
  --body: #333B47;
  --line: #E6E8EC;
  --sand: #F4F1EA;
  --gold: #D9A93F;
  --gold-text: #8A6417;
  --green: #1E7A4C;
  --green-dark: #17603C;
  --soft: #FAFAF7;
  --photo-bg: #1B2430;
  --radius: 12px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3, p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.serif { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; line-height: 1; }
.brand:hover { color: var(--ink); }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; padding: 10px 0; display: inline-block; }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn svg { flex: none; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-lg { min-height: 52px; font-size: 17px; width: 100%; }

@media (max-width: 640px) {
  .site-header { position: static; }
  .main-nav { order: 3; width: 100%; }
  .header-actions .btn { padding: 0 12px; }
}

/* Hero */
.hero { background: var(--sand); }
.hero .container { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; max-width: 760px; }
.hero p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 620px; }

/* Filters */
.listings { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.filter-group { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
.filter-group legend, .filter-label {
  font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 0; margin-bottom: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #CDD2DA; background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.result-count { font-size: 15px; color: var(--muted); }
.empty { padding: 32px; text-align: center; border: 1px dashed #CDD2DA; border-radius: var(--radius); color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card[hidden] { display: none; }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: #DCE3EA; display: block; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-photo img { transform: scale(1.03); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; line-height: 1.2; }
.badge-sale { background: var(--navy); color: #fff; }
.badge-rent { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.badge-type { background: var(--sand); color: #6E4F12; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-meta { font-size: 13px; font-weight: 600; color: var(--gold-text); text-transform: uppercase; letter-spacing: 0.06em; }
.card h2 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.card h2 a { text-decoration: none; color: var(--ink); }
.card h2 a:hover { color: var(--navy); }
.loc { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.spec { font-size: 15px; color: var(--muted); }
.card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid #EEF0F3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.price { font-size: 20px; font-weight: 700; }
.price-note { font-size: 14px; color: var(--muted); display: block; }
.more { font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 0; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; }
.site-footer .container { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand-name { font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; }
.site-footer p { font-size: 15px; line-height: 1.6; color: #D5DDE8; max-width: 420px; margin-top: 10px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact .label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #E9C77A; }
.footer-contact a { color: #fff; font-size: 18px; font-weight: 600; text-decoration: none; }
.footer-contact a:hover { color: #E9C77A; }
.footer-contact span { font-size: 15px; color: #D5DDE8; }
.footer-bottom { border-top: 1px solid #34507A; }
.footer-bottom p { padding: 16px 20px; max-width: 1200px; margin: 0 auto; font-size: 13px; color: #B9C5D6; }

/* Property page */
.property { padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.breadcrumb { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { text-decoration: none; }
.prop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.prop-title { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.prop-title h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.prop-title .loc { font-size: 16px; }
.key-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--body); margin-top: 4px; }
.prop-price { display: flex; flex-direction: column; gap: 2px; }
.prop-price .label { font-size: 14px; color: var(--muted); }
.prop-price .amount { font-size: 32px; font-weight: 700; line-height: 1.15; }
.prop-price .sub { font-size: 14px; color: var(--muted); }
.prop-price .rent { margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--navy); }

/* Gallery */
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main {
  position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 680px;
  border-radius: var(--radius); overflow: hidden; background: var(--photo-bg);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px; border: none;
  background: #fff; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-count {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 6px;
  background: rgba(27,36,48,.85); color: #fff; font-size: 13px; font-weight: 600;
}
.gallery-caption { font-size: 14px; color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.thumb {
  padding: 0; border: 1px solid #CDD2DA; border-radius: 8px; overflow: hidden;
  background: #DCE3EA; cursor: pointer; aspect-ratio: 4 / 3; opacity: .75;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { border: 3px solid var(--navy); opacity: 1; }
@media (max-width: 640px) {
  .gallery-main { aspect-ratio: 4 / 3; }
  .gallery-nav { width: 40px; height: 40px; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
}

/* Detail columns */
.prop-body { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.prop-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.prop-main section { display: flex; flex-direction: column; gap: 12px; }
.prop-main h2 { font-size: 22px; font-weight: 700; }
.prop-main p { font-size: 16px; line-height: 1.7; color: var(--body); }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); border-top: 1px solid var(--line); column-gap: 24px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 15px; color: var(--muted); }
.specs dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 24px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.checklist svg { flex: none; }
.bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; color: var(--body); }
.note { font-size: 14px !important; color: var(--muted) !important; }
.map-box {
  aspect-ratio: 16 / 7; border-radius: var(--radius); background: #E8EDF2; border: 1px solid #DCE3EA;
  display: flex; align-items: center; justify-content: center; color: #4A5A70; font-size: 15px; font-weight: 500; text-align: center; padding: 16px;
}
.map-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #E8EDF2; border: 1px solid #DCE3EA; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }
.map-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.map-row .map-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.map-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 32px 16px; border-radius: var(--radius); text-decoration: none; text-align: center;
  background: #E8EDF2; border: 1px solid #DCE3EA; color: var(--navy);
}
.map-link:hover { border-color: var(--navy); color: var(--navy); }
.map-link .map-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.map-link:hover .btn-navy { background: var(--navy-dark); }
.contact-card {
  flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--soft);
  position: sticky; top: 96px;
}
.contact-card h2 { font-size: 20px; font-weight: 700; }
.contact-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.contact-card strong { color: var(--ink); }
.contact-card .small { font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .contact-card { position: static; } }

/* Floating WhatsApp on phones */
.fab-wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 999px; background: var(--green); color: #fff;
  display: none; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.fab-wa:hover { color: #fff; background: var(--green-dark); }
@media (max-width: 640px) { .fab-wa { display: flex; } }

/* Brand tagline */
.brand .brand-text { display: flex; flex-direction: column; gap: 4px; font-family: inherit; font-size: inherit; line-height: 1.2; }
.brand .tagline { font-family: 'Figtree', system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); line-height: 1.2; }
.site-footer .footer-tagline { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #E9C77A; }
@media (max-width: 380px) { .brand .tagline { font-size: 11px; letter-spacing: 0.03em; } }
