:root {
  --navy:#142e45;
  --deep:#0b1c2c;
  --blue:#284e6b;
  --gold:#bd975d;
  --paper:#f4f6f8;
  --line:#dce4ea;
  --muted:#667787;
}

* {box-sizing:border-box}

body {
  margin:0;
  background:var(--paper);
  color:var(--navy);
  font:15px/1.6 "Segoe UI",Arial,sans-serif;
}

a {color:inherit;text-decoration:none}
button,input {font:inherit}

a:focus-visible,button:focus-visible,input:focus-visible {
  outline:3px solid var(--gold);
  outline-offset:3px;
}

.top {
  padding:10px 5%;
  background:var(--deep);
  color:#d5e0e8;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
}

.languages {display:flex;gap:15px}

.header {
  background:white;
  border-bottom:1px solid var(--line);
}

.nav {
  max-width:1500px;
  margin:auto;
  padding:18px 4%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}

.brand {
  display:flex;
  gap:12px;
  align-items:center;
}

.logo {
  background:var(--navy);
  color:var(--gold);
  padding:12px;
  font-weight:800;
  border-radius:6px;
}

.brand strong {
  display:block;
  font-size:24px;
  letter-spacing:-.7px;
}

.brand small {
  display:block;
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:1.5px;
  color:var(--muted);
}

.navlinks {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  font-weight:600;
}

.btn,button {
  display:inline-block;
  padding:12px 20px;
  background:var(--navy);
  color:white;
  border:1px solid var(--navy);
  border-radius:5px;
  cursor:pointer;
  font-weight:650;
}

.btn.gold {
  background:var(--gold);
  color:var(--deep);
  border-color:var(--gold);
}

.btn.light {
  background:white;
  color:var(--navy);
  border-color:var(--line);
}

