/*
 S SQUARE PROPERTY — AI Real Estate V8 Developer Edition
 DESIGN FILE
 Change navigation, hero, cards, forms, mobile responsiveness and theme here.
 Current brand direction: premium navy / ivory / gold.
 Keep a backup before major visual changes.
*/
*{box-sizing:border-box}body{margin:0;background:#f6f5f1;color:#17202b;font-family:Arial,Helvetica,sans-serif}.utility{background:#081522;color:#c8d0d7;padding:7px 4%;display:flex;justify-content:space-between;font-size:11px;letter-spacing:.4px}header{height:86px;background:#071426;display:flex;align-items:center;justify-content:space-between;padding:0 4%;position:sticky;top:0;z-index:50;border-bottom:1px solid #b99045}.logo{width:235px;height:76px;object-fit:contain;cursor:pointer}nav{display:flex;gap:2px}nav button{background:transparent;color:#fff}button{border:0;padding:11px 14px;border-radius:4px;cursor:pointer;font-weight:700}.gold{background:#cba24f;color:#071426}.navy{background:#071f39;color:#fff}.light{background:#fff;color:#071426}.outline,.back{background:#fff;color:#071426;border:1px solid #ccd2d8}.outlineDark{background:transparent;color:#fff;border:1px solid #ffffff70}.headActions{display:flex;gap:8px}.page{display:none;max-width:1500px;margin:auto;padding:38px 4% 70px}.page.active{display:block}.hero{height:650px;background-size:cover;background-position:center;display:flex;align-items:center;position:relative;color:#fff}.heroContent{max-width:820px;padding:60px}.kicker,.pageHero span,.sectionHead span,.experience>div>span,.splitCta span,.verificationPanel>span,.adminLoginCard>span{font-size:11px;letter-spacing:2.2px;color:#d9b76d;font-weight:800}.hero h1{font-family:Georgia,serif;font-size:68px;line-height:1.04;margin:15px 0}.hero h1 em{font-style:normal;color:#e0bd6b}.hero p{font-size:18px;line-height:1.6;color:#e4e7ea}.searchbar{display:flex;background:#fff;padding:7px;margin-top:30px;max-width:820px}.searchbar input{flex:1;border:0;outline:0;padding:14px;font-size:15px}.heroLinks{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.heroLinks button{background:#ffffff13;color:#fff;border:1px solid #ffffff45}.heroStat{position:absolute;right:35px;bottom:35px;background:#071426e8;border-left:3px solid #d3a84f;padding:20px 25px}.heroStat small,.heroStat b,.heroStat span{display:block}.heroStat b{font-family:Georgia,serif;font-size:22px;margin:6px 0}.luxStats{display:grid;grid-template-columns:repeat(4,1fr);background:#071426;color:#fff}.luxStats div{padding:25px 30px;border-right:1px solid #ffffff20}.luxStats b{display:block;font-family:Georgia,serif;font-size:34px;color:#d7b360}.sectionHead{text-align:center;padding:65px 0 30px}.sectionHead h2,.pageHero h1,.experience h2,.splitCta h2{font-family:Georgia,serif;font-size:42px;margin:8px 0}.sectionHead p,.pageHero p{color:#69717a}.propertyGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.propertyCard{background:#fff;box-shadow:0 10px 35px #15202b12}.propertyImage{height:235px;background-size:cover;background-position:center;position:relative}.score,.listedBy,.verifiedBadge{position:absolute;top:12px;padding:7px 9px;font-size:10px;font-weight:800}.score{left:12px;background:#0a6b4a;color:#fff}.listedBy{right:12px;background:#fff;color:#071426}.verifiedBadge{left:12px;bottom:12px;top:auto;background:#071426;color:#fff}.propertyBody{padding:19px}.propertyBody h3{font-family:Georgia,serif;font-size:22px;margin:0 0 8px}.price{font-size:23px;font-weight:800;color:#a52a2a;margin:10px 0}.meta{font-size:12px;color:#6a727d;display:flex;gap:12px;flex-wrap:wrap}.actions{display:flex;gap:7px;margin-top:16px}.experience{background:#071426;color:#fff;margin-top:70px;padding:55px}.experienceGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:25px;margin-top:35px}.experienceGrid article{border-top:1px solid #cba24f;padding-top:18px}.experienceGrid p{color:#c1c9d2;line-height:1.6}.splitCta{display:grid;grid-template-columns:1fr 1fr;margin-top:50px}.splitCta>div{padding:50px}.splitCta>div:first-child{background:#e7e0d2}.splitCta>div:last-child{background:#12395d;color:#fff}.pageHero{background:#071426;color:#fff;padding:45px 50px;margin-bottom:28px}.smallHero{background:linear-gradient(120deg,#071426,#12395d)}.filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:9px;margin-bottom:28px}.filters input,.filters select,.formCard input,.formCard select,.formCard textarea,.panel input,.loginCard input,.adminLoginCard input{width:100%;padding:13px;border:1px solid #cbd0d5;background:#fff}.aiBox{background:#fff;padding:25px;margin-bottom:25px}.aiIcon{width:55px;height:55px;background:#071426;color:#d8b365;display:grid;place-items:center;border-radius:50%;font-weight:800}.notice{background:#eef3f6;border-left:3px solid #b99146;padding:11px;margin-top:10px}.choiceGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.choice{background:#fff;padding:35px;text-align:center;box-shadow:0 8px 28px #17202b10;position:relative}.choiceIcon{font-size:48px;color:#c19a4f}.featuredChoice{outline:2px solid #c9a14e}.freeBadge{position:absolute;right:12px;top:12px;background:#0b6b49;color:#fff;padding:6px 8px;font-size:9px}.tabs{display:flex;gap:8px;margin-bottom:20px}.tabs button{background:#fff;border:1px solid #cbd2d9}.tabs .selected{background:#071426;color:#fff}.agentWrap{display:grid;grid-template-columns:260px 1fr;gap:25px}.photoPanel,.formCard,.loginCard,.panel,.adminLoginCard{background:#fff;padding:25px;box-shadow:0 8px 28px #17202b10}.avatar{width:175px;height:175px;border-radius:50%;background:#e9ecef;display:grid;place-items:center;margin:auto;font-family:Georgia,serif;font-size:48px;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.upload{display:block;background:#071426;color:#fff;text-align:center;padding:11px;margin-top:18px;cursor:pointer}.upload input{display:none}.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.formGrid label,.formCard>label,.adminLoginCard label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700}.otp{display:none;background:#f5edda;padding:15px;margin-top:12px}.hidden{display:none}.loginCard,.adminLoginCard{max-width:520px;margin:auto}.dashHeader{background:#071426;color:#fff;padding:30px;display:flex;justify-content:space-between;align-items:center}.dashboardMetrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:20px 0}.dashboardMetrics div{background:#fff;padding:20px}.dashboardMetrics b{display:block;font-family:Georgia,serif;font-size:32px;color:#8b681f}.refBox{background:#e8dfcc;padding:25px;display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.listingLayout{display:grid;grid-template-columns:1fr 300px;gap:25px}.verificationPanel{background:#071426;color:#fff;padding:25px;height:max-content}.verificationPanel p,.verificationPanel li{color:#cbd2da;line-height:1.6}.muted{color:#69717a;font-size:13px}.photoStrip{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:12px 0}.photoStrip img{width:100%;height:100px;object-fit:cover}.docList{font-size:13px;color:#4d5969;margin:10px 0}.mapBox{margin:12px 0;min-height:260px;background:#e9edf0;display:grid;place-items:center}.mapBox iframe{width:100%;height:300px;border:0}.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.pricing>div{background:#fff;text-align:center;padding:35px}.pricing .best{outline:2px solid #cba24f}.builderLayout{display:grid;grid-template-columns:1fr 1fr;gap:25px}.builderPhoto{background-size:cover;background-position:center;min-height:520px}.prose{max-width:1050px}.prose h1,.prose h2{font-family:Georgia,serif}.prose h1{font-size:46px}.prose h2{margin-top:35px}.prose p{font-size:16px;line-height:1.85;color:#535e68}.contactLayout{display:grid;grid-template-columns:1fr 1fr;gap:30px}.contactInfo{background:#071426;color:#fff;padding:40px}.detailGallery{display:grid;grid-template-columns:2fr 1fr;gap:8px}.detailMain{height:480px;background-size:cover;background-position:center}.thumbGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.thumbGrid div{min-height:235px;background-size:cover;background-position:center}.detailInfoGrid{display:grid;grid-template-columns:1.2fr .8fr;gap:25px;margin-top:25px}.detailSpecs{background:#fff;padding:25px}.mapSection{background:#fff;padding:25px}.wide{width:100%}.adminTop{display:flex;justify-content:space-between;align-items:center}table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid #e3e6e9;text-align:left;font-size:12px}footer{background:#071426;color:#fff;padding:35px 4%;display:grid;grid-template-columns:260px 1fr 260px;gap:25px;align-items:center}footer img{width:230px}.footerLinks{display:flex;gap:8px;flex-wrap:wrap}.footerLinks button,.staff{background:transparent;color:#fff}.staff{font-size:10px;padding-left:0}@media(max-width:1050px){nav{display:none}.propertyGrid{grid-template-columns:1fr 1fr}.experienceGrid{grid-template-columns:1fr 1fr}.agentWrap,.builderLayout,.listingLayout,.detailInfoGrid{grid-template-columns:1fr}}@media(max-width:760px){.hero{height:600px}.heroContent{padding:30px}.hero h1{font-size:44px}.heroStat{display:none}.luxStats,.dashboardMetrics{grid-template-columns:1fr 1fr}.propertyGrid,.choiceGrid,.formGrid,.filters,.splitCta,.contactLayout,.detailGallery{grid-template-columns:1fr}.experience{padding:30px}.experienceGrid{grid-template-columns:1fr}.utility{display:none}.photoStrip{grid-template-columns:1fr 1fr}footer{grid-template-columns:1fr}}
/* V9 Revenue Engine */
.revenueGrid{display:grid;grid-template-columns:1fr 310px;gap:25px}
.premiumCheck{display:block;background:#f5edda;border:1px solid #d7bd83;padding:15px;margin:18px 0;font-size:13px}
.featuredProperty{outline:2px solid #cba24f;position:relative}
.featuredRibbon{position:absolute;z-index:3;left:12px;top:48px;background:#cba24f;color:#071426;padding:7px 9px;font-size:10px;font-weight:900}
.visitModal{background:#fff;padding:22px;border:1px solid #d8dde2;margin-top:18px}
.revenueTag{display:inline-block;background:#e9dfc9;color:#725615;padding:5px 8px;font-size:10px;font-weight:800}
@media(max-width:1050px){.revenueGrid{grid-template-columns:1fr}}
/* ===== S SQUARE PROPERTY Floating Chat Widget ===== */

.ds-chat-widget{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9999;
  font-family:Arial,sans-serif;
}

.ds-chat-button{
    width:auto;
    min-width:210px;
    height:52px;
    padding:0 18px;
    border:none;
    border-radius:26px;
    background:#111827;
    color:#fff;
    font-size:15px;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
    box-shadow:0 8px 24px rgba(0,0,0,.25);
}

.ds-chat-button:hover{
  transform:scale(1.05);
}

.ds-chat-menu{
  position:relative;
  display:none;
  width:580px;
  background:#fff;
  border-radius:16px;
  padding:12px;
  margin-bottom:12px;
  box-shadow:0 12px 35px rgba(0,0,0,.22);
  border:1px solid #e5e7eb;
}

.ds-chat-menu.open{
  display:block;
}

.ds-chat-title{
  background:#111827;
  color:#fff;
  padding:12px 14px;
  border-radius:12px;
  font-weight:700;
  margin-bottom:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.ds-chat-title span{
  cursor:pointer;
  font-size:22px;
}

.ds-chat-menu button{
  width:100%;
  border:none;
  background:#f7f7f7;
  padding:12px;
  margin:5px 0;
  border-radius:10px;
  text-align:left;
  cursor:pointer;
  font-size:14px;
}

.ds-chat-menu button:hover{
  background:#ececec;
}

@media(max-width:600px){
  .ds-chat-widget{
    right:14px;
    bottom:14px;
  }

  .ds-chat-menu{
    width:260px;
  }
}
/* ===== AI Property Assistant ===== */

.ai-assistant-box{
    display:none;
    position:fixed;
    right:620px;
    bottom:90px;
    width:480px;
    box-sizing:border-box;
    height:600px;
    max-height:75vh;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(0,0,0,.22);
}

.ai-assistant-box.open{
  display:block;
}

.ai-assistant-header{
  background:#111827;
  color:#ffffff;
  padding:12px;
  display:flex;
  cursor:move;
  user-select:none;
  justify-content:space-between;
  align-items:center;
}

.ai-assistant-header small{
  display:block;
  font-size:10px;
  opacity:.75;
  margin-top:2px;
}

.ai-assistant-header span{
  cursor:pointer;
  font-size:22px;
}

.ai-assistant-messages{
  height:420px;
  max-height:420px;
  overflow-y:auto;
  padding:12px;
  background:#f8fafc;
  width:100%;
  box-sizing:border-box;
  overflow-x:hidden;
}

.ai-bot-message,
.ai-user-message{
  padding:14px 16px;
  border-radius:12px;
  margin-bottom:10px;
  font-size:16px;
  line-height:1.6;
  
}

.ai-bot-message{
  background:#ffffff;
  border:1px solid #e5e7eb;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width:100%;
  box-sizing:border-box;
}

.ai-user-message{
    background:#111827;
    color:#ffffff;
    margin-left:30px;
    font-size:16px;
    line-height:1.6;
    padding:14px 16px;
    max-width:85%;
    box-sizing:border-box;
}

.ai-quick-options{
  padding:8px;
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  background:#ffffff;
}

.ai-quick-options button{
  width:auto;
  padding:7px 9px;
  margin:0;
  font-size:11px;
}

.ai-assistant-input{
  display:flex;
  gap:6px;
  padding:10px;
  border-top:1px solid #e5e7eb;
  background:#ffffff;
}

.ai-assistant-input input{
  flex:1;
  padding:10px;
  border:1px solid #d1d5db;
  border-radius:9px;
  outline:none;
font-size:16px;
}

.ai-assistant-input button{
  width:42px;
  margin:0;
  text-align:center;
  font-size:18px;
  padding:8px;
}
/* ===== Visitor Property Chat Box ===== */

.property-chat-box{
  display:none;
  margin-top:10px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  overflow:hidden;
}

.property-chat-box.open{
  display:block;
}

.property-chat-header{
  background:#111827;
  color:#ffffff;
  padding:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.property-chat-header small{
  display:block;
  font-size:10px;
  opacity:.75;
  margin-top:2px;
}

.property-chat-header span{
  cursor:pointer;
  font-size:22px;
}

.property-chat-messages{
  max-height:240px;
  min-height:100px;
  overflow-y:auto;
  padding:10px;
  background:#f8fafc;
}

.property-chat-info{
  font-size:12px;
  color:#6b7280;
  text-align:center;
  padding:10px;
}

.property-chat-visitor,
.property-chat-admin{
  padding:9px 11px;
  border-radius:10px;
  margin-bottom:8px;
  font-size:13px;
  line-height:1.4;
}

.property-chat-visitor{
  background:#111827;
  color:#ffffff;
  margin-left:25px;
}

.property-chat-admin{
  background:#ffffff;
  border:1px solid #e5e7eb;
  margin-right:25px;
}

.property-chat-input{
  display:flex;
  gap:6px;
  padding:10px;
  border-top:1px solid #e5e7eb;
  background:#ffffff;
}

.property-chat-input input{
  flex:1;
  padding:10px;
  border:1px solid #d1d5db;
  border-radius:9px;
  outline:none;
}

.property-chat-input button{
  width:42px;
  margin:0;
  padding:8px;
  text-align:center;
  font-size:18px;
}
/* ===== Floating Chat Position Fix ===== */

.ds-chat-menu{
  position:fixed;
  right:22px;
  bottom:90px;
  width:320px;
  max-height:70vh;
  overflow-y:auto;
  margin:0;
}

.property-chat-box{
  position:fixed;
  right:22px;
  bottom:90px;
  width:320px;
  max-height:480px;
  z-index:10001;
  margin:0;
}

@media(max-width:600px){
  .ds-chat-menu,
  .property-chat-box{
    right:12px;
    bottom:82px;
    width:calc(100vw - 24px);
    max-height:65vh;
  }
}

/* ===== Buyer Account Professional Form ===== */

#buyerRegisterBox,
#buyerLoginBox{
  max-width:520px;
  width:100%;
  margin:20px auto;
}

#buyerRegisterBox .formCard,
#buyerLoginBox.loginCard{
  width:100%;
  max-width:520px;
  padding:28px;
  box-sizing:border-box;
}

#buyerRegisterBox .formGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

#buyerRegisterBox label{
  display:block;
  width:100%;
}

#buyerRegisterBox input,
#buyerLoginBox input{
  width:100%;
  box-sizing:border-box;
  padding:13px 14px;
  min-height:46px;
  margin-top:6px;
  border:1px solid #cbd5e1;
  border-radius:6px;
  font-size:14px;
}

#buyerRegisterBox button,
#buyerLoginBox button{
  margin-top:16px;
  padding:12px 20px;
}

@media(max-width:600px){
  #buyerRegisterBox .formGrid{
    grid-template-columns:1fr;
  }

  #buyerRegisterBox,
  #buyerLoginBox{
    max-width:100%;
  }
}
/* ===== Buyer Form Width Fix ===== */

#buyerRegisterBox{
  display:block !important;
  max-width:760px !important;
  width:100% !important;
  margin:30px auto !important;
}

