/* v304 — Emlak Asistan final: kompakt, canlı, gece/gündüz, mobil yukarı açılır */
.fe-global-advisor,
.fe-desktop-support-fab,
.fe-desktop-support-fab-premium{display:none!important}

.fe-action-launcher{
  position:fixed;
  right:22px;
  bottom:24px;
  z-index:2147483200;
  width:58px;
  height:58px;
}
.fe-action-launcher-button{
  position:relative;
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  padding:0;
  cursor:pointer;
  background:radial-gradient(circle at 34% 25%,#1e4f7c 0,#102b4b 46%,#071729 100%);
  box-shadow:0 10px 28px rgba(2,15,33,.44),0 0 18px rgba(42,206,255,.30),0 0 24px rgba(255,48,177,.18);
  isolation:isolate;
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
}
.fe-action-launcher-button::before,
.fe-action-launcher-button::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.fe-action-launcher-button::before{
  inset:-5px;
  background:conic-gradient(from 0deg,#19e5ff 0deg,#2f7bff 86deg,#8f45ff 170deg,#ff38a9 255deg,#ff8b3d 315deg,#19e5ff 360deg);
  animation:feOrbSpin 2.8s linear infinite;
  z-index:-2;
  filter:saturate(1.22) brightness(1.12);
}
.fe-action-launcher-button::after{
  inset:-2px;
  background:#0c2038;
  z-index:-1;
  box-shadow:0 0 14px rgba(25,229,255,.46),0 0 24px rgba(143,69,255,.28),0 0 30px rgba(255,56,169,.17);
}
.fe-action-launcher-button img{
  width:37px;
  height:37px;
  display:block;
  pointer-events:none;
  filter:drop-shadow(0 0 6px rgba(77,151,255,.56)) drop-shadow(0 0 9px rgba(255,64,176,.24));
}
.fe-action-launcher-button:hover,
.fe-action-launcher:focus-within .fe-action-launcher-button,
.fe-action-launcher.is-open .fe-action-launcher-button{
  transform:translateY(-2px) scale(1.045);
  filter:brightness(1.08) saturate(1.12);
  box-shadow:0 12px 31px rgba(2,15,33,.48),0 0 23px rgba(25,229,255,.44),0 0 31px rgba(255,56,169,.24);
}

/* Desktop: kompakt dikey menü, yukarı açılır */
.fe-action-launcher-menu{
  position:absolute;
  right:0;
  bottom:70px;
  width:194px;
  padding:7px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:3px;
  border:1px solid rgba(76,118,161,.78);
  border-radius:15px;
  background:rgba(11,28,47,.975);
  box-shadow:0 17px 42px rgba(0,0,0,.39),0 0 0 1px rgba(255,255,255,.035) inset;
  backdrop-filter:blur(16px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px) scale(.985);
  transform-origin:right bottom;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.fe-action-launcher-menu a{
  position:relative;
  min-height:39px;
  padding:0 10px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  color:#edf7ff;
  text-decoration:none;
  font-size:11.5px;
  font-weight:780;
  transition:background .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.fe-action-launcher-menu a:hover,
.fe-action-launcher-menu a:focus-visible{
  background:linear-gradient(90deg,rgba(23,143,255,.25),rgba(139,67,255,.18));
  color:#fff;
  outline:none;
  transform:translateX(-2px);
}
.fe-action-launcher-menu a .fe-icon{width:18px;height:18px;flex:0 0 18px;color:#dff2ff}
.fe-action-launcher-menu a b{
  position:static!important;
  opacity:1!important;
  transform:none!important;
  background:none!important;
  box-shadow:none!important;
  padding:0!important;
  color:inherit!important;
  font-size:11.5px!important;
  font-weight:780!important;
}

/* Emlak Asistan neon vurgu */
.fe-action-launcher-menu a.is-ai-action{
  overflow:visible;
  background:linear-gradient(90deg,rgba(20,134,255,.19),rgba(148,54,255,.14));
  box-shadow:inset 0 0 0 1px rgba(76,136,255,.12);
}
.fe-action-launcher-menu a.is-ai-action:hover,
.fe-action-launcher-menu a.is-ai-action:focus-visible{
  background:linear-gradient(90deg,rgba(23,153,255,.30),rgba(168,57,255,.23));
  box-shadow:0 0 16px rgba(41,164,255,.17),inset 0 0 0 1px rgba(83,165,255,.20);
}
.fe-ai-icon-ring{
  position:relative;
  width:27px;
  height:27px;
  flex:0 0 27px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#102943;
  box-shadow:0 0 12px rgba(44,140,255,.35);
  isolation:isolate;
}
.fe-ai-icon-ring::before{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:50%;
  background:conic-gradient(#17eaff,#347dff,#8c4cff,#ff3cac,#17eaff);
  animation:feAiSpin 1.85s linear infinite;
  z-index:-2;
  filter:saturate(1.28) brightness(1.12);
}
.fe-ai-icon-ring::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:#102943;
  z-index:-1;
  box-shadow:0 0 12px rgba(23,234,255,.55),0 0 19px rgba(140,76,255,.32);
  animation:feAiPulse 1.45s ease-in-out infinite;
}
.fe-ai-icon-ring .fe-icon{width:14px!important;height:14px!important;color:#fff!important}

.fe-action-launcher:hover .fe-action-launcher-menu,
.fe-action-launcher:focus-within .fe-action-launcher-menu,
.fe-action-launcher.is-open .fe-action-launcher-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}

/* Mobil: ana buton altta, menü dikey olarak yukarı açılır */
@media (max-width:900px){
  .fe-action-launcher{
    right:16px;
    bottom:calc(84px + env(safe-area-inset-bottom,0px));
    width:54px;
    height:54px;
  }
  .fe-action-launcher-button{width:54px;height:54px}
  .fe-action-launcher-button img{width:34px;height:34px}
  .fe-action-launcher-button::before{inset:-4px}

  .fe-action-launcher-menu{
    right:0;
    bottom:66px;
    width:188px;
    height:auto;
    min-width:0;
    padding:7px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:3px;
    border-radius:15px;
    transform:translateY(10px) scale(.985);
    transform-origin:right bottom;
  }
  .fe-action-launcher-menu a{
    width:auto;
    min-width:0;
    height:auto;
    min-height:38px;
    padding:0 10px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:9px;
    border-radius:10px;
  }
  .fe-action-launcher-menu a:hover,
  .fe-action-launcher-menu a:focus-visible{transform:none}
  .fe-action-launcher-menu a .fe-icon{width:17px;height:17px;flex:0 0 17px}
  .fe-action-launcher-menu a b{display:block!important;font-size:11.3px!important}
  .fe-action-launcher-menu a.is-ai-action{overflow:visible}
  .fe-ai-icon-ring{width:26px;height:26px;flex:0 0 26px}
  .fe-ai-icon-ring .fe-icon{width:13px!important;height:13px!important}
}

/* Gündüz modu */
html[data-fe-theme="light"] .fe-action-launcher-button,
html:not([data-fe-theme]) .fe-action-launcher-button{
  background:radial-gradient(circle at 34% 25%,#2e73b7 0,#194a7b 48%,#0d2b4c 100%);
  box-shadow:0 10px 26px rgba(24,78,132,.24),0 0 19px rgba(25,194,255,.28),0 0 24px rgba(239,61,255,.16);
}
html[data-fe-theme="light"] .fe-action-launcher-button::after,
html:not([data-fe-theme]) .fe-action-launcher-button::after{background:#123b66}
html[data-fe-theme="light"] .fe-action-launcher-menu,
html:not([data-fe-theme]) .fe-action-launcher-menu{
  background:rgba(255,255,255,.985);
  border-color:#c8d9e9;
  box-shadow:0 16px 38px rgba(24,59,91,.18);
}
html[data-fe-theme="light"] .fe-action-launcher-menu a,
html:not([data-fe-theme]) .fe-action-launcher-menu a{color:#173b5b}
html[data-fe-theme="light"] .fe-action-launcher-menu a .fe-icon,
html:not([data-fe-theme]) .fe-action-launcher-menu a .fe-icon{color:#173b5b}
html[data-fe-theme="light"] .fe-action-launcher-menu a:hover,
html[data-fe-theme="light"] .fe-action-launcher-menu a:focus-visible,
html:not([data-fe-theme]) .fe-action-launcher-menu a:hover,
html:not([data-fe-theme]) .fe-action-launcher-menu a:focus-visible{
  background:linear-gradient(90deg,#e9f5ff,#f2edff);
  color:#0e68ce;
}
html[data-fe-theme="light"] .fe-action-launcher-menu a.is-ai-action,
html:not([data-fe-theme]) .fe-action-launcher-menu a.is-ai-action{
  background:linear-gradient(90deg,#e8f6ff,#f3edff);
  color:#144a80;
}
html[data-fe-theme="light"] .fe-ai-icon-ring,
html:not([data-fe-theme]) .fe-ai-icon-ring,
html[data-fe-theme="light"] .fe-ai-icon-ring::after,
html:not([data-fe-theme]) .fe-ai-icon-ring::after{background:#f8fbff}
html[data-fe-theme="light"] .fe-ai-icon-ring .fe-icon,
html:not([data-fe-theme]) .fe-ai-icon-ring .fe-icon{color:#155fa8!important}

@keyframes feOrbSpin{to{transform:rotate(360deg)}}
@keyframes feAiSpin{to{transform:rotate(360deg)}}
@keyframes feAiPulse{
  0%,100%{box-shadow:0 0 10px rgba(23,234,255,.38),0 0 16px rgba(140,76,255,.24)}
  50%{box-shadow:0 0 18px rgba(23,234,255,.82),0 0 28px rgba(255,60,172,.40)}
}
@media (prefers-reduced-motion:reduce){
  .fe-action-launcher-button::before,.fe-ai-icon-ring::before,.fe-ai-icon-ring::after{animation:none!important}
}

/* =========================================================
   v305 — Mobil tema görünürlüğü + Emlak Asistan neon hotfix
   Header markup değişmeden uygulanır.
   ========================================================= */
@media (max-width:900px){
  /* Mobil menüde tema seçimi üstte, ilk bakışta görünür. */
  .fe-mobile-theme-priority{
    margin:10px 14px 8px !important;
    padding:8px !important;
    border:1px solid rgba(77,132,185,.48) !important;
    border-radius:14px !important;
    background:linear-gradient(135deg,rgba(20,55,88,.96),rgba(13,39,66,.96)) !important;
    box-shadow:0 8px 20px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.035) !important;
  }
  .fe-mobile-theme-priority .fe-theme-toggle-mobile{
    width:100% !important;
    min-height:52px !important;
    margin:0 !important;
    border:0 !important;
    border-radius:11px !important;
    background:transparent !important;
  }
  .fe-mobile-theme-priority .fe-theme-toggle-mobile>.fe-theme-toggle-icon{
    width:40px !important;
    height:40px !important;
    border-radius:12px !important;
    display:grid !important;
    place-items:center !important;
    background:rgba(42,140,255,.12) !important;
    color:#75bdff !important;
  }
  .fe-mobile-theme-priority .fe-theme-toggle-copy strong{
    font-size:14px !important;
    font-weight:800 !important;
  }
  .fe-mobile-theme-priority .fe-theme-toggle-copy small{
    font-size:11px !important;
    opacity:.76 !important;
  }

  /* Mobil ana orb: daha belirgin, sürekli dönen neon halka. */
  .fe-action-launcher-button::before{
    inset:-5px !important;
    background:conic-gradient(from 0deg,#15f1ff 0deg,#2587ff 78deg,#7d4dff 155deg,#ff36bd 235deg,#ff6d4d 305deg,#15f1ff 360deg) !important;
    animation:feOrbSpin 1.8s linear infinite !important;
    filter:saturate(1.45) brightness(1.28) !important;
    will-change:transform !important;
  }
  .fe-action-launcher-button::after{
    inset:-2px !important;
    box-shadow:0 0 15px rgba(21,241,255,.68),0 0 24px rgba(125,77,255,.43),0 0 34px rgba(255,54,189,.30) !important;
    animation:feMobileOrbGlow 1.35s ease-in-out infinite !important;
  }
  .fe-action-launcher-button{
    box-shadow:0 9px 24px rgba(2,15,33,.38),0 0 18px rgba(21,241,255,.36),0 0 28px rgba(255,54,189,.25) !important;
  }
  .fe-action-launcher-button img{
    filter:drop-shadow(0 0 7px rgba(42,175,255,.78)) drop-shadow(0 0 11px rgba(255,54,189,.46)) !important;
  }

  html[data-fe-theme="light"] .fe-mobile-theme-priority,
  html:not([data-fe-theme]) .fe-mobile-theme-priority{
    background:linear-gradient(135deg,#ffffff,#edf6ff) !important;
    border-color:#c9dceb !important;
    box-shadow:0 8px 20px rgba(24,59,91,.10) !important;
  }
  html[data-fe-theme="light"] .fe-mobile-theme-priority .fe-theme-toggle-mobile>.fe-theme-toggle-icon,
  html:not([data-fe-theme]) .fe-mobile-theme-priority .fe-theme-toggle-mobile>.fe-theme-toggle-icon{
    background:#e9f4ff !important;
    color:#1277df !important;
  }
}

@keyframes feMobileOrbGlow{
  0%,100%{filter:brightness(1);opacity:.92}
  50%{filter:brightness(1.24);opacity:1}
}

/* =========================================================
   v306 — Toggle kapanış + telefon davranışı
   Desktop: Ara hover/focus => okunaklı kayıtlı numara.
   Mobil: Ara tap => doğrudan tel: araması.
   ========================================================= */
/* Menü görünürlüğünü JS yönetir; böylece butona ikinci tık gerçekten kapatır. */
.fe-action-launcher:hover .fe-action-launcher-menu{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px) scale(.985);
}
.fe-action-launcher.is-open .fe-action-launcher-menu,
.fe-action-launcher:focus-within .fe-action-launcher-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}

.fe-action-call{overflow:visible!important}
.fe-action-phone-number{
  display:none;
  margin-left:auto;
  padding:4px 7px;
  border-radius:8px;
  font-size:11px;
  line-height:1;
  font-weight:850;
  letter-spacing:.01em;
  white-space:nowrap;
  color:#9fd7ff;
  background:rgba(28,118,202,.16);
  border:1px solid rgba(96,178,255,.28);
}
@media (min-width:901px){
  .fe-action-call:hover .fe-action-phone-number,
  .fe-action-call:focus-visible .fe-action-phone-number{
    display:inline-flex;
  }
  .fe-action-call:hover,
  .fe-action-call:focus-visible{
    min-width:258px;
    width:max-content;
  }
  .fe-action-launcher-menu:has(.fe-action-call:hover),
  .fe-action-launcher-menu:has(.fe-action-call:focus-visible){
    width:272px;
  }
}
@media (max-width:900px){
  .fe-action-phone-number{display:none!important}
}
html[data-fe-theme="light"] .fe-action-phone-number,
html:not([data-fe-theme]) .fe-action-phone-number{
  color:#0f63b4;
  background:#eaf5ff;
  border-color:#bfdbf4;
}

/* v307a — telefon satırı modal ölçüsünü ASLA değiştirmez. */
@media (min-width:901px){
  .fe-action-launcher-menu,
  .fe-action-launcher-menu:has(.fe-action-call:hover),
  .fe-action-launcher-menu:has(.fe-action-call:focus-visible){
    width:194px !important;
  }
  .fe-action-launcher-menu .fe-action-call,
  .fe-action-launcher-menu .fe-action-call:hover,
  .fe-action-launcher-menu .fe-action-call:focus-visible{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
  .fe-action-launcher-menu .fe-action-call .fe-action-phone-number{
    display:none !important;
  }
  .fe-action-launcher-menu .fe-action-call b{
    display:block !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  .fe-action-launcher-menu .fe-action-call.is-number-visible b{
    font-size:11.2px !important;
    font-variant-numeric:tabular-nums;
    letter-spacing:.01em !important;
  }
}

/* =========================================================
   v308 — İlk yükleme flicker / patlama hotfix
   Menü yalnız JS .is-open verdiğinde görünür.
   İlk iki frame boyunca geçiş kapalıdır.
   ========================================================= */
.fe-action-launcher:not(.is-ready) .fe-action-launcher-menu{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transform:translateY(10px) scale(.985) !important;
  transition:none !important;
}
.fe-action-launcher:not(.is-ready) .fe-action-launcher-button,
.fe-action-launcher:not(.is-ready) .fe-action-launcher-button::before,
.fe-action-launcher:not(.is-ready) .fe-action-launcher-button::after{
  transition:none !important;
}

/* focus-within tek başına menüyü açmasın; buton odağı reload'da flicker üretmesin. */
.fe-action-launcher:focus-within .fe-action-launcher-menu{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transform:translateY(10px) scale(.985) !important;
}
.fe-action-launcher.is-open .fe-action-launcher-menu,
.fe-action-launcher.is-open:focus-within .fe-action-launcher-menu{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:none !important;
}

/* =========================================================
   v309 — Desktop hover + click pin / mobile click toggle
   Görünürlüğü yalnız JS .is-open state'i yönetir.
   ========================================================= */
.fe-action-launcher:hover .fe-action-launcher-menu,
.fe-action-launcher:focus-within .fe-action-launcher-menu{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transform:translateY(10px) scale(.985) !important;
}
.fe-action-launcher.is-open .fe-action-launcher-menu,
.fe-action-launcher.is-open:hover .fe-action-launcher-menu,
.fe-action-launcher.is-open:focus-within .fe-action-launcher-menu{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:none !important;
}
