@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800;900&display=swap');

:root {
  --golden-color: #c4a360;
  --main-gold: #c4a360;
  --muted: #c9a867;
  --main-bg: #f9f9f9;
  --card: #fff8e1;
  --step-border: #e3d8b5;
  --hover: #fdf4d3;
  --text: #0c1c2d;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);

  --navy: #0c1c2d;
  --navy-2: #142b40;
  --navy-3: #1c3b56;
  --gold: var(--main-gold);
  --gold-2: #ddc894;
  --gold-soft: rgba(196, 163, 96, .14);
  --bg: var(--main-bg);
  --surface: #ffffff;
  --surface-2: var(--card);
  --surface-3: var(--hover);
  --line: var(--step-border);
  --success: #1f9d62;
  --warning: #df9733;
  --danger: #c94e55;
  --info: #397bb5;
  --shadow-sm: var(--shadow);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .12);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
}

html[data-theme="dark"] {
  --main-bg: #07131f;
  --card: #11283c;
  --step-border: #2a455d;
  --hover: #17344c;
  --text: #f7f8fa;
  --muted: #d5bd83;
  --bg: var(--main-bg);
  --surface: #0d2031;
  --surface-2: var(--card);
  --surface-3: var(--hover);
  --line: var(--step-border);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.24);
  --shadow: 0 8px 24px rgba(0,0,0,.30);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.44);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  direction: rtl;
  font-family: "Tajawal", sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background .25s, color .25s;
}
body.no-scroll { overflow: hidden; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.container { width: min(1480px, calc(100% - 34px)); margin-inline: auto; }

/* Buttons */
.btn, .icon-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  cursor: pointer;
  font-weight: 800;
  transition: .2s ease;
}
.btn:hover, .icon-btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--navy); }
.btn-gold { color: var(--navy); background: var(--gold); }
.btn-outline { color: var(--gold); background: transparent; border-color: var(--gold); }
.btn-soft { color: var(--text); background: var(--surface-3); border-color: var(--line); }
.btn-success { color: #fff; background: var(--success); }
.btn-danger { color: var(--danger); background: transparent; border-color: rgba(201,78,85,.65); }
.icon-btn { width: 46px; padding: 0; color: var(--gold); background: rgba(255,255,255,.05); border-color: rgba(196,163,96,.45); }
.btn svg, .icon-btn svg { width: 19px; height: 19px; stroke-width: 2; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: rgba(12, 28, 45, .97);
  border-bottom: 1px solid rgba(196,163,96,.24);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
}
.brand { width: 230px; height: 68px; display: flex; align-items: center; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.nav a { padding: 11px 13px; border-radius: 11px; color: rgba(255,255,255,.8); font-weight: 700; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--navy); background: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 9px; justify-self: end; }
.mobile-menu { display: none; }

/* Hero */
.hero { position: relative; min-height: 710px; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; pointer-events: none; background-size: cover; background-position: center; transition: opacity .65s ease; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,28,45,.98) 0%, rgba(12,28,45,.86) 47%, rgba(12,28,45,.45) 100%); }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide .container { position: relative; z-index: 2; }
.hero-content { width: min(760px, 100%); padding: 105px 0 160px; color: #fff; }
.eyebrow { color: var(--gold-2); font-weight: 900; letter-spacing: .4px; }
.hero h1 { margin: 18px 0; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.14; }
.hero h1 span { color: var(--gold); }
.hero p { max-width: 690px; margin: 0; color: rgba(255,255,255,.78); font-size: 20px; line-height: 1.95; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 28px; }
.hero-dots { position: absolute; z-index: 4; bottom: 118px; right: max(20px, calc((100vw - 1480px)/2 + 17px)); display: flex; gap: 8px; }
.hero-dot { width: 12px; height: 12px; border: 0; border-radius: 99px; padding: 0; background: rgba(255,255,255,.38); cursor: pointer; transition: .2s; }
.hero-dot.active { width: 40px; background: var(--gold); }
.hero-arrow { position: absolute; z-index: 5; top: 50%; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; background: rgba(12,28,45,.48); cursor: pointer; font-size: 24px; }
.hero-arrow.prev { right: 22px; }
.hero-arrow.next { left: 22px; }

/* Search box */
.hero-search-wrap { position: relative; z-index: 10; margin-top: -94px; }
.hero-search { padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); }
.hero-search-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.hero-search-head h2 { margin: 0; font-size: 24px; }
.smart-row { display: grid; grid-template-columns: 1fr 180px; gap: 12px; }
.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.quick-chips button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--muted); background: var(--surface-2); cursor: pointer; }

/* Forms */
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 7px; font-weight: 800; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; color: var(--text); background: var(--surface-2); outline: 0;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,163,96,.14); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.switch { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.switch input { width: 19px; height: 19px; accent-color: var(--gold); }

/* Sections */
.section { padding: 86px 0; }
.section.alt { background: var(--surface); }
.section.gold-bg { background: linear-gradient(135deg, rgba(196,163,96,.12), rgba(196,163,96,.04)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.section-head.center { display: block; text-align: center; }
.section-head h2 { margin: 7px 0 0; font-size: clamp(31px, 4vw, 48px); }
.section-head p { max-width: 740px; margin: 11px 0 0; color: var(--muted); line-height: 1.9; }
.section-head.center p { margin-inline: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.stat { position: relative; padding: 28px; text-align: center; }
.stat:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.stat strong { display: block; color: var(--gold); font-size: 37px; font-weight: 900; }
.stat span { color: var(--muted); }

.cards-4, .cards-3, .cards-2 { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.info-card { padding: 26px; position: relative; overflow: hidden; }
.info-card::after { content: ""; position: absolute; left: -40px; bottom: -45px; width: 120px; height: 120px; border-radius: 50%; background: var(--gold-soft); }
.card-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); }
.info-card h3 { margin: 17px 0 8px; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.8; }

/* Properties */
.properties-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.property-card { overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow-sm); transition: .25s; }
.property-card:hover { transform: translateY(-6px); border-color: rgba(196,163,96,.7); box-shadow: var(--shadow); }
.property-media { position: relative; aspect-ratio: 16/11; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle, var(--surface), var(--surface-3)); }
.property-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.badge-success { color: #fff; background: var(--success); }
.badge-warning { color: var(--navy); background: var(--warning); }
.badge-gold { color: var(--navy); background: var(--gold); }
.badge-info { color: #fff; background: var(--info); }
.property-status { position: absolute; top: 13px; right: 13px; }
.property-featured { position: absolute; top: 13px; left: 13px; }
.property-code { position: absolute; bottom: 12px; right: 12px; padding: 7px 10px; border-radius: 9px; color: var(--gold-2); background: rgba(12,28,45,.9); font-weight: 800; }
.property-body { padding: 20px; }
.property-body h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.45; }
.location { color: var(--muted); }
.price { margin: 15px 0; color: var(--gold); font-size: 28px; font-weight: 900; }
.property-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding-top: 15px; border-top: 1px solid var(--line); }
.property-meta span { text-align: center; color: var(--muted); font-size: 13px; }
.property-meta strong { display: block; color: var(--text); font-size: 16px; }
.property-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* Page hero / listing */
.page-hero { padding: 64px 0; color: #fff; background: linear-gradient(120deg, rgba(12,28,45,.98), rgba(19,45,71,.9)), url('../assets/sample-3.svg') center/cover; }
.page-hero h1 { margin: 0 0 9px; font-size: clamp(38px, 5vw, 58px); }
.page-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.72); line-height: 1.8; }
.listing-layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; padding: 34px 0 84px; }
.filters { position: sticky; top: 104px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.filters h2 { margin-top: 0; }
.results-bar { display: flex; align-items: center; gap: 10px; padding: 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.results-bar h2 { margin: 0 auto 0 0; font-size: 21px; }
.empty { padding: 45px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); background: var(--surface); text-align: center; }

/* Property details */
.property-page { padding: 30px 0 90px; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); margin-bottom: 17px; font-size: 14px; }
.property-hero-grid { display: grid; grid-template-columns: minmax(0,1.4fr) 430px; gap: 22px; align-items: start; }
.gallery, .summary-card, .detail-card { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.gallery { overflow: hidden; }
.gallery-main { position: relative; min-height: 590px; display: grid; place-items: center; background: radial-gradient(circle, var(--surface), var(--surface-3)); }
.gallery-main img { width: 100%; height: min(650px, 70vh); object-fit: contain; cursor: zoom-in; }
.gallery-top { position: absolute; z-index: 3; top: 14px; right: 14px; left: 14px; display: flex; justify-content: space-between; }
.gallery-count, .private-label { padding: 8px 11px; border-radius: 9px; color: #fff; background: rgba(12,28,45,.86); }
.private-label { color: var(--navy); background: var(--gold); }
.thumbs { display: flex; gap: 9px; overflow-x: auto; padding: 13px; }
.thumb { position: relative; width: 110px; height: 82px; flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface-3); cursor: pointer; }
.thumb.active { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.summary-card { position: sticky; top: 104px; padding: 26px; }
.summary-card h1 { margin: 15px 0 8px; font-size: 32px; line-height: 1.4; }
.big-price { margin: 18px 0; color: var(--gold); font-size: 42px; font-weight: 900; }
.quick-specs { display: grid; grid-template-columns: 1fr 1fr; margin: 23px -26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-spec { padding: 16px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-spec:nth-child(even) { border-left: 0; }
.quick-spec small { display: block; color: var(--muted); margin-bottom: 4px; }
.summary-actions { display: grid; gap: 9px; }
.property-content { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 22px; margin-top: 22px; }
.detail-stack, .side-stack { display: grid; gap: 22px; height: fit-content; }
.detail-card { padding: 25px; }
.detail-card h2 { margin: 0 0 18px; }
.description { color: var(--muted); white-space: pre-line; line-height: 2; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.spec { padding: 16px; background: var(--surface-2); }
.spec small { display: block; margin-bottom: 5px; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.check-list li { position: relative; padding: 11px 40px 11px 11px; border-radius: 11px; background: var(--surface-2); }
.check-list li::before { content: "✓"; position: absolute; right: 11px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--gold); font-weight: 900; }
.internal { border-color: rgba(196,163,96,.65); background: linear-gradient(180deg, var(--surface), var(--gold-soft)); }
.lightbox { position: fixed; z-index: 400; inset: 0; display: grid; place-items: center; padding: 25px; background: rgba(3,9,15,.94); }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(12,28,45,.55); cursor: pointer; font-size: 22px; }
.lightbox-close { top: 20px; left: 20px; }
.lightbox-prev { right: 25px; top: 50%; }
.lightbox-next { left: 25px; top: 50%; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 440px 1fr; gap: 24px; align-items: start; padding: 35px 0 85px; }
.calc-panel, .calc-result { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.calc-result { position: sticky; top: 104px; }
.calc-number { color: var(--gold); font-size: 44px; font-weight: 900; }
.calc-breakdown { display: grid; gap: 10px; margin-top: 20px; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 23px; }
.bank-card { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); text-align: center; }
.bank-card img { width: 100%; height: 80px; object-fit: contain; mix-blend-mode: multiply; }
html[data-theme="dark"] .bank-card img { mix-blend-mode: normal; background: #fff; border-radius: 8px; }

/* Modals */
.modal { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4,12,19,.78); }
.modal-card { width: min(720px, 100%); max-height: 92vh; overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; }

/* Testimonials & partners */
.testimonial { display: none; max-width: 950px; margin: auto; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.testimonial.active { display: block; }
.testimonial blockquote { max-width: 760px; margin: 20px auto; font-size: 22px; line-height: 1.9; }
.stars { color: var(--gold); letter-spacing: 3px; }
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner { min-height: 120px; display: grid; place-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.partner img { width: 100%; height: 80px; object-fit: contain; }

/* Staff */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, rgba(12,28,45,.99), rgba(19,45,71,.92)), url('../assets/sample-1.svg') center/cover; }
.auth-card { width: min(500px, 100%); padding: 30px; border: 1px solid rgba(196,163,96,.3); border-radius: 25px; background: var(--surface); box-shadow: var(--shadow-lg); }
.auth-card img { width: 230px; margin: 0 auto 15px; }
.role-grid { display: grid; gap: 9px; margin-top: 18px; }
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.portal-card { padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow-sm); }
.portal-card h3 { margin: 15px 0 8px; }
.portal-card p { margin: 0; color: var(--muted); line-height: 1.7; }

/* Footer */
.footer { padding: 58px 0 22px; color: #fff; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 38px; }
.footer img { width: 220px; }
.footer h3 { color: var(--gold-2); }
.footer p, .footer a { color: rgba(255,255,255,.68); line-height: 1.9; }
.footer-bottom { margin-top: 34px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; color: rgba(255,255,255,.52); }

.toast { position: fixed; z-index: 500; left: 24px; bottom: 24px; padding: 14px 18px; border-radius: 13px; color: #fff; background: var(--navy); box-shadow: var(--shadow); opacity: 0; transform: translateY(120px); transition: .3s; }
.toast.show { opacity: 1; transform: none; }
.loader { width: 44px; height: 44px; margin: 50px auto; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: 190px 1fr auto; gap: 12px; }
  .brand { width: 190px; }
  .nav { display: none; position: absolute; top: 86px; right: 16px; left: 16px; padding: 14px; border: 1px solid rgba(196,163,96,.24); border-radius: 16px; background: var(--navy); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .mobile-menu { display: inline-flex; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-layout, .property-hero-grid, .property-content, .calc-grid { grid-template-columns: 1fr; }
  .filters, .summary-card, .calc-result { position: static; }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 20px, 1480px); }
  .header-inner { min-height: 76px; grid-template-columns: 145px auto; }
  .brand { width: 145px; height: 56px; }
  .header-actions .staff-label { display: none; }
  .header-actions .btn-outline { width: 46px; padding: 0; }
  .hero { min-height: 660px; }
  .hero-content { padding: 85px 0 145px; }
  .hero p { font-size: 17px; }
  .hero-arrow { display: none; }
  .hero-search-wrap { margin-top: -82px; }
  .smart-row, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .section-head .btn { margin-top: 15px; }
  .stats, .cards-4, .cards-3, .cards-2, .properties-grid, .partners, .portal-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat:not(:last-child)::after { top: auto; right: 22px; left: 22px; bottom: 0; width: auto; height: 1px; }
  .gallery-main { min-height: 350px; }
  .gallery-main img { height: min(460px, 58vh); }
  .summary-card h1 { font-size: 27px; }
  .big-price { font-size: 34px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .bank-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { gap: 18px; }
}

.summary-list { display: grid; gap: 2px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* =========================================================
   V3.1 — Homepage inspired by the supplied DL website code
   ========================================================= */
.home-reference-page {
  overflow-x: hidden;
}

.home-reference-page .site-header {
  box-shadow: 0 10px 35px rgba(4, 14, 23, .15);
}

.home-reference-page .header-inner {
  grid-template-columns: 210px minmax(0, 1fr) auto;
}

.home-reference-page .nav {
  gap: 2px;
}

.home-reference-page .nav a {
  padding-inline: 10px;
  font-size: 14px;
}

.employee-entry {
  white-space: nowrap;
}

.reference-hero {
  position: relative;
  padding: 48px 0 76px;
  background:
    radial-gradient(circle at 12% 18%, rgba(196, 163, 96, .19), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.reference-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .13));
  pointer-events: none;
}

.reference-hero-shell {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
  box-shadow: 0 35px 95px rgba(0, 0, 0, .28);
}

.reference-slides {
  position: relative;
  min-height: 570px;
}

.reference-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
  align-items: center;
  gap: 44px;
  padding: 48px 70px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(34px);
  transition: opacity .65s ease, transform .65s ease, visibility .65s ease;
}

.reference-slide.active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.reference-slide-copy {
  color: #fff;
}

.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(196, 163, 96, .4);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(196, 163, 96, .10);
  font-weight: 800;
  font-size: 14px;
}

.reference-slide h1 {
  max-width: 680px;
  margin: 20px 0 16px;
  color: #fff;
  font-size: clamp(39px, 5vw, 67px);
  line-height: 1.25;
  letter-spacing: -.8px;
}

.reference-slide p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 18px;
  line-height: 2;
}

.reference-slide-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 27px;
}

.reference-slide-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
}

