:root{--blue:#0876a8;--teal:#079b83;--lagoon:#42c6dd;--yellow:#f9b719;--green:#69ad32;--orange:#f58220;--bg:#f8fbfa;--text:#15324a}*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;color:var(--text);background:var(--bg)}header{height:82px;display:flex;align-items:center;padding:8px 5%;background:white;gap:30px;position:sticky;top:0;z-index:10;box-shadow:0 2px 12px #0001}header img{width:145px;height:65px;object-fit:contain}nav{display:flex;gap:24px;align-items:center;flex:1;justify-content:center}a{text-decoration:none;color:var(--text);font-weight:700}.post{color:var(--orange)}button,.actions a{border:0;border-radius:10px;padding:13px 20px;font-weight:700;cursor:pointer}.whatsapp,.join button{background:#13a85b;color:white}.hero{min-height:430px;background:linear-gradient(90deg,#076a9dcc,#076a9d22),url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1800&q=80') center/cover}.overlay{padding:65px 7%;color:white;max-width:760px}.overlay h1{font-size:52px;line-height:1.05;margin:0 0 20px}.overlay p{font-size:20px;line-height:1.5}.actions{display:flex;gap:12px;margin-top:25px}.actions a:first-child{background:var(--blue);color:white}.actions a:nth-child(2){background:var(--green);color:white}.actions button{background:var(--yellow);color:#17344a}.search{width:88%;margin:-55px auto 25px;background:white;padding:20px;border-radius:18px;position:relative;box-shadow:0 12px 35px #0002}.search h2{color:var(--blue)}.filters{display:grid;grid-template-columns:repeat(4,1fr) 140px;gap:10px}.filters select,.filters input{padding:14px;border:1px solid #d7e2e8;border-radius:9px;background:white}.filters button{background:var(--blue);color:white}.quick,.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;width:94%;margin:25px auto}.quick div,.cards>article,.lower>div{background:white;border-radius:14px;padding:20px;box-shadow:0 5px 18px #0000000d}.quick div{text-align:center;font-size:27px}.quick b,.quick span{display:block;font-size:16px;margin-top:8px}.quick span{font-size:13px;font-weight:normal}.section{padding:15px 3%}.title{display:flex;align-items:center;justify-content:space-between}.title h2{color:var(--blue);font-size:27px}.green{color:var(--teal)!important}.cards{width:100%;grid-template-columns:repeat(4,1fr);margin:10px 0}.card{padding:0!important;overflow:hidden}.card img{width:100%;height:180px;object-fit:cover}.card .content{padding:15px}.badge{background:var(--green);color:white;padding:5px 8px;border-radius:7px;font-size:12px}.price{color:var(--blue);font-size:19px;font-weight:bold}.card button{width:100%;background:var(--blue);color:white}.business .card button{background:var(--teal)}.lower{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;padding:25px 3%}.lower article{padding:14px 0;border-bottom:1px solid #e5edef}.lower small{display:block;margin-top:6px;color:#708391}.join{text-align:center}.join img{width:150px}.postbox{text-align:center;padding:45px 5%;background:#eaf8f5}.postbox div{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.postbox button{background:white;border:1px solid #cfe4df;color:var(--teal)}footer{text-align:center;background:white;padding:35px}footer img{width:130px}@media(max-width:850px){header nav{display:none}.whatsapp{margin-left:auto}.overlay h1{font-size:39px}.hero{min-height:390px}.filters{grid-template-columns:1fr 1fr}.quick{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:1fr}.lower{grid-template-columns:1fr}.search{width:94%}.actions{flex-wrap:wrap}}

.agent-cta{margin:10px 0 30px;background:white;border-radius:14px;padding:24px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 5px 18px #0000000d}.agentJoin{background:var(--orange);color:white;padding:13px 20px;border-radius:10px}.agent-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.agent-card{background:white;padding:22px;border-radius:14px;box-shadow:0 5px 18px #0001}.agent-card img{width:82px;height:82px;border-radius:50%;object-fit:cover}.agent-card .verified{color:var(--teal);font-weight:bold}@media(max-width:850px){.agent-grid{grid-template-columns:1fr}.agent-cta{display:block}.agentJoin{display:inline-block;margin-top:10px}}
.social-public{padding-top:25px;padding-bottom:25px}.social-public-links{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.social-public-card{background:white;border-radius:14px;padding:18px;box-shadow:0 5px 18px #0000000d;display:flex;align-items:center;gap:14px}.social-public-card>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eef8fb;color:var(--blue);font-size:20px;font-weight:800}.social-public-card b,.social-public-card small{display:block}.social-public-card small{margin-top:4px;color:#708391}.social-empty{background:white;padding:18px;border-radius:14px;color:#708391}@media(max-width:850px){.social-public-links{grid-template-columns:1fr 1fr}}@media(max-width:520px){.social-public-links{grid-template-columns:1fr}}

.property-card{cursor:pointer}.property-image-link{display:block}.property-card h3 a{color:var(--text)}.property-view-btn{display:block;text-align:center;width:100%;background:var(--blue);color:white;padding:13px 20px;border-radius:10px;font-weight:700}.property-page{max-width:1180px;margin:32px auto;padding:0 22px}.property-detail-shell{display:grid;gap:20px}.property-gallery{display:grid;grid-template-columns:2fr 1fr;gap:10px}.property-gallery img{width:100%;height:260px;object-fit:cover;border-radius:14px}.property-gallery img:first-child{height:530px;grid-row:span 2}.property-panel{background:#fff;border-radius:16px;padding:28px;box-shadow:0 5px 18px #0000000d}.property-heading{display:flex;justify-content:space-between;gap:25px;align-items:flex-start}.property-heading h1{font-size:34px;margin:14px 0 8px}.property-location{color:#708391}.property-price{font-size:28px;color:var(--blue);font-weight:800;white-space:nowrap}.property-price small{font-size:14px}.property-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:26px 0}.property-facts div,.rental-options div{border:1px solid #e2ebef;border-radius:12px;padding:16px}.property-facts b,.property-facts span,.rental-options b,.rental-options span{display:block}.property-facts span{font-size:12px;color:#708391;margin-top:5px}.rental-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.rental-options span{color:var(--blue);margin-top:6px}.property-description{line-height:1.7}.property-agent{margin-top:28px;border-top:1px solid #e5edef;padding-top:22px;display:flex;justify-content:space-between;align-items:center}.property-agent h3{margin:5px 0}.property-agent p{margin:0;color:#708391}.property-actions{display:flex;gap:10px}.property-call{background:var(--blue);color:white;padding:13px 20px;border-radius:10px}@media(max-width:750px){.property-gallery{grid-template-columns:1fr}.property-gallery img,.property-gallery img:first-child{height:250px;grid-row:auto}.property-heading,.property-agent{display:block}.property-price{margin-top:18px}.property-facts{grid-template-columns:1fr 1fr}.rental-options{grid-template-columns:1fr}.property-actions{margin-top:15px;flex-wrap:wrap}}

/* Public social links */
.social-public-section{margin:28px auto;max-width:1180px;padding:0 20px}.social-public-section .social-public-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.social-public-card{display:flex;align-items:center;gap:12px;padding:16px 18px;border:1px solid #e7ebe8;border-radius:14px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 6px 20px rgba(0,0,0,.04)}.social-public-card:hover{transform:translateY(-1px);box-shadow:0 9px 24px rgba(0,0,0,.07)}.social-public-card>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eef7f1;font-weight:800;font-size:20px}.social-public-card div{display:flex;flex-direction:column}.social-public-card small{opacity:.65;margin-top:3px}.social-empty{opacity:.65}

/* Business media + discount additions */
.business-media-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-top:10px}
.media-preview-item img,.media-preview-item video{width:100%;height:110px;object-fit:cover;border-radius:10px}
.media-preview-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.business-cover{width:100%;height:180px;object-fit:cover;border-radius:14px 14px 0 0}
.discount-reveal{margin-top:12px;padding:14px;border:1px dashed #159a68;border-radius:12px;background:#f3fbf7}
.discount-reveal strong{display:block;font-size:22px;letter-spacing:1px;margin:6px 0}
.business-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-top:12px}
.business-gallery img{width:100%;height:90px;object-fit:cover;border-radius:8px}
.business-video{width:100%;max-height:280px;margin-top:12px;border-radius:10px}

/* Header WhatsApp button - restored */
header > a.whatsapp{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#13a85b !important;
  color:#fff !important;
  padding:12px 20px !important;
  border-radius:10px !important;
  text-decoration:none !important;
  font-weight:700 !important;
  line-height:1.2;
  white-space:nowrap;
}
header > a.whatsapp:hover{filter:brightness(.96)}
.view-all-businesses{
  appearance:none;
  background:transparent;
  color:var(--text);
  border:0;
  padding:8px 0;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.business-empty{
  grid-column:1/-1;
  background:#fff;
  border-radius:14px;
  padding:24px;
  text-align:center;
  color:#708391;
}

/* Public Community Posts */
.community-only{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}
.community-feed{min-width:0}
#communityPublicPosts{display:grid;gap:14px;margin-top:14px}
.community-public-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(17,39,56,.06)}
.community-public-card img{display:block;width:100%;max-height:360px;object-fit:cover}
.community-public-copy{padding:16px}
.community-public-copy b{display:block;font-size:18px;margin-bottom:6px}
.community-public-copy p{margin:0;line-height:1.55}
.community-empty{background:#fff;padding:20px;border-radius:14px;color:#708391}
@media(max-width:900px){.community-only{grid-template-columns:1fr}}

/* Standalone public pages */
.standalone-page{max-width:1320px;margin:0 auto;padding:54px 28px 80px;min-height:calc(100vh - 100px)}
.page-section{scroll-margin-top:110px}
.section-title{margin-bottom:24px}
.section-title h1{font-size:34px;margin:0 0 8px}
.section-title p{margin:0;color:#657986}
header nav a.active-page{color:#0aa083}
.primary-link{display:inline-flex;background:#0aa083;color:#fff!important;text-decoration:none;padding:12px 18px;border-radius:10px;font-weight:700}
@media(max-width:700px){.standalone-page{padding:32px 18px 60px}.section-title h1{font-size:28px}}

/* Community Posts: compact 4-card grid */
#communityPublicPosts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px!important}
.community-public-card{display:flex;flex-direction:column;min-width:0;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 6px 20px rgba(17,39,56,.08)}
.community-public-card img{width:100%!important;height:210px!important;max-height:210px!important;object-fit:cover!important;display:block}
.community-public-copy{padding:15px!important;min-height:115px}
.community-public-copy b{font-size:17px!important;line-height:1.25}
.community-public-copy p{font-size:14px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1050px){#communityPublicPosts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#communityPublicPosts{grid-template-columns:1fr}.community-public-card img{height:220px!important}}

/* Contact */
.contact-page{max-width:900px;margin:0 auto}.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:#fff;padding:24px;border-radius:16px;box-shadow:0 6px 20px rgba(17,39,56,.07)}
.contact-form label{font-weight:700}.contact-form input,.contact-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px;border:1px solid #d7e2e8;border-radius:9px;font:inherit}.contact-full{grid-column:1/-1}.contact-send{background:#0aa083;color:#fff;border:0;border-radius:10px;padding:13px 22px;font-weight:700;cursor:pointer}
#contactStatus{font-weight:700;margin-top:14px}@media(max-width:650px){.contact-form{grid-template-columns:1fr}.contact-full{grid-column:auto}}

/* Unified public header + Contact polish */
header{display:flex;align-items:center;gap:28px}
header nav{display:flex;align-items:center;justify-content:center;gap:28px;flex:1;flex-wrap:wrap}
header nav a{text-decoration:none}
header .global-whatsapp{display:inline-flex!important;align-items:center;justify-content:center;background:#13a85b!important;color:#fff!important;padding:12px 20px!important;border-radius:10px!important;text-decoration:none!important;font-weight:700!important;white-space:nowrap}
header .list-property-link{color:#f58220!important;font-weight:700}
.contact-page{max-width:720px!important;margin:0 auto!important}
.contact-page .section-title{text-align:center;margin-bottom:24px}
.contact-form{display:flex!important;flex-direction:column!important;gap:15px!important;background:#fff!important;padding:30px!important;border-radius:18px!important;box-shadow:0 10px 35px rgba(17,39,56,.08)!important}
.contact-form label{display:block!important;width:100%!important;font-weight:700!important;color:#123047}
.contact-form input,.contact-form textarea{display:block!important;width:100%!important;box-sizing:border-box!important;margin-top:7px!important;padding:13px 14px!important;border:1px solid #d6e1e6!important;border-radius:10px!important;background:#fbfdfd!important;font:inherit!important}
.contact-form textarea{resize:vertical;min-height:150px}
.contact-send{width:100%!important;background:#0aa083!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:14px 20px!important;font-weight:700!important;font-size:16px!important;cursor:pointer}
@media(max-width:900px){header{gap:12px;flex-wrap:wrap}header nav{order:3;width:100%;gap:14px}.contact-form{padding:20px!important}}

/* Home quick navigation */
.quick{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.quick .quick-card{display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#fff;color:var(--text)!important;text-decoration:none!important;border-radius:16px;padding:28px 14px;min-height:86px;box-shadow:0 8px 24px rgba(17,39,56,.06);transition:transform .15s ease,box-shadow .15s ease}
.quick .quick-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(17,39,56,.1)}
.quick .quick-card b{display:block;margin:9px 0 5px;font-size:18px}.quick .quick-card span{font-size:14px}
.social-public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.social-public-card{display:flex;flex-direction:column;align-items:center;text-align:center;background:#fff;padding:28px 18px;border-radius:16px;text-decoration:none;color:#123047;box-shadow:0 8px 24px rgba(17,39,56,.07)}
.social-public-card>span{font-size:34px}.social-public-card b{font-size:18px;margin:10px 0 5px}.social-public-card small{text-transform:capitalize}
@media(max-width:1000px){.quick{grid-template-columns:repeat(2,minmax(0,1fr))!important}.social-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.quick,.social-public-grid{grid-template-columns:1fr!important}}

/* RECOVERED MASTER: homepage quick cards */
.quick{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important}
.quick .quick-card{display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#fff;color:#123047!important;text-decoration:none!important;border-radius:16px;padding:26px 14px;min-height:88px;box-shadow:0 8px 24px rgba(17,39,56,.06);transition:.15s ease}
.quick .quick-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(17,39,56,.11)}
.quick .quick-card b{display:block;margin:9px 0 5px;font-size:18px}.quick .quick-card span{font-size:14px}
.hero-whatsapp{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(max-width:1000px){.quick{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.quick{grid-template-columns:1fr!important}}

/* FINAL MASTER AUDIT */
#communityPublicPosts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
.community-public-card img{width:100%!important;height:210px!important;max-height:210px!important;object-fit:cover!important}
@media(max-width:1050px){#communityPublicPosts{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){#communityPublicPosts{grid-template-columns:1fr!important}}

/* Firestore-published property cards */
#propertyCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.property-public-card{background:#fff;border:1px solid #e6edf0;border-radius:17px;overflow:hidden;box-shadow:0 6px 22px rgba(18,48,71,.07)}
.property-public-image{display:block;height:210px;background:#edf5f5}.property-public-image img{width:100%;height:100%;object-fit:cover}.property-no-photo{height:100%;display:grid;place-items:center;font-size:45px}
.property-public-body{padding:19px}.property-public-body h3{margin:12px 0 8px}.property-public-body p{color:#607380}.property-public-body strong{display:block;margin:12px 0;color:#123047}.property-public-badge{background:#e7f6ef;color:#168261;border-radius:20px;padding:5px 11px;font-size:12px}.property-public-view{display:inline-block;background:#078e7b;color:white!important;border-radius:9px;padding:11px 16px;text-decoration:none}
@media(max-width:900px){#propertyCards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#propertyCards{grid-template-columns:1fr}}

/* Firestore-published property cards */
#propertyCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.property-public-card{background:#fff;border:1px solid #e6edf0;border-radius:17px;overflow:hidden;box-shadow:0 6px 22px rgba(18,48,71,.07)}
.property-public-image{display:block;height:210px;background:#edf5f5}.property-public-image img{width:100%;height:100%;object-fit:cover}.property-no-photo{height:100%;display:grid;place-items:center;font-size:45px}
.property-public-body{padding:19px}.property-public-body h3{margin:12px 0 8px}.property-public-body p{color:#607380}.property-public-body strong{display:block;margin:12px 0;color:#123047}.property-public-badge{background:#e7f6ef;color:#168261;border-radius:20px;padding:5px 11px;font-size:12px}.property-public-view{display:inline-block;background:#078e7b;color:white!important;border-radius:9px;padding:11px 16px;text-decoration:none}
@media(max-width:900px){#propertyCards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#propertyCards{grid-template-columns:1fr}}

/* Compact Properties grid — same visual scale as Businesses */
#propertyCards.cards{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:18px!important;
 align-items:start!important;
}
.property-public-card{
 display:flex!important;flex-direction:column!important;
 min-width:0!important;background:#fff!important;border:1px solid #e6ecef!important;
 border-radius:15px!important;overflow:hidden!important;
 box-shadow:0 7px 22px rgba(17,39,56,.06)!important;
}
.property-public-image{display:block!important;width:100%!important;height:180px!important;overflow:hidden!important;background:#eef3f5!important}
.property-public-image img{display:block!important;width:100%!important;height:180px!important;object-fit:cover!important}
.property-no-photo{height:180px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:38px!important}
.property-public-body{padding:14px!important}
.property-public-body h3{font-size:16px!important;line-height:1.35!important;margin:8px 0!important}
.property-public-body p{font-size:13px!important;margin:6px 0!important;color:#637580!important}
.property-public-body strong{display:block!important;font-size:16px!important;margin:8px 0!important}
.property-public-badge{font-size:11px!important;padding:5px 8px!important;border-radius:999px!important}
.property-public-view{display:inline-block!important;margin-top:6px!important;font-size:13px!important;font-weight:700!important}
@media(max-width:1050px){#propertyCards.cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){#propertyCards.cards{grid-template-columns:1fr!important}.property-public-image,.property-public-image img,.property-no-photo{height:210px!important}}

/* FINAL compact property listing sizing */
main.standalone-page #properties.section{max-width:1280px!important;margin:0 auto!important;padding-left:24px!important;padding-right:24px!important}
main.standalone-page #propertyCards.cards{
 width:100%!important;display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:16px!important;
}
main.standalone-page #propertyCards .property-public-card{width:auto!important;max-width:none!important;min-width:0!important;margin:0!important}
main.standalone-page #propertyCards .property-public-image,
main.standalone-page #propertyCards .property-public-image img,
main.standalone-page #propertyCards .property-no-photo{height:150px!important}
main.standalone-page #propertyCards .property-public-body{padding:12px!important}
main.standalone-page #propertyCards .property-public-body h3{font-size:15px!important}
@media(max-width:900px){main.standalone-page #propertyCards.cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){main.standalone-page #propertyCards.cards{grid-template-columns:1fr!important}main.standalone-page #propertyCards .property-public-image,main.standalone-page #propertyCards .property-public-image img,main.standalone-page #propertyCards .property-no-photo{height:190px!important}}
.agent-delete-property,.property-delete-btn{border:1px solid #efc5c5!important;background:#fff1f1!important;color:#b72f2f!important;border-radius:9px!important;padding:8px 12px!important;font-weight:700!important;cursor:pointer!important}
.cloud-agent-property{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:16px!important}

/* Property detail clickable gallery + full-screen lightbox */
.property-gallery-item{display:block;padding:0!important;border:0!important;background:transparent!important;cursor:zoom-in!important;overflow:hidden;border-radius:14px}
.property-gallery-item img{transition:transform .2s ease}.property-gallery-item:hover img{transform:scale(1.025)}
.property-gallery-item:first-child{grid-row:span 2}
.property-gallery-item:first-child img{height:530px}
body.lightbox-open{overflow:hidden}
.property-lightbox{display:none;position:fixed;inset:0;z-index:100000;background:rgba(4,13,20,.94);align-items:center;justify-content:center;padding:28px}
.property-lightbox.show{display:flex}
.property-lightbox-stage{position:relative;width:min(1500px,96vw);height:min(900px,92vh);display:flex;align-items:center;justify-content:center}
.property-lightbox-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:0 25px 80px #0008}
.property-lightbox-close{position:absolute;z-index:4;right:8px;top:8px;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.92);font-size:32px;line-height:1;color:#102f43;cursor:pointer}
.property-lightbox-arrow{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:58px;height:72px;border:0;border-radius:14px;background:rgba(255,255,255,.9);color:#102f43;font-size:48px;line-height:1;cursor:pointer;place-items:center}
.property-lightbox-prev{left:10px}.property-lightbox-next{right:10px}
.property-lightbox-counter{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);padding:8px 14px;border-radius:999px;background:rgba(0,0,0,.58);color:#fff;font-weight:800}
@media(max-width:750px){
 .property-gallery-item:first-child{grid-row:auto}.property-gallery-item:first-child img{height:250px}
 .property-lightbox{padding:10px}.property-lightbox-stage{width:100%;height:94vh}
 .property-lightbox-arrow{width:46px;height:58px;font-size:38px;background:rgba(255,255,255,.82)}
 .property-lightbox-prev{left:2px}.property-lightbox-next{right:2px}.property-lightbox-close{right:2px;top:2px}
}

/* Public header Agent Login */
header nav .agent-login-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border:1px solid #cfdde4;border-radius:9px;font-weight:700;color:#17384d;background:#fff;white-space:nowrap}
header nav .agent-login-link:hover{border-color:#0e9f84;color:#087b68;background:#f4fbf8}

/* ===== MOBILE RESPONSIVE MASTER: PUBLIC + AGENT ===== */
html,body{max-width:100%;overflow-x:hidden}
img,video{max-width:100%}
@media(max-width:900px){
 body>header{height:auto!important;min-height:68px!important;padding:10px 16px!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:center!important}
 body>header>a:first-child{flex:1 1 auto!important}
 body>header>a:first-child img{max-width:150px!important;height:auto!important}
 body>header nav{order:3!important;width:100%!important;display:flex!important;gap:7px!important;overflow-x:auto!important;padding:5px 0 2px!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 body>header nav::-webkit-scrollbar{display:none}
 body>header nav a{flex:0 0 auto!important;white-space:nowrap!important;font-size:13px!important;padding:8px 10px!important}
 body>header>.whatsapp{flex:0 0 auto!important;font-size:12px!important;padding:9px 11px!important}
 .standalone-page,.portal,.property-page{width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding-left:14px!important;padding-right:14px!important}
 .hero{min-height:440px!important}.hero .overlay{padding:40px 18px!important}.hero h1{font-size:36px!important;line-height:1.08!important}
 .hero .actions{display:flex!important;flex-wrap:wrap!important;gap:9px!important}
 .cards,#propertyCards.cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .business-gallery,.social-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .contact-form,.formgrid{grid-template-columns:1fr!important}
 .tablewrap{width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 table{min-width:720px}
 .agentTop{align-items:flex-start!important;gap:12px!important}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .property-heading{display:block!important}.property-price{margin-top:14px!important}
 .property-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .rental-options{grid-template-columns:1fr!important}
 .property-agent{display:block!important}.property-actions{margin-top:14px!important;flex-wrap:wrap!important}
}
@media(max-width:600px){
 body>header{padding:9px 11px!important}
 body>header>a:first-child img{max-width:125px!important}
 body>header>.whatsapp{font-size:11px!important;padding:8px 9px!important}
 body>header nav a{font-size:12px!important;padding:7px 8px!important}
 .hero{min-height:390px!important}.hero .overlay{padding:32px 14px!important}.hero h1{font-size:30px!important}.hero p{font-size:15px!important}
 .section,.page-section,.box,.property-panel{padding-left:14px!important;padding-right:14px!important}
 .cards,#propertyCards.cards,.social-public-grid,.business-gallery{grid-template-columns:1fr!important}
 #propertyCards .property-public-image,#propertyCards .property-public-image img,#propertyCards .property-no-photo{height:210px!important}
 .stats{grid-template-columns:1fr 1fr!important;gap:10px!important}.stat{padding:13px!important}
 .agentTop{display:block!important}.profileMenu{margin-top:12px!important;width:100%!important}.profileBtn{width:100%!important}
 .agentSectionHead{flex-direction:column!important;align-items:stretch!important}
 .agentSectionHead button{width:100%!important}
 .cloud-agent-property{display:block!important}.agent-property-actions{margin-top:12px!important}.agent-property-actions button{flex:1 1 130px!important}
 .property-gallery{grid-template-columns:1fr!important}.property-gallery-item,.property-gallery-item:first-child{grid-row:auto!important}
 .property-gallery img,.property-gallery-item:first-child img{height:240px!important}
 .property-heading h1{font-size:27px!important}.property-price{font-size:23px!important}
 .property-facts{grid-template-columns:1fr 1fr!important;gap:8px!important}.property-facts div{padding:12px!important}
 .property-actions a{flex:1 1 140px!important;text-align:center!important}
 .property-lightbox-arrow{width:42px!important;height:54px!important;font-size:35px!important}
 .agentPropertyModal{padding:8px!important}.agentPropertyModalCard{width:100%!important;max-height:96vh!important;border-radius:14px!important}
 #agentPropertyModal #agentEditProperty{grid-template-columns:1fr!important;padding:15px!important}
 #agentPropertyModal .agentModalHead{padding:15px!important}
 #agentPropertyModal .agentReviewPhotos{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #agentPropertyModal .agentEditActions{position:sticky!important;bottom:-15px!important;margin:8px -15px -15px!important;padding:13px 15px!important}
 .contact-page{padding:8px 0!important}.contact-form input,.contact-form textarea{width:100%!important;box-sizing:border-box!important}
}

/* ===== HEADER / HERO POLISH MASTER ===== */
.public-menu-toggle{display:none}
header nav .agent-login-link{background:#edf8f4!important;color:#08775f!important;border:1px solid #b9dfd2!important}
header nav .agent-login-link:hover{background:#dff3eb!important;color:#05624f!important;border-color:#8acbb5!important}
.hero .hero-whatsapp{
 background:linear-gradient(135deg,#16b866,#079b83)!important;
 color:#fff!important;
 border:1px solid rgba(255,255,255,.35)!important;
 box-shadow:0 8px 22px rgba(0,88,72,.28)!important;
 text-shadow:0 1px 1px rgba(0,0,0,.12)!important;
}
.hero .hero-whatsapp:hover{filter:brightness(1.06);transform:translateY(-1px)}
@media(max-width:900px){
 body>header{display:grid!important;grid-template-columns:1fr auto auto!important;grid-template-areas:"logo whatsapp toggle" "nav nav nav"!important;align-items:center!important;gap:8px 10px!important;padding:9px 12px!important;min-height:66px!important}
 body>header>a:first-child{grid-area:logo!important;min-width:0!important}
 body>header>a:first-child img{width:125px!important;height:54px!important;max-width:125px!important}
 body>header>.whatsapp{grid-area:whatsapp!important;margin:0!important;padding:9px 11px!important;font-size:12px!important;border-radius:10px!important;white-space:nowrap!important}
 .public-menu-toggle{grid-area:toggle;display:flex!important;width:42px!important;height:42px!important;padding:9px!important;border-radius:10px!important;background:#eef7f5!important;border:1px solid #d1e7e1!important;flex-direction:column!important;justify-content:center!important;gap:5px!important}
 .public-menu-toggle span{display:block;width:100%;height:2px;background:#0b6f62;border-radius:5px}
 body>header nav{grid-area:nav!important;order:initial!important;display:none!important;width:calc(100% + 24px)!important;margin:0 -12px -9px!important;padding:9px 12px 13px!important;background:#fff!important;border-top:1px solid #edf1f2!important;box-shadow:0 12px 22px rgba(20,47,64,.08)!important;overflow:visible!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important}
 body>header.mobile-menu-open nav{display:flex!important}
 body>header nav a{width:100%!important;display:flex!important;justify-content:flex-start!important;align-items:center!important;padding:11px 12px!important;border-radius:9px!important;font-size:14px!important}
 body>header nav a:hover{background:#f2f8f6!important}
 body>header nav .agent-login-link{order:20!important;margin-top:7px!important;background:#e8f7f1!important;color:#08775f!important;border:1px solid #b9dfd2!important;justify-content:center!important}
 body>header nav .list-property-link{order:21!important;background:#0876a8!important;color:#fff!important;justify-content:center!important;border:1px solid #0876a8!important}
 .hero .actions{align-items:stretch!important}
 .hero .actions a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important}
 .hero .hero-whatsapp{background:linear-gradient(135deg,#18bd69,#058d79)!important;color:#fff!important;box-shadow:0 8px 20px rgba(0,83,69,.32)!important}
}
@media(max-width:480px){
 body>header{grid-template-columns:1fr auto!important;grid-template-areas:"logo toggle" "whatsapp whatsapp" "nav nav"!important}
 body>header>.whatsapp{width:100%!important;text-align:center!important;justify-content:center!important}
 body>header>a:first-child img{width:118px!important;height:50px!important}
 .hero .actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
 .hero .actions a{width:100%!important}
}

/* Social media official-style brand icons */
.social-public-card .social-brand-icon{flex:0 0 48px;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;padding:11px}
.social-public-card .social-brand-icon svg{display:block;width:100%;height:100%;fill:currentColor}
.social-public-card .social-whatsapp{background:#e8f9ef;color:#25D366}
.social-public-card .social-instagram{background:linear-gradient(135deg,#f9ce34,#ee2a7b 55%,#6228d7);color:#fff}
.social-public-card .social-telegram{background:#e8f6fd;color:#229ED9}
.social-public-card .social-facebook{background:#eaf2ff;color:#1877F2}
.social-public-card .social-tiktok{background:#111;color:#fff}
.social-public-card .social-youtube{background:#fff0f0;color:#FF0000}
.social-public-card .social-other{background:#eef3f6;color:#466271}
.social-public-card:hover .social-brand-icon{transform:scale(1.05)}
.social-public-card .social-brand-icon{transition:transform .15s ease}

/* Public business image offer modal */
.business-cover-open{display:block;width:100%;padding:0!important;border:0!important;border-radius:0!important;background:none!important;cursor:pointer;overflow:hidden}
.business-cover-open .business-cover{display:block;width:100%;transition:transform .2s ease}
.business-cover-open:hover .business-cover{transform:scale(1.025)}
body.business-modal-open{overflow:hidden}
.business-photo-modal{position:fixed;inset:0;z-index:30000;background:rgba(8,20,29,.82);display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(5px)}
.business-photo-dialog{position:relative;width:min(92vw,820px);max-height:92vh;background:#fff;border-radius:18px;overflow:auto;box-shadow:0 25px 70px rgba(0,0,0,.35)}
.business-photo-dialog>img{display:block;width:100%;max-height:68vh;object-fit:contain;background:#f2f5f6}
.business-photo-close{position:absolute;right:13px;top:13px;z-index:2;width:42px;height:42px;padding:0!important;border-radius:50%!important;background:rgba(10,26,36,.78)!important;color:#fff!important;font-size:28px;line-height:1}
.business-photo-info{padding:20px 22px 23px;text-align:center}
.business-photo-info h3{margin:0 0 12px;font-size:23px}
.business-modal-discount{display:inline-block;background:#e8f8ef;color:#12814f;border:1px solid #bde6ce;border-radius:999px;padding:10px 18px;font-size:20px;font-weight:800;margin-bottom:10px}
.business-photo-info small{display:block;margin-top:7px;color:#607380}
@media(max-width:600px){.business-photo-modal{padding:10px}.business-photo-dialog{width:100%;max-height:94vh;border-radius:14px}.business-photo-dialog>img{max-height:62vh}.business-photo-info{padding:16px}.business-modal-discount{font-size:18px}}

/* FINAL FORCE: social brand logos + true overlay business modal */
.social-public-card>.social-brand-icon{display:grid!important;place-items:center!important;flex:0 0 52px!important;width:52px!important;height:52px!important;min-width:52px!important;border-radius:15px!important;padding:11px!important;font-size:0!important;overflow:hidden!important}
.social-public-card>.social-brand-icon svg{display:block!important;width:30px!important;height:30px!important;fill:currentColor!important}
.social-public-card>.social-whatsapp{background:#e8f9ef!important;color:#25D366!important}
.social-public-card>.social-instagram{background:linear-gradient(135deg,#f9ce34,#ee2a7b 55%,#6228d7)!important;color:#fff!important}
.social-public-card>.social-telegram{background:#e8f6fd!important;color:#229ED9!important}
.social-public-card>.social-facebook{background:#eaf2ff!important;color:#1877F2!important}
.social-public-card>.social-tiktok{background:#111!important;color:#fff!important}
.social-public-card>.social-youtube{background:#fff0f0!important;color:#f00!important}
.social-public-card>.social-other{background:#eef3f6!important;color:#466271!important}
.social-public-copy{min-width:0}.social-public-copy b,.social-public-copy small{display:block!important}.social-public-copy small{margin-top:4px;color:#708391}
body>.business-photo-modal{position:fixed!important;left:0!important;top:0!important;right:0!important;bottom:0!important;width:100vw!important;height:100dvh!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
body>.business-photo-modal>.business-photo-dialog{position:relative!important;margin:auto!important;transform:none!important}

/* FINAL Social Media card alignment */
.social-public-grid .social-public-card{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  justify-content:stretch!important;
  column-gap:16px!important;
  padding:22px!important;
  min-height:138px!important;
  text-align:left!important;
  overflow:hidden!important;
}
.social-public-grid .social-public-card>.social-brand-icon{
  grid-column:1!important;
  grid-row:1!important;
  margin:0!important;
  align-self:center!important;
  justify-self:center!important;
}
.social-public-grid .social-public-card>.social-public-copy{
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
.social-public-grid .social-public-card>.social-public-copy b{
  display:block!important;
  margin:0!important;
  padding:0!important;
  font-size:20px!important;
  line-height:1.25!important;
  color:#0877a6!important;
  overflow-wrap:anywhere!important;
}
.social-public-grid .social-public-card>.social-public-copy small{
  display:block!important;
  margin:6px 0 0!important;
  padding:0!important;
  font-size:15px!important;
  line-height:1.25!important;
  color:#708391!important;
  font-weight:600!important;
}
@media(max-width:520px){
 .social-public-grid .social-public-card{grid-template-columns:52px minmax(0,1fr)!important;padding:18px!important;min-height:112px!important}
 .social-public-grid .social-public-card>.social-public-copy b{font-size:18px!important}
}

/* SOCIAL CARD V2 — isolated from legacy social card rules */
#socialPublicLinks.social-public-grid>a.social-card-v2{
 display:grid!important;
 grid-template-columns:58px minmax(180px,1fr)!important;
 grid-template-rows:auto auto!important;
 grid-template-areas:"icon title" "icon platform"!important;
 align-items:center!important;
 justify-items:start!important;
 gap:3px 18px!important;
 box-sizing:border-box!important;
 min-width:0!important;
 min-height:154px!important;
 padding:28px!important;
 text-align:left!important;
 flex-direction:initial!important;
 overflow:visible!important;
}
#socialPublicLinks>a.social-card-v2>.social-brand-icon{
 grid-area:icon!important;
 width:58px!important;height:58px!important;min-width:58px!important;
 margin:0!important;padding:13px!important;
 align-self:center!important;justify-self:start!important;
 box-sizing:border-box!important;
}
#socialPublicLinks>a.social-card-v2>.social-brand-icon svg{width:32px!important;height:32px!important}
#socialPublicLinks>a.social-card-v2>.social-card-title{
 grid-area:title!important;
 display:block!important;
 width:auto!important;max-width:100%!important;min-width:0!important;
 margin:0!important;padding:0!important;
 font-size:20px!important;line-height:1.25!important;font-weight:800!important;
 color:#0877a6!important;
 white-space:normal!important;
 word-break:normal!important;
 overflow-wrap:normal!important;
 text-align:left!important;
 align-self:end!important;
}
#socialPublicLinks>a.social-card-v2>.social-card-platform{
 grid-area:platform!important;
 display:block!important;
 width:auto!important;max-width:100%!important;
 margin:2px 0 0!important;padding:0!important;
 font-size:15px!important;line-height:1.25!important;font-weight:600!important;
 color:#94a3ad!important;
 white-space:nowrap!important;
 text-transform:none!important;
 text-align:left!important;
 align-self:start!important;
}
@media(max-width:700px){
 #socialPublicLinks.social-public-grid>a.social-card-v2{
  grid-template-columns:54px minmax(0,1fr)!important;
  min-height:118px!important;padding:20px!important;gap:3px 14px!important;
 }
 #socialPublicLinks>a.social-card-v2>.social-brand-icon{width:54px!important;height:54px!important;min-width:54px!important;padding:12px!important}
 #socialPublicLinks>a.social-card-v2>.social-card-title{font-size:18px!important}
}

/* Community post full view modal */
.community-public-card{cursor:pointer}
.community-public-card:focus-visible{outline:3px solid rgba(8,119,166,.28);outline-offset:3px}
body.community-modal-open{overflow:hidden}
.community-post-modal{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147483000!important;background:rgba(7,19,28,.86)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;backdrop-filter:blur(5px)}
.community-post-dialog{position:relative!important;width:min(94vw,900px)!important;max-height:92vh!important;overflow:auto!important;background:#fff!important;border-radius:18px!important;box-shadow:0 28px 80px rgba(0,0,0,.42)!important}
.community-post-modal-image{display:block;width:100%;max-height:62vh;object-fit:contain;background:#eef2f4}
.community-post-modal-copy{padding:24px 28px 30px}
.community-post-modal-copy h2{margin:0 0 14px;font-size:28px;line-height:1.2;color:#102a38}
.community-post-modal-copy p{margin:0;font-size:17px;line-height:1.7;color:#435b67;white-space:pre-wrap}
.community-post-close{position:absolute;top:14px;right:14px;z-index:3;width:44px;height:44px;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(8,24,34,.82)!important;color:#fff!important;font-size:30px!important;line-height:1!important;cursor:pointer}
@media(max-width:600px){.community-post-modal{padding:10px!important}.community-post-dialog{width:100%!important;max-height:94vh!important;border-radius:14px!important}.community-post-modal-image{max-height:55vh}.community-post-modal-copy{padding:20px}.community-post-modal-copy h2{font-size:23px}.community-post-modal-copy p{font-size:16px}}


/* PROPERTY DETAIL V5 - compact desktop layout */
.property-page{max-width:1220px!important;margin:14px auto!important;padding:0 18px!important}
.property-detail-shell{display:block!important}
.property-v5-card{display:grid!important;grid-template-columns:minmax(430px,1fr) minmax(500px,1.18fr)!important;gap:18px!important;background:#fff!important;border-radius:18px!important;padding:16px!important;box-shadow:0 5px 18px #0000000d!important;align-items:start!important}
.property-v5-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.property-v5-photo,.property-v5-photo:first-child{position:relative!important;display:block!important;grid-row:auto!important;border:0!important;padding:0!important;margin:0!important;background:transparent!important;border-radius:11px!important;overflow:hidden!important;cursor:zoom-in!important}
.property-v5-photo img,.property-v5-photo:first-child img{display:block!important;width:100%!important;height:165px!important;object-fit:cover!important;border-radius:11px!important}
.property-v5-more{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#0b263b99!important;color:#fff!important;font-size:20px!important;font-weight:800!important}
.property-v5-info{min-width:0!important}
.property-v5-title{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:flex-start!important}
.property-v5-title h1{font-size:27px!important;line-height:1.15!important;margin:7px 0 3px!important}
.property-v5-title p{margin:0!important;color:#708391!important;font-size:14px!important}
.property-v5-price{font-size:24px!important;font-weight:800!important;color:var(--blue)!important;white-space:nowrap!important}.property-v5-price small{font-size:13px!important}
.property-v5-facts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:12px 0!important}
.property-v5-facts div{border:1px solid #e2ebef!important;border-radius:10px!important;padding:9px 10px!important}.property-v5-facts b,.property-v5-facts span{display:block!important}.property-v5-facts span{font-size:11px!important;color:#708391!important;margin-top:3px!important}
.property-v5-bottom{display:grid!important;grid-template-columns:minmax(190px,.8fr) minmax(0,1.2fr)!important;gap:10px!important}.property-v5-bottom h2{font-size:17px!important;margin:0 0 7px!important}
.property-v5-rents{display:grid!important;gap:6px!important}.property-v5-rents div{border:1px solid #e2ebef!important;border-radius:10px!important;padding:9px 10px!important}.property-v5-rents b,.property-v5-rents span{display:block!important}.property-v5-rents span{font-size:13px!important;color:var(--blue)!important;margin-top:3px!important}
.property-v5-description{border:1px solid #e2ebef!important;border-radius:10px!important;padding:11px 12px!important;min-height:100%!important}.property-v5-description p{font-size:14px!important;line-height:1.45!important;margin:0!important;color:#526a7a!important;max-height:115px!important;overflow:auto!important;white-space:pre-line!important}
.property-v5-agent{margin-top:11px!important;padding-top:10px!important;border-top:1px solid #e5edef!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important}.property-v5-agent small,.property-v5-agent b,.property-v5-agent span{display:block!important}.property-v5-agent span{font-size:12px!important;color:#708391!important}.property-v5-agent .property-actions a{padding:9px 12px!important;font-size:13px!important}
@media(max-width:900px){.property-v5-card{grid-template-columns:1fr!important}.property-v5-photo img,.property-v5-photo:first-child img{height:180px!important}.property-v5-bottom{grid-template-columns:1fr!important}}
@media(max-width:560px){.property-page{padding:0 10px!important}.property-v5-card{padding:10px!important}.property-v5-gallery{grid-template-columns:repeat(2,1fr)!important}.property-v5-photo img,.property-v5-photo:first-child img{height:120px!important}.property-v5-title{display:block!important}.property-v5-price{margin-top:7px!important}.property-v5-facts{grid-template-columns:repeat(2,1fr)!important}.property-v5-agent{display:block!important}.property-v5-agent .property-actions{margin-top:8px!important}}

/* V8 preserved compact detail + media */
.property-v5-video{width:100%;height:165px;object-fit:cover;border-radius:11px;background:#07131b;grid-column:span 2}
.property-lightbox-close{right:14px!important;top:14px!important;width:38px!important;height:38px!important;border:1px solid rgba(255,255,255,.24)!important;background:rgba(10,22,30,.62)!important;backdrop-filter:blur(8px);color:#fff!important;font-size:25px!important;font-weight:300!important;box-shadow:0 6px 20px #0005!important;transition:.18s ease}
.property-lightbox-close:hover{background:rgba(255,255,255,.18)!important;transform:scale(1.06)}
.property-lightbox-arrow{width:44px!important;height:44px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.22)!important;background:rgba(10,22,30,.58)!important;backdrop-filter:blur(8px);color:#fff!important;font-size:32px!important;box-shadow:0 6px 20px #0004!important;transition:.18s ease}
.property-lightbox-arrow:hover{background:rgba(255,255,255,.18)!important;transform:translateY(-50%) scale(1.06)!important}
.property-lightbox-prev{left:18px!important}.property-lightbox-next{right:18px!important}
@media(max-width:560px){.property-v5-video{height:180px;grid-column:span 2}.property-lightbox-close{right:8px!important;top:8px!important}.property-lightbox-prev{left:6px!important}.property-lightbox-next{right:6px!important}}

/* Properties page: in-page Requests tabs, matching the existing visual language. */
.lia-properties-main{max-width:1180px;margin:auto;padding:20px 18px 55px;min-height:65vh}
.lia-properties-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0;border-bottom:1px solid #e4e7eb;padding-bottom:12px}
.lia-properties-tabs button{font:inherit;background:#fff;color:#24344a;border:1px solid #d8e0e8;border-radius:11px;padding:13px 21px;cursor:pointer;font-weight:600}
.lia-properties-tabs button.active{background:#173a62;color:#fff;border-color:#173a62}
.lia-tab-hint{display:inline;font-size:12px;font-weight:400;opacity:.85;margin-left:5px}
.lia-requests-pane{padding:10px 0 50px}
.lia-requests-pane p{color:#586678}
.rq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px;margin:16px 0}
.rq-card{background:#fff;border:1px solid #e3e7ec;border-radius:14px;padding:20px;box-shadow:0 2px 10px #0000000a}
.rq-card h3{margin:0 0 10px}.rq-meta{color:#576777;line-height:1.8}
.rq-filters{display:flex;gap:12px;margin:20px 0;flex-wrap:wrap}
.rq-filters button{font:inherit;padding:10px 14px;border:1px solid #ddd;border-radius:9px;background:white;cursor:pointer}
.rq-filters button.active{background:#173a62;color:white}
.rq-wa{display:inline-block;background:#16864a;color:white!important;padding:10px 16px;border-radius:9px;text-decoration:none;margin-top:15px}
.rq-empty{padding:30px;color:#566}
.property-v5-video-frame{position:relative;overflow:hidden;border-radius:12px;background:#0c1825;min-height:170px;max-height:360px}
.property-v5-video-label{display:block;color:#fff;padding:8px 12px;font-size:13px;font-weight:600}
.property-v5-video-frame video{display:block;max-width:100%;width:100%;max-height:315px;background:#0c1825}
[hidden]{display:none!important}
@media(max-width:550px){.lia-properties-tabs button{flex:1;padding:11px 8px}.lia-tab-hint{display:block;margin:3px 0 0}}

/* Private-location release: reference visible, exact building hidden from public. */
.property-public-reference{display:inline-block!important;margin:9px 0!important;padding:5px 11px!important;border:1px solid #cbd9e4!important;border-radius:8px!important;background:#f0f7fa!important;color:#17384c!important;font-weight:700!important;font-size:13px!important;letter-spacing:.2px!important}


/* Property details: back to all listings, keeping the existing card layout intact. */
.property-detail-nav{margin:0 0 12px;display:flex;align-items:center}
.property-back-all{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border:1px solid #cbdde8;border-radius:10px;background:#fff;color:#183c5b;text-decoration:none;font-weight:750;font-size:14px;line-height:1.25;box-shadow:0 2px 8px #0b25350b;transition:background .15s ease,border-color .15s ease}
.property-back-all:hover,.property-back-all:focus-visible{background:#e9f4fa;border-color:#7bb9d8;color:#123753}
.property-back-all span{font-size:20px;line-height:1}

/* Clickable video thumbnail opens a full-size lightbox, like property photos. */
.property-v5-video-frame{position:relative}
.property-v5-video-frame .property-v5-video{pointer-events:none}
.property-v5-video-open{position:absolute;left:0;right:0;top:0;bottom:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;border:0;color:#fff;background:linear-gradient(180deg,transparent 35%,#0006 100%);cursor:zoom-in;font-family:inherit;font-size:13px;line-height:1.3;font-weight:600}
.property-v5-video-open span:last-child{padding:3px 9px;background:#061a24ae;border-radius:50px}
.property-v5-video-play-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#ffffffdc;color:#123853;font-size:23px;box-shadow:0 5px 20px #0006;transition:transform .15s ease}
.property-v5-video-open:hover .property-v5-video-play-icon,.property-v5-video-open:focus-visible .property-v5-video-play-icon{transform:scale(1.09)}
.property-v5-video-open:focus-visible{outline:3px solid #52b8ec;outline-offset:-3px}
.property-video-modal{display:none;position:fixed;inset:0;z-index:2147483001;background:#050b12ed;padding:22px;align-items:center;justify-content:center;backdrop-filter:blur(5px)}
.property-video-modal.show{display:flex}
.property-video-modal-stage{position:relative;width:min(1300px,96vw);max-height:94vh;display:flex;flex-direction:column;align-items:stretch;background:#070e14;border:1px solid #ffffff30;border-radius:16px;box-shadow:0 25px 90px #000b;overflow:hidden}
.property-video-modal-head{display:flex;justify-content:space-between;align-items:center;min-height:57px;padding:8px 12px 8px 20px;gap:16px;color:#fff}
.property-video-modal-title{font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.property-video-modal-close{display:grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid #ffffff45;border-radius:50%;color:#fff;background:#ffffff1b;font-size:28px;line-height:1;cursor:pointer}
.property-video-modal-close:hover,.property-video-modal-close:focus-visible{background:#ffffff3b}
.property-video-modal-player{display:block;width:100%;max-height:calc(94vh - 65px);height:auto;min-height:200px;object-fit:contain;background:#000}
@media(max-width:600px){.property-detail-nav{margin:0 0 10px}.property-back-all{padding:10px 12px;font-size:13px}.property-video-modal{padding:8px}.property-video-modal-stage{width:100%;max-height:96vh}.property-video-modal-head{padding:7px 10px 7px 13px}.property-video-modal-player{max-height:calc(96vh - 60px);min-height:130px}.property-v5-video-play-icon{width:46px;height:46px;font-size:19px}}

.property-v5-video-frame .property-v5-video-label{position:relative;z-index:3;pointer-events:none}


/* 2026-10-12: separate page bedroom filters, preserving original property/request cards. */
.lia-bedroom-section{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:15px 0 6px;padding:0}
.lia-bedroom-label{font-size:13px;font-weight:750;color:#496276;letter-spacing:.01em}
.lia-bedroom-filters{display:flex;gap:8px;flex-wrap:wrap}
.lia-bedroom-filters button{font:inherit;font-size:13px;font-weight:700;line-height:1.3;padding:10px 14px;border:1px solid #d4e0e8;border-radius:10px;background:#fff;color:#25465e;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease;min-height:40px}
.lia-bedroom-filters button:hover{background:#edf5f9;border-color:#98b7ca}
.lia-bedroom-filters button.active,.lia-bedroom-filters button[aria-pressed="true"]{background:#173a62;color:#fff;border-color:#173a62;box-shadow:0 3px 10px #173a6225}
.lia-bedroom-filters button:focus-visible{outline:3px solid #4eafe6;outline-offset:2px}
.lia-filter-count{font-size:13px;color:#677f8f;margin:8px 0 16px}
.lia-no-results{grid-column:1/-1;padding:30px 14px;background:#f7fafc;border:1px dashed #ccdae3;border-radius:12px;color:#536b7b}
.lia-requests-bedroom-section{padding-top:2px;margin-top:2px}
@media(max-width:600px){.lia-bedroom-section{align-items:flex-start;gap:8px}.lia-bedroom-label{width:100%}.lia-bedroom-filters{width:100%;gap:6px}.lia-bedroom-filters button{padding:9px 10px;font-size:12px}}

/* Matching, refined close controls for photo and video overlays. */
.property-lightbox-close,.property-video-modal-close{
 position:relative;display:grid!important;place-items:center;flex:none;
 width:44px!important;height:44px!important;border-radius:13px!important;
 border:1px solid rgba(255,255,255,.22)!important;
 background:rgba(23,35,48,.88)!important;color:transparent!important;font-size:0!important;
 line-height:0!important;cursor:pointer!important;box-shadow:0 7px 28px rgba(0,0,0,.38)!important;
 backdrop-filter:blur(10px);transition:background .16s ease,transform .16s ease,border-color .16s ease!important;
}
.property-lightbox-close{position:absolute;right:14px!important;top:14px!important;z-index:8}
.property-video-modal-close{position:relative;right:auto;top:auto;z-index:8}
.property-lightbox-close::before,.property-lightbox-close::after,.property-video-modal-close::before,.property-video-modal-close::after{
 content:"";position:absolute;top:50%;left:50%;width:17px;height:2px;background:#fff;border-radius:5px;
 transform:translate(-50%,-50%) rotate(45deg);pointer-events:none
}
.property-lightbox-close::after,.property-video-modal-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.property-lightbox-close:hover,.property-video-modal-close:hover{background:rgba(49,68,85,.96)!important;border-color:rgba(255,255,255,.52)!important;transform:scale(1.045)!important}
.property-lightbox-close:focus-visible,.property-video-modal-close:focus-visible{outline:3px solid #79c6ef!important;outline-offset:3px!important}
@media(max-width:600px){.property-lightbox-close{right:10px!important;top:10px!important}}


/* Property gallery arrow alignment fix - 2026-10-12 */
/* Replace font-dependent ‹ › glyphs with geometrically centered icons. */
.property-lightbox-arrow {
  display: grid !important;
  place-items: center !important;
  position: absolute;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-indent: 0 !important;
  box-sizing: border-box !important;
}
.property-lightbox-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
  margin: auto;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
}
.property-lightbox-prev::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15.5 5.5 9 12l6.5 6.5' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.property-lightbox-next::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8.5 5.5 15 12l-6.5 6.5' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 560px) {
  .property-lightbox-arrow::before { width: 22px; height: 22px; background-size: 22px 22px; }
}

/* Life in Azizi unified dropdown filters (public only). */
.lia-dropdown-filters{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;gap:12px;align-items:end;margin:18px 0 12px}
.lia-dropdown-filters label{min-width:0;display:flex;flex-direction:column;gap:6px;color:#415c70;font-size:13px;font-weight:700}
.lia-dropdown-filters select,.lia-dropdown-filters input{width:100%;min-height:44px;border:1px solid #cad8e2;border-radius:10px;background:#fff;color:#15324a;font:inherit;font-size:14px;padding:10px 12px}
.lia-dropdown-filters select:focus-visible,.lia-dropdown-filters input:focus-visible{outline:2px solid #0876a8;outline-offset:2px}
.lia-dropdown-filters .lia-filter-clear{min-height:44px;padding:9px 16px;border:1px solid #cad8e2;background:#fff;color:#265272;border-radius:10px;white-space:nowrap;font-size:13px;font-weight:700}
.search .filters{grid-template-columns:repeat(5,minmax(0,1fr)) 140px}
.quick{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1050px){.lia-dropdown-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.lia-dropdown-filters .lia-filter-clear{grid-column:1/-1}.search .filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.lia-dropdown-filters{grid-template-columns:1fr}.lia-dropdown-filters .lia-filter-clear{grid-column:auto}.search .filters{grid-template-columns:repeat(2,minmax(0,1fr))}.search .filters button{grid-column:1/-1}}

/* The Back to All Properties link lives after the detail card, not above it. */
.property-page > .property-detail-nav {margin:18px 0 0;justify-content:flex-start}

/* 2026-10-12: exactly five matching home shortcut cards, centered and responsive. */
#home .quick{width:min(94%,1510px);margin:28px auto;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important;align-items:stretch}
#home .quick .quick-card{min-width:0;min-height:152px;padding:22px 12px;justify-content:center;display:flex;align-items:center;flex-direction:column;text-align:center}
#home .quick .quick-card b{font-size:17px;line-height:1.2;margin:12px 0 7px}
#home .quick .quick-card span{font-size:13px;line-height:1.45;max-width:100%;overflow-wrap:anywhere}
#home .quick .quick-card:focus-visible{outline:3px solid #157aaf;outline-offset:3px}
@media(max-width:1050px){#home .quick{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:720px){#home .quick{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}#home .quick .quick-card{min-height:130px}}
@media(max-width:430px){#home .quick{grid-template-columns:1fr!important}#home .quick .quick-card{min-height:108px}}
/* Request note paragraphs: keep source line breaks but never leak raw HTML. */
.rq-card .rq-public-notes{margin:14px 0 0;padding:12px 14px;border-radius:10px;background:#f3f8fb;color:#29465a;white-space:pre-line;overflow-wrap:anywhere;line-height:1.5}


/* Social Media page: single authoritative layout (2026-10-12). */
#socialPublicLinks.social-public-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:20px!important;
  align-items:stretch!important;
}
#socialPublicLinks > a {
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:"icon title" "icon platform"!important;
  column-gap:18px!important;
  row-gap:5px!important;
  align-content:center!important;
  align-items:center!important;
  justify-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  min-height:156px!important;
  padding:22px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-align:left!important;
  flex-direction:initial!important;
}
#socialPublicLinks > a > .social-brand-icon,
#socialPublicLinks > a > span.social-brand-icon {
  grid-area:icon!important;
  width:58px!important;height:58px!important;min-width:58px!important;
  margin:0!important;justify-self:start!important;align-self:center!important;
}
#socialPublicLinks > a > .social-card-title,
#socialPublicLinks > a > .social-public-copy {
  grid-area:title!important;
  display:block!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:0!important;
  white-space:normal!important;word-break:normal!important;
  overflow-wrap:break-word!important;
  font-size:20px!important;line-height:1.3!important;
  font-weight:800!important;text-align:left!important;
  align-self:end!important;
}
#socialPublicLinks > a > .social-card-platform {
  grid-area:platform!important;
  display:block!important;
  width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;
  white-space:normal!important;overflow-wrap:break-word!important;
  font-size:15px!important;line-height:1.35!important;
  text-align:left!important;align-self:start!important;
}
#socialPublicLinks > a > .social-public-copy b,
#socialPublicLinks > a > .social-public-copy small {
  display:block!important;width:100%!important;min-width:0!important;
  margin:0!important;white-space:normal!important;overflow-wrap:break-word!important;
}
#socialPublicLinks > a > .social-public-copy small {margin-top:6px!important;font-size:15px!important}
@media(max-width:1000px){#socialPublicLinks.social-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){
  #socialPublicLinks.social-public-grid{grid-template-columns:1fr!important}
  #socialPublicLinks > a{min-height:115px!important;padding:18px!important;grid-template-columns:52px minmax(0,1fr)!important;column-gap:14px!important}
  #socialPublicLinks > a > .social-brand-icon{width:52px!important;height:52px!important;min-width:52px!important}
  #socialPublicLinks > a > .social-card-title,#socialPublicLinks > a > .social-public-copy{font-size:18px!important}
}

/* Businesses modal: multi-photo gallery (2026-10-17) */
.business-modal-media{position:relative;background:#f2f5f6}
.business-modal-media>.business-modal-active-photo{display:block;width:100%;height:auto;max-height:58vh;object-fit:contain;margin:auto}
.business-modal-prev,.business-modal-next{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:50%;background:rgba(9,27,40,.77);color:white;font-size:23px;cursor:pointer;z-index:1}
.business-modal-prev{left:12px}.business-modal-next{right:12px}
.business-modal-count{position:absolute;bottom:10px;right:12px;padding:4px 10px;background:rgba(9,27,40,.75);color:white;border-radius:12px;font-size:13px}
.business-modal-thumbs{display:flex;gap:8px;overflow-x:auto;padding:10px 14px;background:#fff}
.business-modal-thumbs button{flex:0 0 72px;width:72px;height:56px;padding:2px;border:2px solid transparent;border-radius:8px;background:#f3f6f7;cursor:pointer;overflow:hidden}
.business-modal-thumbs button.active{border-color:#0877a6}
.business-modal-thumbs img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
@media(max-width:600px){.business-modal-media>.business-modal-active-photo{max-height:52vh}.business-modal-prev,.business-modal-next{width:36px;height:36px}.business-modal-thumbs button{flex-basis:58px;width:58px;height:48px}}

/* Life in Azizi - Businesses gallery arrow alignment fix (2026-10-17) */
.business-modal-media .business-modal-prev,
.business-modal-media .business-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(18,36,48,.80);
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,.16);
  transition: background .15s ease, box-shadow .15s ease;
}
.business-modal-media .business-modal-prev { left: 14px; right: auto; }
.business-modal-media .business-modal-next { right: 14px; left: auto; }
.business-modal-media .business-modal-prev::before,
.business-modal-media .business-modal-next::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  flex: 0 0 auto;
}
.business-modal-media .business-modal-prev::before { transform: rotate(-135deg); margin-left: 5px; }
.business-modal-media .business-modal-next::before { transform: rotate(45deg); margin-right: 5px; }
.business-modal-media .business-modal-prev:hover,
.business-modal-media .business-modal-next:hover { background: rgba(10,83,118,.94); box-shadow: 0 3px 13px rgba(0,0,0,.25); }
.business-modal-media .business-modal-prev:focus-visible,
.business-modal-media .business-modal-next:focus-visible { outline: 3px solid #1c91c7; outline-offset: 3px; }
@media (max-width:600px) {
  .business-modal-media .business-modal-prev,
  .business-modal-media .business-modal-next { width: 38px; height: 38px; }
  .business-modal-media .business-modal-prev { left: 9px; }
  .business-modal-media .business-modal-next { right: 9px; }
}

/* List Property dropdowns: match Properties filter appearance. */
#listPropertyForm select{display:block!important;width:100%!important;box-sizing:border-box!important;min-height:48px!important;margin-top:7px!important;padding:12px 44px 12px 14px!important;border:1px solid #cad8e2!important;border-radius:10px!important;background-color:#fbfdfd!important;color:#15324a!important;font:inherit!important;font-size:15px!important;line-height:1.4!important;cursor:pointer!important;appearance:none!important;-webkit-appearance:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23265372' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:18px 18px!important;transition:border-color .15s,box-shadow .15s!important}
#listPropertyForm select:hover{border-color:#85aabe!important}
#listPropertyForm select:focus-visible{outline:2px solid #0876a8!important;outline-offset:2px!important}
#listPropertyForm select:invalid{color:#6c8292!important}
