*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;color:#1f2937;background:#fff}a{text-decoration:none;color:inherit}.topbar{position:sticky;top:0;z-index:10;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:14px 6%;box-shadow:0 2px 18px #0001}.brand{display:flex;gap:10px;align-items:center;font-weight:800;color:#0b2239}.brand img{height:45px}.brand span{letter-spacing:1px}.topbar nav{display:flex;gap:18px;align-items:center}.topbar nav a{font-weight:600;color:#334155}.hero{min-height:560px;background-size:cover;background-position:center;display:flex;align-items:center;padding:6%;color:#fff}.hero.small{min-height:340px}.hero h1{font-size:56px;line-height:1;margin:0 0 18px}.hero p{font-size:22px;max-width:760px}.hero-actions{display:flex;gap:14px;margin-top:26px}.btn{border:1px solid #0b2239;padding:12px 20px;border-radius:14px;font-weight:700;display:inline-block;background:#fff;color:#0b2239;cursor:pointer}.btn.primary{background:#16a34a;color:#fff;border-color:#16a34a}.section{padding:70px 6%}.section h2{font-size:34px}.muted{background:#f8fafc}.narrow{max-width:980px;margin:auto}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}.card,.admin-card,.property-card{background:#fff;border-radius:22px;box-shadow:0 12px 35px #00000012;padding:24px;border:1px solid #e5e7eb}.admin-card:hover,.property-card:hover{transform:translateY(-4px);transition:.2s}.property-card{padding:0;overflow:hidden}.property-card img{width:100%;height:210px;object-fit:cover;background:#e5e7eb}.property-card div{padding:20px}.property-card.large img{height:250px}.page-title{padding:70px 6%;background:#0b2239;color:#fff}.page-title h1{font-size:42px;margin:0 0 12px}.details-hero{display:grid;grid-template-columns:1fr 1fr;gap:36px;padding:60px 6%;align-items:center}.details-hero img{width:100%;border-radius:26px;box-shadow:0 20px 50px #0002}.facts{display:flex;flex-wrap:wrap;gap:10px}.facts span{background:#ecfdf5;color:#166534;border-radius:999px;padding:9px 14px;font-weight:700}.facts.vertical{display:grid;gap:8px}.details{display:grid;grid-template-columns:1.2fr .8fr;gap:35px}.main-photo{width:100%;height:520px;object-fit:cover;border-radius:24px}.thumbs{display:flex;gap:12px;margin-top:12px;overflow:auto}.thumbs img{width:120px;height:90px;object-fit:cover;border-radius:12px;cursor:pointer}.detail-panel{background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:28px;box-shadow:0 12px 35px #00000012}.login-wrap{min-height:70vh;display:grid;place-items:center;background:#f8fafc}.login-card{width:min(420px,92vw);background:#fff;border-radius:24px;padding:32px;box-shadow:0 18px 55px #0002;display:grid;gap:14px}.login-card input,.form-grid input,.form-grid select,.form-grid textarea,.filter select{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:12px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.form-grid label{font-weight:700}.form-grid textarea{min-height:120px}.form-grid .wide{grid-column:1/-1}.check{display:flex;align-items:center;gap:10px}.check input{width:auto}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden}th,td{padding:14px;border-bottom:1px solid #e5e7eb;text-align:left}th{background:#f1f5f9}.mini{width:85px;height:60px;object-fit:cover;border-radius:10px;background:#e5e7eb}.inline{display:inline}.inline button{border:0;background:transparent;color:#dc2626;cursor:pointer}.filter{display:flex;gap:10px;margin-bottom:20px;max-width:520px}.alert{background:#fee2e2;color:#991b1b;border-radius:10px;padding:10px}.hint{color:#64748b;font-size:13px}.footer{background:#020617;color:#cbd5e1;display:flex;justify-content:space-between;gap:20px;padding:35px 6%}@media(max-width:800px){.topbar{display:block}.topbar nav{flex-wrap:wrap;margin-top:12px}.hero h1{font-size:38px}.details,.details-hero{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.footer{display:block}.main-photo{height:330px}}
.hero-modern{display:grid;grid-template-columns:minmax(0,1.1fr) 380px;gap:36px;align-items:center}.hero-copy{max-width:850px}.eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:2px;font-weight:900;color:#86efac;margin:0 0 12px}.eyebrow.dark{color:#16a34a}.hero-panel{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.25);box-shadow:0 24px 70px #0004;backdrop-filter:blur(10px);border-radius:28px;padding:28px;color:#fff}.hero-panel h3{font-size:26px;margin:0 0 14px}.btn.glass{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.45)}.stats-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:0;background:#0b2239;color:#fff;margin-top:-1px}.stats-strip div{padding:28px 6%;border-right:1px solid rgba(255,255,255,.12)}.stats-strip b{display:block;font-size:20px}.stats-strip span{color:#cbd5e1}.intro-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:start}.lead{font-size:18px;line-height:1.8;color:#475569}.mini-cards{grid-template-columns:1fr}.split-title{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.property-grid{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}.property-card.premium{position:relative;border:0;box-shadow:0 18px 50px #00000018}.property-card.premium img{height:240px}.property-card.premium.large img{height:290px}.badge{display:inline-block;background:#dcfce7;color:#166534;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:900;margin-bottom:10px}.cta-band{margin:40px 6% 80px;border-radius:32px;padding:50px;background:linear-gradient(135deg,#0b2239,#166534);color:#fff;text-align:center;box-shadow:0 22px 70px #0002}.cta-band h2{font-size:36px;margin:0 0 12px}.property-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;padding-bottom:20px}.tab-card{border-radius:28px;background:#fff;box-shadow:0 18px 50px #00000012;border:1px solid #e5e7eb;padding:30px}.tab-card h3{font-size:26px;margin-top:0}.tab-card a{font-weight:900;color:#16a34a}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px}.admin-card.accent span{font-size:34px}.admin-card.accent h3{margin-bottom:6px}.filter input{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:12px}
@media(max-width:900px){.hero-modern,.intro-grid,.property-tabs{grid-template-columns:1fr}.stats-strip{grid-template-columns:1fr}.split-title{display:block}.hero-panel{max-width:100%}}