.hero-trust-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 27px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-row svg {
  width: 17px;
  color: var(--gold);
}

.reference-slide-media {
  position: relative;
  min-height: 450px;
  display: grid;
  place-items: center;
}

.reference-slide-media img {
  position: relative;
  z-index: 3;
  width: min(505px, 94%);
  max-height: 455px;
  object-fit: contain;
  filter: drop-shadow(0 30px 35px rgba(0, 0, 0, .28));
}

.hero-media-shape {
  position: absolute;
  inset: 12% 3% 7% 11%;
  border: 1px solid rgba(196, 163, 96, .35);
  border-radius: 46% 54% 54% 46% / 45% 38% 62% 55%;
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, .22), transparent 27%),
    linear-gradient(145deg, rgba(196, 163, 96, .30), rgba(196, 163, 96, .05));
  transform: rotate(-4deg);
}

.hero-media-badge {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 25px;
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 17px;
  color: #fff;
  background: rgba(12, 28, 45, .82);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .23);
  backdrop-filter: blur(12px);
}

.hero-media-badge > svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.hero-media-badge strong,
.hero-media-badge span {
  display: block;
}

.hero-media-badge span {
  margin-top: 2px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.reference-arrow,
.carousel-side {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: .2s ease;
}

.reference-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(12, 28, 45, .55);
  transform: translateY(-50%);
}

.reference-arrow:hover,
.carousel-side:hover {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold);
}

.reference-prev {
  right: 15px;
}

.reference-next {
  left: 15px;
}

.reference-dots {
  position: absolute;
  z-index: 10;
  right: 70px;
  bottom: 27px;
  display: flex;
  gap: 7px;
}

.reference-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .30);
  cursor: pointer;
  transition: .25s ease;
}

.reference-dot.active {
  width: 38px;
  background: var(--gold);
}

.home-search-band {
  position: relative;
  z-index: 15;
  margin-top: -35px;
}

.home-search-card {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
  gap: 28px;
  padding: 25px 29px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.home-search-copy h2 {
  margin: 10px 0 4px;
  font-size: 24px;
}

.home-search-copy p {
  margin: 0;
  color: var(--muted);
}

.home-search-form {
  display: grid;
  grid-template-columns: 1fr 125px;
  gap: 10px;
}

.reference-section {
  padding: 88px 0;
}

.reference-heading {
  margin-bottom: 38px;
}

.reference-heading.center {
  max-width: 850px;
  margin-inline: auto;
  text-align: center;
}

.reference-heading h2 {
  margin: 12px 0 9px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.35;
}

.reference-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.light-heading h2 {
  color: #fff;
}

.light-heading p {
  color: rgba(255, 255, 255, .68);
}

.flip-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.flip-service {
  min-height: 315px;
  perspective: 1200px;
}

.flip-service-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 315px;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.2, .65, .25, 1);
}

.flip-service:hover .flip-service-inner,
.flip-service:focus-within .flip-service-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  min-height: 315px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.flip-front {
  background: var(--surface);
}

.flip-front::before {
  content: "";
  position: absolute;
  top: -75px;
  left: -65px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.flip-back {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(196, 163, 96, .34), transparent 42%),
    linear-gradient(145deg, var(--navy), var(--navy-2));
  transform: rotateY(180deg);
}

.flip-back > svg {
  width: 46px;
  height: 46px;
  color: var(--gold);
}

.service-orbit {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
}

.service-orbit::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px dashed rgba(196, 163, 96, .55);
  border-radius: 50%;
}

.service-orbit svg {
  width: 34px;
  height: 34px;
}

.flip-face h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.flip-face p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.flip-back p {
  color: rgba(255, 255, 255, .75);
}

.flip-hint {
  margin-top: 22px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.workflow-reference {
  background: var(--surface-2);
}

.workflow-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}

.workflow-column {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.workflow-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.workflow-title > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: var(--gold);
  background: var(--gold-soft);
}

.workflow-title small {
  color: var(--gold);
  font-weight: 800;
}

.workflow-title h3 {
  margin: 3px 0 0;
  font-size: 22px;
}

.workflow-steps {
  display: grid;
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  padding-bottom: 20px;
}

.workflow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 43px;
  right: 23px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--gold), transparent);
}

.workflow-step b {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 163, 96, .5);
  border-radius: 15px;
  color: var(--navy);
  background: var(--gold);
  font-size: 18px;
}

.workflow-step h4 {
  margin: 2px 0 5px;
  font-size: 17px;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.achievements-reference {
  color: #fff;
  background:
    radial-gradient(circle at 15% 25%, rgba(196, 163, 96, .22), transparent 25%),
    linear-gradient(135deg, var(--navy), #152f49);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.achievement-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .055);
  text-align: center;
  backdrop-filter: blur(8px);
}

.achievement-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(196, 163, 96, .12);
}

.achievement-number {
  color: var(--gold-2);
  font-size: 34px;
  line-height: 1;
}

.achievement-card > span:last-child {
  margin-top: 10px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.partners-reference {
  background: var(--surface);
}

.reference-carousel {
  position: relative;
  padding: 0 54px;
}

.carousel-side {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 43px;
  height: 43px;
  transform: translateY(-50%);
}

.carousel-prev {
  right: 0;
}

.carousel-next {
  left: 0;
}

.partners-track,
.reviews-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 3px 20px;
}

.partners-track::-webkit-scrollbar,
.reviews-track::-webkit-scrollbar {
  display: none;
}

.partner-reference-card {
  width: 210px;
  min-width: 210px;
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.partner-reference-card img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}

.partner-reference-card span {
  color: #475466;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.reviews-reference {
  background: var(--surface-2);
}

.review-reference-card {
  width: 320px;
  min-width: 320px;
  min-height: 295px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
  scroll-snap-align: start;
}

.review-avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
}

.review-stars {
  margin: 13px 0 7px;
  color: var(--gold);
  letter-spacing: 3px;
}

.review-reference-card p {
  flex: 1;
  margin: 7px 0 15px;
  color: var(--muted);
  line-height: 1.9;
}

.review-reference-card strong {
  font-size: 17px;
}

.review-reference-card > span {
  margin-top: 3px;
  color: var(--gold);
  font-size: 12px;
}

.about-reference-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}

.about-reference-copy {
  position: relative;
}

.quote-mark {
  position: absolute;
  top: -65px;
  right: -5px;
  color: var(--gold-soft);
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
}

.about-reference-copy > h3 {
  position: relative;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 31px;
}

.about-reference-copy > p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2.05;
}

.about-values {
  display: grid;
  gap: 11px;
  margin-top: 24px;
}

.about-values article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.about-values article > svg {
  width: 50px;
  height: 50px;
  padding: 12px;
  border-radius: 14px;
  color: var(--gold);
  background: var(--gold-soft);
}

.about-values h4,
.about-values p {
  margin: 0;
}

.about-values p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.about-reference-media {
  position: relative;
  min-height: 520px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-reference-media > img {
  width: 100%;
  height: 490px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center 32%;
}

.about-floating-card {
  position: absolute;
  right: -35px;
  bottom: 32px;
  min-width: 285px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(196, 163, 96, .38);
  border-radius: 17px;
  color: #fff;
  background: rgba(12, 28, 45, .91);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.about-floating-card > svg {
  width: 38px;
  height: 38px;
  color: var(--gold);
}

.about-floating-card strong,
.about-floating-card span {
  display: block;
}

.about-floating-card span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.contact-reference {
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(196, 163, 96, .20), transparent 27%),
    linear-gradient(140deg, var(--navy), #142d47);
}

.contact-reference-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 22px;
  max-width: 1160px;
  margin: auto;
}

.contact-info-card,
.contact-reference-form {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .16);
  backdrop-filter: blur(10px);
}

.contact-info-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.contact-info-card > a {
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  color: rgba(255, 255, 255, .76);
  background: rgba(255, 255, 255, .035);
}

.contact-info-card > a svg {
  width: 22px;
  color: var(--gold);
}

.contact-promise {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 19px;
  padding: 16px;
  border: 1px solid rgba(196, 163, 96, .28);
  border-radius: 15px;
  background: rgba(196, 163, 96, .10);
}

.contact-promise > svg {
  width: 36px;
  height: 36px;
  color: var(--gold);
}

.contact-promise strong,
.contact-promise span {
  display: block;
}

.contact-promise span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .60);
  font-size: 12px;
}

.contact-reference-form {
  background: var(--surface);
  color: var(--text);
}

.contact-form-title {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 19px;
}

.contact-form-title > span {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--gold);
  background: var(--gold-soft);
}

.contact-form-title h3,
.contact-form-title p {
  margin: 0;
}

.contact-form-title p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.contact-reference-form .btn {
  width: 100%;
  margin-top: 7px;
}

@media (max-width: 1280px) {
  .home-reference-page .header-inner {
    grid-template-columns: 180px minmax(0, 1fr) auto;
  }

  .home-reference-page .nav a {
    padding-inline: 7px;
    font-size: 13px;
  }

  .reference-slide {
    padding-inline: 58px;
  }

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

@media (max-width: 1180px) {
  .home-reference-page .header-inner {
    grid-template-columns: 190px 1fr auto;
  }

  .reference-slide {
    grid-template-columns: 1fr 420px;
    gap: 22px;
  }

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

@media (max-width: 900px) {
  .reference-hero-shell,
  .reference-slides {
    min-height: 800px;
  }

  .reference-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 48px;
  }

  .reference-slide-copy {
    text-align: center;
  }

  .reference-slide h1,
  .reference-slide p {
    margin-inline: auto;
  }

  .reference-slide-actions,
  .hero-trust-row {
    justify-content: center;
  }

  .reference-slide-media {
    min-height: 320px;
  }

  .reference-slide-media img {
    max-height: 320px;
  }

  .hero-media-badge {
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
  }

  .home-search-card,
  .workflow-columns,
  .about-reference-grid,
  .contact-reference-grid {
    grid-template-columns: 1fr;
  }

  .about-reference-media {
    max-width: 650px;
    width: 100%;
    margin: auto;
  }

  .about-floating-card {
    right: 25px;
  }
}

@media (max-width: 760px) {
  .reference-hero {
    padding-top: 18px;
  }

  .reference-hero-shell,
  .reference-slides {
    min-height: 745px;
    border-radius: 22px;
  }

  .reference-slide {
    padding: 38px 22px 60px;
  }

  .reference-slide h1 {
    font-size: 36px;
  }

  .reference-slide p {
    font-size: 15px;
  }

  .reference-slide-media {
    min-height: 290px;
  }

  .reference-slide-media img {
    max-height: 285px;
  }

  .hero-media-badge {
    min-width: 235px;
    bottom: -3px;
  }

  .reference-arrow {
    display: none;
  }

  .reference-dots {
    right: 50%;
    bottom: 18px;
    transform: translateX(50%);
  }

  .home-search-band {
    margin-top: -22px;
  }

  .home-search-card {
    padding: 20px;
  }

  .home-search-form {
    grid-template-columns: 1fr;
  }

  .reference-section {
    padding: 64px 0;
  }

  .flip-services,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .flip-service,
  .flip-service-inner,
  .flip-face {
    min-height: 290px;
  }

  .workflow-column {
    padding: 20px;
  }

  .workflow-title {
    align-items: flex-start;
  }

  .reference-carousel {
    padding: 0;
  }

  .carousel-side {
    display: none;
  }

  .partner-reference-card {
    width: 175px;
    min-width: 175px;
  }

  .review-reference-card {
    width: calc(100vw - 52px);
    min-width: calc(100vw - 52px);
  }

  .about-reference-media,
  .about-reference-media > img {
    min-height: 400px;
    height: 400px;
  }

  .about-floating-card {
    right: 15px;
    left: 15px;
    min-width: 0;
  }

  .contact-info-card,
  .contact-reference-form {
    padding: 21px;
  }
}


/* =========================================================
   V3.2 PROPERTY DETAILS AND LOGIN SUPPORT
   ========================================================= */

.price-note,
.price-notes-box {
  color: var(--muted);
  line-height: 1.7;
}

.price-note {
  margin-top: -8px;
  margin-bottom: 12px;
  font-size: 13px;
}

.price-notes-box {
  margin: -8px 0 17px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgba(196,163,96,.35);
  border-radius: 12px;
  background: var(--gold-soft);
}

.price-notes-box svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--gold-dark);
}

