:root {
  --ink: #06133f;
  --ink-soft: #344064;
  --teal: #0ea5a4;
  --teal-dark: #087f7d;
  --gold: #f5a524;
  --sky: #2f9dea;
  --mist: #f4f7fb;
  --line: #dfe6ef;
  --card: #ffffff;
  --danger: #d93838;
  --success: #008f62;
  --shadow: 0 18px 45px rgba(6, 19, 63, 0.1);
  --radius: 8px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans HK", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 230, 239, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  border-radius: 7px 18px 7px 7px;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink);
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 99px;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.text-link {
  color: var(--ink);
}

.pill-link,
.btn,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition: 0.18s ease;
}

.pill-link,
.btn {
  color: #fff;
  background: var(--ink);
}

.btn:hover,
.pill-link:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--ink);
  background: #e9f8f6;
}

.btn-outline {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #091a44;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 19, 63, 0.88), rgba(6, 19, 63, 0.52) 46%, rgba(6, 19, 63, 0.18)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  padding: 70px 0 150px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #bff3ef;
  font-weight: 800;
}

.eyebrow::before {
  width: 34px;
  height: 3px;
  background: var(--gold);
  border-radius: 99px;
  content: "";
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.12;
}

.hero p,
.page-hero p {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-dots {
  position: absolute;
  right: calc((100% - min(100% - 40px, var(--max))) / 2);
  bottom: 132px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--gold);
}

.search-panel {
  position: relative;
  z-index: 3;
  width: min(100% - 40px, var(--max));
  margin: -95px auto 70px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(223, 230, 239, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.tab {
  min-width: 120px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fc;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.tab.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.search-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr auto;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.section {
  padding: 58px 0;
}

.section-muted {
  background: var(--mist);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.property-card,
.article-card,
.info-card,
.enquiry-card,
.table-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(6, 19, 63, 0.07);
  overflow: hidden;
}

.property-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.property-card img,
.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property-body,
.article-body,
.info-card,
.enquiry-card {
  padding: 18px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  background: #e9f8f6;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.badge-gold {
  background: #fff4dc;
  color: #9b6100;
}

.property-card h3,
.article-card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.property-card p,
.article-card p,
.info-card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--ink);
  font-weight: 900;
}

.price-row small {
  color: var(--ink-soft);
  font-weight: 600;
}

.listing-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

.filter-box {
  position: sticky;
  top: 106px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-box h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.filters-stack {
  display: grid;
  gap: 14px;
}

.page-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 19, 63, 0.9), rgba(14, 165, 164, 0.55)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.page-hero-inner {
  padding: 86px 0;
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
}

.content-page h2,
.content-page h3 {
  line-height: 1.28;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

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

.article-cover {
  width: 100%;
  max-height: 460px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  object-fit: cover;
}

.article-content {
  color: #182447;
  font-size: 18px;
}

.article-content img {
  border-radius: var(--radius);
}

.sidebar-box {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-box h3 {
  margin-top: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a,
.tag-list span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-item p {
  color: var(--ink-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 800;
}

.alert-success {
  color: #064b36;
  background: #dff8ef;
}

.alert-error {
  color: #7a1d1d;
  background: #fde2e2;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  color: var(--ink-soft);
}

.site-footer {
  margin-top: 70px;
  color: #fff;
  background: #06133f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px;
  padding: 56px 0 42px;
}

.brand-light small,
.footer-brand p,
.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #fff;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-row a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.whatsapp-float,
.back-top {
  position: fixed;
  z-index: 40;
  right: 24px;
  border: 0;
  border-radius: 99px;
  box-shadow: 0 12px 28px rgba(6, 19, 63, 0.25);
}

.whatsapp-float {
  bottom: 88px;
  padding: 12px 16px;
  color: #fff;
  background: #18a75a;
  font-weight: 900;
}

.back-top {
  bottom: 28px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.empty-state {
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-soft);
  text-align: center;
}

.health-list {
  display: grid;
  gap: 12px;
}

.health-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.health-item strong {
  color: var(--success);
}

.health-item.is-bad strong {
  color: var(--danger);
}