.hero {
  background:
    radial-gradient(ellipse at 90% 15%,#40637c,transparent 55%),
    linear-gradient(120deg,var(--deep),#173a55);
  color:white;
  padding:80px 6%;
}

.hero-grid {
  max-width:1450px;
  margin:auto;
  display:grid;
  grid-template-columns:1.5fr 1fr;
  align-items:center;
  gap:50px;
}

.eyebrow {
  color:var(--gold);
  font-size:12px;
  letter-spacing:2px;
  font-weight:750;
  text-transform:uppercase;
}

h1 {
  font-size:clamp(34px,4vw,58px);
  letter-spacing:-1.4px;
  line-height:1.14;
  margin:14px 0 20px;
}

h2 {margin-top:0;font-size:25px}
h3 {margin:0 0 8px}

.hero p {
  color:#dce6ee;
  font-size:17px;
  max-width:660px;
}

.hero-panel {
  padding:36px;
  background:#ffffff0b;
  border:1px solid #ffffff35;
  border-radius:10px;
}

.global {
  font-size:44px;
  font-weight:800;
  color:var(--gold);
}

.actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.container {
  max-width:1450px;
  margin:auto;
  padding:36px 4%;
}

.cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:18px;
}

.card {
  padding:24px;
  border:1px solid var(--line);
  background:white;
  border-radius:8px;
  box-shadow:0 4px 18px #152b400b;
}

.card p,.muted {color:var(--muted)}

.metric {
  font-size:30px;
  font-weight:750;
  line-height:1.3;
  overflow-wrap:anywhere;
}

.label {
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:11px;
  color:var(--muted);
}

.auth {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  max-width:1050px;
  margin:50px auto;
  padding:0 24px;
}

.auth-intro {
  background:linear-gradient(145deg,var(--deep),var(--blue));
  color:white;
  padding:42px;
  border-radius:8px;
}

.auth-intro h1 {font-size:42px}
.auth-intro p {color:#d5e0e8}

.form {
  background:white;
  padding:32px;
  border:1px solid var(--line);
  border-radius:8px;
}

label {
  display:block;
  font-weight:650;
  margin:14px 0 5px;
}

input {
  width:100%;
  padding:12px;
  border:1px solid #cbd6df;
  border-radius:5px;
  color:var(--navy);
  background:white;
}

.form button {margin-top:20px;width:100%}

.formlinks a {
  text-decoration:underline;
  color:var(--blue);
}

.notice {
  border-left:3px solid var(--gold);
  background:#fffaf0;
  padding:13px 16px;
  margin:18px 0;
  font-size:14px;
}

.dashboard {
  display:grid;
  grid-template-columns:235px 1fr;
  min-height:calc(100vh - 180px);
}

.sidebar {
  padding:28px 18px;
  background:var(--navy);
  color:#edf3f7;
}

.sidebar a {
  display:block;
  padding:12px 14px;
  margin:4px 0;
  border-radius:5px;
}

.sidebar a:hover {background:#ffffff15}
.sidebar button {margin-top:20px;border-color:#ffffff60;width:100%}

.workspace {
  padding:36px;
  min-width:0;
}

.workspace h1 {font-size:36px}

.workspace section {margin:28px 0}

.table {
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:8px;
  background:white;
}

table {width:100%;border-collapse:collapse}
th,td {padding:14px 18px;text-align:left;border-bottom:1px solid var(--line)}
th {background:#edf2f6;font-size:12px}

.profile {max-width:640px}

.footer {
  background:var(--deep);
  color:#bacbd7;
  padding:25px 5%;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:15px;
  font-size:12px;
}

@media(max-width:850px){
  .hero-grid,.auth,.dashboard {grid-template-columns:1fr}
  .workspace {padding:24px}
  .hero {padding:50px 5%}
}

/* HKK WorldEstate MATRIX03 R1 */

.market-page h1 {font-size:38px}

.market-nav {margin:20px 0}

.market-fields {
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
 gap:15px;
 margin:18px 0;
}

.market-page select,.market-page textarea {
 display:block;
 width:100%;
 padding:12px;
 margin:6px 0;
 border:1px solid #cbd6df;
 border-radius:5px;
 background:white;
 color:var(--navy);
 font:inherit;
}

.market-page .card {margin-bottom:18px}

.property-grid {
 display:grid;
 grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
 gap:20px;
}

.property-card {padding:0;overflow:hidden}

.property-card img {
 width:100%;
 height:205px;
 object-fit:cover;
 display:block;
}

.property-placeholder {
 display:grid;
 place-items:center;
 height:165px;
 background:#e9eff4;
 color:var(--muted);
}

.property-content {padding:22px}

.property-price {
 color:var(--navy);
 font-size:26px;
 font-weight:750;
 margin:12px 0;
}

.gallery {
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
 gap:15px;
 margin:20px 0;
}

.gallery img {
 width:100%;
 max-height:430px;
 object-fit:contain;
 background:#edf2f5;
 border-radius:6px;
}

.market-map {
 width:100%;
 display:block;
 border-radius:8px;
}

.market-map a:hover circle {fill:#142e45}

.property-description {
 white-space:pre-wrap;
 overflow-wrap:anywhere;
 margin-bottom:25px;
}

.market-settings {
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
 gap:18px;
}

.media-row {
 display:flex;
 justify-content:space-between;
 align-items:center;
 flex-wrap:wrap;
 gap:10px;
 padding:12px 0;
 border-bottom:1px solid var(--line);
}

.bulk-items {max-height:230px;overflow:auto}

.check {display:flex;align-items:center;gap:12px}
.check input {width:auto}

.market-page dt {font-weight:700}
.market-page dd {overflow-wrap:anywhere;margin:0 0 10px}
/* MATRIX08: existing design system retained */
.site-content{margin-top:24px;margin-bottom:24px}
.site-extra-menu{display:flex;flex-wrap:wrap;gap:8px;padding-top:8px;padding-bottom:8px}
.site-ad-image{width:100%;max-height:300px;object-fit:contain;background:#fff;border-radius:8px}
.site-content details summary,.market-page details summary{cursor:pointer;font-weight:600;padding:10px 0}
.site-content form{margin-top:12px}
.site-content .property-description{white-space:pre-wrap;overflow-wrap:anywhere}
.site-content .cards{margin-bottom:16px}
/* MATRIX08 R2 - Public legal footer */

footer.footer,
footer:has(.site-footer-links){
 background:#0b1c2c;
 color:#dce4ea;
}

footer:has(.site-footer-links){
 display:flex;
 flex-wrap:wrap;
 align-items:center;
}

.site-footer-links{
 display:block;
 flex:1 0 100%;
 width:100%;
 padding:26px 0;
 box-sizing:border-box;
 border-top:1px solid rgba(255,255,255,.16);
 margin-top:18px;
}

.site-footer-columns{
 width:100%;
 max-width:1440px;
 margin:0 auto;
 padding:0 20px;
 box-sizing:border-box;
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:30px;
}

.site-footer-column{
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 gap:11px;
 color:#dce4ea;
}

.site-footer-column strong{
 font-size:15px;
 font-weight:700;
 color:#fff;
 margin-bottom:5px;
}

.site-footer-column a,
.site-footer-column summary{
 color:#dce4ea!important;
 text-decoration:none;
 font-size:14px;
 line-height:1.55;
 cursor:pointer;
}

.site-footer-column a:hover,
.site-footer-column summary:hover{
 color:#e8c994!important;
 text-decoration:underline;
}

.site-footer-column a:focus-visible,
.site-footer-column summary:focus-visible{
 outline:2px solid #e8c994;
 outline-offset:4px;
}

.site-footer-privacy{
 max-width:340px;
}

.site-footer-privacy p{
 font-size:12px;
 line-height:1.6;
 color:#c5d0da;
}

.site-footer-privacy form{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin-top:10px;
}

.site-footer-privacy button{
 background:#284e6b;
 border:1px solid #8ca3b6;
 color:#fff;
 padding:8px 12px;
 border-radius:5px;
 font-size:12px;
 cursor:pointer;
}

.site-footer-fallback{
 padding:24px;
 margin-top:40px;
}

@media(max-width:700px){
 .site-footer-columns{
  grid-template-columns:1fr;
  gap:24px;
 }
}


/* HKK WORLDESTATE MATRIX09A BUSINESS EXPANSION */

.hkk-business-page{
 max-width:1350px;
 margin:24px auto;
 padding:20px;
}

.hkk-business-navigation{
 display:flex;
 flex-wrap:wrap;
 gap:18px;
 padding:12px 0;
 align-items:center;
}

.hkk-business-navigation a{
 color:inherit;
 font-weight:600;
 text-decoration:none;
}

.hkk-business-navigation a:hover{
 text-decoration:underline;
}

.hkk-business-footer{
 display:flex;
 flex-wrap:wrap;
 gap:12px;
 margin-top:12px;
}

.hkk-business-cards{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(265px,1fr));
 gap:20px;
 margin-top:24px;
}

.hkk-business-card,
.hkk-business-panel{
 background:#fff;
 color:#142e45;
 border:1px solid #dce3e9;
 border-radius:12px;
 padding:22px;
 margin-bottom:16px;
 box-shadow:0 3px 12px rgba(20,46,69,.055);
}

.hkk-business-card h2{
 font-size:1.25rem;
 margin:12px 0;
}

.hkk-business-category{
 color:#8b6a36;
 font-weight:700;
 font-size:.86rem;
 letter-spacing:.03em;
}

.hkk-business-price{
 font-size:1.7rem;
 font-weight:750;
 color:#142e45;
 margin:15px 0;
}

.hkk-business-card p{
 white-space:pre-wrap;
 overflow-wrap:anywhere;
 line-height:1.6;
}

.hkk-business-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(235px,1fr));
 gap:16px;
}

.hkk-field{
 display:flex;
 flex-direction:column;
 gap:7px;
 margin:10px 0;
 font-weight:600;
}

.hkk-field input,
.hkk-field select,
.hkk-field textarea{
 width:100%;
 box-sizing:border-box;
 border:1px solid #cbd6df;
 border-radius:6px;
 padding:10px;
 background:#fff;
 color:#142e45;
}

.hkk-business-check{
 display:flex;
 align-items:flex-start;
 gap:9px;
 margin:15px 0;
}

.hkk-business-check input{
 width:auto;
}

.hkk-business-actions{
 display:flex;
 flex-wrap:wrap;
 gap:12px;
 margin-top:20px;
}

.hkk-business-actions button{
 background:#142e45;
 color:#fff;
 border:0;
 border-radius:6px;
 padding:11px 20px;
 cursor:pointer;
}

.hkk-business-table{
 overflow-x:auto;
 margin:20px 0;
}

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

.hkk-business-table th,
.hkk-business-table td{
 border-bottom:1px solid #dce3e9;
 padding:12px;
 text-align:left;
}

.hkk-profile-photo{
 width:100%;
 height:245px;
 object-fit:cover;
 border-radius:9px;
}

.hkk-profile-logo{
 display:block;
 max-width:160px;
 max-height:80px;
 object-fit:contain;
 margin:16px 0;
}

.hkk-admin-photo{
 display:block;
 width:140px;
 height:110px;
 object-fit:contain;
 background:#eef2f5;
 border-radius:6px;
 margin-bottom:10px;
}

.hkk-business-contact{
 display:flex;
 flex-wrap:wrap;
 gap:16px;
 margin-top:20px;
}

.hkk-profile-description{
 white-space:pre-wrap;
 overflow-wrap:anywhere;
}

@media(max-width:600px){
 .hkk-business-page{
  margin:10px auto;
  padding:12px;
 }

 .hkk-business-card,
 .hkk-business-panel{
  padding:16px;
 }
}


/* MATRIX09A R2 - Homepage banner rotation */

.hkk-banner-rotation{
 max-width:1350px;
 margin:22px auto;
 padding:0 20px;
}

.hkk-rotating-banner{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
 align-items:stretch;
 overflow:hidden;
 background:#142e45;
 color:#fff;
 border-radius:12px;
 min-height:220px;
}

.hkk-rotating-banner[hidden]{
 display:none!important;
}

.hkk-rotating-banner img{
 display:block;
 width:100%;
 height:100%;
 max-height:330px;
 object-fit:cover;
}

.hkk-banner-content{
 padding:28px;
 align-self:center;
}

.hkk-banner-content small{
 color:#d5b77f;
 text-transform:uppercase;
 letter-spacing:.08em;
}

.hkk-banner-content h2{
 color:#fff;
 margin:12px 0;
}

.hkk-banner-content p{
 color:#e7edf1;
 white-space:pre-wrap;
 overflow-wrap:anywhere;
}

.hkk-banner-content a{
 display:inline-block;
 padding:10px 18px;
 background:#bd975d;
 color:#142e45;
 border-radius:5px;
 font-weight:700;
 text-decoration:none;
}

.hkk-banner-controls{
 display:flex;
 justify-content:center;
 gap:12px;
 padding:10px;
}

.hkk-banner-controls button{
 min-width:40px;
 min-height:36px;
 border:1px solid #cbd6df;
 border-radius:5px;
 background:#fff;
 color:#142e45;
 cursor:pointer;
}

.hkk-banner-admin-preview{
 display:block;
 width:100%;
 max-width:700px;
 max-height:260px;
 object-fit:contain;
 margin:14px 0;
 background:#eef2f5;
 border-radius:8px;
}

@media(max-width:600px){
 .hkk-banner-rotation{
  padding:0 12px;
 }
 .hkk-banner-content{
  padding:18px;
 }
}