#buyerRegisterBox .formCard{
  width:100% !important;
  max-width:760px !important;
  padding:30px !important;
  box-sizing:border-box !important;
}

#buyerRegisterBox .formGrid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:20px !important;
  width:100% !important;
}

#buyerRegisterBox label{
  width:100% !important;
}

#buyerRegisterBox input{
  width:100% !important;
  min-width:0 !important;
  height:48px !important;
  box-sizing:border-box !important;
  font-size:15px !important;
  padding:12px 14px !important;
}

#buyerRegisterBox button{
  min-width:160px !important;
  padding:13px 22px !important;
}

@media(max-width:700px){
  #buyerRegisterBox .formGrid{
    grid-template-columns:1fr !important;
  }
}
/* ===== Buyer Tab Hide Fix ===== */

#buyerRegisterBox.hidden{
  display:none !important;
}

#buyerLoginBox.hidden{
  display:none !important;
}
/* ===== Buyer Forgot Password Button Fix ===== */

#buyerLoginBox .outlineDark{
  background:#ffffff !important;
  color:#071426 !important;
  border:1px solid #071426 !important;
  padding:10px 14px !important;
  border-radius:4px !important;
  cursor:pointer !important;
}

#buyerLoginBox .outlineDark:hover{
  background:#071426 !important;
  color:#ffffff !important;
}
/* ===== Admin Chat Close Button Fix ===== */

