:root {
  --royal-blue: #155EEF;
  --deep-navy: #0B1F3A;
  --tropical-teal: #00A6A6;
  --mango: #FFB703;
  --background: #F7F9FC;
  --white: #FFFFFF;
  --text: #172033;
  --muted: #667085;
  --line: #D8E0EC;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.12);
}

* { 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;
  background: var(--background);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 224, 236, 0.85);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep-navy);
  font-weight: 900;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--royal-blue);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(21, 94, 239, 0.25);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}
.site-nav a:hover { color: var(--royal-blue); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--deep-navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}
.btn-primary { background: var(--royal-blue); color: var(--white); }
.btn-primary:hover { background: #0F4DCC; }
.btn-ghost {
  background: var(--white);
  color: var(--royal-blue);
  border: 1px solid var(--line);
}
.btn-light { background: var(--white); color: var(--deep-navy); }

.hero {
  min-height: calc(100vh - 76px);
  padding: clamp(32px, 7vw, 90px) clamp(18px, 4vw, 56px) 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.95fr);
  align-content: end;
  gap: clamp(22px, 4vw, 54px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.66) 42%, rgba(11, 31, 58, 0.18) 100%),
    url("assets/malaysia-property-hero.png") center / cover;
}
.hero-copy { max-width: 720px; align-self: center; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--tropical-teal);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.55rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}
.hero-copy p:last-child {
  max-width: 620px;
  color: rgba(255,255,255,0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}
.search-panel {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,0.97);
  color: var(--text);
  box-shadow: var(--shadow);
}
label {
  display: grid;
  gap: 8px;
  color: var(--deep-navy);
  font-weight: 900;
  font-size: 0.86rem;
}
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--white);
}
textarea { resize: vertical; }
.search-btn { grid-column: span 2; }
.quick-search {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0;
}
.quick-search span { flex: 0 0 auto; font-weight: 900; color: rgba(255,255,255,0.82); }
.quick-search button,
.budget-row button,
.location-grid button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}
.quick-search button {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 8px;
  background: rgba(255,255,255,0.16);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 56px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 26px;
}
h2 {
  margin: 0;
  color: var(--deep-navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: 0;
}
h3 { margin: 0; color: var(--deep-navy); font-size: 1.1rem; }
p { line-height: 1.65; }
.section-head p, .intro-band p, .seo-section p, .contact-section p { color: var(--muted); }

.intro-band {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(20px, 6vw, 80px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.property-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(11,31,58,0.08);
  border: 1px solid rgba(216,224,236,0.8);
}
.property-image {
  position: relative;
  height: 220px;
  background-image: linear-gradient(180deg, rgba(11,31,58,0) 40%, rgba(11,31,58,0.78)), url("assets/malaysia-property-hero.png");
  background-size: cover;
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--deep-navy);
  background: var(--mango);
  font-size: 0.76rem;
  font-weight: 900;
}
.property-card:nth-child(2n) .property-image { background-position: right center; }
.property-card:nth-child(3n) .property-image { background-position: center bottom; }
.property-card:nth-child(4n) .property-image { background-position: left center; }
.property-body { padding: 18px; }
.property-location { color: var(--muted); margin: 6px 0 10px; }
.rent { color: var(--royal-blue); font-size: 1.35rem; font-weight: 950; margin: 0 0 10px; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.9rem;
}
.property-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.chip {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(0,166,166,0.1);
  color: var(--tropical-teal);
  font-weight: 900;
  font-size: 0.78rem;
}
.empty-state { display: none; padding: 22px; background: var(--white); border-radius: 8px; color: var(--muted); }

.type-section { background: var(--white); }
.type-grid, .steps, .seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.type-grid article, .steps article, .seo-grid article, .info-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.type-grid article { border-top: 4px solid var(--tropical-teal); }
.type-grid p, .steps p, .info-grid p { color: var(--muted); margin-bottom: 0; }

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.location-grid button {
  min-height: 150px;
  padding: 22px;
  text-align: left;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--deep-navy), #123C71);
  color: var(--white);
  display: grid;
  align-content: end;
  gap: 8px;
  box-shadow: 0 14px 28px rgba(11,31,58,0.12);
}
.location-grid button:nth-child(2n) { background: linear-gradient(135deg, var(--royal-blue), #0E8CCB); }
.location-grid button:nth-child(3n) { background: linear-gradient(135deg, #067B7B, var(--tropical-teal)); }
.location-grid span { color: rgba(255,255,255,0.82); font-weight: 700; }

.budget-band {
  background: var(--deep-navy);
  color: var(--white);
}
.budget-band h2 { color: var(--white); }
.budget-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.budget-row button {
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--white);
  color: var(--deep-navy);
}
.budget-row button:hover { background: var(--mango); }

.steps article span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--royal-blue);
  font-size: 2rem;
  font-weight: 950;
}
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.split-section article {
  padding: clamp(26px, 5vw, 46px);
  border-radius: 8px;
  background: var(--white);
}
.split-section ul, .trust-section ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--muted);
}
.landlord-card {
  background: linear-gradient(135deg, var(--royal-blue), var(--tropical-teal)) !important;
  color: var(--white);
}
.landlord-card h2, .landlord-card .eyebrow { color: var(--white); }
.landlord-card p { color: rgba(255,255,255,0.86); }