/* First-generation inspired public layout refresh */
.container{max-width:1180px;margin:0 auto;width:100%}.firstgen-hero{padding:0 6%;background-size:cover;background-position:center}.hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) 360px;gap:42px;align-items:center;width:100%}.hero-grid.single{grid-template-columns:1fr}.firstgen-hero .hero-copy h1{font-size:58px;letter-spacing:-1px;line-height:1.02}.firstgen-hero .hero-copy p{font-size:20px;line-height:1.65;color:#e2e8f0}.firstgen-card{background:#fff;color:#0f172a;border-radius:28px;padding:24px;box-shadow:0 24px 65px rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.3)}.firstgen-card img{width:100%;max-height:150px;object-fit:contain;margin-bottom:16px}.firstgen-card h3{font-size:26px;margin:0 0 8px}.firstgen-card p{color:#475569;font-size:16px;margin:0 0 16px}.firstgen-card a{font-weight:900;color:#16a34a}.firstgen-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px}.firstgen-stats div{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:18px;padding:16px}.firstgen-stats strong{display:block;color:#fff;font-size:18px}.firstgen-stats span{display:block;color:#cbd5e1;font-size:13px;margin-top:4px}.firstgen-split{display:grid;grid-template-columns:.95fr 1.05fr;gap:40px;align-items:center}.firstgen-split h2{font-size:40px;line-height:1.15;margin:8px 0}.firstgen-split p{font-size:18px;line-height:1.8;color:#475569}.section-title{text-align:center;margin-bottom:34px}.section-title.left{text-align:left;max-width:850px}.section-title h2{margin:8px 0 10px}.section-title p{font-size:18px;line-height:1.7;color:#475569}.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}.cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}.category-choice .card{min-height:230px}.category-card{position:relative;overflow:hidden;border:0;color:#0f172a}.category-card:before{content:"";position:absolute;inset:0 0 auto 0;height:8px}.category-card.green:before{background:#16a34a}.category-card.blue:before{background:#2563eb}.category-card span{display:inline-block;text-transform:uppercase;letter-spacing:1.5px;font-weight:900;font-size:12px;color:#64748b;margin-bottom:12px}.category-card h3{font-size:28px;margin:0 0 12px}.category-card p{font-size:16px;line-height:1.7;color:#475569}.service-card h3{font-size:24px}.service-card p{line-height:1.7;color:#475569}.firstgen-property{display:block;background:#fff;border-radius:24px;box-shadow:0 18px 50px rgba(15,23,42,.12);overflow:hidden;border:1px solid #e5e7eb;transition:.2s}.firstgen-property:hover{transform:translateY(-5px);box-shadow:0 24px 65px rgba(15,23,42,.18)}.firstgen-property img{width:100%;height:235px;object-fit:cover;background:#e5e7eb}.firstgen-property.large img{height:290px}.firstgen-property .property-body{padding:24px}.firstgen-property span{display:inline-block;font-size:12px;text-transform:uppercase;letter-spacing:1px;font-weight:900;border-radius:999px;padding:7px 12px;margin-bottom:12px}.firstgen-property.development span{background:#dcfce7;color:#166534}.firstgen-property.oneoff span{background:#dbeafe;color:#1e40af}.firstgen-property h3{font-size:25px;margin:0 0 10px;color:#0f172a}.firstgen-property p{color:#475569;line-height:1.5;margin:6px 0}.firstgen-property b{display:block;margin-top:12px;color:#0f172a;font-size:18px}.cta{padding:40px 6% 80px}.cta-box{background:linear-gradient(135deg,#0b2239,#166534);color:#fff;border-radius:32px;text-align:center;padding:54px 30px;box-shadow:0 22px 70px rgba(0,0,0,.18)}.cta-box h2{font-size:38px;margin:0 0 12px}.cta-box p{font-size:18px;color:#e2e8f0;margin-bottom:24px}.property-navigation{padding-bottom:30px}.split-title h2{font-size:34px;margin:8px 0}.split-title p{color:#475569;line-height:1.6}
@media(max-width:900px){.hero-grid,.firstgen-split,.cards.two,.cards.three{grid-template-columns:1fr}.firstgen-hero .hero-copy h1{font-size:40px}.firstgen-stats{grid-template-columns:1fr}.firstgen-card{max-width:420px}.cards.three{grid-template-columns:1fr}.cta-box h2{font-size:30px}}


/* Neater public branding adjustments */
.brand img{height:52px;width:auto;object-fit:contain}.brand span{font-size:17px}.firstgen-card{background:rgba(255,255,255,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 18px 55px rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.55)}.firstgen-card img{max-height:125px;max-width:220px;margin:0 auto 18px;display:block}.firstgen-stats div{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.18)}.hero .hero-copy{background:rgba(2,6,23,.18);border:1px solid rgba(255,255,255,.12);border-radius:30px;padding:28px;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}@media(max-width:900px){.hero .hero-copy{padding:20px}.brand img{height:44px}}