.facility-display-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.facility-display-item {
  min-height: 56px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

.facility-display-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold-dark);
}

.facility-display-item strong {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--dark);
  background: var(--gold);
}

.location svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .facility-display-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .facility-display-grid {
    grid-template-columns: 1fr;
  }
}


/* V3.2 staff login helpers */
.login-error {
  margin-top: 11px;
  padding: 11px;
  border: 1px solid rgba(198,83,83,.45);
  border-radius: 11px;
  color: #a73f3f;
  background: rgba(198,83,83,.10);
  text-align: center;
}

.demo-credentials {
  margin-top: 16px;
  padding: 13px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(196,163,96,.35);
  border-radius: 13px;
  color: var(--muted);
  background: var(--gold-soft);
  font-size: 13px;
}

.demo-credentials strong {
  color: var(--text);
}


/* =========================================================
   V3.3 APPROVED COLOR PALETTE AND DYNAMIC HOME CONTENT
   ========================================================= */

body,
.home-reference-page {
  color: var(--text);
  background: var(--main-bg);
}

.reference-section,
.home-search-card,
.property-card,
.detail-card,
.contact-reference-form,
.contact-info-card,
.partner-reference-card,
.review-reference-card,
.workflow-column,
.about-reference-copy {
  border-color: var(--step-border);
  box-shadow: var(--shadow);
}

.services-reference,
.partners-reference,
.about-reference {
  background: var(--main-bg);
}

.workflow-reference,
.reviews-reference {
  background: var(--card);
}

.flip-front,
.flip-back,
.workflow-step,
.partner-reference-card,
.review-reference-card,
.about-values article,
.contact-reference-form {
  border-color: var(--step-border);
}

.flip-front,
.workflow-step,
.partner-reference-card,
.review-reference-card,
.about-values article {
  background: #fff;
}

.flip-service:hover .flip-front,
.workflow-step:hover,
.partner-reference-card:hover,
.review-reference-card:hover,
.about-values article:hover {
  background: var(--hover);
}

.dynamic-section {
  padding: 82px 0;
  background: var(--main-bg);
}

.dynamic-section.alt {
  background: var(--card);
}

.dynamic-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.dynamic-content-card {
  overflow: hidden;
  border: 1px solid var(--step-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dynamic-content-card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: var(--hover);
}

.dynamic-content-card-body {
  padding: 22px;
}

.dynamic-content-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--step-border);
}

.dynamic-content-card h3 {
  margin: 0 0 9px;
  color: var(--text);
}

.dynamic-content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.dynamic-content-card .btn {
  margin-top: 17px;
}

.search-hints {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.search-hints button {
  padding: 8px 13px;
  border: 1px solid var(--step-border);
  border-radius: 999px;
  color: var(--text);
  background: var(--card);
  cursor: pointer;
  font-weight: 700;
}

.search-hints button:hover {
  background: var(--hover);
}

.footer-dynamic-links {
  display: grid;
  gap: 7px;
}

.footer-dynamic-links a:hover {
  color: var(--main-gold);
}

@media (max-width: 980px) {
  .dynamic-section-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 620px) {
  .dynamic-section-grid {
    grid-template-columns: 1fr;
  }
}

/* V3.3.1 exact approved palette */
:root {
  --golden-color: #c4a360;
  --main-gold: #c4a360;
  --muted: #c9a867;
  --main-bg: #f9f9f9;
  --card: #fff8e1;
  --step-border: #e3d8b5;
  --hover: #fdf4d3;
  --text: #0c1c2d;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   FINAL RESPONSIVE THEME — DAR LINE
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #f7f8fa;
}

.container {
  width: min(1280px, calc(100% - 36px));
}

.reference-section,
.dynamic-section,
#services,
#how-we-work,
#achievements,
#partners,
#testimonials,
#about,
#contact {
  scroll-margin-top: 94px;
}

.sr-only {
  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;
}

.header-icon-only {
  width: 46px;
  min-width: 46px;
  padding: 0;
  justify-content: center;
}

/* ---------- Header ---------- */
.site-header {
  color: #0c1c2d;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e3d8b5;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.site-header .nav a {
  color: #a78543;
}

.site-header .nav a:hover,
.site-header .nav a.active {
  color: #0c1c2d;
  background: #fdf4d3;
}

.site-header .icon-btn,
.site-header .btn-outline {
  color: #b48d42;
  border-color: #e3d8b5;
  background: #fff;
}

.site-header .icon-btn:hover,
.site-header .btn-outline:hover {
  color: #0c1c2d;
  background: #fdf4d3;
}

/* ---------- All light-mode sections stay light ---------- */
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) .home-reference-page,
html:not([data-theme="dark"]) .services-reference,
html:not([data-theme="dark"]) .workflow-reference,
html:not([data-theme="dark"]) .partners-reference,
html:not([data-theme="dark"]) .reviews-reference,
html:not([data-theme="dark"]) .about-reference,
html:not([data-theme="dark"]) .dynamic-section {
  color: #0c1c2d;
  background: #f7f8fa;
}

html:not([data-theme="dark"]) .workflow-reference,
html:not([data-theme="dark"]) .reviews-reference,
html:not([data-theme="dark"]) .dynamic-section.alt {
  background: #fffaf0;
}

html:not([data-theme="dark"]) .achievements-reference,
html:not([data-theme="dark"]) .contact-reference {
  color: #0c1c2d;
  background:
    radial-gradient(circle at 85% 10%, rgba(196,163,96,.12), transparent 25%),
    linear-gradient(135deg, #f3f6f8, #edf2f5);
}

html:not([data-theme="dark"]) .light-heading h2 {
  color: #c4a360;
}

html:not([data-theme="dark"]) .light-heading p {
  color: #657180;
}

/* ---------- Slider ---------- */
html:not([data-theme="dark"]) .reference-hero {
  background:
    radial-gradient(circle at 10% 12%, rgba(196,163,96,.16), transparent 26%),
    linear-gradient(135deg, #f3f1ec, #eef2f5);
}

html:not([data-theme="dark"]) .reference-hero-shell {
  border-color: rgba(196,163,96,.34);
  background: rgba(255,255,255,.68);
  box-shadow: 0 24px 66px rgba(15,23,42,.12);
}

html:not([data-theme="dark"]) .reference-slide-copy {
  color: #0c1c2d;
}

html:not([data-theme="dark"]) .reference-slide h1 {
  color: #c39d4e;
}

html:not([data-theme="dark"]) .reference-slide p,
html:not([data-theme="dark"]) .hero-trust-row {
  color: #677483;
}

html:not([data-theme="dark"]) .reference-slide-actions .btn-outline {
  color: #0c1c2d;
  border-color: #d9c68f;
  background: rgba(255,255,255,.72);
}

html:not([data-theme="dark"]) .hero-media-badge {
  color: #0c1c2d;
  border-color: #e3d8b5;
  background: rgba(255,255,255,.9);
}

html:not([data-theme="dark"]) .hero-media-badge span {
  color: #78818c;
}

/* ---------- Reusable cards and hover ---------- */
.workflow-column,
.partner-reference-card,
.review-reference-card,
.about-values article,
.contact-info-card,
.contact-reference-form,
.dynamic-content-card,
.property-card,
.portal-card,
.filters,
.results-bar,
.home-search-card {
  min-width: 0;
  border-color: #e3d8b5;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease;
}

html:not([data-theme="dark"]) .workflow-column,
html:not([data-theme="dark"]) .partner-reference-card,
html:not([data-theme="dark"]) .review-reference-card,
html:not([data-theme="dark"]) .about-values article,
html:not([data-theme="dark"]) .contact-info-card,
html:not([data-theme="dark"]) .contact-reference-form,
html:not([data-theme="dark"]) .dynamic-content-card,
html:not([data-theme="dark"]) .property-card,
html:not([data-theme="dark"]) .portal-card,
html:not([data-theme="dark"]) .filters,
html:not([data-theme="dark"]) .results-bar,
html:not([data-theme="dark"]) .home-search-card {
  color: #0c1c2d;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}

html:not([data-theme="dark"]) .workflow-column:hover,
html:not([data-theme="dark"]) .partner-reference-card:hover,
html:not([data-theme="dark"]) .review-reference-card:hover,
html:not([data-theme="dark"]) .about-values article:hover,
html:not([data-theme="dark"]) .dynamic-content-card:hover,
html:not([data-theme="dark"]) .property-card:hover,
html:not([data-theme="dark"]) .portal-card:hover {
  transform: translateY(-5px);
  border-color: #c4a360;
  background: #fff8e1;
  box-shadow: 0 18px 42px rgba(15,23,42,.12);
}

/* ---------- How we work ---------- */
.workflow-columns {
  gap: 28px;
  align-items: start;
}

.workflow-column {
  padding: 28px;
  border-radius: 24px;
}

.workflow-steps {
  gap: 14px;
}

.workflow-step {
  position: relative;
  min-width: 0;
  padding: 17px;
  border: 1px solid #e3d8b5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
}

.workflow-step:not(:last-child)::before {
  display: none;
}

.workflow-step:hover {
  border-color: #c4a360;
  background: #fdf4d3;
}

/* ---------- Achievements ---------- */
html:not([data-theme="dark"]) .achievement-card {
  color: #0c1c2d;
  border-color: rgba(196,163,96,.28);
  background: rgba(255,255,255,.82);
}

html:not([data-theme="dark"]) .achievement-card > span:last-child {
  color: #687482;
}

html:not([data-theme="dark"]) .achievement-card:hover {
  transform: translateY(-5px);
  background: #fff8e1;
}

/* ---------- Partners ---------- */
.partners-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 4px 18px;
}

.partners-track::-webkit-scrollbar {
  display: none;
}

.partner-reference-card {
  flex: 0 0 210px;
  width: 210px;
  min-width: 210px;
  scroll-snap-align: start;
}

.partner-reference-card img {
  max-width: 150px;
  max-height: 90px;
  object-fit: contain;
}

/* ---------- About redesigned ---------- */
.about-reference-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.about-reference-copy,
.about-identity-card {
  min-width: 0;
}

.about-reference-copy {
  overflow: hidden;
}

.about-identity-card {
  position: relative;
  min-height: 520px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #e3d8b5;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, #fff8e1);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}

.about-shape {
  position: absolute;
  border: 1px solid rgba(196,163,96,.38);
  border-radius: 50%;
  pointer-events: none;
}

.about-shape-one {
  width: 330px;
  height: 330px;
  top: -90px;
  left: -70px;
  background: rgba(196,163,96,.07);
}

.about-shape-two {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: -210px;
}

.about-identity-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 125px minmax(0,1fr);
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid #e3d8b5;
  border-radius: 22px;
  background: rgba(255,255,255,.76);
}

.about-logo-box {
  width: 125px;
  height: 125px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #fff8e1;
}

.about-logo-box img {
  width: 105px;
  max-height: 100px;
  object-fit: contain;
}

.about-identity-top span {
  color: #c4a360;
  font-weight: 900;
}

.about-identity-top h3 {
  margin: 7px 0 5px;
  font-size: 25px;
}

.about-identity-top p {
  margin: 0;
  color: #9d7e43;
}

.about-identity-features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
}

.about-identity-features article {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e3d8b5;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}

.about-identity-features svg {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: #c4a360;
}

.about-identity-features strong,
.about-identity-features span {
  display: block;
}

.about-identity-features span {
  margin-top: 6px;
  color: #9d7e43;
  font-size: 13px;
  line-height: 1.7;
}

.about-trust-ribbon {
  position: relative;
  z-index: 2;
  max-width: 390px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px auto 0;
  padding: 15px 18px;
  border-radius: 18px;
  color: #fff;
  background: #0c1c2d;
  box-shadow: 0 16px 30px rgba(12,28,45,.18);
}

.about-trust-ribbon svg {
  flex: 0 0 auto;
  color: #c4a360;
}

.about-trust-ribbon strong,
.about-trust-ribbon span {
  display: block;
}

.about-trust-ribbon span {
  margin-top: 3px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

/* ---------- Contact ---------- */
html:not([data-theme="dark"]) .contact-info-card,
html:not([data-theme="dark"]) .contact-reference-form {
  color: #0c1c2d;
  background: rgba(255,255,255,.88);
}

html:not([data-theme="dark"]) .contact-info-card h3,
html:not([data-theme="dark"]) .contact-form-title h3,
html:not([data-theme="dark"]) .contact-promise strong {
  color: #0c1c2d;
}

html:not([data-theme="dark"]) .contact-info-card a {
  color: #0c1c2d;
  border-color: #e3d8b5;
  background: #fff8e1;
}

html:not([data-theme="dark"]) .contact-reference .input,
html:not([data-theme="dark"]) .contact-reference .select,
html:not([data-theme="dark"]) .contact-reference .textarea {
  color: #0c1c2d;
  border-color: #e3d8b5;
  background: #fff8e1;
}

/* ---------- Footer: same light degree as header ---------- */
.footer {
  color: #0c1c2d;
  background: #fff;
  border-top: 1px solid #e3d8b5;
}

.footer-grid {
  grid-template-columns: 1.35fr repeat(3, minmax(150px, .75fr)) 1.1fr;
  align-items: start;
  gap: 28px;
}

.footer h3 {
  color: #c4a360;
}

.footer p,
.footer a,
.footer-bottom {
  color: #526170;
}

.footer-bottom {
  border-top-color: #e3d8b5;
}

.footer-brand-block img {
  width: 190px;
  height: 88px;
  object-fit: contain;
}

.footer-regulatory > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-regulatory figure {
  width: 135px;
  min-height: 86px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 8px;
  border: 1px solid #e3d8b5;
  border-radius: 14px;
  background: #f9f9f9;
}

.footer-regulatory img {
  width: 115px;
  max-height: 54px;
  object-fit: contain;
}

.footer-regulatory figcaption {
  display: none;
}

/* ---------- Normal login page ---------- */
.auth-page {
  position: relative;
  padding: 30px 18px;
  background:
    radial-gradient(circle at 80% 10%, rgba(196,163,96,.17), transparent 28%),
    linear-gradient(135deg, #f4f6f8, #fffaf0);
}

.login-page-toolbar {
  position: fixed;
  z-index: 4;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
}

.login-card-simple {
  width: min(450px, 100%);
  padding: 30px;
  border: 1px solid #e3d8b5;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 65px rgba(15,23,42,.13);
}

.login-logo {
  width: 210px !important;
  height: 90px;
  margin: 0 auto 10px !important;
  object-fit: contain;
}

.login-heading {
  margin-bottom: 24px;
  text-align: center;
}

.login-heading h1 {
  margin: 0 0 7px;
  color: #0c1c2d;
  font-size: 29px;
}

.login-heading p {
  margin: 0;
  color: #7d6b48;
  line-height: 1.7;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap > svg {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: #c4a360;
}

.login-input-wrap .input {
  min-height: 54px;
  padding-right: 48px;
  padding-left: 48px;
  border-color: #e3d8b5;
  background: #fffaf0;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  color: #c4a360;
  background: transparent;
  cursor: pointer;
}

.login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
}

.login-demo-details {
  margin-top: 18px;
  border: 1px solid #e3d8b5;
  border-radius: 14px;
  background: #fff8e1;
}

.login-demo-details summary {
  padding: 12px 14px;
  color: #8f7136;
  cursor: pointer;
  font-weight: 800;
}

.login-demo-details > div {
  display: grid;
  gap: 6px;
  padding: 0 12px 12px;
}

.login-demo-details button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  color: #0c1c2d;
  background: #fff;
  cursor: pointer;
  text-align: right;
}

/* ---------- Conversational chatbot ---------- */
.chatbot-shell {
  position: fixed;
  z-index: 150;
  left: 20px;
  bottom: 20px;
}

.chatbot-fab {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 20px;
  color: #0c1c2d;
  background: linear-gradient(135deg, #d2ae5d, #c4a360);
  box-shadow: 0 16px 34px rgba(15,23,42,.25);
  cursor: pointer;
}

.chatbot-fab svg {
  width: 29px;
  height: 29px;
}

.chatbot-panel {
  position: absolute;
  left: 0;
  bottom: 76px;
  width: min(410px, calc(100vw - 28px));
  height: min(650px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto auto;
  overflow: hidden;
  border: 1px solid #e3d8b5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.22);
}

.chatbot-header {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 38px;
  align-items: center;
  gap: 10px;
  padding: 15px;
  color: #fff;
  background: #0c1c2d;
}

.chatbot-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #0c1c2d;
  background: #c4a360;
}

.chatbot-header span,
.chatbot-header h3,
.chatbot-header small {
  display: block;
}

.chatbot-header span {
  color: #c4a360;
  font-size: 11px;
  font-weight: 900;
}

.chatbot-header h3 {
  margin: 2px 0;
  font-size: 18px;
}

.chatbot-header small {
  color: rgba(255,255,255,.68);
}

.chatbot-header small b {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-radius: 50%;
  background: #39c477;
}

.chatbot-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.chatbot-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  background: #f7f8fa;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-bottom: 13px;
}

.chat-message.user {
  justify-content: flex-start;
}

.chat-message-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #0c1c2d;
  background: #c4a360;
}

.chat-message-avatar svg {
  width: 16px;
  height: 16px;
}

.chat-bubble {
  max-width: 84%;
  padding: 11px 13px;
  border-radius: 16px 16px 4px 16px;
  color: #0c1c2d;
  border: 1px solid #e3d8b5;
  background: #fff;
  box-shadow: 0 5px 15px rgba(15,23,42,.05);
}

.chat-message.user .chat-bubble {
  border-radius: 16px 16px 16px 4px;
  border-color: #c4a360;
  background: #fff8e1;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.75;
}

.typing-status {
  color: #8c713e;
  font-size: 12px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.typing-dots b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4a360;
  animation: chatTyping .9s infinite alternate;
}

.typing-dots b:nth-child(2) { animation-delay: .18s; }
.typing-dots b:nth-child(3) { animation-delay: .36s; }

@keyframes chatTyping {
  to { transform: translateY(-5px); opacity: .45; }
}

.chatbot-hints {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 12px;
  border-top: 1px solid #e3d8b5;
  background: #fff;
  scrollbar-width: none;
}

.chatbot-hints::-webkit-scrollbar { display: none; }

.chatbot-hints button {
  flex: 0 0 auto;
  max-width: 260px;
  padding: 8px 11px;
  border: 1px solid #e3d8b5;
  border-radius: 999px;
  color: #9a783b;
  background: #fff8e1;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.chatbot-hints.compact {
  padding-block: 7px;
}

.chatbot-composer {
  display: grid;
  grid-template-columns: minmax(0,1fr) 46px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e3d8b5;
  background: #fff;
}

.chatbot-composer input {
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #e3d8b5;
  border-radius: 14px;
  color: #0c1c2d;
  background: #fffaf0;
  outline: 0;
}

.chatbot-composer input:focus {
  border-color: #c4a360;
  box-shadow: 0 0 0 3px rgba(196,163,96,.15);
}

.chatbot-composer button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: #0c1c2d;
  background: #c4a360;
  cursor: pointer;
}