#adminChatInbox .outlineDark{
  display:inline-block !important;
  width:auto !important;
  padding:10px 16px !important;
  margin:8px 0 0 8px !important;
  background:#17202b !important;
  color:#ffffff !important;
  border:1px solid #17202b !important;
  border-radius:4px !important;
  cursor:pointer !important;
}

#adminChatInbox .outlineDark:disabled{
  background:#777 !important;
  border-color:#777 !important;
  cursor:not-allowed !important;
}
/* ===== Disabled Admin Chat Buttons ===== */

#adminChatInbox button:disabled {
  background: #999 !important;
  color: #eee !important;
  border-color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
}

#adminChatInbox textarea:disabled {
  background: #eeeeee !important;
  color: #777 !important;
  cursor: not-allowed !important;
}

/* V10 Agent CRM */
.crmHead{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.crmHead h2{margin:0}.crmSummary{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 18px}.crmSummary span{background:#f5efe0;border:1px solid #e2d2a8;padding:9px 12px;border-radius:8px}.crmLeadCard{border:1px solid #d9d9d9;border-left:4px solid #d5a63e;border-radius:8px;padding:16px;margin:12px 0;background:#fff}.crmLeadTop{display:flex;justify-content:space-between;gap:12px;align-items:center}.crmLeadTop div{display:flex;gap:10px;align-items:center}.crmLeadTop span,.crmLeadTop strong{text-transform:capitalize;font-size:12px;padding:5px 8px;border-radius:12px;background:#f3f3f3}.crmLeadGrid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:16px;margin:14px 0}.crmMessage,.crmNote{padding:10px 12px;background:#f8f8f8;border-radius:6px;margin:10px 0}.crmActions{display:flex;gap:8px;flex-wrap:wrap}.crmBtn{display:inline-block;text-decoration:none;padding:10px 14px;border-radius:4px}.crmNote{background:#fff8e8}@media(max-width:760px){.crmHead,.crmLeadTop{align-items:flex-start;flex-direction:column}.crmLeadGrid{grid-template-columns:1fr}.crmSummary span{flex:1 1 42%}.crmActions>*{flex:1 1 auto;text-align:center}}


/* ===== V10 Mobile Header & Responsive Layout Fix ===== */
.mobileMenuBtn,.mobileMenu{display:none}
@media(max-width:1050px){
  .siteHeader{height:74px;padding:0 16px;gap:12px;overflow:visible}
  .siteHeader .logo{width:205px;height:64px;max-width:58vw;flex:0 1 auto}
  .siteHeader .desktopNav,.siteHeader .headActions{display:none!important}
  .mobileMenuBtn{display:block;margin-left:auto;background:transparent;color:#fff;border:1px solid #ffffff70;font-size:26px;line-height:1;padding:10px 13px;min-width:48px}
  .mobileMenu{display:none;position:fixed;top:74px;left:0;right:0;z-index:1000;background:#071426;border-top:1px solid #b99045;border-bottom:2px solid #b99045;padding:10px 14px 16px;grid-template-columns:1fr 1fr;gap:8px;max-height:calc(100vh - 74px);overflow-y:auto;box-shadow:0 12px 28px #0005}
  .mobileMenu.open{display:grid}
  .mobileMenu button{background:#0d2239;color:#fff;border:1px solid #ffffff24;min-height:48px;text-align:left;font-size:14px}
  .mobileMenu button:nth-last-child(-n+2){border-color:#b99045}
}
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  .page{width:100%;max-width:100%;padding:24px 16px 50px;overflow:hidden}
  .pageHero{padding:30px 22px;margin-bottom:22px}
  .pageHero h1,.sectionHead h2,.experience h2,.splitCta h2{font-size:34px;line-height:1.08;overflow-wrap:anywhere}
  .pageHero p{font-size:15px;line-height:1.55}
  .agentHero h1{font-size:38px;line-height:1.08}
  .tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .tabs button{width:100%;min-width:0;padding:12px 8px;white-space:normal}
  .tabs button:nth-child(3){grid-column:1/-1}
  .agentWrap{grid-template-columns:minmax(0,1fr);width:100%}
  .photoPanel,.formCard,.loginCard,.panel,.adminLoginCard{width:100%;max-width:100%;min-width:0;padding:20px 16px}
  .hero{height:auto;min-height:540px}
  .heroContent{width:100%;max-width:100%;padding:42px 22px}
  .hero h1{font-size:42px;overflow-wrap:anywhere}
  .searchbar{flex-direction:column;gap:7px;background:transparent;padding:0}
  .searchbar input,.searchbar button{width:100%}
  .luxStats{grid-template-columns:1fr 1fr}
  .choice,.experience,.splitCta>div,.contactInfo{padding:26px 20px}
  .refBox,.dashHeader{flex-direction:column;align-items:flex-start;gap:14px}
  .actions{flex-wrap:wrap}
  .actions button{flex:1 1 auto}
  .detailMain{height:300px}
  .thumbGrid div{min-height:145px}
}
@media(max-width:420px){
  .siteHeader{height:68px;padding:0 12px}
  .siteHeader .logo{width:190px;height:58px;max-width:70vw}
  .mobileMenu{top:68px;max-height:calc(100vh - 68px);grid-template-columns:1fr}
  .mobileMenuBtn{font-size:23px;padding:9px 11px;min-width:44px}
  .page{padding-left:12px;padding-right:12px}
  .agentHero h1,.pageHero h1{font-size:32px}
  .hero h1{font-size:37px}
  .tabs{grid-template-columns:1fr}
  .tabs button:nth-child(3){grid-column:auto}
  .luxStats,.dashboardMetrics{grid-template-columns:1fr 1fr}
}