/* Site gallery and interactive plot map */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.gallery-grid img{width:100%;height:210px;object-fit:cover;border-radius:20px;box-shadow:0 12px 34px rgba(0,0,0,.12)}
.map-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.hint{color:#64748b;font-size:.95rem}.empty-state{padding:32px;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;color:#64748b;text-align:center}
.plot-config-viewport{position:relative;width:100%;height:620px;overflow:auto;border-radius:22px;border:1px solid #dbe3ea;background:#f8fafc}.plot-config-viewport.public{height:680px}.plot-map-canvas{position:relative;display:block;width:1200px;max-width:100%;line-height:0;transition:transform .15s ease}.plot-map-canvas img{display:block;width:100%;height:auto}.plot-marker{position:absolute;z-index:5;transform:translate(-50%,-50%);min-width:42px;height:42px;border-radius:999px;border:3px solid #fff;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:800;font-size:.78rem;line-height:1;box-shadow:0 10px 24px rgba(0,0,0,.25);cursor:pointer;background:#218838;color:#fff}.plot-marker.reserved{background:#f59e0b}.plot-marker.sold{background:#dc2626}.plot-marker.admin-marker{cursor:grab}.plot-marker.admin-marker:active{cursor:grabbing}.legend{display:flex;gap:20px;flex-wrap:wrap;margin-top:14px}.legend span{display:flex;align-items:center;gap:8px}.dot{width:14px;height:14px;border-radius:999px;display:inline-block}.dot.available{background:#218838}.dot.reserved{background:#f59e0b}.dot.sold{background:#dc2626}.public-map-wrap{background:#fff;border-radius:24px;padding:18px;box-shadow:0 16px 44px rgba(0,0,0,.12)}
.form-stack{display:grid;gap:12px}.form-stack input,.form-stack textarea,.form-grid input,.admin-table input,.admin-table select{padding:11px 12px;border:1px solid #cbd5e1;border-radius:10px}.form-stack textarea{min-height:110px}.success-card{background:#fff;border-radius:24px;padding:38px;box-shadow:0 16px 44px rgba(0,0,0,.12)}.narrow{max-width:800px;margin:auto}.btn-small{padding:8px 12px;border-radius:10px;border:0;background:#17324d;color:#fff}.btn-danger{padding:9px 14px;border:0;border-radius:10px;background:#dc2626;color:#fff}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.inline-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.site-diagram-render{display:block;width:100%;height:auto}.plot-map-canvas canvas.site-diagram-render{display:block;width:100%;height:auto;background:#fff}.muted{color:#64748b;font-size:.9em}.empty-state{position:relative;z-index:3}

/* Polished header and added public content pages */
.polished-topbar{background:rgba(255,255,255,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid #e5e7eb;box-shadow:0 10px 34px rgba(15,23,42,.08)}
.polished-brand{gap:12px}.brand-logo-wrap{width:58px;height:58px;border-radius:18px;background:#fff;display:grid;place-items:center;box-shadow:0 10px 28px rgba(15,23,42,.12);overflow:hidden;border:1px solid #e5e7eb}.brand-logo-wrap img{max-width:50px;max-height:50px;object-fit:contain}.brand-wordmark{font-size:20px!important;text-transform:capitalize;letter-spacing:.2px;color:#0b2239;font-weight:900}.topbar nav a{padding:9px 10px;border-radius:999px}.topbar nav a:hover{background:#ecfdf5;color:#166534}.modern-title{background:linear-gradient(135deg,#0b2239,#174263)}.site-jump-actions{flex-wrap:wrap}.site-jump-actions .btn{min-width:170px;text-align:center}html{scroll-behavior:smooth}.video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:28px}.video-card,.news-card,.title-status-card{background:#fff;border:1px solid #e5e7eb;border-radius:26px;overflow:hidden;box-shadow:0 18px 50px rgba(15,23,42,.12);transition:.2s}.video-card:hover,.news-card:hover,.title-status-card:hover{transform:translateY(-4px);box-shadow:0 24px 66px rgba(15,23,42,.18)}.video-frame video{display:block;width:100%;height:260px;object-fit:cover;background:#0f172a}.video-body,.news-card div,.title-status-card div{padding:24px}.video-body span,.news-card span,.title-status-card span{display:inline-block;text-transform:uppercase;letter-spacing:1px;font-size:12px;font-weight:900;color:#16a34a;margin-bottom:9px}.video-body h3,.news-card h3,.title-status-card h3{font-size:24px;margin:0 0 10px;color:#0f172a}.video-body p,.news-card p,.title-status-card p{color:#475569;line-height:1.65}.news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:26px}.news-card{display:block;color:inherit}.news-card img{width:100%;height:230px;object-fit:cover;background:#e5e7eb}.title-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:26px}.title-status-card{display:grid;grid-template-columns:150px 1fr}.title-status-card img{width:150px;height:100%;object-fit:cover;background:#e5e7eb}.title-status-card.done{border-left:8px solid #16a34a}.title-status-card.pending{border-left:8px solid #f59e0b}.title-status-card.pending span{color:#b45309}.btn-outline{border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:10px 14px;cursor:pointer;font-weight:800}.lead{font-size:18px;line-height:1.7;color:#475569}.firstgen-hero .hero-copy{background:rgba(2,6,23,.10);border-color:rgba(255,255,255,.10)}
@media(max-width:1000px){.polished-topbar{position:relative}.topbar nav{gap:8px}.brand-wordmark{font-size:17px!important}.brand-logo-wrap{width:48px;height:48px}.brand-logo-wrap img{max-width:42px;max-height:42px}}
@media(max-width:700px){.title-status-card{grid-template-columns:1fr}.title-status-card img{width:100%;height:220px}.video-frame video{height:220px}}

/* Standard Appex Malo logo integration */
.polished-topbar{
  padding:12px 5.5%;
  gap:22px;
  background:rgba(255,255,255,.94);
}
.polished-brand{
  min-width:310px;
  align-items:center;
}
.brand-logo-wrap{
  width:86px;
  height:76px;
  border-radius:20px;
  padding:6px;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  box-shadow:0 12px 30px rgba(15,23,42,.12);
}
.brand-logo-wrap img{
  max-width:76px;
  max-height:66px;
  object-fit:contain;
}
.brand-wordmark{
  font-size:22px!important;
  line-height:1.1;
  max-width:245px;
}
.firstgen-card img{
  max-height:165px;
  max-width:290px;
  filter:drop-shadow(0 10px 18px rgba(15,23,42,.12));
}
.hero .hero-copy{
  background:rgba(2,6,23,.14);
  border:1px solid rgba(255,255,255,.15);
}
@media(max-width:1100px){
  .polished-brand{min-width:260px}.brand-wordmark{font-size:18px!important;max-width:190px}.topbar nav{gap:6px}.topbar nav a{padding:8px 7px;font-size:14px}
}
@media(max-width:700px){
  .polished-brand{min-width:0}.brand-logo-wrap{width:70px;height:64px}.brand-logo-wrap img{max-width:60px;max-height:54px}.brand-wordmark{font-size:16px!important;max-width:160px}
  .firstgen-card img{max-width:230px;max-height:130px}
}

.split-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.admin-filter-bar{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;margin:1.25rem 0 1.5rem;padding:1rem;background:rgba(255,255,255,.78);border:1px solid rgba(15,23,42,.08);border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.admin-filter-bar select{min-width:190px;padding:.7rem .8rem;border:1px solid rgba(15,23,42,.14);border-radius:12px;background:#fff}
.alert-success{margin:1rem 0;padding:1rem 1.2rem;border-radius:16px;background:#eaf7ee;color:#17622b;border:1px solid #bfe8ca;font-weight:700}
.empty-state{padding:2rem;border-radius:20px;background:#fff;border:1px solid rgba(15,23,42,.08);color:#64748b;text-align:center}
.reservation-site-group{margin:1.5rem 0 2rem;background:rgba(255,255,255,.72);border:1px solid rgba(15,23,42,.08);border-radius:22px;box-shadow:0 16px 45px rgba(15,23,42,.08);overflow:hidden}
.reservation-site-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;background:linear-gradient(135deg,rgba(22,101,52,.12),rgba(15,23,42,.04));border-bottom:1px solid rgba(15,23,42,.08)}
.reservation-site-heading h2{margin:0;font-size:1.25rem;color:#0f2a1a}
.reservation-site-heading span{font-size:.9rem;color:#475569;font-weight:700}
.table-wrap{overflow-x:auto}
.status-pill{display:inline-flex;align-items:center;padding:.35rem .7rem;border-radius:999px;font-size:.82rem;font-weight:800;white-space:nowrap}
.status-pending{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.status-approved{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}
.status-cancelled{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.btn-small.secondary{background:#e2e8f0;color:#0f172a;text-decoration:none}


/* Final logo + clear home background update */
.firstgen-hero{
  position:relative;
  background-size:cover;
  background-position:center;
}
.firstgen-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.10),rgba(255,255,255,.02));
  pointer-events:none;
}
.firstgen-hero > .container{position:relative;z-index:1;}
.hero .hero-copy,
.firstgen-hero .hero-copy{
  background:rgba(3,7,18,.30)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:30px;
  padding:30px;
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  box-shadow:0 20px 70px rgba(2,6,23,.16);
}
.firstgen-card{
  background:rgba(255,255,255,.78)!important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.polished-topbar{
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.brand-logo-wrap{
  width:74px!important;
  height:68px!important;
  padding:4px!important;
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  border-radius:12px!important;
}
.brand-logo-wrap img{
  max-width:72px!important;
  max-height:66px!important;
  object-fit:contain!important;
}
.brand-wordmark{
  font-weight:900!important;
  color:#0b2239!important;
  letter-spacing:.1px!important;
}
.firstgen-card img{
  max-width:240px!important;
  max-height:190px!important;
  object-fit:contain!important;
}
.footer{background:#081829;color:#dbe7f3;padding:35px 6%;display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
@media(max-width:900px){
  .hero .hero-copy,.firstgen-hero .hero-copy{padding:22px!important;background:rgba(3,7,18,.42)!important;}
  .brand-logo-wrap{width:62px!important;height:58px!important;}
  .brand-logo-wrap img{max-width:60px!important;max-height:56px!important;}
}
.alert.success{background:#eaf7ee;color:#17622b;border:1px solid #bfe8ca;margin-bottom:18px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;grid-column:1/-1}.preview-img{width:100%;max-height:260px;object-fit:cover;border-radius:18px;border:1px solid #e5e7eb}.content-card{font-size:18px;line-height:1.75}.content-card .btn{margin-top:18px}@media(max-width:800px){.two-col{grid-template-columns:1fr}}

/* Property search panels */
.property-search-panel{
  display:flex;
  align-items:flex-end;
  gap:14px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 14px 40px rgba(15,23,42,.08);
  border-radius:22px;
  padding:18px;
  margin:22px 0 14px;
}
.property-search-panel.compact{margin:16px 0 12px;}
.search-input-wrap{flex:1;display:flex;flex-direction:column;gap:7px;}
.search-input-wrap label{font-weight:800;color:#0b2239;font-size:14px;}
.search-input-wrap input, .search-input-wrap select{
  width:100%;
  border:1px solid #d7dee8;
  background:#fff;
  border-radius:14px;
  padding:14px 16px;
  font-size:15px;
  outline:none;
}
.search-input-wrap input:focus, .search-input-wrap select:focus{border-color:#2f7d32;box-shadow:0 0 0 4px rgba(47,125,50,.12);}
.search-result-note{color:#475569;margin:6px 0 18px;font-size:15px;}
.search-result-note strong{color:#0b2239;}
@media(max-width:760px){.property-search-panel{display:block}.property-search-panel .btn{margin-top:10px;width:100%;text-align:center}}

.search-input-wrap datalist{font-size:15px;}
.property-search-panel .btn{white-space:nowrap;}
@media(max-width:760px){.property-search-panel .btn + .btn{margin-left:0}}
.whatsapp-float{position:fixed;right:22px;bottom:22px;z-index:999;background:#25D366;color:#fff;padding:13px 18px;border-radius:999px;text-decoration:none;font-weight:800;box-shadow:0 12px 28px rgba(0,0,0,.25)}
.media-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:2000;align-items:center;justify-content:center;padding:30px}.media-modal.show{display:flex}.media-modal button{position:absolute;right:24px;top:18px;font-size:32px;background:#fff;border:0;border-radius:50%;width:44px;height:44px}.media-modal img,.media-modal video{max-width:92vw;max-height:86vh;border-radius:18px;background:#000}.content-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px;max-width:1180px;margin:30px auto;padding:0 20px}.gallery-open{cursor:pointer}.gallery-open:hover{transform:translateY(-3px)}

/* Reorganized main menu - keeps original sizing while reducing clutter */
.organized-topbar{gap:18px;align-items:center;}
.organized-nav{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;}
.organized-nav > a,
.nav-more-btn{font-weight:600;color:#334155;font-size:14px;line-height:1;border:0;background:transparent;padding:9px 10px;border-radius:999px;cursor:pointer;font-family:inherit;white-space:nowrap;}
.organized-nav > a:hover,
.nav-more:hover .nav-more-btn,
.nav-more-btn:hover{background:#ecfdf5;color:#166534;}
.nav-more{position:relative;display:inline-flex;align-items:center;}
.nav-dropdown{position:absolute;right:0;top:calc(100% + 12px);min-width:220px;background:rgba(255,255,255,.98);border:1px solid rgba(15,23,42,.10);box-shadow:0 20px 55px rgba(15,23,42,.16);border-radius:18px;padding:10px;display:none;z-index:100;}
.nav-more:hover .nav-dropdown,.nav-more:focus-within .nav-dropdown{display:grid;gap:4px;}
.nav-dropdown a{display:block;padding:11px 12px;border-radius:12px;color:#334155;font-weight:600;font-size:14px;white-space:nowrap;}
.nav-dropdown a:hover{background:#f0fdf4;color:#166534;}
.admin-link{background:#0b2239!important;color:#fff!important;border:1px solid rgba(255,255,255,.1);}
.admin-link:hover{background:#166534!important;color:#fff!important;}
.muted-admin{background:transparent!important;color:#64748b!important;border:1px solid #cbd5e1;}
.muted-admin:hover{background:#f8fafc!important;color:#0b2239!important;}
.menu-toggle{display:none;border:1px solid #d7dee8;background:#fff;color:#0b2239;border-radius:14px;font-size:22px;padding:8px 12px;cursor:pointer;}
@media(max-width:1180px){
  .polished-brand{min-width:230px!important;}
  .brand-wordmark{font-size:17px!important;max-width:180px!important;}
  .organized-nav{gap:5px;}
  .organized-nav > a,.nav-more-btn{font-size:13.5px;padding:8px 7px;}
}
@media(max-width:980px){
  .organized-topbar{display:flex!important;justify-content:space-between!important;align-items:center!important;position:relative;}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center;}
  .organized-nav{display:none!important;position:absolute;left:5%;right:5%;top:calc(100% + 10px);background:rgba(255,255,255,.98);border:1px solid rgba(15,23,42,.10);box-shadow:0 20px 55px rgba(15,23,42,.16);border-radius:22px;padding:14px;z-index:200;flex-direction:column;align-items:stretch;}
  body.menu-open .organized-nav{display:flex!important;}
  .organized-nav > a,.nav-more-btn{width:100%;text-align:left;padding:13px 14px;font-size:15px;border-radius:14px;}
  .nav-more{display:block;width:100%;}
  .nav-dropdown{position:static;display:grid;box-shadow:none;border:0;background:#f8fafc;margin:6px 0 0 0;min-width:0;border-radius:16px;}
  .nav-dropdown a{font-size:14px;padding:11px 14px;}
  .admin-link{text-align:center!important;}
}

/* Shared polished page introduction blocks */
.polished-intro{
  max-width:1160px;
  margin:34px auto 26px;
  border-radius:34px;
  padding:42px 46px;
  min-height:auto;
  background:linear-gradient(135deg,rgba(11,34,57,.98),rgba(23,66,99,.94));
  box-shadow:0 26px 80px rgba(15,23,42,.18);
  overflow:hidden;
  position:relative;
}
.polished-intro:after{
  content:"";
  position:absolute;
  inset:auto -10% -60% 25%;
  height:180px;
  background:rgba(255,255,255,.08);
  transform:rotate(-12deg);
  border-radius:999px;
}
.polished-intro > *{position:relative;z-index:1;}
.eyebrow{
  display:inline-block;
  color:#86efac;
  text-transform:uppercase;
  letter-spacing:3px;
  font-size:13px;
  font-weight:900;
  margin-bottom:10px;
}
.polished-intro h1{font-size:clamp(42px,5vw,70px);line-height:1.02;margin:0 0 16px;max-width:900px;}
.polished-intro p{font-size:clamp(18px,2vw,24px);line-height:1.65;max-width:880px;margin:0;color:rgba(255,255,255,.88);}
.section-heading-row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px;}
.section-heading-row h2{margin:0 0 6px;font-size:34px;color:#0b2239;}

/* Click-through media viewer with next/previous navigation */
.media-thumb{position:relative;cursor:pointer;overflow:hidden;}
.media-thumb video,.media-thumb img{transition:transform .25s ease;}
.media-gallery-item:hover .media-thumb video,.media-gallery-item:hover .media-thumb img,
.gallery-grid .media-gallery-item:hover{transform:scale(1.025);}
.play-badge{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:58px;height:58px;border-radius:999px;background:rgba(22,163,74,.94);color:#fff;
  display:grid;place-items:center;font-size:24px;font-weight:900;box-shadow:0 14px 36px rgba(0,0,0,.28);
}
.play-badge.large{width:70px;height:70px;font-size:30px;}
.media-type-label{display:inline-block;text-transform:uppercase;letter-spacing:1.5px;font-size:11px;font-weight:900;color:#16a34a;margin-bottom:8px;}
.gallery-grid img.media-gallery-item{cursor:pointer;transition:transform .25s ease, box-shadow .25s ease;}
.gallery-grid img.media-gallery-item:hover{box-shadow:0 18px 50px rgba(15,23,42,.22);}
.media-viewer{display:none;position:fixed;inset:0;background:rgba(2,6,23,.90);z-index:4000;align-items:center;justify-content:center;padding:28px;}
.media-viewer.show{display:flex;}
body.media-viewer-open{overflow:hidden;}
.media-stage{width:min(1120px,92vw);display:grid;gap:14px;justify-items:center;}
.media-box{width:100%;display:grid;place-items:center;}
.media-box img,.media-box video{max-width:100%;max-height:78vh;border-radius:22px;background:#000;box-shadow:0 30px 90px rgba(0,0,0,.5);}
.media-caption{width:100%;display:flex;justify-content:space-between;gap:18px;align-items:center;color:#fff;font-size:15px;}
.media-caption strong{font-size:18px;}
.media-close{position:absolute;right:26px;top:22px;width:46px;height:46px;border-radius:999px;border:0;background:#fff;color:#0b2239;font-size:32px;line-height:1;cursor:pointer;z-index:2;}
.media-nav{position:absolute;top:50%;transform:translateY(-50%);width:54px;height:72px;border-radius:18px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.14);color:#fff;font-size:54px;line-height:.8;cursor:pointer;z-index:2;backdrop-filter:blur(8px);}
.media-prev{left:24px;}.media-next{right:24px;}
.media-nav:hover{background:rgba(22,163,74,.86);}
.resource-card .card-body{min-height:220px;display:flex;flex-direction:column;align-items:flex-start;}
.resource-card .btn-primary{margin-top:auto;}
.team-card .card-image img{object-fit:cover;}
@media(max-width:760px){
  .polished-intro{margin:20px 14px;padding:30px 24px;border-radius:26px;}
  .media-nav{width:44px;height:58px;font-size:42px;top:auto;bottom:24px;transform:none;}
  .media-prev{left:24px}.media-next{right:24px}
  .media-caption{display:block;text-align:center;}
}

/* Compact polished intro sections for better space management */
.polished-intro{
  max-width:1100px;
  margin:22px auto 18px;
  border-radius:26px;
  padding:26px 34px;
  box-shadow:0 18px 48px rgba(15,23,42,.14);
}
.polished-intro:after{
  inset:auto -8% -70% 32%;
  height:120px;
  opacity:.75;
}
.polished-intro .eyebrow,
.polished-intro > .eyebrow{
  font-size:11px;
  letter-spacing:2.2px;
  margin-bottom:7px;
}
.polished-intro h1{
  font-size:clamp(30px,3.5vw,48px);
  line-height:1.04;
  margin:0 0 10px;
  max-width:820px;
}
.polished-intro p{
  font-size:clamp(15px,1.4vw,18px);
  line-height:1.5;
  max-width:820px;
}
.page-title.modern-title:not(.polished-intro){
  padding:38px 6%;
}
.page-title.modern-title:not(.polished-intro) h1{
  font-size:clamp(30px,3.3vw,46px);
  margin-bottom:9px;
}
.page-title.modern-title:not(.polished-intro) p{
  font-size:clamp(15px,1.4vw,18px);
  line-height:1.5;
  max-width:840px;
}
@media(max-width:760px){
  .polished-intro{
    margin:16px 14px 14px;
    padding:22px 20px;
    border-radius:22px;
  }
  .polished-intro h1{font-size:30px;}
  .polished-intro p{font-size:15px;}
  .page-title.modern-title:not(.polished-intro){padding:30px 6%;}
}

/* Final polish and mobile functionality fixes */
.home-slide-card{position:relative;overflow:hidden;min-height:430px;display:block!important;padding:0!important}
.home-slide{position:absolute;inset:0;opacity:0;transform:translateX(18px);transition:opacity .55s ease,transform .55s ease;padding:34px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.home-slide.active{opacity:1;transform:translateX(0);z-index:1}
.home-slide img,.home-slide video{width:100%;max-height:230px;object-fit:contain;border-radius:22px;margin-bottom:18px;background:rgba(255,255,255,.35)}
.home-slide video{object-fit:cover}
.home-slide h3{font-size:28px;margin:4px 0 10px;color:#0b2239}.home-slide p{color:#475569;line-height:1.55}.home-slide a{color:#16a34a;font-weight:900;text-decoration:none}.hidden-gallery-item{display:none!important}.manage-details{border:1px solid #e5e7eb;border-radius:18px;padding:14px 16px;margin:14px 0;background:#fff}.manage-details summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;align-items:center}.compact-form{margin-top:14px}.thumb-row,.existing{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.thumb-box{border:1px solid #e5e7eb;border-radius:14px;padding:8px;background:#f8fafc;display:flex;flex-direction:column;gap:8px;align-items:center}.thumb-box img,.mini{width:120px;height:86px;object-fit:cover;border-radius:10px}.plot-marker{min-width:34px;min-height:34px;padding:6px 9px;font-size:13px;border:2px solid #fff;box-shadow:0 8px 20px rgba(0,0,0,.25);touch-action:manipulation}.public .plot-marker{min-width:42px;min-height:42px;font-size:14px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center}.plot-config-viewport{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.plot-map-canvas{position:relative}.site-diagram-render{width:100%;height:auto;display:block}.alert{border-radius:14px;padding:12px 16px;margin:12px 0;background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.alert.success{background:#ecfdf5;color:#166534;border-color:#bbf7d0}.media-nav{position:absolute!important;top:50%!important;transform:translateY(-50%);z-index:3}.media-prev{left:22px!important;right:auto!important}.media-next{right:22px!important}.media-stage{max-width:92vw;max-height:90vh}.media-caption{color:#fff;display:flex;justify-content:space-between;gap:18px;margin-top:10px}.media-box img,.media-box video{max-width:92vw;max-height:82vh;border-radius:18px}.gallery-grid img,.gallery-open,.media-gallery-item{cursor:pointer}.compact-intro{padding:34px 44px!important;margin-top:28px!important;margin-bottom:24px!important}.compact-intro h1{font-size:clamp(32px,5vw,54px)!important;margin:6px 0 10px!important}.compact-intro p{max-width:760px!important;font-size:18px!important;line-height:1.55!important}
@media(max-width:900px){
  .topbar{padding:10px 16px!important;align-items:center}.menu-toggle{display:block}.main-nav{display:none!important;position:absolute;top:100%;left:12px;right:12px;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:12px;box-shadow:0 20px 50px rgba(15,23,42,.14);z-index:50;flex-direction:column!important;align-items:stretch!important}.menu-open .main-nav{display:flex!important}.nav-more{display:block}.nav-dropdown{position:static!important;display:grid!important;box-shadow:none!important;border:0!important;padding:4px 0 0 12px!important;background:transparent!important}.hero-grid{grid-template-columns:1fr!important;gap:18px!important}.hero .hero-copy,.firstgen-hero .hero-copy{padding:22px!important}.hero-copy h1{font-size:clamp(38px,12vw,62px)!important}.home-slide-card{min-height:360px}.home-slide{padding:24px}.content-grid,.property-grid,.cards,.cards.two,.cards.three{grid-template-columns:1fr!important}.details-hero{grid-template-columns:1fr!important}.property-search-panel{display:grid!important;grid-template-columns:1fr!important}.filter{display:grid;gap:10px}.filter input,.filter .btn{width:100%}.title-status-grid,.news-grid{grid-template-columns:1fr!important}.public .plot-marker{min-width:48px;min-height:48px;font-size:13px}.map-toolbar{display:flex;flex-wrap:wrap;gap:8px}.map-toolbar input[type=range]{min-width:140px;flex:1}.admin-table{min-width:760px}.table-wrap{overflow-x:auto}.compact-intro{padding:26px 22px!important;margin-left:14px!important;margin-right:14px!important}.brand-wordmark{font-size:17px!important}.brand-logo-wrap{width:60px!important;height:56px!important}.brand-logo-wrap img{max-width:58px!important;max-height:54px!important}
}
@media(max-width:520px){.home-slide-card{min-height:320px}.home-slide img,.home-slide video{max-height:160px}.hero-actions{display:grid!important;grid-template-columns:1fr!important}.btn,.btn-primary,.btn-outline{width:100%;text-align:center}.media-box img,.media-box video{max-width:96vw;max-height:76vh}.media-prev{left:8px!important}.media-next{right:8px!important}.media-modal{padding:12px}.public .plot-marker{min-width:44px;min-height:44px;font-size:12px}.plot-config-viewport.public{max-height:65vh}.footer{padding-bottom:90px}}

/* Homepage right-card slideshow refinements */
.home-slide-card .home-slide-dots{position:absolute;left:0;right:0;bottom:18px;z-index:6;display:flex;justify-content:center;gap:8px;pointer-events:auto}
.home-slide-card .home-slide-dots button{width:9px;height:9px;border-radius:999px;border:0;background:rgba(15,34,57,.28);padding:0;cursor:pointer;transition:all .2s ease}
.home-slide-card .home-slide-dots button.active{width:24px;background:#16a34a}
.home-slide-card .home-slide{padding-bottom:54px}
.home-slide-card .home-slide video{width:100%;max-height:230px;object-fit:cover;border-radius:22px;margin-bottom:18px;background:rgba(255,255,255,.35)}
@media(max-width:520px){.home-slide-card .home-slide-dots{bottom:12px}.home-slide-card .home-slide{padding-bottom:44px}.home-slide-card .home-slide h3{font-size:22px!important}}

/* Compact listing and team image fit refinements */
.compact-listing-section{padding-top:38px!important;}
.compact-listing-grid,
.property-grid{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;
  gap:18px!important;
}
.compact-listing-card,
.firstgen-property,
.property-card.team-card{
  border-radius:18px!important;
}
.compact-listing-card img,
.firstgen-property img{
  height:170px!important;
}
.firstgen-property.large img{height:190px!important;}
.compact-listing-card .card-body,
.firstgen-property .property-body,
.property-card.team-card .card-body{
  padding:16px!important;
}
.compact-listing-card h3,
.firstgen-property h3,
.property-card.team-card h3{
  font-size:20px!important;
  margin-bottom:7px!important;
}
.compact-listing-card p,
.firstgen-property p{
  font-size:14px!important;
  line-height:1.45!important;
  margin:5px 0!important;
}
.compact-listing-card b,
.firstgen-property b{
  font-size:15px!important;
  margin-top:8px!important;
}
.compact-meta{color:#64748b;font-weight:700;}
.team-card .card-image{
  width:100%;
  height:230px;
  padding:0!important;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#eef2f7,#ffffff);
  overflow:hidden;
}
.team-card .card-image img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:10px!important;
  background:#f8fafc;
}
.content-grid .team-card{max-width:360px;justify-self:center;width:100%;}
@media(max-width:760px){
  .compact-listing-grid,.property-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:14px!important;}
  .compact-listing-card img,.firstgen-property img,.firstgen-property.large img{height:140px!important;}
  .compact-listing-card .card-body,.firstgen-property .property-body,.property-card.team-card .card-body{padding:13px!important;}
  .compact-listing-card h3,.firstgen-property h3,.property-card.team-card h3{font-size:17px!important;}
  .compact-listing-card p,.firstgen-property p{font-size:13px!important;}
  .team-card .card-image{height:210px;}
}
@media(max-width:420px){
  .compact-listing-grid,.property-grid{grid-template-columns:1fr!important;}
}

/* Side-by-side public listing cards: land sites, one-offs and similar listings */
.property-grid,
.compact-listing-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:24px!important;
  align-items:stretch!important;
}
.property-grid .firstgen-property,
.compact-listing-grid .compact-listing-card{
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
}
.property-grid .firstgen-property img,
.compact-listing-grid .compact-listing-card img{
  width:100%!important;
  height:185px!important;
  object-fit:cover!important;
  display:block!important;
}
.property-grid .firstgen-property.large img{height:185px!important;}
.property-grid .firstgen-property .property-body,
.compact-listing-grid .compact-listing-card .card-body{
  flex:1!important;
}
@media(min-width:1180px){
  .property-grid,
  .compact-listing-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:760px){
  .property-grid,
  .compact-listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
  .property-grid .firstgen-property img,
  .property-grid .firstgen-property.large img,
  .compact-listing-grid .compact-listing-card img{height:135px!important;}
}
@media(max-width:520px){
  .property-grid,
  .compact-listing-grid{grid-template-columns:1fr!important;}
  .property-grid .firstgen-property img,
  .property-grid .firstgen-property.large img,
  .compact-listing-grid .compact-listing-card img{height:180px!important;}
}

/* Apply side-by-side compact layout to media/listing pages too */
.video-grid,
.news-grid,
.gallery-list,
.rental-grid,
.compact-listing-grid,
.property-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:24px!important;
  align-items:stretch!important;
}
.video-grid .video-card,
.news-grid .news-card,
.gallery-list .property-card,
.compact-listing-grid .compact-listing-card,
.property-grid .firstgen-property{
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
}
.video-grid .video-frame,
.gallery-list .card-image{
  padding:0!important;
}
.video-grid .video-frame video,
.news-grid .news-card img,
.gallery-list .card-image img,
.gallery-list .card-image video,
.compact-listing-grid .compact-listing-card img,
.property-grid .firstgen-property img,
.property-grid .firstgen-property.large img{
  width:100%!important;
  height:185px!important;
  object-fit:cover!important;
  display:block!important;
}
.video-grid .video-body,
.news-grid .news-card div,
.gallery-list .card-body,
.compact-listing-grid .compact-listing-card .card-body,
.property-grid .firstgen-property .property-body{
  flex:1!important;
  padding:16px!important;
}
.video-grid .video-body h3,
.news-grid .news-card h3,
.gallery-list .card-body h3,
.compact-listing-grid .compact-listing-card h3,
.property-grid .firstgen-property h3{
  font-size:20px!important;
  margin-bottom:7px!important;
}
.video-grid .video-body p,
.news-grid .news-card p,
.gallery-list .card-body p,
.compact-listing-grid .compact-listing-card p,
.property-grid .firstgen-property p{
  font-size:14px!important;
  line-height:1.45!important;
  margin:5px 0!important;
}
@media(min-width:1180px){
  .video-grid,
  .news-grid,
  .gallery-list,
  .rental-grid,
  .compact-listing-grid,
  .property-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:760px){
  .video-grid,
  .news-grid,
  .gallery-list,
  .rental-grid,
  .compact-listing-grid,
  .property-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
  .video-grid .video-frame video,
  .news-grid .news-card img,
  .gallery-list .card-image img,
  .gallery-list .card-image video,
  .compact-listing-grid .compact-listing-card img,
  .property-grid .firstgen-property img,
  .property-grid .firstgen-property.large img{height:135px!important;}
}
@media(max-width:520px){
  .video-grid,
  .news-grid,
  .gallery-list,
  .rental-grid,
  .compact-listing-grid,
  .property-grid{grid-template-columns:1fr!important;}
  .video-grid .video-frame video,
  .news-grid .news-card img,
  .gallery-list .card-image img,
  .gallery-list .card-image video,
  .compact-listing-grid .compact-listing-card img,
  .property-grid .firstgen-property img,
  .property-grid .firstgen-property.large img{height:180px!important;}
}
.gallery {
    position: relative;
}

.property-image-nav {
    position: absolute;
    top: 42%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 14px;
}

    .property-image-nav button {
        pointer-events: all;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 50%;
        background: rgba(8, 24, 42, 0.72);
        color: white;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
    }

.property-thumb.active-thumb {
    border: 3px solid #16a34a;
    transform: scale(1.04);
}

@media (max-width: 700px) {
    .property-image-nav button {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}
/* Improved public content pages: news, videos and title status */
.page-intro-compact{
  max-width:1160px;
  margin:26px auto 16px;
  padding:28px 34px;
  border-radius:28px;
  background:linear-gradient(135deg,#0b2239,#174263);
  color:#fff;
  box-shadow:0 18px 48px rgba(15,23,42,.14);
  position:relative;
  overflow:hidden;
}
.page-intro-compact:after{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-90px;
  width:260px;
  height:180px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  transform:rotate(-14deg);
}
.page-intro-compact > div{position:relative;z-index:1;}
.page-intro-compact h1{font-size:clamp(30px,3.8vw,48px);line-height:1.05;margin:0 0 8px;}
.page-intro-compact p{font-size:clamp(15px,1.4vw,18px);line-height:1.5;max-width:820px;margin:0;color:rgba(255,255,255,.88);}
.intro-note-wrap{margin-top:0!important;margin-bottom:0!important;}
.intro-note{
  max-width:980px;
  margin:0 auto 10px;
  padding:14px 18px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#475569;
  line-height:1.55;
  font-size:15px;
}
.news-page-section{padding-top:24px!important;}
.featured-news-card{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:0;
  min-height:320px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 20px 58px rgba(15,23,42,.12);
  color:inherit;
  margin-bottom:28px;
}
.featured-news-card:hover{transform:translateY(-3px);box-shadow:0 24px 68px rgba(15,23,42,.17);}
.featured-news-image img{width:100%;height:100%;min-height:320px;object-fit:cover;display:block;}
.featured-news-body{padding:34px;display:flex;flex-direction:column;justify-content:center;}
.featured-news-body span,.improved-news-card span{display:inline-block;text-transform:uppercase;letter-spacing:1px;font-size:12px;font-weight:900;color:#16a34a;margin-bottom:9px;}
.featured-news-body h2{font-size:clamp(28px,3vw,42px);line-height:1.08;margin:0 0 12px;color:#0b2239;}
.featured-news-body p{color:#475569;line-height:1.65;margin:0 0 16px;}
.featured-news-body strong{color:#166534;}
.compact-row{margin:8px 0 18px!important;}
.compact-row h2{font-size:28px!important;}
.improved-news-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;}
.improved-news-card{border-radius:22px!important;}
.improved-news-card img{height:180px!important;}
.improved-news-card div{padding:18px!important;}
.improved-news-card h3{font-size:21px!important;line-height:1.2!important;}
.news-detail-hero{padding:30px 0 6px;background:#f8fafc;}
.news-detail-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:26px;
  align-items:center;
}
.news-detail-image img{width:100%;height:430px;object-fit:cover;border-radius:28px;box-shadow:0 20px 58px rgba(15,23,42,.14);}
.news-detail-summary{background:#fff;border:1px solid #e5e7eb;border-radius:28px;padding:30px;box-shadow:0 16px 48px rgba(15,23,42,.08);}
.news-detail-summary h1{font-size:clamp(32px,4vw,52px);line-height:1.05;margin:8px 0 12px;color:#0b2239;}
.news-detail-summary p{font-size:17px;line-height:1.65;color:#475569;margin-bottom:20px;}
.news-article-section{padding-top:24px!important;}
.news-article-container{max-width:900px!important;}
.news-article-card{background:#fff;border:1px solid #e5e7eb;border-radius:28px;padding:34px;box-shadow:0 14px 42px rgba(15,23,42,.08);}
.news-article-card p{white-space:normal;line-height:1.85;color:#334155;font-size:17px;margin:0;}
.client-video-section{padding-top:24px!important;}
.client-note{max-width:880px;margin-left:auto;margin-right:auto;}
.improved-video-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;}
.improved-video-card{border-radius:22px!important;}
.improved-video-card .video-frame video{height:190px!important;}
.improved-video-card .video-body{padding:18px!important;}
.improved-video-card h3{font-size:21px!important;line-height:1.2!important;}
.client-name{color:#0b2239!important;margin-bottom:4px!important;}
.title-status-section{padding-top:22px!important;}
.title-note{max-width:900px;margin-left:auto;margin-right:auto;}
.title-summary-row{display:flex;gap:14px;flex-wrap:wrap;margin:0 0 22px;}
.mini-stat{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px 18px;min-width:150px;box-shadow:0 10px 28px rgba(15,23,42,.06);}
.mini-stat strong{display:block;font-size:28px;color:#0b2239;line-height:1;}
.mini-stat span{display:block;color:#64748b;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;margin-top:5px;}
.mini-stat.done strong{color:#16a34a}.mini-stat.pending strong{color:#f59e0b}
.improved-title-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;}
.improved-title-card{grid-template-columns:130px 1fr!important;border-radius:22px!important;}
.improved-title-card img{width:130px!important;height:100%!important;min-height:210px!important;}
.improved-title-card div{padding:18px!important;}
.improved-title-card h3{font-size:21px!important;line-height:1.2!important;}
.improved-title-card p{font-size:14px!important;line-height:1.5!important;}
@media(max-width:900px){
  .page-intro-compact{margin:18px 14px 10px;padding:22px 20px;border-radius:22px;}
  .featured-news-card,.news-detail-grid{grid-template-columns:1fr;}
  .featured-news-image img,.news-detail-image img{height:260px;min-height:260px;}
  .featured-news-body,.news-detail-summary,.news-article-card{padding:22px;}
  .improved-title-card{grid-template-columns:1fr!important;}
  .improved-title-card img{width:100%!important;height:190px!important;min-height:0!important;}
}
@media(max-width:520px){
  .page-intro-compact h1{font-size:28px;}
  .page-intro-compact p,.intro-note{font-size:14px;}
  .featured-news-image img,.news-detail-image img{height:220px;min-height:220px;}
  .news-article-card p{font-size:16px;line-height:1.75;}
  .title-summary-row{display:grid;grid-template-columns:1fr;}
}

/* Support chat sessions */
.support-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 26px;
    align-items: start;
}
.support-left { display: grid; gap: 18px; }
.compact-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.support-note { padding: 20px; }
.support-chat-card {
    padding: 26px;
    border-radius: 24px;
    position: sticky;
    top: 90px;
}
.support-chat-form,
.chat-reply-form {
    display: grid;
    gap: 14px;
}
.support-chat-form label,
.chat-reply-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
    color: #16324f;
}
.form-row.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.support-chat-form input,
.support-chat-form textarea,
.chat-reply-form textarea,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #d8e1ea;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}
.chat-container {
    max-width: 980px;
}
.chat-header-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f4f8fb);
    border: 1px solid #e6eef5;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 18px 45px rgba(15, 39, 64, .08);
}
.chat-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.chat-messages {
    display: grid;
    gap: 14px;
    background: #f6f9fc;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid #e2ebf3;
}
.chat-row { display:flex; }
.chat-row.client { justify-content:flex-start; }
.chat-row.admin { justify-content:flex-end; }
.chat-bubble {
    max-width: 72%;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 39, 64, .07);
}
.chat-row.admin .chat-bubble { background: #16324f; color: #fff; }
.chat-meta {
    display:flex;
    justify-content:space-between;
    gap:18px;
    font-size:.82rem;
    opacity:.82;
    margin-bottom:7px;
}
.chat-bubble p { margin:0; line-height:1.55; }
.alert {
    border-radius: 14px;
    padding: 12px 14px;
    background: #eef6ff;
    color: #16324f;
    margin-bottom: 12px;
}
.alert.success { background:#ecfdf3; color:#166534; }
.alert.error { background:#fef2f2; color:#991b1b; }
.status-pill {
    display:inline-flex;
    align-items:center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size:.78rem;
    font-weight:800;
    background:#edf2f7;
    color:#16324f;
}
.status-pill.open { background:#e7f9ef; color:#166534; }
.status-pill.closed { background:#f1f5f9; color:#475569; }
.status-pill.unread { background:#fff7ed; color:#c2410c; }
.card-topline { display:flex; gap:8px; justify-content:space-between; align-items:center; }
.muted-text { color:#64748b; }
.filter-bar {
    display:grid;
    grid-template-columns: 1fr 180px auto auto;
    gap:12px;
    margin-bottom:20px;
    align-items:center;
}

@media (max-width: 900px) {
    .support-layout { grid-template-columns: 1fr; }
    .support-chat-card { position: static; }
    .compact-contact-grid { grid-template-columns: 1fr; }
    .filter-bar { grid-template-columns: 1fr; }
    .chat-header-card { flex-direction: column; align-items:flex-start; }
    .chat-bubble { max-width: 92%; }
    .form-row.two { grid-template-columns: 1fr; }
}

/* Support chat auto-refresh polish */
.chat-refresh-note {
    margin-top: 8px;
    margin-bottom: 14px;
    font-size: 0.86rem;
    color: #64748b;
    text-align: center;
}

.chat-messages {
    scroll-behavior: smooth;
}

/* Enhanced rental marketplace */
.rental-market-section .container{max-width:1220px;margin:auto}.rental-filter-panel{display:grid;grid-template-columns:2fr repeat(5,1fr);gap:14px;align-items:end;background:rgba(255,255,255,.95);border:1px solid rgba(15,23,42,.10);box-shadow:0 16px 46px rgba(15,23,42,.08);border-radius:24px;padding:18px;margin:8px 0 18px}.rental-filter-panel .wide-search{grid-column:span 2}.rental-filter-actions{display:flex;gap:10px;align-items:end}.rental-card-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));align-items:stretch}.rental-market-card{position:relative;display:flex;flex-direction:column;height:100%}.rental-market-card:hover{transform:translateY(-4px);box-shadow:0 18px 48px rgba(15,23,42,.15)}.rental-card-image{position:relative;display:block;height:210px;overflow:hidden}.rental-card-image img{width:100%;height:100%;object-fit:cover}.rental-badge,.rental-status{position:absolute;top:12px;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;box-shadow:0 8px 18px rgba(0,0,0,.18)}.rental-badge{left:12px;background:#16a34a;color:#fff}.rental-status{right:12px;background:#fff;color:#0b2239}.rental-card-body{display:flex;flex-direction:column;gap:8px;flex:1}.rental-card-topline{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#64748b;font-size:13px}.rental-card-topline b{color:#166534;font-size:15px}.rental-card-body h3{margin:0;font-size:20px;color:#0b2239}.rental-facts-mini{display:flex;flex-wrap:wrap;gap:7px}.rental-facts-mini span{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:800;color:#334155}.rental-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#475569;line-height:1.5}.rental-card-actions{display:flex;gap:10px;margin-top:auto;flex-wrap:wrap}.whatsapp-mini{background:#25D366!important;color:#fff!important;text-decoration:none}.featured-rental{border:1px solid rgba(22,163,74,.35)}.rental-detail-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:32px;align-items:start}.rental-detail-gallery .main-photo{height:520px}.rental-detail-panel{position:sticky;top:92px}.featured-pill{background:#ecfdf5!important;color:#166534!important}.rental-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.rental-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}.rental-info-card p{line-height:1.7;color:#475569}.rental-admin-form textarea{min-height:95px}.rental-thumb{border:2px solid transparent}.rental-thumb:hover{border-color:#16a34a}
@media(max-width:980px){.rental-filter-panel{grid-template-columns:1fr 1fr}.rental-filter-panel .wide-search{grid-column:1/-1}.rental-filter-actions{grid-column:1/-1}.rental-detail-grid{grid-template-columns:1fr}.rental-detail-panel{position:static}.rental-detail-gallery .main-photo{height:380px}}
@media(max-width:640px){.rental-filter-panel{grid-template-columns:1fr}.rental-filter-panel .wide-search,.rental-filter-actions{grid-column:auto}.rental-filter-actions .btn{flex:1;text-align:center}.rental-card-grid{grid-template-columns:1fr}.rental-card-image{height:190px}.rental-detail-gallery .main-photo{height:300px}.rental-card-topline{display:block}.rental-card-topline b{display:block;margin-top:4px}}
