@import url("/assets/css/temizhatay-theme.css");
/* Temiz Hatay source bridge v4: source sayfalarındaki eksik runtime davranışları. */
html { scroll-behavior: smooth; }
body { min-width: 320px; }
.navbar-wrapper { z-index: 1030; }
.navbar-collapse.show { display: block !important; }
.nav-item.dropdown.is-open > .dropdown-menu,
.nav-item.dropdown > .dropdown-menu.show { display: block !important; }
#serviceForm label:has(input[type="radio"]:checked) { border-color: var(--th-primary) !important; box-shadow: 0 8px 20px rgba(var(--th-primary-rgb), .15); }
[data-toggle="collapse"][aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.th-carousel-viewport {
  width: 100%;
  overflow: hidden !important;
  position: relative;
  touch-action: pan-y;
}
.th-carousel-track {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: var(--th-gap, 24px) !important;
  width: 100% !important;
  max-width: none !important;
  will-change: transform;
  transition: transform .55s ease;
}
.th-carousel-track > * {
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
  margin-right: 0 !important;
}
.temizhatay-reference-grid.th-carousel-track,
.temizhatay-testimonial-grid.th-carousel-track { margin: 0 !important; }
.temizhatay-reference-grid.th-carousel-track > .temizhatay-reference-card,
.temizhatay-testimonial-grid.th-carousel-track > .temizhatay-testimonial-card { width: auto !important; }
.th-carousel-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin-top: 18px;
}
.th-carousel-bullet {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: width .2s ease, background .2s ease;
}
.th-carousel-bullet.is-active {
  width: 22px;
  background: var(--th-primary);
}

@media (max-width: 1199.98px) {
  #fullMenu.show { max-height: calc(100vh - 70px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .th-carousel-track { transition: none !important; }
}


