/* TTMUP chrome — My Kenyalang Homes (injected, SPA-safe)
   Dark navy + gold — matches approved express / mkh-dark */
:root {
  --ttmup-navy: #0b2035;
  --ttmup-navy-deep: #0a1c33;
  --ttmup-card: #0d2444;
  --ttmup-gold: #efa93f;
  --ttmup-gold-hi: #f5c477;
  --ttmup-ink: #ffffff;
  --ttmup-muted: #93aecd;
  --ttmup-soft: #c6d9f0;
  --ttmup-ai: #0d2444;
  --ttmup-ai-soft: rgba(239, 169, 63, 0.12);
  --ttmup-wa: #25d366;
  --ttmup-wa-soft: rgba(37, 211, 102, 0.14);
  --ttmup-border: rgba(255, 255, 255, 0.14);
  --ttmup-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --ttmup-radius: 16px;
  --ttmup-font: "Playfair Display", Georgia, "Times New Roman", serif;
  --ttmup-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --ttmup-z: 2147483000;
}

/* Lang switcher — under sticky header, top-right */
#ttmup-lang {
  position: fixed;
  top: calc(4.5rem + 10px);
  right: 14px;
  z-index: var(--ttmup-z);
  display: flex;
  gap: 3px;
  padding: 4px;
  background: rgba(13, 36, 68, 0.94);
  border: 1px solid var(--ttmup-border);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font-family: var(--ttmup-body);
  pointer-events: auto;
}

#ttmup-lang button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ttmup-muted);
  font: 600 12px/1 var(--ttmup-body);
  letter-spacing: 0.02em;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

#ttmup-lang button:hover {
  color: var(--ttmup-ink);
  background: rgba(239, 169, 63, 0.12);
}

#ttmup-lang button[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--ttmup-gold-hi), var(--ttmup-gold));
  color: #061426;
}

#ttmup-lang button:focus-visible {
  outline: 2px solid var(--ttmup-gold);
  outline-offset: 2px;
}

#ttmup-bubbles {
  position: fixed;
  inset: 0;
  z-index: var(--ttmup-z);
  pointer-events: none;
}

.ttmup-bubble {
  position: fixed;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--ttmup-shadow);
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  font-family: var(--ttmup-body);
  text-decoration: none;
  color: #fff;
}

.ttmup-bubble:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.ttmup-bubble:focus-visible {
  outline: 2px solid var(--ttmup-gold);
  outline-offset: 3px;
}

.ttmup-bubble svg {
  width: 26px;
  height: 26px;
  display: block;
}

#ttmup-ai-btn {
  left: 18px;
  right: auto;
  background: linear-gradient(145deg, #1a3554, var(--ttmup-navy-deep));
  color: #fff;
  border: 1px solid rgba(239, 169, 63, 0.35);
}

#ttmup-wa-btn {
  right: 18px;
  left: auto;
  background: var(--ttmup-wa);
  color: #fff;
}

.ttmup-bubble-label {
  position: absolute;
  bottom: calc(100% + 8px);
  white-space: nowrap;
  font: 600 11px/1.2 var(--ttmup-body);
  background: var(--ttmup-card);
  color: var(--ttmup-ink);
  border: 1px solid var(--ttmup-border);
  border-radius: 8px;
  padding: 6px 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#ttmup-ai-btn .ttmup-bubble-label { left: 0; }
#ttmup-wa-btn .ttmup-bubble-label { right: 0; }

.ttmup-bubble:hover .ttmup-bubble-label,
.ttmup-bubble:focus-visible .ttmup-bubble-label {
  opacity: 1;
  transform: translateY(0);
}

#ttmup-ai-panel {
  position: fixed;
  left: 18px;
  bottom: 86px;
  z-index: calc(var(--ttmup-z) + 1);
  width: min(340px, calc(100vw - 36px));
  background: var(--ttmup-card);
  border: 1px solid var(--ttmup-border);
  border-radius: var(--ttmup-radius);
  box-shadow: var(--ttmup-shadow);
  font-family: var(--ttmup-body);
  color: var(--ttmup-ink);
  overflow: hidden;
  transform-origin: bottom left;
  animation: ttmup-pop 0.22s ease;
  pointer-events: auto;
}

#ttmup-ai-panel[hidden] { display: none !important; }

@keyframes ttmup-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ttmup-ai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  background: linear-gradient(180deg, var(--ttmup-ai-soft), transparent);
}

.ttmup-ai-head h2 {
  margin: 0;
  font: 700 16px/1.3 var(--ttmup-font);
  color: var(--ttmup-ink);
}

.ttmup-ai-head p {
  margin: 4px 0 0;
  font: 400 12.5px/1.45 var(--ttmup-body);
  color: var(--ttmup-muted);
}

.ttmup-ai-close {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font: 600 16px/1 var(--ttmup-body);
  color: var(--ttmup-muted);
  flex-shrink: 0;
}

.ttmup-ai-close:hover {
  background: rgba(239, 169, 63, 0.18);
  color: var(--ttmup-gold);
}