.info-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 18px;
  background: var(--white);
}
.trust-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  align-items: center;
  gap: 28px;
  background: var(--deep-navy);
  color: var(--white);
}
.trust-section h2 { color: var(--white); }
.trust-section ul { color: rgba(255,255,255,0.84); }

.seo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seo-grid article { padding: 18px; }
.seo-grid h3 { font-size: 1rem; }
.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 70px);
  background: var(--white);
}
.contact-email {
  display: inline-flex;
  margin-top: 12px;
  color: var(--royal-blue);
  font-size: 1.25rem;
  font-weight: 950;
}
.contact-form, .landlord-form {
  display: grid;
  gap: 14px;
}
.form-status { margin: 0; color: var(--tropical-teal); font-weight: 900; }

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 26px;
  padding: 42px clamp(18px, 4vw, 56px);
  background: var(--deep-navy);
  color: var(--white);
}
.site-footer p, .site-footer a { color: rgba(255,255,255,0.76); }
.footer-brand, .footer-brand span { color: var(--white); }
.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.modal {
  width: min(920px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(11,31,58,0.62); }
.modal-content { position: relative; padding: 24px; background: var(--white); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--deep-navy);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}
.modal-hero {
  height: 320px;
  margin: -24px -24px 22px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(11,31,58,0.05), rgba(11,31,58,0.42)), url("assets/malaysia-property-hero.png") center / cover;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.detail-grid span {
  padding: 12px;
  border-radius: 8px;
  background: var(--background);
  color: var(--muted);
  font-weight: 800;
}
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.sticky-mobile-cta { display: none; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto auto; }
  .menu-toggle { display: block; justify-self: end; }
  .site-nav, .header-actions {
    display: none;
    grid-column: 1 / -1;
  }
  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions {
    display: grid;
    justify-content: stretch;
    gap: 12px;
  }
  .site-header.is-open .site-nav a { padding: 10px 0; }
  .header-actions { justify-items: start; }
  .hero { grid-template-columns: 1fr; }
  .property-grid, .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-grid, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .site-header { min-height: 66px; padding: 12px 16px; }
  .brand { font-size: 0.95rem; }
  .hero {
    min-height: auto;
    padding: 42px 16px 20px;
    background-position: 58% center;
  }
  .search-panel,
  .intro-band,
  .property-grid,
  .type-grid,
  .location-grid,
  .steps,
  .split-section,
  .info-grid,
  .seo-grid,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .search-btn { grid-column: auto; }
  .section { padding: 48px 16px; }
  .section-head { align-items: start; flex-direction: column; }
  .location-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .location-grid button { min-width: 235px; }
  .info-grid > div { margin-bottom: 4px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-hero { height: 230px; }
  .sticky-mobile-cta {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(11,31,58,0.12);
  }
}
