/* Kayra Patent Stabil_V3 — Turkish home desktop CTAs + mobile reference carousel. */

/*
 * The desktop slider dots span the full hero width and sit above the CTA row.
 * Keep the dots themselves clickable without letting their transparent wrapper
 * intercept the two CTA links.
 */
@media (min-width: 901px) {
  html[lang="tr-TR"] .hero .slide-dots {
    pointer-events: none !important;
  }

  html[lang="tr-TR"] .hero .slide-dots > button {
    pointer-events: auto !important;
  }

  html[lang="tr-TR"] .hero .localized-home-actions {
    pointer-events: none !important;
  }

  html[lang="tr-TR"] .hero .localized-home-actions > .button {
    cursor: pointer !important;
    pointer-events: auto !important;
  }
}

/* The enhanced carousel is generated only on the Turkish mobile home page. */
.kayra-reference-slider {
  display: none;
}

@media (max-width: 800px) {
  html[lang="tr-TR"] .references .reference-grid.kayra-reference-source {
    display: none !important;
  }

  html[lang="tr-TR"] .references .reference-grid.kayra-reference-slider {
    background: #f4f5f6;
    border: 1px solid #dde1e4;
    border-radius: 3px;
    box-shadow: 0 10px 25px rgba(9, 12, 15, 0.06);
    display: block !important;
    overflow: visible;
    padding: 10px 10px 9px !important;
    position: relative;
    touch-action: pan-y;
  }

  html[lang="tr-TR"] .kayra-reference-window {
    direction: ltr;
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  html[lang="tr-TR"] .kayra-reference-track {
    align-items: stretch;
    direction: ltr;
    display: flex;
    flex-direction: row;
    transform: translate3d(0, 0, 0);
    transition: transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  html[lang="tr-TR"] .kayra-reference-track.is-resetting {
    transition: none !important;
  }

  html[lang="tr-TR"] .kayra-reference-page {
    display: grid;
    flex: 0 0 100%;
    gap: 7px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, 64px);
    min-width: 100%;
    width: 100%;
  }

  html[lang="tr-TR"] .kayra-reference-page .reference-logo {
    background: #fff;
    border: 1px solid #e1e5e8;
    border-radius: 2px;
    box-shadow: 0 2px 7px rgba(12, 15, 18, 0.035);
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
    height: 64px !important;
    min-width: 0;
    opacity: 0.62;
    overflow: hidden;
    position: relative;
    transition: filter 180ms ease, opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    transform: none !important;
  }

  html[lang="tr-TR"] .kayra-reference-page .reference-logo:hover,
  html[lang="tr-TR"] .kayra-reference-page .reference-logo:active,
  html[lang="tr-TR"] .kayra-reference-page .reference-logo.is-kayra-touch-active {
    border-color: #c7ccd0 !important;
    box-shadow: 0 5px 13px rgba(12, 15, 18, 0.14) !important;
    -webkit-filter: grayscale(0) !important;
    filter: grayscale(0) !important;
    opacity: 1 !important;
  }

  html[lang="tr-TR"] .kayra-reference-page .reference-logo img {
    height: calc(100% - 4px) !important;
    inset: 2px !important;
    max-height: calc(100% - 4px) !important;
    max-width: calc(100% - 4px) !important;
    object-fit: contain !important;
    transform: scale(var(--kayra-mobile-logo-scale, 1.35)) !important;
    transform-origin: 50% 50% !important;
    width: calc(100% - 4px) !important;
  }

  html[lang="tr-TR"] .kayra-reference-controls {
    align-items: center;
    display: flex;
    gap: 7px;
    justify-content: center;
    min-height: 25px;
    padding-top: 8px;
  }

  html[lang="tr-TR"] .kayra-reference-controls button {
    appearance: none;
    background: #aeb4b9;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 6px;
    margin: 0;
    min-height: 6px;
    min-width: 18px;
    padding: 0;
    transition: background-color 220ms ease, width 220ms ease;
    width: 18px;
  }

  html[lang="tr-TR"] .kayra-reference-controls button[aria-current="true"] {
    background: #c90012;
    width: 31px;
  }

  html[lang="tr-TR"] .kayra-reference-controls button:focus-visible {
    outline: 2px solid #c90012;
    outline-offset: 3px;
  }

  html[lang="tr-TR"] .kayra-reference-status {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
}

@media (max-width: 390px) {
  html[lang="tr-TR"] .kayra-reference-page {
    gap: 6px;
    grid-template-rows: repeat(4, 58px);
  }

  html[lang="tr-TR"] .kayra-reference-page .reference-logo {
    height: 58px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[lang="tr-TR"] .kayra-reference-track {
    transition-duration: 1ms !important;
  }
}