.chat-property-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.chat-property-card {
  display: grid;
  grid-template-columns: 78px minmax(0,1fr);
  gap: 9px;
  padding: 8px;
  border: 1px solid #e3d8b5;
  border-radius: 13px;
  color: #0c1c2d;
  background: #f9f9f9;
}

.chat-property-card img {
  width: 78px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.chat-property-card span,
.chat-property-card strong,
.chat-property-card small,
.chat-property-card b {
  display: block;
}

.chat-property-card small {
  margin: 3px 0;
  color: #7d6d50;
  font-size: 11px;
}

.chat-property-card b {
  color: #a37e38;
  font-size: 12px;
}

.chat-all-results {
  display: block;
  margin-top: 10px;
  padding: 9px;
  border-radius: 11px;
  color: #0c1c2d;
  background: #c4a360;
  text-align: center;
  font-weight: 900;
}

/* ---------- Dark mode like the internal dashboard ---------- */
html[data-theme="dark"] {
  --bg: #0f1012;
  --surface: #191a1d;
  --surface-2: #242320;
  --surface-3: #2b2925;
  --text: #f7f7f7;
  --muted: #c7b27b;
  --line: rgba(196,163,96,.28);
  --navy: #0f1012;
  --navy-2: #191a1d;
  --navy-3: #25231f;
  --card: #242320;
  --main-bg: #0f1012;
  --hover: #302d27;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .home-reference-page,
html[data-theme="dark"] .services-reference,
html[data-theme="dark"] .workflow-reference,
html[data-theme="dark"] .partners-reference,
html[data-theme="dark"] .reviews-reference,
html[data-theme="dark"] .about-reference,
html[data-theme="dark"] .dynamic-section,
html[data-theme="dark"] .achievements-reference,
html[data-theme="dark"] .contact-reference {
  color: #fff;
  background:
    radial-gradient(circle at 10% 10%, rgba(196,163,96,.08), transparent 24%),
    #0f1012;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .footer {
  color: #fff;
  background: #111214;
  border-color: rgba(196,163,96,.22);
}

html[data-theme="dark"] .site-header .nav a,
html[data-theme="dark"] .footer p,
html[data-theme="dark"] .footer a,
html[data-theme="dark"] .footer-bottom {
  color: rgba(255,255,255,.68);
}

html[data-theme="dark"] .site-header .nav a:hover,
html[data-theme="dark"] .site-header .nav a.active {
  color: #0c1c2d;
  background: #c4a360;
}

html[data-theme="dark"] .reference-hero {
  background:
    radial-gradient(circle at 15% 15%, rgba(196,163,96,.12), transparent 26%),
    #111214;
}

html[data-theme="dark"] .reference-hero-shell,
html[data-theme="dark"] .workflow-column,
html[data-theme="dark"] .partner-reference-card,
html[data-theme="dark"] .review-reference-card,
html[data-theme="dark"] .about-reference-copy,
html[data-theme="dark"] .about-identity-card,
html[data-theme="dark"] .about-values article,
html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .contact-reference-form,
html[data-theme="dark"] .dynamic-content-card,
html[data-theme="dark"] .property-card,
html[data-theme="dark"] .portal-card,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .results-bar,
html[data-theme="dark"] .home-search-card {
  color: #fff;
  border-color: rgba(196,163,96,.28);
  background: linear-gradient(135deg, #242320, #1b1b1d);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
}

html[data-theme="dark"] .workflow-step,
html[data-theme="dark"] .about-identity-top,
html[data-theme="dark"] .about-identity-features article,
html[data-theme="dark"] .footer-regulatory figure {
  color: #fff;
  border-color: rgba(196,163,96,.22);
  background: #262521;
}

html[data-theme="dark"] .reference-slide-copy,
html[data-theme="dark"] .reference-slide h1,
html[data-theme="dark"] .reference-heading h2,
html[data-theme="dark"] .contact-info-card h3,
html[data-theme="dark"] .contact-form-title h3,
html[data-theme="dark"] .about-identity-top h3 {
  color: #fff;
}

html[data-theme="dark"] .reference-slide p,
html[data-theme="dark"] .hero-trust-row,
html[data-theme="dark"] .reference-heading p,
html[data-theme="dark"] .contact-form-title p,
html[data-theme="dark"] .about-identity-features span {
  color: rgba(255,255,255,.66);
}

html[data-theme="dark"] .auth-page {
  background:
    radial-gradient(circle at 80% 10%, rgba(196,163,96,.12), transparent 28%),
    #0f1012;
}

html[data-theme="dark"] .login-card-simple {
  color: #fff;
  border-color: rgba(196,163,96,.28);
  background: #1b1b1d;
}

html[data-theme="dark"] .login-heading h1,
html[data-theme="dark"] .login-demo-details button {
  color: #fff;
}

html[data-theme="dark"] .login-input-wrap .input,
html[data-theme="dark"] .login-demo-details,
html[data-theme="dark"] .login-demo-details button {
  color: #fff;
  border-color: rgba(196,163,96,.25);
  background: #262521;
}

html[data-theme="dark"] .chatbot-panel,
html[data-theme="dark"] .chatbot-hints,
html[data-theme="dark"] .chatbot-composer {
  color: #fff;
  border-color: rgba(196,163,96,.22);
  background: #17181b;
}

html[data-theme="dark"] .chatbot-messages {
  background: #101114;
}

html[data-theme="dark"] .chat-bubble,
html[data-theme="dark"] .chat-property-card {
  color: #fff;
  border-color: rgba(196,163,96,.22);
  background: #252521;
}

html[data-theme="dark"] .chat-message.user .chat-bubble,
html[data-theme="dark"] .chatbot-hints button,
html[data-theme="dark"] .chatbot-composer input {
  color: #fff;
  border-color: rgba(196,163,96,.25);
  background: #302d27;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .footer-brand-block,
  .footer-regulatory {
    grid-column: span 3;
  }

  .about-identity-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, 760px);
  }

  .about-reference-grid {
    grid-template-columns: 1fr;
  }

  .about-identity-card {
    min-height: auto;
  }

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

  .footer-brand-block,
  .footer-regulatory {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 22px);
  }

  .site-header .header-inner {
    min-height: 72px;
    grid-template-columns: 128px 1fr auto;
    gap: 8px;
  }

  .site-header .brand img {
    width: 125px;
  }

  .site-header .nav {
    top: 72px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    border: 1px solid #e3d8b5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15,23,42,.16);
  }

  .site-header .nav a {
    width: 100%;
    text-align: center;
  }

  html[data-theme="dark"] .site-header .nav {
    background: #17181b;
    border-color: rgba(196,163,96,.22);
  }

  .header-actions {
    gap: 5px;
  }

  .header-icon-only,
  .site-header .icon-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .reference-hero-shell,
  .reference-slides {
    min-height: 690px;
  }

  .reference-slide {
    padding: 34px 18px 55px;
  }

  .reference-slide h1 {
    font-size: clamp(31px, 10vw, 42px);
  }

  .reference-slide-media,
  .reference-slide-media img {
    max-width: 100%;
  }

  .workflow-columns {
    gap: 18px;
  }

  .workflow-column {
    padding: 18px;
  }

  .workflow-step {
    grid-template-columns: 43px minmax(0,1fr);
    padding: 14px;
  }

  .partner-reference-card {
    flex-basis: calc((100vw - 58px) / 2);
    width: calc((100vw - 58px) / 2);
    min-width: calc((100vw - 58px) / 2);
    min-height: 145px;
  }

  .partner-reference-card img {
    max-width: 105px;
    max-height: 67px;
  }

  .about-reference-copy,
  .about-identity-card {
    padding: 20px;
  }

  .about-identity-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-logo-box {
    margin-inline: auto;
  }

  .about-identity-features {
    grid-template-columns: 1fr;
  }

  .about-trust-ribbon {
    max-width: 100%;
  }

  .contact-reference-grid {
    gap: 18px;
  }

  .footer {
    padding-top: 42px;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand-block,
  .footer-column,
  .footer-regulatory {
    grid-column: auto;
    display: grid;
    justify-items: center;
  }

  .footer-brand-block img {
    margin-inline: auto;
  }

  .footer-dynamic-links {
    justify-items: center;
  }

  .footer-regulatory > div {
    justify-content: center;
  }

  .auth-page {
    padding: 82px 12px 24px;
  }

  .login-page-toolbar {
    top: 14px;
    left: 14px;
  }

  .login-card-simple {
    padding: 24px 18px;
  }

  .login-logo {
    width: 180px !important;
  }

  .chatbot-shell {
    left: 12px;
    bottom: 12px;
  }

  .chatbot-fab {
    width: 56px;
    height: 56px;
    border-radius: 17px;
  }

  .chatbot-panel {
    position: fixed;
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    height: min(78vh, 650px);
    border-radius: 22px;
  }

  .chatbot-shell.open .chatbot-fab {
    display: none;
  }

  .chat-bubble {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .site-header .header-inner {
    grid-template-columns: 105px 1fr auto;
  }

  .site-header .brand img {
    width: 104px;
  }

  .header-actions {
    gap: 3px;
  }

  .header-icon-only,
  .site-header .icon-btn,
  .mobile-menu {
    width: 39px;
    min-width: 39px;
    height: 39px;
  }

  .reference-slide-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reference-slide-actions .btn {
    width: 100%;
  }

  .hero-trust-row {
    gap: 8px;
  }

  .hero-trust-row span {
    font-size: 11px;
  }

  .partner-reference-card {
    flex-basis: calc((100vw - 48px) / 2);
    width: calc((100vw - 48px) / 2);
    min-width: calc((100vw - 48px) / 2);
  }

  .chatbot-panel {
    height: calc(100dvh - 16px);
  }

  .chatbot-hints button {
    max-width: 225px;
  }
}

/* Light mode contains no dark design blocks */
html:not([data-theme="dark"]) .about-trust-ribbon {
  color: #0c1c2d;
  border: 1px solid #e3d8b5;
  background: #fff8e1;
  box-shadow: 0 12px 28px rgba(15,23,42,.09);
}

html:not([data-theme="dark"]) .about-trust-ribbon span {
  color: #8e713b;
}

html:not([data-theme="dark"]) .chatbot-header {
  color: #0c1c2d;
  border-bottom: 1px solid #e3d8b5;
  background: #fff8e1;
}

html:not([data-theme="dark"]) .chatbot-header h3 {
  color: #0c1c2d;
}

html:not([data-theme="dark"]) .chatbot-header small {
  color: #7e6b47;
}

html:not([data-theme="dark"]) .chatbot-close {
  color: #9f7a34;
  border-color: #e3d8b5;
}

html[data-theme="dark"] .about-trust-ribbon {
  color: #fff;
  border: 1px solid rgba(196,163,96,.28);
  background: #111214;
}

html[data-theme="dark"] .about-trust-ribbon span {
  color: rgba(255,255,255,.68);
}

html[data-theme="dark"] .chatbot-header {
  color: #fff;
  border-bottom-color: rgba(196,163,96,.22);
  background: #111214;
}

/* Footer columns adapt to pages with or without regulatory logos */
.footer-grid {
  grid-template-columns: 1.35fr repeat(3, minmax(150px, .8fr));
}

.footer-grid:has(.footer-regulatory) {
  grid-template-columns: 1.35fr repeat(3, minmax(140px, .72fr)) 1.1fr;
}

@media (max-width: 1180px) {
  .footer-grid,
  .footer-grid:has(.footer-regulatory) {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 900px) {
  .footer-grid,
  .footer-grid:has(.footer-regulatory) {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .footer-grid,
  .footer-grid:has(.footer-regulatory) {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   DAR LINE FINAL STABLE OVERRIDES
   Responsive slider, stable reviews, partners, footer & themes
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 1200;
}

.reference-section,
.dynamic-section {
  overflow: hidden;
}

/* ---------- Strict light mode: no dark blocks ---------- */
html:not([data-theme="dark"]) body,
html:not([data-theme="dark"]) .home-reference-page {
  color: #0c1c2d;
  background: #f7f8fa;
}

html:not([data-theme="dark"]) .site-header,
html:not([data-theme="dark"]) .footer,
html:not([data-theme="dark"]) .services-reference,
html:not([data-theme="dark"]) .partners-reference,
html:not([data-theme="dark"]) .about-reference {
  color: #0c1c2d;
  background: #ffffff !important;
}

html:not([data-theme="dark"]) .workflow-reference,
html:not([data-theme="dark"]) .reviews-reference,
html:not([data-theme="dark"]) .dynamic-section.alt {
  color: #0c1c2d;
  background: #fffaf0 !important;
}

html:not([data-theme="dark"]) .achievements-reference,
html:not([data-theme="dark"]) .contact-reference {
  color: #0c1c2d;
  background:
    radial-gradient(circle at 85% 12%, rgba(196,163,96,.10), transparent 24%),
    linear-gradient(135deg, #f4f6f8, #edf2f5) !important;
}

html:not([data-theme="dark"]) .flip-front,
html:not([data-theme="dark"]) .flip-back,
html:not([data-theme="dark"]) .workflow-column,
html:not([data-theme="dark"]) .workflow-step,
html:not([data-theme="dark"]) .review-reference-card,
html:not([data-theme="dark"]) .about-story-panel,
html:not([data-theme="dark"]) .about-signature-panel,
html:not([data-theme="dark"]) .about-story-points article,
html:not([data-theme="dark"]) .about-signature-brand,
html:not([data-theme="dark"]) .about-signature-grid article,
html:not([data-theme="dark"]) .about-signature-ribbon,
html:not([data-theme="dark"]) .contact-info-card,
html:not([data-theme="dark"]) .contact-reference-form,
html:not([data-theme="dark"]) .chatbot-panel,
html:not([data-theme="dark"]) .chatbot-header,
html:not([data-theme="dark"]) .chatbot-messages,
html:not([data-theme="dark"]) .chatbot-composer,
html:not([data-theme="dark"]) .chat-bubble,
html:not([data-theme="dark"]) .chat-property-card {
  color: #0c1c2d !important;
  border-color: #e3d8b5 !important;
  background: #ffffff !important;
}

html:not([data-theme="dark"]) .workflow-step,
html:not([data-theme="dark"]) .about-story-points article,
html:not([data-theme="dark"]) .about-signature-grid article,
html:not([data-theme="dark"]) .about-signature-ribbon,
html:not([data-theme="dark"]) .chatbot-composer {
  background: #fff8e1 !important;
}

html:not([data-theme="dark"]) .flip-front:hover,
html:not([data-theme="dark"]) .workflow-step:hover,
html:not([data-theme="dark"]) .review-reference-card:hover,
html:not([data-theme="dark"]) .about-story-points article:hover,
html:not([data-theme="dark"]) .about-signature-grid article:hover {
  background: #fdf4d3 !important;
}

/* ---------- Strict dark mode: no light blocks ---------- */
html[data-theme="dark"] body,
html[data-theme="dark"] .home-reference-page,
html[data-theme="dark"] .services-reference,
html[data-theme="dark"] .workflow-reference,
html[data-theme="dark"] .partners-reference,
html[data-theme="dark"] .reviews-reference,
html[data-theme="dark"] .about-reference,
html[data-theme="dark"] .dynamic-section,
html[data-theme="dark"] .achievements-reference,
html[data-theme="dark"] .contact-reference,
html[data-theme="dark"] .footer {
  color: #f5f2e8;
  background: #0d0e10 !important;
}

html[data-theme="dark"] .site-header {
  color: #f5f2e8;
  border-color: rgba(196,163,96,.25);
  background: rgba(13,14,16,.97) !important;
}

html[data-theme="dark"] .reference-hero {
  background:
    radial-gradient(circle at 16% 15%, rgba(196,163,96,.12), transparent 26%),
    #0d0e10 !important;
}

html[data-theme="dark"] .reference-hero-shell,
html[data-theme="dark"] .flip-front,
html[data-theme="dark"] .flip-back,
html[data-theme="dark"] .workflow-column,
html[data-theme="dark"] .workflow-step,
html[data-theme="dark"] .partner-reference-card,
html[data-theme="dark"] .review-reference-card,
html[data-theme="dark"] .about-story-panel,
html[data-theme="dark"] .about-signature-panel,
html[data-theme="dark"] .about-story-points article,
html[data-theme="dark"] .about-signature-brand,
html[data-theme="dark"] .about-signature-grid article,
html[data-theme="dark"] .about-signature-ribbon,
html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .contact-reference-form,
html[data-theme="dark"] .chatbot-panel,
html[data-theme="dark"] .chatbot-header,
html[data-theme="dark"] .chatbot-messages,
html[data-theme="dark"] .chatbot-composer,
html[data-theme="dark"] .chat-bubble,
html[data-theme="dark"] .chat-property-card,
html[data-theme="dark"] .property-card,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .results-bar {
  color: #f5f2e8 !important;
  border-color: rgba(196,163,96,.27) !important;
  background: #191a1d !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
}

html[data-theme="dark"] .workflow-step,
html[data-theme="dark"] .about-story-points article,
html[data-theme="dark"] .about-signature-grid article,
html[data-theme="dark"] .about-signature-ribbon,
html[data-theme="dark"] .chatbot-composer {
  background: #222224 !important;
}

html[data-theme="dark"] .flip-front:hover,
html[data-theme="dark"] .workflow-step:hover,
html[data-theme="dark"] .review-reference-card:hover,
html[data-theme="dark"] .about-story-points article:hover,
html[data-theme="dark"] .about-signature-grid article:hover {
  background: #292824 !important;
}

html[data-theme="dark"] .site-header svg,
html[data-theme="dark"] .reference-section svg,
html[data-theme="dark"] .dynamic-section svg,
html[data-theme="dark"] .footer svg,
html[data-theme="dark"] .chatbot-panel svg,
html[data-theme="dark"] .property-card svg {
  color: #c4a360 !important;
}

html[data-theme="dark"] .btn-gold svg,
html[data-theme="dark"] .chatbot-composer button svg {
  color: #0c1c2d !important;
}

/* ---------- Slider: content-safe on all screens ---------- */
@media (max-width: 900px) {
  .reference-hero {
    padding: 18px 0 34px;
  }

  .reference-hero-shell,
  .reference-slides {
    min-height: 0 !important;
    height: auto !important;
  }

  .reference-slide {
    position: relative !important;
    inset: auto !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 22px !important;
    min-height: 0 !important;
    padding: 34px 26px 78px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .reference-slide.active {
    display: grid !important;
  }

  .reference-slide-copy {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .reference-slide h1 {
    max-width: 100%;
    margin: 15px auto 11px;
    font-size: clamp(30px, 8.5vw, 47px);
    line-height: 1.35;
  }

  .reference-slide p {
    max-width: 680px;
    margin-inline: auto;
    font-size: 16px;
    line-height: 1.9;
  }

  .reference-slide-actions,
  .hero-trust-row {
    justify-content: center;
  }

  .reference-slide-media {
    order: 2;
    min-height: 320px !important;
    width: 100%;
  }

  .reference-slide-media img {
    width: min(440px, 88%);
    max-height: 320px;
  }

  .hero-media-shape {
    inset: 7% 9% 5%;
  }

  .hero-media-badge {
    right: 50%;
    bottom: 2px;
    min-width: min(255px, 88%);
    transform: translateX(50%);
  }

  .reference-dots {
    bottom: 20px;
  }

  .reference-arrow {
    top: auto;
    bottom: 14px;
    transform: none;
  }
}

@media (max-width: 520px) {
  .reference-slide {
    padding: 28px 17px 72px !important;
  }

  .reference-slide h1 {
    font-size: clamp(27px, 9vw, 38px);
  }

  .reference-slide-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reference-slide-actions .btn {
    width: 100%;
  }

  .reference-slide-media {
    min-height: 285px !important;
  }

  .reference-slide-media img {
    max-height: 270px;
  }

  .hero-media-badge {
    padding: 11px 13px;
  }
}

/* ---------- Partners like the requested golden slider ---------- */
.partners-reference {
  padding-bottom: 72px;
}

.partners-track {
  gap: 16px;
  align-items: stretch;
  padding: 12px 4px 24px;
}

.partner-reference-card {
  flex: 0 0 190px !important;
  width: 190px !important;
  min-width: 190px !important;
  min-height: 132px;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: #c4a360 !important;
  box-shadow: 0 12px 25px rgba(15,23,42,.10);
}

.partner-logo-frame {
  width: 100%;
  height: 116px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
}

.partner-logo-frame img {
  width: 88%;
  height: 88%;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}

html[data-theme="dark"] .partner-reference-card {
  background: #c4a360 !important;
}

html[data-theme="dark"] .partner-logo-frame {
  background: #18191c;
}

@media (max-width: 760px) {
  .partners-track {
    gap: 12px;
  }

  .partner-reference-card {
    flex-basis: calc((100% - 12px) / 2) !important;
    width: calc((100% - 12px) / 2) !important;
    min-width: calc((100% - 12px) / 2) !important;
    min-height: 118px;
  }

  .partner-logo-frame {
    height: 102px;
  }
}

/* ---------- Stable testimonial cards ---------- */
.reviews-track {
  align-items: stretch;
  gap: 18px;
  padding: 12px 4px 26px;
}

.review-reference-card {
  flex: 0 0 calc((100% - 36px) / 3) !important;
  width: calc((100% - 36px) / 3) !important;
  min-width: 300px !important;
  max-width: 390px;
  min-height: 330px !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 25px !important;
  text-align: right !important;
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.review-card-top > div:last-child {
  min-width: 0;
}

.review-card-top strong,
.review-card-top span {
  display: block;
}

.review-card-top strong {
  font-size: 18px;
}

.review-card-top span {
  margin-top: 3px;
  color: #c4a360;
  font-size: 12px;
}

.review-reference-card p {
  flex: 1;
  margin: 14px 0 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.review-stars {
  margin: 18px 0 0;
  text-align: right;
}

.review-card-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.review-card-footer svg {
  width: 18px;
  height: 18px;
  color: #c4a360;
}

@media (max-width: 980px) {
  .review-reference-card {
    flex-basis: calc((100% - 18px) / 2) !important;
    width: calc((100% - 18px) / 2) !important;
    min-width: 310px !important;
  }
}

@media (max-width: 650px) {
  .review-reference-card {
    flex-basis: calc(100% - 2px) !important;
    width: calc(100% - 2px) !important;
    min-width: calc(100% - 2px) !important;
    max-width: none;
    min-height: 300px !important;
  }
}

/* ---------- About: stronger typography and balanced design ---------- */
.about-reference-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.about-story-panel,
.about-signature-panel {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid #e3d8b5;
  border-radius: 30px;
  box-shadow: 0 12px 34px rgba(15,23,42,.08);
}

.about-story-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #c4a360;
  font-weight: 900;
}

.about-story-panel > h3 {
  max-width: 720px;
  margin: 0 0 16px;
  color: inherit;
  font-size: clamp(30px, 3.6vw, 49px);
  line-height: 1.4;
}

.about-story-lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2.05;
}

.about-story-points {
  display: grid;
  gap: 11px;
  margin-top: 23px;
}

.about-story-points article {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e3d8b5;
  border-radius: 17px;
}

.about-point-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #c4a360;
  background: rgba(196,163,96,.12);
}

.about-story-points h4,
.about-story-points p {
  margin: 0;
}

.about-story-points p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.75;
}

.about-story-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.about-signature-panel {
  position: relative;
  overflow: hidden;
}

.about-signature-orbit {
  position: absolute;
  border: 1px solid rgba(196,163,96,.38);
  border-radius: 50%;
  pointer-events: none;
}

.about-orbit-one {
  width: 320px;
  height: 320px;
  top: -110px;
  left: -100px;
  background: rgba(196,163,96,.06);
}

.about-orbit-two {
  width: 390px;
  height: 390px;
  right: -180px;
  bottom: -220px;
}

.about-signature-brand {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 126px minmax(0,1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid #e3d8b5;
  border-radius: 23px;
}

.about-signature-logo {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(196,163,96,.12);
}

.about-signature-logo img {
  width: 104px;
  object-fit: contain;
}

.about-signature-brand span {
  color: #c4a360;
  font-weight: 900;
}

.about-signature-brand h3 {
  margin: 7px 0 6px;
  font-size: clamp(23px, 2.5vw, 34px);
}

.about-signature-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.about-signature-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 11px;
  margin-top: 17px;
}

.about-signature-grid article {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e3d8b5;
  border-radius: 18px;
}

.about-signature-grid svg {
  width: 29px;
  height: 29px;
  margin-bottom: 11px;
  color: #c4a360;
}

.about-signature-grid strong,
.about-signature-grid span {
  display: block;
}

.about-signature-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.about-signature-ribbon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 390px;
  margin: 20px auto 0;
  padding: 14px 17px;
  border: 1px solid #e3d8b5;
  border-radius: 17px;
}

.about-signature-ribbon svg {
  color: #c4a360;
}

.about-signature-ribbon strong,
.about-signature-ribbon span {
  display: block;
}

.about-signature-ribbon span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .about-reference-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  .about-story-panel,
  .about-signature-panel {
    padding: 20px;
  }

  .about-story-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .about-story-actions .btn {
    width: 100%;
  }

  .about-signature-brand {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-signature-logo {
    margin-inline: auto;
  }

  .about-signature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer matching the requested layout ---------- */
.footer {
  padding: 52px 0 0 !important;
}

.footer-grid,
.footer-grid:has(.footer-regulatory) {
  display: grid !important;
  grid-template-columns: 1fr 1.35fr 1fr !important;
  gap: 34px !important;
  align-items: center !important;
}

.footer-brand-block,
.footer-center-block,
.footer-social-block {
  min-width: 0;
}

.footer-brand-block {
  text-align: center;
}

.footer-brand-block img {
  width: 170px !important;
  max-height: 105px;
  margin: 0 auto 9px;
  object-fit: contain;
}

.footer-brand-block strong {
  display: block;
  color: #c4a360;
  font-size: 17px;
}

.footer-brand-block p {
  max-width: 330px;
  margin: 8px auto 0;
  line-height: 1.9;
}

.footer-center-block {
  display: grid;
  justify-items: center;
  gap: 19px;
}

.footer-regulatory-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  flex-wrap: wrap;
}

.footer-regulatory-inline figure {
  margin: 0;
}

.footer-regulatory-inline img {
  width: auto;
  height: 70px;
  max-width: 180px;
  object-fit: contain;
}

.footer-main-links {
  display: flex;
  justify-content: center;
  gap: 10px 20px;
  flex-wrap: wrap;
}

.footer-main-links a {
  color: inherit;
}

.footer-main-links a:hover {
  color: #c4a360;
}

.footer-social-block {
  text-align: center;
}

.footer-social-block h3 {
  margin: 0 0 14px;
  color: #c4a360;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social-icons a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #c4a360;
  border-radius: 13px;
  color: #c4a360 !important;
  background: transparent;
  font-size: 20px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.footer-social-icons a:hover {
  transform: translateY(-3px);
  color: #0c1c2d !important;
  background: #c4a360;
}

.footer-social-block > span {
  display: block;
  margin-top: 13px;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 38px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

html[data-theme="dark"] .footer-regulatory-inline img {
  filter: brightness(.96);
}

@media (max-width: 980px) {
  .footer-grid,
  .footer-grid:has(.footer-regulatory) {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .footer-brand-block {
    order: 1;
  }

  .footer-center-block {
    order: 2;
  }

  .footer-social-block {
    order: 3;
  }
}

/* ---------- Chat suggestions hidden ---------- */
.chatbot-hints[aria-hidden="true"],
.chatbot-hints.hidden {
  display: none !important;
}

/* ---------- Dashboard responsive hardening ---------- */
@media (max-width: 1050px) {
  .admin-shell,
  .admin-main,
  .admin-content {
    width: 100%;
    max-width: 100%;
  }

  .admin-content {
    overflow-x: hidden;
  }

  .table-wrap,
  .data-table-wrap,
  .panel {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* =========================================================
   FINAL REQUEST — fixed shared header, latest offers slider,
   service hover details and rounded partner logos
   ========================================================= */

/* Keep the complete menu visible while scrolling on all public pages. */
.site-header {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1600;
}

.fixed-header-page {
  padding-top: 86px;
}

.portal-screen:not(.hidden) {
  padding-top: 86px;
}

/* Small latest-property slider placed directly above Services. */
.featured-listings-section {
  padding: 72px 0 68px;
  background: var(--surface-2);
}

.featured-listings-heading {
  margin-bottom: 28px;
}

.featured-listings-carousel {
  min-height: 365px;
}

.featured-properties-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 4px 24px;
}

.featured-properties-track::-webkit-scrollbar {
  display: none;
}

.featured-property-card {
  flex: 0 0 285px;
  width: 285px;
  min-width: 285px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.featured-property-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.featured-property-card > a {
  display: block;
  height: 100%;
  color: inherit;
}

.featured-property-media {
  position: relative;
  height: 178px;
  overflow: hidden;
  background: var(--surface-2);
}

.featured-property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.featured-property-card:hover .featured-property-media img {
  transform: scale(1.045);
}

.featured-property-media .badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.featured-property-code {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #fff;
  background: rgba(12,28,45,.82);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(7px);
}

.featured-property-body {
  padding: 17px;
}

.featured-property-body h3 {
  min-height: 54px;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
}

.featured-property-body > p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
}

.featured-property-body > p svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.featured-property-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.featured-property-meta strong {
  color: var(--gold);
  font-size: 17px;
}

.featured-property-meta span {
  color: var(--muted);
  font-size: 13px;
}

.featured-property-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.featured-property-link svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* Service cards: the back side clearly shows the service icon and explanation. */
.flip-service {
  cursor: pointer;
  outline: none;
}

.flip-service:focus-visible .flip-service-inner {
  transform: rotateY(180deg);
}

.service-back-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid rgba(196,163,96,.5);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(196,163,96,.11);
}

.service-back-icon svg {
  width: 42px;
  height: 42px;
  color: var(--gold) !important;
}

.flip-back h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 23px;
}

.flip-back p {
  max-width: 270px;
  margin: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.95;
}

/* Partner logo: circular inner logo with a soft rounded 2px outer frame. */
.partner-reference-card {
  padding: 10px !important;
  border: 2px solid var(--gold) !important;
  border-radius: 30px !important;
  background: var(--surface) !important;
}

.partner-logo-frame {
  width: 112px !important;
  height: 112px !important;
  margin: auto;
  border: 2px solid rgba(196,163,96,.62);
  border-radius: 50% !important;
  background: #fff !important;
}

.partner-logo-frame img {
  width: 82% !important;
  height: 82% !important;
  border-radius: 50%;
  object-fit: contain;
}

html[data-theme="dark"] .partner-reference-card {
  background: var(--surface) !important;
}

html[data-theme="dark"] .partner-logo-frame {
  background: #fff !important;
}

@media (max-width: 760px) {
  .fixed-header-page,
  .portal-screen:not(.hidden) {
    padding-top: 76px;
  }

  .featured-listings-section {
    padding: 55px 0 52px;
  }

  .featured-listings-carousel {
    min-height: 345px;
  }

  .featured-property-card {
    flex-basis: min(82vw, 290px);
    width: min(82vw, 290px);
    min-width: min(82vw, 290px);
  }

  .partner-logo-frame {
    width: 92px !important;
    height: 92px !important;
  }
}


/* =========================================================
   Targeted fixes: service flip, compact partners and shared footer
   ========================================================= */

/* The property-management icon always uses a supported gold icon. */
.service-orbit svg,
.service-back-icon svg {
  display: block;
  color: var(--gold) !important;
  stroke: currentColor !important;
}

/* Day mode: the flipped card stays light and all text remains readable. */
html:not([data-theme="dark"]) .flip-back {
  color: #0c1c2d !important;
  border-color: #d9c38e !important;
  background:
    radial-gradient(circle at top right, rgba(196,163,96,.18), transparent 44%),
    #fff8e1 !important;
}

html:not([data-theme="dark"]) .flip-back h3 {
  color: #0c1c2d !important;
}

html:not([data-theme="dark"]) .flip-back p {
  color: #765f34 !important;
}

html:not([data-theme="dark"]) .service-back-icon {
  color: #c4a360 !important;
  border-color: rgba(196,163,96,.55) !important;
  background: #ffffff !important;
}

/* Night mode: no light card face and the gold icon remains clear. */
html[data-theme="dark"] .flip-back {
  color: #ffffff !important;
  border-color: rgba(196,163,96,.32) !important;
  background:
    radial-gradient(circle at top right, rgba(196,163,96,.20), transparent 44%),
    #15171b !important;
}

html[data-theme="dark"] .flip-back h3 {
  color: #ffffff !important;
}

html[data-theme="dark"] .flip-back p {
  color: #e0d2ad !important;
}

html[data-theme="dark"] .service-back-icon {
  color: #c4a360 !important;
  background: rgba(196,163,96,.10) !important;
}

/* Much smaller partner cards while keeping two visible on phones. */
.partners-track {
  gap: 12px !important;
  align-items: center !important;
}

.partner-reference-card {
  flex: 0 0 132px !important;
  width: 132px !important;
  min-width: 132px !important;
  min-height: 102px !important;
  padding: 6px !important;
  border: 2px solid var(--gold) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.08) !important;
}

.partner-logo-frame {
  width: 82px !important;
  height: 82px !important;
  margin: auto !important;
  border: 2px solid rgba(196,163,96,.58) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
}

.partner-logo-frame img {
  width: 76% !important;
  height: 76% !important;
  border-radius: 50% !important;
  object-fit: contain !important;
}

/* Shared footer uses the same readable colors on every page. */
html:not([data-theme="dark"]) .shared-footer,
html:not([data-theme="dark"]) .footer {
  color: #0c1c2d !important;
  background: #ffffff !important;
  border-top-color: #e3d8b5 !important;
}

html:not([data-theme="dark"]) .footer p,
html:not([data-theme="dark"]) .footer a,
html:not([data-theme="dark"]) .footer span,
html:not([data-theme="dark"]) .footer-bottom {
  color: #536273 !important;
}

html:not([data-theme="dark"]) .footer h3,
html:not([data-theme="dark"]) .footer-brand-block strong,
html:not([data-theme="dark"]) .footer-social-icons i {
  color: #c4a360 !important;
}

html:not([data-theme="dark"]) .footer-social-icons a {
  color: #c4a360 !important;
  border-color: #d8bd7a !important;
  background: #ffffff !important;
}

html[data-theme="dark"] .shared-footer,
html[data-theme="dark"] .footer {
  color: #ffffff !important;
  background: #0d0f13 !important;
  border-top-color: rgba(196,163,96,.28) !important;
}

html[data-theme="dark"] .footer p,
html[data-theme="dark"] .footer a,
html[data-theme="dark"] .footer span,
html[data-theme="dark"] .footer-bottom {
  color: #d7dbe1 !important;
}

html[data-theme="dark"] .footer h3,
html[data-theme="dark"] .footer-brand-block strong,
html[data-theme="dark"] .footer-social-icons i {
  color: #c4a360 !important;
}

html[data-theme="dark"] .footer-social-icons a {
  color: #c4a360 !important;
  border-color: rgba(196,163,96,.48) !important;
  background: #17191e !important;
}

@media (max-width: 760px) {
  .partner-reference-card {
    flex: 0 0 calc((100% - 12px) / 2) !important;
    width: calc((100% - 12px) / 2) !important;
    min-width: calc((100% - 12px) / 2) !important;
    max-width: 148px !important;
    min-height: 98px !important;
  }

  .partner-logo-frame {
    width: 76px !important;
    height: 76px !important;
  }
}

/* =========================================================
   PROFESSIONAL PROPERTY IMAGE DISPLAY FIX
   - Full image in listing cards without crop or stretch
   - Compact card details
   - Immersive property gallery without empty visual space
   ========================================================= */

.property-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

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

.property-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 4px;
}

.property-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.property-status-head,
.property-featured-head,
.property-code-head {
  position: static !important;
  inset: auto !important;
}

.property-code-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(196,163,96,.34);
  background: linear-gradient(135deg, rgba(12,28,45,.96), rgba(22,40,62,.9));
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .3px;
  box-shadow: 0 10px 24px rgba(12,28,45,.18);
}

html:not([data-theme="dark"]) .property-code-head {
  background: linear-gradient(135deg, #0f2740, #173554);
  color: #f5d08a;
}

.property-media {
  isolation: isolate;
  padding: 6px 18px 0;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}

.property-media-frame {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: auto;
  padding: 10px;
  border-radius: 28px;
  border: 2px solid rgba(196,163,96,.85);
  background: linear-gradient(160deg, rgba(196,163,96,.16), rgba(196,163,96,.06));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.1),
    0 12px 30px rgba(17,24,39,.12),
    0 0 0 5px rgba(196,163,96,.08);
}

.property-media-frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 22px;
  border: 1px solid rgba(196,163,96,.42);
  pointer-events: none;
  z-index: 3;
}

.property-media-backdrop {
  position: absolute;
  z-index: 0;
  inset: 10px;
  border-radius: 20px;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(18px) saturate(.88);
  opacity: .28;
  transform: scale(1.09);
}

.property-media::after {
  content: none;
}

.property-media-inner {
  position: relative;
  z-index: 2;
  min-height: 0;
  height: auto;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.property-media img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.13));
}

.property-media .property-status,
.property-media .property-featured,
.property-media .property-code {
  z-index: 4;
}

.property-body {
  display: flex;
  min-height: 0;
  padding: 16px 17px 18px;
  flex: 1;
  flex-direction: column;
}

.property-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 5px;
  font-size: 19px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.property-body .location {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.property-body .price {
  margin: 9px 0 5px;
  font-size: clamp(23px, 2.1vw, 29px);
  line-height: 1.25;
}

.property-body .price-note {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 7px;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.property-meta {
  gap: 4px;
  margin-top: 4px;
  padding-top: 10px;
}

.property-meta span {
  font-size: 11px;
}

.property-meta strong {
  margin-bottom: 2px;
  font-size: 15px;
}

.property-foot {
  margin-top: 9px;
  padding-top: 9px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .property-card-head {
    padding: 14px 14px 6px;
    gap: 10px;
  }

  .property-code-head {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 18px;
  }

  .property-media {
    padding: 4px 14px 0;
  }

  .property-media-frame {
    min-height: 0;
    padding: 8px;
    border-radius: 24px;
  }

  .property-media-frame::before {
    inset: 6px;
    border-radius: 18px;
  }

  .property-media-inner {
    margin: 0;
    border-radius: 17px;
  }

  .property-media img {
    min-height: 0;
    height: auto;
  }
}

/* Property details gallery */
.gallery {
  overflow: hidden;
  background: var(--surface);
}

.gallery-main {
  isolation: isolate;
  position: relative;
  width: 100%;
  min-height: 0;
  height: clamp(570px, 68vh, 790px);
  overflow: hidden;
  background: #e8e5df;
}

.gallery-backdrop {
  position: absolute;
  z-index: 0;
  inset: -28px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(28px) saturate(.82);
  opacity: .34;
  transform: scale(1.1);
}

.gallery-main::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.1), transparent 58%),
    linear-gradient(180deg, rgba(12,28,45,.06), rgba(12,28,45,.18));
}

