:root {
  --green: #073a2b;
  --green-dark: #042e20;
  --green-soft: #eaf5ed;
  --gold: #d4af37;
  --gold-dark: #b58f2a;
  --navy: #0c2340;
  --text: #17202a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f9f8;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.hidden { display: none !important; }
.container { width: min(1180px, 92%); margin: auto; }

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(7, 58, 43, 0.08);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 900;
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark {
  width: 38px;
  height: 38px;
  border: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0)) , var(--green);
  border-radius: 8px 8px 3px 3px;
  position: relative;
}
.brand-mark:before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 0;
  height: 20px;
  border-left: 3px solid rgba(255,255,255,0.06);
  border-right: 3px solid rgba(255,255,255,0.06);
}
.brand small { display: block; font-size: 10px; letter-spacing: 0.22em; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.primary-btn, .secondary-btn {
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
}
.primary-btn { background: var(--gold); color: var(--green-dark); }
.secondary-btn { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.danger-btn { background: #b42318; color: white; border: none; border-radius: 8px; padding: 9px 12px; }
.icon-btn { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 8px 10px; }

.hero {
  min-height: 620px;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0.14) 70%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=85") center/cover;
  display: flex;
  align-items: center;
}
.hero-content {
  max-width: 620px;
  padding: 88px 0 138px;
}
.eyebrow { color: var(--gold-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.hero h1 {
  font-size: 62px;
  line-height: 0.98;
  margin: 16px 0 20px;
  letter-spacing: -0.03em;
  max-width: 11ch;
}
.hero p {
  font-size: 18px;
  line-height: 1.8;
  color: #31443b;
  max-width: 56ch;
}
.hero-actions { display: flex; gap: 12px; margin-top: 24px; align-items: center; }

.search-panel {
  background: white;
  margin-top: -92px;
  position: relative;
  z-index: 5;
  box-shadow: 0 18px 40px rgba(7, 58, 43, 0.12);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
}
label { font-size: 12px; font-weight: 800; display: block; margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.section-head h2 { font-size: 36px; margin: 0; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.property-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.property-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.service-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9f4 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(7, 58, 43, 0.06);
}
.service-card h3 { margin: 10px 0 10px; font-size: 21px; letter-spacing: -0.01em; }
.service-card p { margin: 0; line-height: 1.7; color: var(--muted); }
.section-actions { margin-top: 24px; }
.service-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.property-image { height: 190px; object-fit: cover; width: 100%; }
.card-body { padding: 16px; }
.tag { display: inline-flex; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; padding: 6px 8px; border-radius: 999px; }
.property-card h3 { margin: 12px 0 7px; font-size: 18px; }
.meta { font-size: 13px; color: var(--muted); margin: 5px 0; }
.price { font-weight: 800; color: var(--green); font-size: 18px; margin-top: 12px; }

.feature-strip { background: white; }
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; text-align: center; }
.feature-icon {
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.feature h4 { margin: 10px 0 6px; }
.feature p { font-size: 12px; color: var(--muted); line-height: 1.5; }

.trust-panel {
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 30%),
    linear-gradient(135deg, #0b2d46 0%, #0a2236 100%);
  color: white;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 20px 48px rgba(8, 28, 47, 0.22);
}
.trust-panel .section-head p { color: rgba(226, 235, 245, 0.78); }
.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.trust-copy {
  display: grid;
  gap: 18px;
}
.trust-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(232, 240, 248, 0.92);
}
.trust-points {
  display: grid;
  gap: 14px;
}
.trust-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(8px);
}
.trust-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.trust-card p {
  margin: 0;
  color: rgba(226, 235, 245, 0.78);
  line-height: 1.7;
  font-size: 14px;
}
.trust-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(232, 240, 248, 0.86);
}
.trust-footer a { color: white; }
.trust-lead {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
}
.cta form {
  background: white;
  color: var(--text);
  padding: 26px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  box-shadow: 0 18px 44px rgba(4, 46, 32, 0.18);
}
.cta form .full { grid-column: 1 / -1; }
.cta-kicker { display: inline-block; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 800; }
.cta-title { font-size: 38px; line-height: 1.05; margin: 12px 0; letter-spacing: -0.02em; }
.cta-copy { color: rgba(255,255,255,0.78); line-height: 1.7; }
.contact-copy { display: grid; gap: 14px; align-content: start; }
.contact-detail-group { display: grid; gap: 4px; }
.contact-lead {
  margin: 0;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.contact-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: white;
}
.credibility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.credibility-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(7, 58, 43, 0.05);
}
.credibility-card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.credibility-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.sectors-panel {
  margin-top: 22px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  border-radius: 18px;
  padding: 24px;
}
.sectors-panel h3 { margin: 0 0 14px; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.sector-tags span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
}
.empty-state {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8f6 100%);
  border: 1px dashed rgba(7, 58, 43, 0.18);
  border-radius: 18px;
  padding: 34px;
  text-align: left;
}
.empty-state h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.01em; }
.empty-state p { margin: 0; color: var(--muted); line-height: 1.7; }
.empty-state .primary-btn, .empty-state .secondary-btn { margin-top: 16px; }
.closing-strip {
  background: linear-gradient(180deg, #f2f6f3 0%, #e7efe9 100%);
  border-top: 1px solid rgba(7, 58, 43, 0.08);
  border-bottom: 1px solid rgba(7, 58, 43, 0.08);
}
.closing-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.closing-content p {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: #294136;
}

footer { background: #07190f; color: #cfe1d5; padding: 40px 0; }
footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { color: white; }

.admin-app { min-height: 100vh; background: #f3f6f4; }
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: #063c22; color: white; padding: 24px 16px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { margin-bottom: 28px; }
.menu-title { font-size: 10px; text-transform: uppercase; color: #9fc3ad; letter-spacing: 0.15em; margin: 22px 12px 8px; }
.menu-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #d8ebdf;
  padding: 12px;
  border-radius: 8px;
  margin: 2px 0;
}
.menu-btn.active, .menu-btn:hover { background: rgba(255, 255, 255, 0.12); color: white; }
.admin-main { padding: 28px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-top h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: white; border: 1px solid var(--line); padding: 18px; border-radius: 12px; }
.stat strong { font-size: 28px; display: block; margin-top: 5px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.table-tools { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.status { padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.available { background: #e8f7ed; color: #17743a; }
.reserved { background: #fff4d6; color: #9a6700; }
.sold { background: #f0f1f2; color: #4b5563; }
.off-plan { background: #e8f2ff; color: #175cd3; }
.row-actions { display: flex; gap: 5px; }
.property-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.property-form .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.form-message { min-height: 20px; font-size: 13px; margin-bottom: 8px; }
.form-message.success { color: #17743a; }
.form-message.error { color: #b42318; }
.auth-gate { display: flex; justify-content: center; padding: 30px 16px 0; }
.auth-card {
  width: min(440px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.auth-card h3 { margin-top: 0; margin-bottom: 6px; }
.auth-card p { margin-top: 0; color: var(--muted); }
.auth-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.media-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.media-preview img { height: 100px; width: 100%; object-fit: cover; border-radius: 8px; }
.user-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.section-link { color: var(--green); font-weight: 700; }
.search-actions { display: flex; align-items: end; gap: 10px; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.property-card-actions { display: flex; gap: 10px; margin-top: 14px; }
.compact-btn { padding: 10px 14px; font-size: 13px; }
.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 28, 16, 0.58);
}
.modal-card {
  position: relative;
  width: min(980px, 100%);
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  padding: 24px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
}
.detail-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.detail-image { width: 100%; min-height: 360px; max-height: 520px; object-fit: cover; border-radius: 14px; }
.detail-copy h2 { margin: 12px 0 8px; font-size: 32px; }
.detail-price { font-size: 26px; color: var(--green); font-weight: 800; margin: 0 0 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); margin-bottom: 14px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sidebar-brand { margin-bottom: 10px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-copy { color: var(--muted); margin: 8px 0 0; }
.admin-user-hint { color: #9fc3ad; font-size: 13px; }
.panel-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-subtitle { color: var(--muted); margin: 0; }
.table-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.table-filters > * { flex: 1 1 180px; }
.table-subline { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.table-empty { color: var(--muted); text-align: center; padding: 18px; }
.dashboard-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.summary-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9f4 100%);
  padding: 18px;
}
.summary-card strong { display: block; font-size: 28px; color: var(--green); margin-bottom: 8px; }
.summary-card span { color: var(--muted); line-height: 1.6; font-size: 14px; }
.activity-list { display: grid; gap: 12px; }
.activity-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fbfcfb; }
.activity-summary { font-weight: 700; }
.activity-meta { margin-top: 6px; color: var(--muted); font-size: 12px; }
.publish-published { background: #e8f7ed; color: #17743a; }
.publish-draft { background: #eef4ff; color: #175cd3; }
.publish-archived { background: #f3f4f6; color: #4b5563; }
.form-switches { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 0; }
.form-switch input { width: auto; }
.field-help { display: block; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.media-item { margin: 0; }
.media-item figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.setting-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}
.setting-card h3 { margin-top: 0; }

@media (max-width: 950px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 48px; max-width: 12ch; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .credibility-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; height: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .panel-grid, .detail-hero, .settings-grid, .dashboard-summary, .closing-content, .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero { min-height: 540px; background-position: 62% center; }
  .hero h1 { font-size: 38px; }
  .hero-content { padding-top: 62px; padding-bottom: 96px; }
  .search-panel, .property-grid, .services-grid, .credibility-grid, .features, .cta, .cta form, .stats, .property-form, footer .footer-grid { grid-template-columns: 1fr; }
  .cta form .full, .property-form .full { grid-column: auto; }
  .admin-main { padding: 16px; }
  .table-wrap { overflow: auto; }
  .property-card-actions, .detail-actions, .search-actions, .quick-actions, .hero-actions, .contact-links, .closing-content { flex-direction: column; align-items: stretch; }
  .modal { padding: 12px; }
  .modal-card { padding: 18px; }
  .detail-image { min-height: 220px; }
  .trust-panel { padding: 28px; }
}
