/*
 * V5.9 — masaüstü acil arama, ortak header geometrisi,
 * sağa sabit mobil hamburger ve kopyasız hızlı erişim carousel'i.
 */

/* Eski carousel sürümünden kalmış olabilecek yapay kartlar hiçbir ölçüde görünmez. */
.template-kids [data-home49-shortcuts] [data-v57-clone],
.template-kids [data-home49-shortcuts] [data-v59-clone]{
  display:none!important;
}

/* Yorum alanında üst açıklama ve ana başlık kesin olarak iki ayrı satırdır. */
.template-kids .home49-section-heading-stacked{
  display:block!important;
  width:100%!important;
}
.template-kids .home49-section-heading-stacked>span,
.template-kids .home49-section-heading-stacked>h2{
  display:flex!important;
  width:100%!important;
  float:none!important;
  clear:both!important;
}
.template-kids .home49-section-heading-stacked>h2{
  margin-top:5px!important;
}

@media (min-width:921px){
  /* Ana sayfa ve hizmet detayı aynı kolon geometrisini kullanır. */
  .template-kids .site-header .header-inner,
  .service-detail-page .site-header .header-inner,
  .template-kids.smart-header .site-header.is-scrolled .header-inner,
  .service-detail-page.smart-header .site-header.is-scrolled .header-inner{
    display:grid!important;
    grid-template-columns:minmax(128px,150px) minmax(0,1fr) auto!important;
    align-items:center!important;
    width:min(calc(100% - 34px),1780px)!important;
    min-height:88px!important;
    height:88px!important;
    padding-inline:15px 17px!important;
    gap:14px!important;
    overflow:visible!important;
  }

  .template-kids .site-header .brand,
  .service-detail-page .site-header .brand{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    justify-content:flex-start!important;
  }
  .template-kids .site-header .brand img,
  .service-detail-page .site-header .brand img{
    width:112px!important;
    max-width:112px!important;
    height:64px!important;
    object-fit:contain!important;
  }
  .template-kids .site-header .brand span,
  .service-detail-page .site-header .brand span{
    display:none!important;
  }

  .template-kids .site-header .main-nav,
  .service-detail-page .site-header .main-nav{
    display:flex!important;
    min-width:0!important;
    width:100%!important;
    justify-content:center!important;
    align-items:center!important;
    gap:clamp(1px,.28vw,5px)!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  .template-kids .site-header .main-nav>a,
  .service-detail-page .site-header .main-nav>a{
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:max-content!important;
    padding:11px clamp(6px,.42vw,10px)!important;
    font-family:var(--body-font,"Plus Jakarta Sans",sans-serif)!important;
    font-size:clamp(13.5px,.78vw,15.8px)!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:-.035em!important;
    white-space:nowrap!important;
  }

  .template-kids .site-header .header-actions,
  .service-detail-page .site-header .header-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex:0 0 auto!important;
    min-width:max-content!important;
    gap:9px!important;
    overflow:visible!important;
  }

  /* Tema anahtarı scroll sonrasında da yazılarıyla birlikte aynı genişlikte kalır. */
  .template-kids .character-theme-switch,
  .service-detail-page .character-theme-switch,
  .template-kids.smart-header .site-header.is-scrolled .character-theme-switch,
  .service-detail-page.smart-header .site-header.is-scrolled .character-theme-switch{
    display:grid!important;
    grid-template-columns:43px minmax(35px,1fr) 43px!important;
    width:148px!important;
    min-width:148px!important;
    height:56px!important;
    min-height:56px!important;
    padding:4px 6px!important;
    overflow:visible!important;
    transform:none!important;
  }
  .template-kids .character-theme-switch .theme-character,
  .service-detail-page .character-theme-switch .theme-character{
    width:43px!important;
    min-width:43px!important;
    overflow:visible!important;
  }
  .template-kids .character-theme-switch .theme-character img,
  .service-detail-page .character-theme-switch .theme-character img{
    width:38px!important;
    height:38px!important;
    max-width:none!important;
    object-fit:contain!important;
    overflow:visible!important;
  }
  .template-kids .character-theme-switch .theme-character small,
  .service-detail-page .character-theme-switch .theme-character small,
  .template-kids.smart-header .site-header.is-scrolled .character-theme-switch .theme-character small,
  .service-detail-page.smart-header .site-header.is-scrolled .character-theme-switch .theme-character small{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    max-height:none!important;
    font-size:8px!important;
    line-height:1!important;
    transform:none!important;
  }

  /* Masaüstü acil arama butonu ana sayfa ve hizmet detayında geri gelir. */
  .template-kids .site-header .desktop-emergency-call,
  .service-detail-page .site-header .desktop-emergency-call{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    min-width:168px!important;
    max-width:190px!important;
    min-height:54px!important;
    padding:6px 12px 6px 7px!important;
    overflow:visible!important;
  }
  .template-kids .desktop-emergency-call .phone-copy,
  .service-detail-page .desktop-emergency-call .phone-copy{
    display:flex!important;
    min-width:0!important;
    flex-direction:column!important;
  }
  .template-kids .desktop-emergency-call .phone-copy small,
  .service-detail-page .desktop-emergency-call .phone-copy small{
    display:block!important;
    font-size:8.5px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  .template-kids .desktop-emergency-call .phone-copy b,
  .service-detail-page .desktop-emergency-call .phone-copy b{
    font-size:13.5px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
}

/* Orta masaüstünde arama butonu kaybolmaz; yalnızca daha kompakt sunulur. */
@media (min-width:921px) and (max-width:1380px){
  .template-kids .site-header .header-inner,
  .service-detail-page .site-header .header-inner,
  .template-kids.smart-header .site-header.is-scrolled .header-inner,
  .service-detail-page.smart-header .site-header.is-scrolled .header-inner{
    grid-template-columns:116px minmax(0,1fr) auto!important;
    width:min(calc(100% - 18px),1360px)!important;
    gap:7px!important;
    padding-inline:8px!important;
  }
  .template-kids .site-header .brand img,
  .service-detail-page .site-header .brand img{
    width:100px!important;
    max-width:100px!important;
  }
  .template-kids .site-header .main-nav>a,
  .service-detail-page .site-header .main-nav>a{
    padding-inline:5px!important;
    font-size:12.9px!important;
  }
  .template-kids .character-theme-switch,
  .service-detail-page .character-theme-switch,
  .template-kids.smart-header .site-header.is-scrolled .character-theme-switch,
  .service-detail-page.smart-header .site-header.is-scrolled .character-theme-switch{
    width:132px!important;
    min-width:132px!important;
    grid-template-columns:39px minmax(31px,1fr) 39px!important;
  }
  .template-kids .site-header .desktop-emergency-call,
  .service-detail-page .site-header .desktop-emergency-call{
    min-width:143px!important;
    max-width:150px!important;
    padding-right:8px!important;
  }
  .template-kids .desktop-emergency-call .phone-copy b,
  .service-detail-page .desktop-emergency-call .phone-copy b{
    font-size:12.3px!important;
  }
}

/* 1080 altı mevcut yapıdaki gibi sağ kontrolleri kapatır; menü ezilmez. */
@media (min-width:921px) and (max-width:1080px){
  .template-kids .site-header .header-actions,
  .service-detail-page .site-header .header-actions{
    display:none!important;
  }
  .template-kids .site-header .header-inner,
  .service-detail-page .site-header .header-inner,
  .template-kids.smart-header .site-header.is-scrolled .header-inner,
  .service-detail-page.smart-header .site-header.is-scrolled .header-inner{
    grid-template-columns:105px minmax(0,1fr)!important;
  }
}

@media (max-width:920px){
  /* Ana sayfa ve hizmet detayı mobilde aynı iki kolonlu header'ı kullanır. */
  .template-kids .site-header .header-inner,
  .service-detail-page .site-header .header-inner,
  .template-kids.smart-header .site-header.is-scrolled .header-inner,
  .service-detail-page.smart-header .site-header.is-scrolled .header-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 46px!important;
    align-items:center!important;
    width:calc(100% - 16px)!important;
    height:70px!important;
    min-height:70px!important;
    padding:0 8px 0 10px!important;
    gap:8px!important;
  }
  .template-kids .site-header .brand,
  .service-detail-page .site-header .brand{
    grid-column:1!important;
    grid-row:1!important;
    width:max-content!important;
    max-width:calc(100vw - 82px)!important;
    min-width:0!important;
    justify-self:start!important;
    margin:0!important;
    padding:0!important;
  }
  .template-kids .site-header .brand img,
  .service-detail-page .site-header .brand img{
    width:92px!important;
    max-width:92px!important;
    height:54px!important;
  }
  .template-kids .site-header .brand span,
  .service-detail-page .site-header .brand span,
  .template-kids .site-header .header-actions,
  .service-detail-page .site-header .header-actions{
    display:none!important;
  }
  .template-kids .mobile-native-menu,
  .service-detail-page .mobile-native-menu{
    position:relative!important;
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:center!important;
    flex:0 0 46px!important;
    width:46px!important;
    height:46px!important;
    margin:0!important;
    right:auto!important;
    left:auto!important;
  }

  /* Mobil açılır menüde arama bloğu yok; tema ve karakter alanı çakışmaz. */
  .template-kids .mobile-native-call,
  .service-detail-page .mobile-native-call{
    display:none!important;
  }
  .template-kids .mobile-native-panel-foot,
  .service-detail-page .mobile-native-panel-foot{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 88px!important;
    align-items:center!important;
    min-height:88px!important;
    gap:8px!important;
    padding:10px 8px 10px 12px!important;
    overflow:hidden!important;
  }
  .template-kids .mobile-native-panel-foot .mobile-theme-switch,
  .service-detail-page .mobile-native-panel-foot .mobile-theme-switch{
    width:100%!important;
    min-width:0!important;
    max-width:230px!important;
    margin:0!important;
  }
  .template-kids .mobile-native-characters,
  .service-detail-page .mobile-native-characters{
    position:relative!important;
    grid-column:2!important;
    justify-self:end!important;
    right:auto!important;
    bottom:auto!important;
    width:92px!important;
    height:78px!important;
    margin:-4px -6px -10px 0!important;
  }
}

@media (max-width:410px){
  .template-kids .mobile-native-panel-foot,
  .service-detail-page .mobile-native-panel-foot{
    grid-template-columns:1fr!important;
  }
  .template-kids .mobile-native-characters,
  .service-detail-page .mobile-native-characters{
    display:none!important;
  }
}