.gallery-image-stage {
  position: absolute;
  z-index: 2;
  inset: 22px 66px 48px;
  display: grid;
  place-items: center;
}

.gallery-main .gallery-image-stage img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.24));
  cursor: zoom-in;
}

.gallery-top {
  z-index: 7;
}

.gallery-nav,
.gallery-expand {
  position: absolute;
  z-index: 8;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
  background: rgba(12,28,45,.62);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(9px);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.gallery-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.gallery-prev { right: 13px; }
.gallery-next { left: 13px; }

.gallery-expand {
  left: 14px;
  bottom: 13px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.gallery-nav:hover {
  background: rgba(196,163,96,.92);
  transform: translateY(-50%) scale(1.07);
}

.gallery-expand:hover {
  background: rgba(196,163,96,.92);
  transform: scale(1.07);
}

.gallery-nav svg,
.gallery-expand svg {
  width: 22px;
  height: 22px;
}

.gallery-caption {
  position: absolute;
  z-index: 7;
  right: 50%;
  bottom: 13px;
  max-width: calc(100% - 140px);
  padding: 7px 13px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: #fff;
  background: rgba(12,28,45,.58);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  backdrop-filter: blur(9px);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(50%);
}

.thumbs {
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  scrollbar-width: thin;
}

.thumb {
  width: 118px;
  height: 84px;
  border-color: transparent;
  background: var(--surface-3);
  opacity: .74;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.thumb:hover,
.thumb.active {
  opacity: 1;
  transform: translateY(-2px);
}

.thumb img {
  object-fit: cover;
}

.lightbox {
  background:
    radial-gradient(circle at center, rgba(196,163,96,.08), transparent 42%),
    rgba(3,9,15,.97);
  backdrop-filter: blur(10px);
}

.lightbox img {
  max-width: min(94vw, 1500px);
  max-height: 91vh;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.48));
}

html[data-theme="dark"] .property-media,
html[data-theme="dark"] .gallery-main {
  background: #151515;
}

html[data-theme="dark"] .property-media-backdrop,
html[data-theme="dark"] .gallery-backdrop {
  opacity: .24;
}

html[data-theme="dark"] .gallery-main::after {
  background:
    radial-gradient(circle at center, rgba(196,163,96,.07), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.36));
}