/* Hizmetler menüsü: referans görünümüne yakın Bootstrap tarzı açılır menü. */
@media (min-width: 1200px) {
  .navbar .th-services-dropdown { position: relative; }
  .navbar .th-services-dropdown > .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 9px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 300px;
    min-width: 300px;
    margin: 0 !important;
    padding: 10px 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .13) !important;
    overflow: hidden;
    z-index: 1080;
  }
  .navbar .th-services-dropdown.is-open > .dropdown-menu,
  .navbar .th-services-dropdown > .dropdown-menu.show,
  .navbar .th-services-dropdown:hover > .dropdown-menu {
    display: block !important;
  }
  .navbar .th-services-dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translateX(-50%) rotate(45deg);
    background: #fff;
  }
  .navbar .th-services-dropdown .dropdown-item {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 45px;
    padding: 10px 18px !important;
    color: #3f3f46 !important;
    font-size: 15px;
    line-height: 1.35;
    white-space: normal;
    background: transparent !important;
  }
  .navbar .th-services-dropdown .dropdown-item:hover,
  .navbar .th-services-dropdown .dropdown-item:focus {
    color: var(--th-primary) !important;
    background: var(--th-primary-50) !important;
  }
  .navbar .th-services-dropdown .dropdown-item i {
    flex: 0 0 22px;
    width: 22px;
    margin-right: 7px !important;
    color: var(--th-primary-500) !important;
    text-align: center;
  }
}
@media (max-width: 1199.98px) {
  .navbar .th-services-dropdown > .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    min-width: 0;
    margin: 4px 0 8px !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* CMS tarafından DOMContentLoaded'da üretilen koleksiyonların carousel kartları. */
.temizhatay-reference-card {
  height: 106px;
  padding: 16px;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  background: #fff;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.temizhatay-reference-card img {
  display: block;
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.temizhatay-testimonial-card {
  min-height: 228px;
  padding: 22px;
  border: 1px solid #e3e7ed;
  border-radius: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.temizhatay-testimonial-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.temizhatay-testimonial-head h4 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #1f2937;
}
.temizhatay-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--th-primary-50);
  color: var(--th-primary-500);
}
.temizhatay-stars { color: #f59e0b; }
.temizhatay-testimonial-card p {
  margin: 0;
  color: #374151;
  line-height: 1.55;
}

/* CMS SSS */
.temizhatay-faq-list {
  max-width: 980px;
  margin: 0 auto;
}
.temizhatay-faq-item {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .05);
}
.temizhatay-faq-item > button {
  width: 100%;
  min-height: 64px;
  padding: 17px 20px;
  border: 0;
  background: #fff;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}
.temizhatay-faq-item > button b {
  color: var(--th-primary);
  font-size: 22px;
  line-height: 1;
}
.temizhatay-faq-item > div:not([hidden]) {
  display: block;
  padding: 0 20px 20px;
  color: #4b5563;
  line-height: 1.65;
}
[data-toggle="collapse"][aria-expanded="true"] .faq-status-indicator i {
  transform: rotate(180deg);
}
.faq-status-indicator i {
  transition: transform .2s ease;
}


/* Source şehir/hizmet sayfalarındaki eski activeTab/Vue sekmelerini native runtime ile yönet. */
.services-layout.th-tabs-ready .service-content > [role="tabpanel"][hidden] {
  display: none !important;
}
.services-layout.th-tabs-ready .service-content > .th-tab-panel-active {
  display: block;
}
.services-layout.th-tabs-ready .tab-item.active {
  background: var(--th-primary-50) !important;
  color: var(--primary-color, var(--th-primary-500)) !important;
  border-left-color: var(--primary-color, var(--th-primary-500)) !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .services-layout.th-tabs-ready {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .services-layout.th-tabs-ready .tab-sidebar {
    position: static !important;
    padding: 1rem !important;
  }

  .services-layout.th-tabs-ready .tab-sidebar > h2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 0 0 .75rem !important;
    cursor: pointer;
    user-select: none;
  }

  .services-layout.th-tabs-ready .tab-sidebar > h2::after {
    content: "⌄";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
    background: var(--th-primary-50);
    color: var(--th-primary-500);
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
  }

  .services-layout.th-tabs-ready .tab-sidebar.th-tabs-open > h2::after {
    transform: rotate(180deg);
  }

  /* Mobilde bütün sekmeleri bir anda göstermiyoruz. Kapalı durumda yalnız aktif hizmet görünür. */
  .services-layout.th-tabs-ready .tab-sidebar:not(.th-tabs-open) .tab-item:not(.active) {
    display: none !important;
  }

  .services-layout.th-tabs-ready .tab-sidebar:not(.th-tabs-open) .tab-item.active {
    margin-bottom: 0 !important;
  }

  .services-layout.th-tabs-ready .tab-sidebar.th-tabs-open .tab-item {
    display: block !important;
  }

  .services-layout.th-tabs-ready .service-content {
    min-height: 0 !important;
    padding: 1.25rem !important;
  }
}


/* Alt hizmet sayfalarındaki ön rezervasyon formu */
.th-source-request-form .service-radio:checked + .service-radio-label {
  border-color: var(--th-primary) !important;
  background: var(--th-primary-50) !important;
  color: var(--th-primary) !important;
  box-shadow: 0 0 0 1px var(--th-primary) inset;
}
.th-source-request-form .service-radio:focus-visible + .service-radio-label {
  outline: 3px solid rgba(var(--th-primary-rgb), .20);
  outline-offset: 2px;
}
.th-source-request-form .th-source-form-error {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  background: #fff1f2;
  color: #be123c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.th-source-request-form button.th-source-loading {
  cursor: wait !important;
  opacity: .86;
  transform: none !important;
}
.th-source-request-form select:disabled {
  cursor: wait;
  opacity: .72;
}


/* Özel video runtime */
.avatar-modern-wrapper .relative > .absolute.inset-0 {
  display: none;
}
.avatar-modern-wrapper [data-th-video-replay="1"] {
  cursor: pointer;
}
.ai-video-element[role="button"] {
  cursor: pointer;
}
.ai-card:not(.th-video-playing) .ai-audio-visualizer .bar {
  animation-play-state: paused;
  opacity: .45;
}
.ai-card.th-video-playing .ai-audio-visualizer .bar {
  animation-play-state: running;
  opacity: 1;
}
.ai-replay-overlay[aria-hidden="false"] {
  display: flex;
}


/* Tüm eski Vue "Video Tanıtımı" modal bileşenleri */
div.fixed.inset-0.z-50:has(template video) {
  display: none !important;
}
div.fixed.inset-0.z-50[data-th-promo-modal="1"].th-video-modal-open {
  display: flex !important;
}
body.th-video-modal-lock {
  overflow: hidden !important;
}
[data-th-promo-trigger="1"] {
  cursor: pointer;
}
video[data-th-promo-runtime="1"] {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: .5rem;
  background: #000;
}

/* TEMIZHATAY_FAQ_VIDEO_PLAY_BUTTON_V1 */
.ai-card {
    position: relative;
}

.th-faq-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.th-faq-play-overlay[hidden] {
    display: none !important;
}

.th-faq-play-button {
    width: 78px;
    height: 78px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow:
        0 12px 35px rgba(0,0,0,.28),
        0 0 0 8px rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.th-faq-play-button:hover {
    transform: scale(1.08);
    background: #fff;
    box-shadow:
        0 16px 42px rgba(0,0,0,.34),
        0 0 0 10px rgba(255,255,255,.14);
}

.th-faq-play-button:focus-visible {
    outline: 3px solid var(--th-primary-500, #db2777);
    outline-offset: 4px;
}

.th-faq-play-triangle {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 21px solid var(--th-primary-600, #db2777);
}

@media (max-width: 640px) {
    .th-faq-play-button {
        width: 64px;
        height: 64px;
    }

    .th-faq-play-triangle {
        border-top-width: 11px;
        border-bottom-width: 11px;
        border-left-width: 18px;
    }
}
/* /TEMIZHATAY_FAQ_VIDEO_PLAY_BUTTON_V1 */
