/* ==========================================================
   Frosted-glass buttons + the animated gold "Sell your property" button
   Loaded after each page's own styles so it overrides them.
   ========================================================== */

/* ---------- Glass base ---------- */
.btn,.search .go,.fp-all{
  border-radius:999px!important;
  -webkit-backdrop-filter:blur(14px) saturate(170%);
  backdrop-filter:blur(14px) saturate(170%);
  transition:background .25s,box-shadow .25s,transform .2s,color .2s,border-color .25s;
}
.btn:hover,.search .go:hover,.fp-all:hover{transform:translateY(-1px)}
.btn:active,.search .go:active,.fp-all:active{transform:none}

/* Clear glass on dark or photo backgrounds (hero header, mortgage result panel) */
.btn-light{
  background:rgba(255,255,255,.16);color:#fff;
  border:1px solid rgba(255,255,255,.45);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 8px 24px rgba(0,0,0,.18);
}
.btn-light:hover{background:rgba(255,255,255,.3);color:#fff}

/* Smoked glass where the background is light */
.site-head.solid .btn-light,.agents .btn-light,.btn-dark{
  background:rgba(15,28,46,.78);color:#fff;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 8px 22px rgba(15,28,46,.2);
}
.site-head.solid .btn-light:hover,.agents .btn-light:hover,.btn-dark:hover{background:rgba(31,94,110,.88);color:#fff}

/* Teal glass for main actions */
.btn-accent,.search .go{
  background:rgba(31,94,110,.8)!important;color:#fff!important;
  border:1px solid rgba(255,255,255,.3)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 10px 26px rgba(31,94,110,.28);
}
.btn-accent:hover,.search .go:hover{background:rgba(31,94,110,.94)!important;filter:none}

/* Frosted white glass on light backgrounds */
.btn-ghost,.btn-line{
  background:rgba(255,255,255,.5);color:var(--text);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 6px 18px rgba(30,42,54,.1);
}
.btn-ghost:hover,.btn-line:hover{background:rgba(255,255,255,.78);box-shadow:inset 0 1px 0 #fff,0 8px 22px rgba(30,42,54,.14)}

/* WhatsApp: green glass */
.btn-wa{
  background:rgba(31,143,95,.86);color:#fff;
  border:1px solid rgba(255,255,255,.3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 8px 22px rgba(31,143,95,.28);
}
.btn-wa:hover{background:rgba(31,143,95,.97);filter:none}

/* Homepage "View all" and the featured tabs */
.fp-all{
  background:rgba(15,28,46,.8)!important;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 10px 26px rgba(15,28,46,.22);
}
.fp-all:hover{background:rgba(31,94,110,.9)!important}
.fp-tabs{
  background:rgba(255,255,255,.55)!important;border:1px solid rgba(255,255,255,.9)!important;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:inset 0 1px 0 #fff,0 6px 18px rgba(30,42,54,.08);
}

/* ---------- Gold "Sell your property" ---------- */
.btn-sell{
  position:relative;overflow:hidden;isolation:isolate;
  background:linear-gradient(120deg,#A97C34 0%,#E6C27E 30%,#F7E3B4 48%,#D4AE6C 64%,#A97C34 100%)!important;
  background-size:230% 100%!important;
  color:#0F1C2E!important;opacity:1!important;font-weight:750!important;
  border:1px solid rgba(255,238,200,.9)!important;
  box-shadow:0 0 0 0 rgba(232,200,144,.6),0 8px 24px rgba(201,164,108,.5),inset 0 1px 0 rgba(255,255,255,.75)!important;
  animation:espSellGlow 2.4s ease-out infinite,espSellFlow 7s linear infinite;
}
.btn-sell::before{
  content:"";position:absolute;inset:-2px;z-index:-1;pointer-events:none;
  background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.85) 50%,transparent 70%);
  transform:translateX(-130%);animation:espSellShine 3.4s ease-in-out infinite;
}
.btn-sell:hover{transform:translateY(-2px) scale(1.03);filter:brightness(1.05);text-decoration:none!important}
@keyframes espSellGlow{
  0%{box-shadow:0 0 0 0 rgba(232,200,144,.65),0 8px 24px rgba(201,164,108,.5),inset 0 1px 0 rgba(255,255,255,.75)}
  70%{box-shadow:0 0 0 12px rgba(232,200,144,0),0 8px 24px rgba(201,164,108,.5),inset 0 1px 0 rgba(255,255,255,.75)}
  100%{box-shadow:0 0 0 0 rgba(232,200,144,0),0 8px 24px rgba(201,164,108,.5),inset 0 1px 0 rgba(255,255,255,.75)}
}
@keyframes espSellFlow{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
@keyframes espSellShine{0%{transform:translateX(-130%)}55%,100%{transform:translateX(130%)}}

/* Hero line under the headline: glass pill with gold edge */
.hero-sell{
  display:inline-flex!important;align-items:center;gap:10px;
  margin:-4px 0 22px!important;padding:10px 18px 10px 12px!important;border-radius:999px;
  background:rgba(255,255,255,.14);color:#fff!important;text-decoration:none!important;
  border:1px solid rgba(232,200,144,.75)!important;border-bottom-width:1px!important;
  -webkit-backdrop-filter:blur(14px) saturate(170%);backdrop-filter:blur(14px) saturate(170%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 8px 24px rgba(0,0,0,.2);
  transition:background .25s,transform .2s;
}
.hero-sell:hover{background:rgba(255,255,255,.24);transform:translateY(-1px)}
.hero-sell .hs-tag{background:linear-gradient(120deg,#C9A46C,#F3DDA8);color:#0F1C2E;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:5px 10px;border-radius:999px}

/* Two hero pills side by side: owners (gold tag) and agents (teal tag) */
.hero-ctas{display:flex;flex-wrap:wrap;gap:10px 12px;margin:-4px 0 22px}
.hero-ctas .hero-sell{margin:0!important}
.hero-join{border-color:rgba(150,220,230,.75)!important}
.hero-join .hs-tag{background:linear-gradient(120deg,#1F5E6E,#3A93A6)!important;color:#fff!important}
@media (max-width:560px){.hero-ctas .hero-sell{font-size:14px;padding:8px 14px 8px 9px!important}}

/* Hero "Agents - join our team" bar (replaces the small off-plan badge) */
.offplan-badge.agent-cta{
  display:inline-flex!important;align-items:center;flex-wrap:wrap;gap:12px 14px;
  padding:9px 9px 9px 10px!important;border-radius:999px!important;margin-bottom:24px!important;
  background:rgba(15,28,46,.42)!important;color:#fff!important;font-size:16px!important;font-weight:650!important;
  border:1px solid rgba(232,200,144,.85)!important;
  -webkit-backdrop-filter:blur(14px) saturate(170%);backdrop-filter:blur(14px) saturate(170%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 10px 30px rgba(0,0,0,.25);transition:transform .2s,background .25s;
}
.offplan-badge.agent-cta:hover{transform:translateY(-1px);background:rgba(15,28,46,.55)!important}
.agent-cta .ac-tag{background:linear-gradient(120deg,#1F5E6E,#3A93A6);color:#fff;font-size:12.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;padding:6px 12px;border-radius:999px}
.agent-cta .ac-btn{position:relative;overflow:hidden;isolation:isolate;padding:9px 18px;border-radius:999px;color:#0F1C2E;font-weight:800;
  background:linear-gradient(120deg,#A97C34 0%,#E6C27E 30%,#F7E3B4 48%,#D4AE6C 64%,#A97C34 100%);background-size:230% 100%;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 6px 18px rgba(201,164,108,.45);animation:espSellFlow 7s linear infinite}
.agent-cta .ac-btn::before{content:"";position:absolute;inset:-2px;z-index:-1;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.85) 50%,transparent 70%);transform:translateX(-130%);animation:espSellShine 3.4s ease-in-out infinite}
@media (max-width:560px){
  .offplan-badge.agent-cta{font-size:14px!important;gap:8px 10px;border-radius:22px!important;padding:10px!important}
  .agent-cta .ac-txt{flex-basis:calc(100% - 100px)}
  .agent-cta .ac-btn{padding:8px 15px}
}
@media (prefers-reduced-motion:reduce){.agent-cta .ac-btn,.agent-cta .ac-btn::before{animation:none}}

/* Small gold Sell button in the phone header */
.sell-mob{display:none!important}
@media (max-width:1140px){
  .sell-mob{display:inline-flex!important;padding:8px 13px!important;font-size:13.5px!important;margin-left:auto}
  .sell-mob + .lang-sw,.head-row .lang-sw{margin-left:8px}
}
@media (max-width:420px){.sell-mob{padding:7px 10px!important;font-size:12.5px!important}}

@media (prefers-reduced-motion:reduce){
  .btn-sell,.btn-sell::before{animation:none!important}
  .btn:hover,.btn-sell:hover{transform:none}
}

/* ---------- Language buttons with flags ---------- */
.lang-sw{gap:4px!important;padding:3px!important}
.lang-sw button{position:relative;min-width:36px;color:#fff!important;font-weight:800!important;letter-spacing:.02em;
  text-shadow:0 1px 2px rgba(0,0,0,.85),0 0 4px rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.55)!important;
  background-size:cover!important;background-position:center!important;opacity:.82;transition:opacity .2s,transform .2s,box-shadow .2s}
.lang-sw button:hover{opacity:1;transform:translateY(-1px)}
.lang-sw button[aria-pressed="true"]{opacity:1;box-shadow:0 0 0 2px #C9A46C,0 4px 12px rgba(0,0,0,.25)}
.lang-sw button[data-lang="en"]{background:linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 30%22 preserveAspectRatio=%22xMidYMid slice%22%3E%3CclipPath id=%22t%22%3E%3Cpath d=%22M30,15h30v15zv15h-30zh-30v-15zv-15h30z%22/%3E%3C/clipPath%3E%3Cpath d=%22M0,0v30h60v-30z%22 fill=%22%23012169%22/%3E%3Cpath d=%22M0,0L60,30M60,0L0,30%22 stroke=%22%23fff%22 stroke-width=%226%22/%3E%3Cpath d=%22M0,0L60,30M60,0L0,30%22 clip-path=%22url%28%23t%29%22 stroke=%22%23C8102E%22 stroke-width=%224%22/%3E%3Cpath d=%22M30,0v30M0,15h60%22 stroke=%22%23fff%22 stroke-width=%2210%22/%3E%3Cpath d=%22M30,0v30M0,15h60%22 stroke=%22%23C8102E%22 stroke-width=%226%22/%3E%3C/svg%3E")!important}
.lang-sw button[data-lang="ru"]{background:linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 9 6%22 preserveAspectRatio=%22none%22%3E%3Crect width=%229%22 height=%222%22 fill=%22%23fff%22/%3E%3Crect y=%222%22 width=%229%22 height=%222%22 fill=%22%230039A6%22/%3E%3Crect y=%224%22 width=%229%22 height=%222%22 fill=%22%23D52B1E%22/%3E%3C/svg%3E")!important}
.lang-sw button[data-lang="ar"]{background:linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 6%22 preserveAspectRatio=%22none%22%3E%3Crect width=%2212%22 height=%222%22 fill=%22%2300732F%22/%3E%3Crect y=%222%22 width=%2212%22 height=%222%22 fill=%22%23fff%22/%3E%3Crect y=%224%22 width=%2212%22 height=%222%22 fill=%22%23000%22/%3E%3Crect width=%223%22 height=%226%22 fill=%22%23FF0000%22/%3E%3C/svg%3E")!important}
.lang-sw button[data-lang="zh-CN"]{background:linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22 preserveAspectRatio=%22xMinYMid slice%22%3E%3Crect width=%2230%22 height=%2220%22 fill=%22%23EE1C25%22/%3E%3Cpolygon fill=%22%23FFDE00%22 points=%225.00,2.00 5.67,4.07 7.85,4.07 6.09,5.35 6.76,7.43 5.00,6.15 3.24,7.43 3.91,5.35 2.15,4.07 4.33,4.07%22/%3E%3Cpolygon fill=%22%23FFDE00%22 points=%2210.39,1.08 10.33,1.80 11.00,2.09 10.29,2.25 10.22,2.97 9.85,2.35 9.14,2.52 9.62,1.97 9.25,1.34 9.91,1.63%22/%3E%3Cpolygon fill=%22%23FFDE00%22 points=%2212.72,3.31 12.38,3.95 12.88,4.47 12.17,4.34 11.83,4.98 11.73,4.27 11.01,4.14 11.66,3.82 11.56,3.10 12.07,3.62%22/%3E%3Cpolygon fill=%22%23FFDE00%22 points=%2212.94,6.66 12.37,7.11 12.62,7.79 12.01,7.38 11.44,7.83 11.64,7.13 11.04,6.72 11.76,6.70 11.97,6.00 12.21,6.68%22/%3E%3Cpolygon fill=%22%23FFDE00%22 points=%2210.36,8.07 10.32,8.79 11.00,9.05 10.30,9.24 10.26,9.97 9.86,9.36 9.16,9.54 9.62,8.98 9.22,8.37 9.90,8.63%22/%3E%3C/svg%3E")!important}
.lang-sw button[aria-pressed="true"][data-lang]{background-blend-mode:normal}
@media (max-width:760px){.lang-sw button{min-width:30px;padding:6px 6px!important}}
@media (max-width:400px){.lang-sw{gap:2px!important}.lang-sw button{min-width:27px;padding:5px 4px!important;font-size:11px!important}}
/* Fit 4 language buttons in the header */
.lang-sw button{padding:7px 8px!important;min-width:33px}
@media (min-width:1141px) and (max-width:1560px){
  .site-head .nav{gap:13px!important}
  .site-head .nav a{font-size:13.5px!important}
  .site-head .head-row{gap:12px!important}
  .site-head .lang-sw{margin-left:6px!important}
  .site-head .nav .btn{padding:9px 14px!important}
}
@media (min-width:1141px) and (max-width:1300px){
  .site-head .brand-word{width:140px!important;height:22px!important}
  .site-head .nav{gap:10px!important}
  .site-head .nav a{font-size:13px!important}
}
@media (max-width:560px){ .head-links .btn-dark{display:none!important} .head-links{gap:12px!important} }
@media (max-width:560px){ .head-links a.on:not(.btn){display:none!important} .head-links .btn-sell{padding:8px 12px!important;font-size:13px!important} .head-row .brand-word{width:120px!important;height:19px!important} }
@media (max-width:480px){ .head-row:has(.head-links .btn-sell) .brand-word{display:none!important} .head-row:has(.head-links .btn-sell) .brand img{width:40px!important} }
/* Frosted, lighter flags */
.lang-sw button{color:#0F1C2E!important;text-shadow:0 1px 0 rgba(255,255,255,.75),0 0 6px rgba(255,255,255,.6)!important;
  filter:saturate(.72) brightness(1.05);border:1px solid rgba(255,255,255,.8)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 2px 8px rgba(15,28,46,.12)}
.lang-sw button[aria-pressed="true"]{filter:saturate(.85) brightness(1.05);box-shadow:0 0 0 2px #C9A46C,inset 0 1px 0 rgba(255,255,255,.85),0 4px 12px rgba(0,0,0,.18)!important}
/* Brighter see-through flags */
.lang-sw button{filter:saturate(.95) brightness(1.06)!important;opacity:.9}
.lang-sw button[aria-pressed="true"]{filter:saturate(1) brightness(1.06)!important;opacity:1}
.sell-mob,.btn-sell{white-space:nowrap!important}

/* ---------- CRM (team login) button beside the language buttons ---------- */
.crm-btn{flex:none;display:inline-flex;align-items:center;margin-left:8px;padding:8px 13px;border-radius:999px;background:#0F1C2E;color:#E9D9BC!important;
  border:1px solid #C9A46C;font-size:12.5px;font-weight:800;letter-spacing:.08em;line-height:1;text-decoration:none!important;white-space:nowrap;transition:background .2s,color .2s}
.crm-btn:hover{background:#C9A46C;color:#0F1C2E!important}
@media (max-width:760px){.crm-btn{margin-left:6px;padding:7px 9px;font-size:11.5px}}
.crm-nav{display:none!important}
@media (max-width:760px){#nav ~ .crm-btn{display:none}#nav .crm-nav{display:block!important}}