@media (max-width: 1180px) {
  .gallery-main {
    height: clamp(540px, 72vh, 760px);
  }
}

@media (max-width: 760px) {
  .property-media {
    height: min(72vh, 470px);
    min-height: 340px;
  }

  .property-body {
    padding: 13px 15px 14px;
  }

  .property-body h3 {
    font-size: 18px;
  }

  .property-body .price {
    font-size: 25px;
  }

  .gallery-main {
    height: min(76vh, 650px);
    min-height: 470px;
  }

  .gallery-image-stage {
    inset: 50px 12px 55px;
  }

  .gallery-nav {
    top: auto;
    bottom: 12px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .gallery-prev { right: 13px; }
  .gallery-next { left: 62px; }

  .gallery-nav:hover {
    transform: scale(1.05);
  }

  .gallery-expand {
    left: 13px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }

  .gallery-caption {
    right: 68px;
    bottom: 17px;
    max-width: calc(100% - 178px);
    transform: none;
  }

  .thumb {
    width: 92px;
    height: 70px;
  }
}

@media (max-width: 420px) {
  .property-media {
    height: min(70vh, 430px);
    min-height: 320px;
  }

  .gallery-main {
    height: min(72vh, 570px);
    min-height: 440px;
  }

  .gallery-caption {
    display: none;
  }
}


/* FINAL COMPACT GOLD FRAME — frame follows the real image ratio */
.property-card .property-media-frame {
  height: auto !important;
  min-height: 0 !important;
}
.property-card .property-media-inner {
  height: auto !important;
  min-height: 0 !important;
}
.property-card .property-media-inner img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 18px;
}