.ttmup-ai-body { padding: 4px 14px 14px; }

.ttmup-ai-tips {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ttmup-ai-tips li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font: 500 13px/1.4 var(--ttmup-body);
  color: var(--ttmup-soft);
  background: rgba(11, 32, 53, 0.65);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ttmup-border);
}

.ttmup-ai-tips li span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(239, 169, 63, 0.22);
  color: var(--ttmup-gold-hi);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.ttmup-ai-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ttmup-ai-actions a,
.ttmup-ai-actions button {
  appearance: none;
  display: block;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font: 600 13px/1.2 var(--ttmup-body);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ttmup-ai-actions a:hover,
.ttmup-ai-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.ttmup-btn-primary {
  background: linear-gradient(180deg, var(--ttmup-gold-hi), var(--ttmup-gold));
  color: #061426;
}

.ttmup-btn-secondary {
  background: var(--ttmup-wa-soft);
  color: #7dffb0;
  border: 1px solid rgba(37, 211, 102, 0.35);
}

a.ttmup-kobis {
  font-weight: 700 !important;
  color: inherit !important;
  text-decoration: none !important;
  background: transparent !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a.ttmup-kobis:hover,
a.ttmup-kobis:focus-visible {
  color: var(--ttmup-gold) !important;
  text-shadow:
    0 0 14px rgba(239, 169, 63, 0.55),
    0 0 4px rgba(11, 32, 53, 0.35);
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  background: transparent !important;
  background-image: none !important;
}

#ttmup-kobis-fallback {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--ttmup-z) - 2);
  display: none;
  justify-content: center;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
  font: 400 11px/1.4 var(--ttmup-body);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  pointer-events: none;
  text-align: center;
}

#ttmup-kobis-fallback.is-visible { display: flex; }

#ttmup-kobis-fallback a {
  pointer-events: auto;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  background: transparent !important;
  background-image: none !important;
}

#ttmup-kobis-fallback a:hover {
  color: var(--ttmup-gold);
  text-shadow: 0 0 12px rgba(239, 169, 63, 0.5);
}

@media (max-width: 480px) {
  #ttmup-lang {
    top: calc(4.5rem + 6px);
    right: 8px;
    padding: 3px;
  }
  #ttmup-lang button {
    padding: 6px 7px;
    font-size: 11px;
  }
  .ttmup-bubble {
    width: 52px;
    height: 52px;
  }
  .ttmup-bubble-label { display: none; }
}


/* --- TTMUP win9: SPA-safe corners + FAQ (force visible) --- */
html #ttmup-bubbles,
#ttmup-bubbles {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 2147483000 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
html #ttmup-ai-btn,
#ttmup-ai-btn,
.ttmup-bubble-ai {
  position: fixed !important;
  left: max(14px, env(safe-area-inset-left)) !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  right: auto !important;
  top: auto !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  pointer-events: auto !important;
  z-index: 2147483001 !important;
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: linear-gradient(145deg, #1a3554, #0a1c33) !important;
  border: 1px solid rgba(239,169,63,.4) !important;
  color: #fff !important;
}
html #ttmup-wa-btn,
#ttmup-wa-btn,
.ttmup-bubble-wa {
  position: fixed !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  left: auto !important;
  top: auto !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  pointer-events: auto !important;
  z-index: 2147483001 !important;
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #25d366 !important;
  color: #fff !important;
}
html #ttmup-lang,
#ttmup-lang {
  z-index: 2147483002 !important;
  pointer-events: auto !important;
}
html #ttmup-ai-panel,
#ttmup-ai-panel {
  position: fixed !important;
  left: max(14px, env(safe-area-inset-left)) !important;
  bottom: calc(14px + 64px + 10px) !important;
  width: min(360px, calc(100vw - 28px)) !important;
  max-height: min(70vh, 520px) !important;
  overflow: auto !important;
  z-index: 2147483002 !important;
  background: #122a42 !important;
  color: #f5f7fa !important;
  border: 1px solid rgba(239,169,63,.35) !important;
  border-radius: 16px !important;
}
#ttmup-ai-panel[hidden] { display: none !important; }
.ttmup-faq { display: flex; flex-direction: column; gap: 8px; padding: 4px 8px 12px; }
.ttmup-faq-item {
  background: #0b2035;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}
.ttmup-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.ttmup-faq-item summary::-webkit-details-marker { display: none; }
.ttmup-faq-item summary::after { content: "+"; float: right; color: #efa93f; font-weight: 700; }
.ttmup-faq-item[open] summary::after { content: "–"; }
.ttmup-faq-a {
  padding: 0 14px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(245,247,250,.82);
}
.ttmup-ai-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 8px;
}
.ttmup-ai-head h2 { margin: 0; font-size: 16px; color: #efa93f; }
.ttmup-ai-head p { margin: 4px 0 0; font-size: 12px; color: rgba(245,247,250,.75); }
.ttmup-ai-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

/* win10: site header already has languages */
#ttmup-lang{display:none!important}
