/* ADCON enhancements: listing search, website assistant, mobile action bar, motion. */

.visually-hidden { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; padding:0; margin:-1px; }

/* ---------- All Properties search ---------- */
.all-props-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:0 0 32px; }
.all-props-toolbar input[type="search"] { flex:1 1 320px; max-width:520px; padding:14px 20px; border-radius:999px; border:1px solid rgba(15,23,42,0.12); background:#fff; font-size:15px; color:#0f172a; outline:none; box-shadow:0 6px 18px rgba(15,23,42,0.06); transition:box-shadow .3s, border-color .3s; }
.all-props-toolbar input[type="search"]:focus { border-color:#2563eb; box-shadow:0 0 0 4px rgba(37,99,235,0.12); }
.all-props-count { color:#64748b; font-size:14px; font-weight:600; }
.all-props-empty { text-align:center; padding:48px 0; color:#64748b; }
.all-props-empty a { color:#2563eb; font-weight:600; }
#all-properties-grid .prop-card { transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
#all-properties-grid .prop-card:hover { box-shadow:0 18px 40px rgba(15,23,42,0.10); }

/* ---------- Website assistant launcher ---------- */
.adcon-bot-launch { position:fixed; right:20px; bottom:84px; z-index:85; display:flex; align-items:center; gap:10px; padding:12px 18px 12px 14px; border:0; border-radius:999px; background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; font-family:"Satoshi",system-ui,sans-serif; font-weight:600; font-size:14px; line-height:1; box-shadow:0 12px 30px rgba(37,99,235,0.35); cursor:pointer; transition:transform .25s ease, box-shadow .25s ease; }
.adcon-bot-launch:hover { transform:translateY(-2px); box-shadow:0 16px 36px rgba(37,99,235,0.45); }
.adcon-bot-launch:focus-visible { outline:3px solid rgba(37,99,235,0.4); outline-offset:3px; }
.adcon-bot-launch::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; animation:adcon-pulse 2.4s infinite; }
.adcon-bot-launch.is-open::after { animation:none; }

/* ---------- Assistant panel ---------- */
.adcon-bot-panel { position:fixed; right:20px; bottom:150px; z-index:86; width:min(380px, calc(100vw - 40px)); height:min(540px, calc(100vh - 180px)); display:flex; flex-direction:column; background:#fff; border:1px solid rgba(15,23,42,0.08); border-radius:20px; box-shadow:0 24px 60px rgba(15,23,42,0.22); overflow:hidden; font-family:"Satoshi",system-ui,sans-serif; animation:adcon-rise .35s ease both; }
.adcon-bot-panel[hidden] { display:none; }
.adcon-bot-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px; background:linear-gradient(135deg,#0f172a,#1e3a8a); color:#fff; }
.adcon-bot-title { font-weight:700; font-size:15px; }
.adcon-bot-sub { font-size:12px; opacity:.78; margin-top:2px; }
.adcon-bot-close { background:none; border:0; color:#fff; font-size:26px; line-height:1; cursor:pointer; padding:2px 8px; }
.adcon-bot-msgs { flex:1; overflow-y:auto; padding:16px; background:#f8fafc; display:flex; flex-direction:column; gap:10px; }
.adcon-msg { display:flex; }
.adcon-msg.user { justify-content:flex-end; }
.adcon-bubble { max-width:86%; padding:10px 14px; border-radius:14px; font-size:14px; line-height:1.5; color:#0f172a; background:#fff; border:1px solid rgba(15,23,42,0.06); animation:adcon-fade .3s ease both; }
.adcon-msg.user .adcon-bubble { background:#2563eb; color:#fff; border-color:transparent; }
.adcon-chips { display:flex; flex-wrap:wrap; gap:8px; }
.adcon-chip { border:1px solid rgba(37,99,235,0.35); background:#fff; color:#1d4ed8; border-radius:999px; padding:7px 12px; font-size:13px; font-weight:600; cursor:pointer; transition:background .2s, color .2s; }
.adcon-chip:hover, .adcon-chip:focus-visible { background:#2563eb; color:#fff; outline:none; }
.adcon-card { background:#fff; border:1px solid rgba(15,23,42,0.08); border-radius:14px; padding:12px 14px; animation:adcon-fade .35s ease both; }
.adcon-card-title { font-weight:700; font-size:14px; color:#0f172a; }
.adcon-card-meta { font-size:12px; color:#64748b; margin-top:3px; }
.adcon-card-price { font-size:13px; font-weight:600; color:#b45309; margin-top:6px; }
.adcon-card-actions { display:flex; gap:8px; margin-top:10px; }
.adcon-btn { flex:1; text-align:center; padding:8px 10px; border-radius:10px; font-size:13px; font-weight:600; text-decoration:none; border:1px solid transparent; }
.adcon-btn.ghost { border-color:rgba(15,23,42,0.15); color:#0f172a; background:#fff; }
.adcon-btn.wa { background:#16a34a; color:#fff; }
.adcon-lead { display:grid; gap:8px; background:#fff; border:1px solid rgba(15,23,42,0.08); border-radius:14px; padding:12px; animation:adcon-fade .3s ease both; }
.adcon-lead input { width:100%; padding:10px 12px; border:1px solid rgba(15,23,42,0.15); border-radius:10px; font-size:14px; color:#0f172a; background:#fff; outline:none; }
.adcon-lead input:focus { border-color:#2563eb; }
.adcon-lead button { padding:10px; border:0; border-radius:10px; background:#2563eb; color:#fff; font-weight:600; font-size:14px; cursor:pointer; }
.adcon-lead button:disabled { opacity:.6; cursor:default; }
.adcon-lead-status { font-size:12px; color:#dc2626; }
.adcon-lead-ok { font-size:14px; color:#15803d; font-weight:600; }
.adcon-bot-input { display:flex; gap:8px; padding:12px; background:#fff; border-top:1px solid rgba(15,23,42,0.08); }
.adcon-bot-input input { flex:1; min-width:0; padding:10px 14px; border:1px solid rgba(15,23,42,0.15); border-radius:999px; font-size:14px; color:#0f172a; background:#fff; outline:none; }
.adcon-bot-input input:focus { border-color:#2563eb; }
.adcon-bot-input button { padding:10px 16px; border:0; border-radius:999px; background:#0f172a; color:#fff; font-weight:600; font-size:14px; cursor:pointer; }

/* ---------- Proactive nudge bubble ---------- */
.adcon-nudge { position:fixed; right:20px; bottom:150px; z-index:84; max-width:270px; display:flex; flex-direction:column; gap:10px; padding:14px 16px; background:#fff; border-radius:16px; box-shadow:0 18px 40px rgba(15,23,42,0.2); font-family:"Satoshi",system-ui,sans-serif; font-size:14px; line-height:1.45; color:#0f172a; animation:adcon-rise .4s ease both; }
.adcon-nudge[hidden] { display:none; }
.adcon-nudge-row { display:flex; gap:8px; align-items:center; justify-content:space-between; }
.adcon-nudge-open { padding:8px 14px; border:0; border-radius:999px; background:#2563eb; color:#fff; font-weight:600; font-size:13px; cursor:pointer; }
.adcon-nudge-x { background:none; border:0; color:#64748b; font-size:20px; line-height:1; cursor:pointer; }

/* ---------- Mobile sticky action bar ---------- */
.mobile-cta-bar { display:none; }

@keyframes adcon-pulse { 0% { box-shadow:0 0 0 0 rgba(37,99,235,0.45); } 70% { box-shadow:0 0 0 18px rgba(37,99,235,0); } 100% { box-shadow:0 0 0 0 rgba(37,99,235,0); } }
@keyframes adcon-rise { from { opacity:0; transform:translateY(16px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes adcon-fade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

@media (max-width:768px) {
  .wa-fab { display:none !important; }
  .mobile-cta-bar { display:grid; grid-template-columns:1fr 1fr 1fr; position:fixed; left:0; right:0; bottom:0; z-index:88; background:#0f172a; box-shadow:0 -8px 24px rgba(15,23,42,0.25); padding-bottom:env(safe-area-inset-bottom); }
  .mobile-cta-bar a { display:flex; align-items:center; justify-content:center; height:56px; color:#fff; font-weight:700; font-size:14px; text-decoration:none; font-family:"Satoshi",system-ui,sans-serif; }
  .mcb-call { background:#1e293b; }
  .mcb-wa { background:#16a34a; }
  .mcb-enquire { background:#2563eb; }
  body { padding-bottom:56px; }
  .adcon-bot-launch { right:14px; bottom:76px; }
  .adcon-bot-panel { left:12px; right:12px; width:auto; bottom:136px; height:min(520px, calc(100vh - 170px)); }
  .adcon-nudge { left:12px; right:12px; max-width:none; bottom:136px; }
  .all-props-toolbar input[type="search"] { max-width:none; flex-basis:100%; }
}

@media (prefers-reduced-motion:reduce) {
  .adcon-bot-launch::after, .adcon-bot-panel, .adcon-nudge, .adcon-bubble, .adcon-card, .adcon-lead { animation:none !important; }
  .adcon-bot-launch, #all-properties-grid .prop-card { transition:none !important; }
}

/* Hero secondary call to action (desktop only; mobile keeps its tuned hero and uses the sticky bar) */
#hero .hero-image-copy a.hero-browse-link { background:transparent !important; border:1.5px solid rgba(255,255,255,0.8) !important; color:#fff !important; box-shadow:none !important; margin-left:10px !important; }
#hero .hero-image-copy a.hero-browse-link:hover { background:rgba(255,255,255,0.14) !important; }
@media (max-width:768px) { #hero .hero-image-copy a.hero-browse-link { display:none !important; } }