/* =========================================================
   PROPERTY CARD IMAGE — MATCH REFERENCE DISPLAY ONLY
   This block changes the image presentation only.
   Card content, data order and actions remain unchanged.
   ========================================================= */

.property-card .property-media {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 8px 14px 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.property-card .property-media-frame {
  position: relative;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 6 / 5;
  padding: 0 !important;
  overflow: hidden;
  border: 2px solid rgba(196, 163, 96, .92);
  border-radius: 24px;
  background: var(--surface-2);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, .12),
    0 0 0 1px rgba(196, 163, 96, .12);
}

.property-card .property-media-frame::before {
  content: none !important;
}

.property-card .property-media-backdrop {
  display: none !important;
}

.property-card .property-media-inner {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 21px;
  background: var(--surface-2);
  box-shadow: none !important;
}

.property-card .property-media-inner img,
.property-card .property-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  border-radius: 20px;
  object-fit: cover !important;
  object-position: center center !important;
  filter: none !important;
  transform: none !important;
}

html[data-theme="dark"] .property-card .property-media-frame {
  border-color: rgba(196, 163, 96, .95);
  background: #171717;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(196, 163, 96, .16);
}

@media (max-width: 760px) {
  .property-card .property-media {
    height: auto !important;
    min-height: 0 !important;
    padding: 7px 12px 0 !important;
  }

  .property-card .property-media-frame {
    aspect-ratio: 6 / 5;
    border-radius: 22px;
  }

  .property-card .property-media-inner,
  .property-card .property-media-inner img,
  .property-card .property-media img {
    border-radius: 19px;
  }
}

/* =========================================================
   FINAL PORTRAIT PROPERTY IMAGE FRAME
   - Fixed vertical frame for every listing card
   - Shows the whole image clearly without stretching
   - Does not change card data or layout
   ========================================================= */

.property-card .property-media {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 8px 14px 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.property-card .property-media-frame {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 5 !important;
  padding: 9px !important;
  overflow: hidden !important;
  border: 2px solid rgba(196, 163, 96, .95) !important;
  border-radius: 27px !important;
  background: linear-gradient(145deg, rgba(196,163,96,.16), rgba(196,163,96,.05)) !important;
  box-shadow:
    0 14px 34px rgba(15, 23, 42, .15),
    0 0 0 4px rgba(196, 163, 96, .08),
    inset 0 0 0 1px rgba(255,255,255,.12) !important;
}

.property-card .property-media-frame::before {
  content: "" !important;
  position: absolute !important;
  z-index: 4 !important;
  inset: 7px !important;
  border: 1px solid rgba(196, 163, 96, .42) !important;
  border-radius: 21px !important;
  pointer-events: none !important;
}

.property-card .property-media-backdrop {
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: -18px !important;
  border-radius: 25px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  filter: blur(20px) saturate(.86) !important;
  opacity: .24 !important;
  transform: scale(1.1) !important;
}

.property-card .property-media-inner {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.16) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08) !important;
}

.property-card .property-media-inner img,
.property-card .property-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  border-radius: 18px !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.12)) !important;
  transform: none !important;
}

html[data-theme="dark"] .property-card .property-media-frame {
  border-color: rgba(196, 163, 96, .98) !important;
  background: linear-gradient(145deg, rgba(196,163,96,.12), rgba(255,255,255,.02)) !important;
  box-shadow:
    0 16px 38px rgba(0,0,0,.38),
    0 0 0 4px rgba(196, 163, 96, .08),
    inset 0 0 0 1px rgba(255,255,255,.05) !important;
}

html[data-theme="dark"] .property-card .property-media-inner {
  background: rgba(255,255,255,.025) !important;
}

@media (max-width: 760px) {
  .property-card .property-media {
    padding: 7px 12px 0 !important;
  }

  .property-card .property-media-frame {
    aspect-ratio: 4 / 5 !important;
    padding: 8px !important;
    border-radius: 24px !important;
  }

  .property-card .property-media-frame::before {
    inset: 6px !important;
    border-radius: 19px !important;
  }

  .property-card .property-media-inner {
    border-radius: 18px !important;
  }

  .property-card .property-media-inner img,
  .property-card .property-media img {
    border-radius: 16px !important;
  }
}

/* =========================================================
   LATEST LISTING CARD IMAGE LAYOUT FIX
   - Large image inside compact gold frame
   - Status + featured badges over the top of image
   - Offer code over the bottom of image
   - Keeps card data layout unchanged
   ========================================================= */

.property-card,
.property-card > a {
  position: relative;
}

.property-card-head {
  position: absolute !important;
  z-index: 8 !important;
  inset-inline: 14px !important;
  top: 14px !important;
  padding: 0 !important;
  display: block !important;
  pointer-events: none !important;
}

.property-card-badges {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.property-card-badges .badge {
  pointer-events: auto;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

.property-code-head {
  position: absolute !important;
  z-index: 8 !important;
  inset-inline-end: 14px !important;
  inset-inline-start: auto !important;
  bottom: calc(100% - 14px) !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
  border-radius: 14px !important;
  pointer-events: auto;
}

.property-card .property-media {
  padding: 14px 14px 0 !important;
}

.property-card .property-media-frame {
  position: relative !important;
  aspect-ratio: 4 / 5 !important;
  min-height: 0 !important;
  padding: 7px !important;
  border-radius: 24px !important;
  border: 2px solid rgba(196, 163, 96, .95) !important;
  background: linear-gradient(145deg, rgba(196,163,96,.14), rgba(196,163,96,.05)) !important;
  box-shadow:
    0 14px 28px rgba(15, 23, 42, .14),
    0 0 0 3px rgba(196, 163, 96, .08),
    inset 0 0 0 1px rgba(255,255,255,.12) !important;
}

.property-card .property-media-frame::before {
  content: "" !important;
  position: absolute !important;
  inset: 5px !important;
  border: 1px solid rgba(196, 163, 96, .4) !important;
  border-radius: 18px !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.property-card .property-media-backdrop {
  display: block !important;
  position: absolute !important;
  inset: 6px !important;
  border-radius: 18px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  filter: blur(14px) saturate(.9) !important;
  opacity: .22 !important;
  transform: scale(1.05) !important;
}

.property-card .property-media-inner {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 17px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.04) !important;
}

.property-card .property-media-inner img,
.property-card .property-media img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 17px !important;
  filter: none !important;
}

.property-body {
  padding-top: 14px !important;
}

html[data-theme="dark"] .property-card .property-media-frame {
  background: linear-gradient(145deg, rgba(196,163,96,.13), rgba(255,255,255,.02)) !important;
  box-shadow:
    0 16px 30px rgba(0,0,0,.34),
    0 0 0 3px rgba(196,163,96,.08),
    inset 0 0 0 1px rgba(255,255,255,.05) !important;
}

@media (max-width: 760px) {
  .property-card-head {
    inset-inline: 12px !important;
    top: 12px !important;
  }

  .property-code-head {
    inset-inline-end: 12px !important;
    bottom: calc(100% - 8px) !important;
    min-height: 38px !important;
    font-size: 18px !important;
    padding: 8px 12px !important;
  }

  .property-card .property-media {
    padding: 12px 12px 0 !important;
  }

  .property-card .property-media-frame {
    aspect-ratio: 4 / 5 !important;
    padding: 6px !important;
    border-radius: 22px !important;
  }

  .property-card .property-media-frame::before {
    inset: 4px !important;
    border-radius: 16px !important;
  }

  .property-card .property-media-backdrop,
  .property-card .property-media-inner,
  .property-card .property-media-inner img,
  .property-card .property-media img {
    border-radius: 16px !important;
  }
}

/* =========================================================
   FINAL OVERRIDE — PROPERTY CARD IMAGE FILL + OVERLAYS
   ========================================================= */

.property-card .property-media-frame {
  position: relative !important;
}

.property-card .property-card-head.property-card-head-overlay {
  position: absolute !important;
  z-index: 8 !important;
  inset: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  pointer-events: none !important;
}

.property-card .property-card-head.property-card-head-overlay .property-card-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-start !important;
}

.property-card .property-card-head.property-card-head-overlay .badge,
.property-card .property-card-head.property-card-head-overlay .property-code-head {
  pointer-events: auto;
}

.property-card .property-card-head.property-card-head-overlay .property-code-head {
  align-self: flex-end !important;
  position: static !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  border-radius: 14px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  box-shadow: 0 10px 18px rgba(0,0,0,.18) !important;
}

.property-card .property-media {
  padding: 12px 12px 0 !important;
}

.property-card .property-media-frame {
  aspect-ratio: 4 / 5 !important;
  padding: 6px !important;
  border-radius: 22px !important;
}

.property-card .property-media-frame::before {
  inset: 4px !important;
  border-radius: 16px !important;
}

.property-card .property-media-backdrop {
  inset: 5px !important;
  border-radius: 16px !important;
}

.property-card .property-media-inner {
  border-radius: 16px !important;
  background: rgba(255,255,255,.03) !important;
}

.property-card .property-media-inner img,
.property-card .property-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 16px !important;
}

@media (max-width: 760px) {
  .property-card .property-card-head.property-card-head-overlay {
    inset: 9px !important;
  }

  .property-card .property-card-head.property-card-head-overlay .property-code-head {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 17px !important;
  }

  .property-card .property-media {
    padding: 10px 10px 0 !important;
  }

  .property-card .property-media-frame {
    aspect-ratio: 4 / 5 !important;
    border-radius: 20px !important;
  }

  .property-card .property-media-frame::before,
  .property-card .property-media-backdrop,
  .property-card .property-media-inner,
  .property-card .property-media-inner img,
  .property-card .property-media img {
    border-radius: 14px !important;
  }
}

/* =========================================================
   PROPERTY CARD META ICONS + COMPACT PROPERTY SPECS
   ========================================================= */

.property-meta.property-meta-icons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.property-meta-icons .property-meta-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 2px;
  text-align: center;
}

.property-meta-icons .property-meta-item > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--gold);
  stroke-width: 2;
}

.property-meta-icons .property-meta-copy {
  min-width: 0;
  display: grid;
  justify-items: center;
  line-height: 1.15;
}

.property-meta-icons .property-meta-copy strong {
  margin: 0;
  font-size: 15px;
}

.property-meta-icons .property-meta-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.property-boundary {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.property-boundary svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--gold);
}

.spec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  overflow: visible;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-2);
}

.spec.spec-with-icon {
  min-width: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 5px 14px rgba(15,23,42,.045);
}

.spec-with-icon .spec-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(196,163,96,.32);
  border-radius: 11px;
  background: var(--gold-soft);
}

.spec-with-icon .spec-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  stroke-width: 2;
}

.spec-with-icon .spec-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.spec-with-icon .spec-copy small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.spec-with-icon .spec-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="dark"] .spec.spec-with-icon {
  box-shadow: none;
}

@media (max-width: 1100px) {
  .spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .property-meta-icons .property-meta-item {
    gap: 4px;
  }

  .property-meta-icons .property-meta-item > svg {
    width: 14px;
    height: 14px;
  }

  .property-meta-icons .property-meta-copy strong {
    font-size: 14px;
  }

  .property-meta-icons .property-meta-copy small {
    font-size: 9px;
  }

  .property-boundary {
    max-width: 56%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 7px;
  }

  .spec.spec-with-icon {
    min-height: 66px;
    gap: 8px;
    padding: 9px;
  }

  .spec-with-icon .spec-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .spec-with-icon .spec-icon svg {
    width: 16px;
    height: 16px;
  }

  .spec-with-icon .spec-copy strong {
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CARD ICON VISIBILITY FIX — DARK/LIGHT + KAABA
   ========================================================= */

.property-meta-svg,
.property-boundary-icon {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  color: #c4a360 !important;
  stroke: #c4a360 !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.property-meta-svg path,
.property-meta-svg circle,
.property-boundary-icon path,
.property-boundary-icon circle {
  stroke: currentColor !important;
  vector-effect: non-scaling-stroke;
}

.property-boundary-icon {
  width: 16px !important;
  height: 16px !important;
}

.property-boundary-icon circle {
  fill: currentColor !important;
  stroke: none !important;
}

html[data-theme="dark"] .property-meta-svg,
html[data-theme="dark"] .property-boundary-icon,
html[data-theme="dark"] .property-meta-item > svg,
html[data-theme="dark"] .property-boundary > svg {
  color: #c4a360 !important;
  stroke: #c4a360 !important;
  filter: drop-shadow(0 0 4px rgba(196, 163, 96, .24));
}

html:not([data-theme="dark"]) .property-meta-svg,
html:not([data-theme="dark"]) .property-boundary-icon {
  color: #b78f45 !important;
  stroke: #b78f45 !important;
}

@media (max-width: 760px) {
  .property-meta-svg {
    width: 14px !important;
    height: 14px !important;
  }

  .property-boundary-icon {
    width: 15px !important;
    height: 15px !important;
  }
}


/* =========================================================
   EDITABLE PROPERTIES PAGE HERO
   ========================================================= */

.properties-page-hero {
  --properties-hero-overlay-opacity: .68;
  position: relative;
  isolation: isolate;
  min-height: clamp(250px, 29vw, 390px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 64px 0;
  color: #fff;
  background: #0c1c2d;
}

.properties-page-hero-media,
.properties-page-hero-overlay {
  position: absolute;
  inset: 0;
}

.properties-page-hero-media {
  z-index: -3;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}

.properties-page-hero-overlay {
  z-index: -2;
  background:
    linear-gradient(
      105deg,
      rgba(7, 18, 29, calc(var(--properties-hero-overlay-opacity) + .12)),
      rgba(12, 28, 45, var(--properties-hero-overlay-opacity)) 55%,
      rgba(12, 28, 45, calc(var(--properties-hero-overlay-opacity) - .10))
    );
}

.properties-page-hero-content {
  position: relative;
  z-index: 1;
}

.properties-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 6px 13px;
  border: 1px solid rgba(196, 163, 96, .55);
  border-radius: 999px;
  color: #f1cd82;
  background: rgba(12, 28, 45, .42);
  font-weight: 800;
}

.properties-page-hero h1 {
  max-width: 880px;
  margin: 0 0 12px;
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 1.15;
}

.properties-page-hero p {
  max-width: 800px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.95;
}

@media (max-width: 760px) {
  .properties-page-hero {
    min-height: 290px;
    padding: 44px 0;
  }

  .properties-page-hero h1 {
    font-size: clamp(36px, 12vw, 52px);
  }
}


/* =========================================================
   PROPERTIES HERO — REMOVE IMAGE + THEME BACKGROUND
   ========================================================= */

.properties-page-hero.no-background-image {
  color: #0c1c2d;
  background:
    radial-gradient(circle at 15% 20%, rgba(196, 163, 96, .16), transparent 28%),
    linear-gradient(135deg, #f9f9f9 0%, #fff8e1 55%, #fdf4d3 100%);
}

.properties-page-hero.no-background-image .properties-page-hero-media {
  display: none;
}

.properties-page-hero.no-background-image .properties-page-hero-overlay {
  background:
    linear-gradient(
      105deg,
      rgba(255,255,255,.12),
      rgba(196,163,96,.04) 55%,
      rgba(255,255,255,.08)
    );
}

.properties-page-hero.no-background-image .properties-page-hero-eyebrow {
  color: #9d7838;
  border-color: rgba(196,163,96,.56);
  background: rgba(255,248,225,.82);
}

.properties-page-hero.no-background-image h1 {
  color: #0c1c2d;
}

.properties-page-hero.no-background-image p {
  color: #5e6874;
}

html[data-theme="dark"] .properties-page-hero.no-background-image {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(196, 163, 96, .14), transparent 28%),
    linear-gradient(135deg, #0a0b0f 0%, #101820 55%, #151a20 100%);
}

html[data-theme="dark"] .properties-page-hero.no-background-image .properties-page-hero-overlay {
  background:
    linear-gradient(
      105deg,
      rgba(0,0,0,.12),
      rgba(196,163,96,.03) 55%,
      rgba(0,0,0,.08)
    );
}

html[data-theme="dark"] .properties-page-hero.no-background-image .properties-page-hero-eyebrow {
  color: #d5b268;
  border-color: rgba(196,163,96,.52);
  background: rgba(196,163,96,.08);
}

html[data-theme="dark"] .properties-page-hero.no-background-image h1 {
  color: #ffffff;
}

html[data-theme="dark"] .properties-page-hero.no-background-image p {
  color: rgba(255,255,255,.72);
}


/* =========================================================
   COMPACT PROPERTY DESCRIPTION + NOTES
   ========================================================= */

.property-notes-section {
  margin-top: 18px;
}

.property-notes-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 280px), 1fr)
  );
  gap: 14px;
  align-items: stretch;
}

.property-notes-grid.single-note {
  grid-template-columns: minmax(0, 1fr);
}

.property-note-card {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.property-note-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.property-note-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.property-note-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--gold);
  background: var(--gold-soft);
}

.property-note-icon svg {
  width: 19px;
  height: 19px;
  color: currentColor;
}

.property-note-text {
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.9;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.property-note-text.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.property-note-toggle {
  min-height: 35px;
  padding: 7px 13px;
  margin-top: 11px;
  border: 1px solid rgba(196, 163, 96, .36);
  border-radius: 10px;
  color: var(--gold);
  background: var(--gold-soft);
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}

.property-note-toggle:hover {
  border-color: rgba(196, 163, 96, .68);
  transform: translateY(-1px);
}

.property-note-internal {
  border-color: rgba(196, 163, 96, .58);
  background:
    linear-gradient(
      160deg,
      var(--surface),
      color-mix(in srgb, var(--gold-soft) 56%, var(--surface))
    );
}

html[data-theme="dark"] .property-note-card {
  background: #16181d;
}

html[data-theme="dark"] .property-note-internal {
  background:
    linear-gradient(
      160deg,
      #16181d,
      rgba(196, 163, 96, .08)
    );
}

html[data-theme="dark"] .property-note-icon,
html[data-theme="dark"] .property-note-toggle {
  color: #d8b66a;
}

@media (min-width: 1150px) {
  .property-notes-grid.single-note .property-note-card {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .property-notes-section {
    margin-top: 14px;
  }

  .property-notes-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .property-note-card {
    padding: 15px;
    border-radius: 16px;
  }

  .property-note-head h2 {
    font-size: 17px;
  }

  .property-note-text {
    font-size: 13px;
    line-height: 1.85;
  }

  .property-note-text.is-collapsed {
    -webkit-line-clamp: 4;
  }
}


/* Dar Line mobile property gallery refinements - 2026-07-25 */
@media (max-width: 760px) {
  .gallery {
    border-radius: 18px;
  }

  .gallery-main {
    height: min(74vh, 620px);
    min-height: 460px;
    border-radius: 16px 16px 0 0;
  }

  .gallery-image-stage {
    inset: 50px 10px 58px;
    overflow: hidden;
    border-radius: 12px;
    background: #111820;
  }

  .gallery-main .gallery-image-stage img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    filter: none;
  }
}

@media (max-width: 420px) {
  .gallery-main {
    height: min(72vh, 575px);
    min-height: 445px;
  }

  .gallery-image-stage {
    inset: 48px 9px 56px;
    border-radius: 11px;
  }

  .gallery-main .gallery-image-stage img {
    border-radius: 11px;
  }
}
