/**
 * MTN Travel — arayüz katmanı
 * -----------------------------------------------------------------
 * 1) Kaydırma ilerleme çubuğu   (sayfanın en üstünde)
 * 2) Özel kaydırma çubuğu       (scrollbar)
 * 3) Özel fare imleci           (nokta + takip eden halka)
 *
 * Marka renk değişkenlerinin tek kaynağı burasıdır; brand.css bunlara
 * geri düşer. Tailwind ÜRETMEZ; elle yazılmıştır, derleme gerektirmez.
 */

:root {
    --red:   #c91417;   /* ana marka rengi  · rgb 201, 20, 23 */
    --green: #5bb02f;   /* ikincil */
    --blue:  #007ac1;   /* üçüncül */

    --bg-3:  #eef2f8;   /* açık gri zemin — kaydırma çubuğu yolu için */

    --e-out: cubic-bezier(.16, 1, .3, 1);   /* yumuşak çıkış eğrisi */
}

/* -----------------------------------------------------------------
   1) Kaydırma ilerleme çubuğu
      transition VERİLMEZ — scroll ile birebir senkron çalışmalı.
   ----------------------------------------------------------------- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    z-index: 950;              /* üst menü z-50; çubuk onun üstünde kalır */
    width: 0;
    background: linear-gradient(90deg, var(--red), var(--green), var(--blue));
}

/* -----------------------------------------------------------------
   2) Özel kaydırma çubuğu
      Chrome / Edge / Safari / Opera. Firefox varsayılanı kullanır.
   ----------------------------------------------------------------- */
.ui-scrollbar ::-webkit-scrollbar,
.ui-scrollbar::-webkit-scrollbar {
    width: 11px;
}

.ui-scrollbar ::-webkit-scrollbar-track,
.ui-scrollbar::-webkit-scrollbar-track {
    background: var(--bg-3);
}

.ui-scrollbar ::-webkit-scrollbar-thumb,
.ui-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--red), var(--blue));
    border-radius: 99px;
    border: 3px solid var(--bg-3);   /* zeminle aynı renk — çubuk ince ve yüzer görünür */
}

/* Yatay kaydırılan hizmet şeridinde çubuk gizli kalsın (mevcut tasarım) */
.ui-scrollbar .scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* -----------------------------------------------------------------
   3) Metin seçimi
   ----------------------------------------------------------------- */
::selection {
    background: var(--red);
    color: #fff;
}

/* -----------------------------------------------------------------
   4) Özel fare imleci
      Sistem imleci gizlenmez; bu ikili onun üstüne biner.
   ----------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;      /* şart — yoksa altındaki hiçbir şeye tıklanamaz */
    border-radius: 50%;
}

.cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--red);
    margin: -3.5px 0 0 -3.5px;   /* elemanı kendi merkezine hizalar */
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(201, 20, 23, .35);
    margin: -18px 0 0 -18px;
    transition: width .3s var(--e-out),
                height .3s var(--e-out),
                margin .3s var(--e-out),
                border-color .3s,
                background .3s;
}

/* tıklanabilir öğe üzerindeyken */
body.cursor-hot .cursor-ring {
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-color: var(--red);
    background: rgba(201, 20, 23, .06);
}

/* mobilde tamamen gizle */
@media (max-width: 720px) {
    .cursor-dot,
    .cursor-ring { display: none; }
}

/* -----------------------------------------------------------------
   5) Hizmet detay galerisi — yana kaydırmalı şerit
      Mantıksal özellikler kullanılır; Arapça (RTL) kendiliğinden aynalanır.
   ----------------------------------------------------------------- */
.svc-gal {
    position: relative;
    margin-block-end: 2.5rem;
}

.svc-gal-track {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;               /* Firefox */
    border-radius: 1rem;
}

.svc-gal-track::-webkit-scrollbar { display: none; }

.svc-gal-track:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.svc-gal-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-3);
    aspect-ratio: 16 / 10;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

.svc-gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--e-out);
}

.svc-gal-item:hover img { transform: scale(1.04); }

/* Ok butonları */
.svc-gal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    box-shadow: 0 6px 18px rgb(15 23 42 / .18);
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s var(--e-out), background .2s, color .2s;
}

.svc-gal:hover .svc-gal-nav,
.svc-gal-nav:focus-visible { opacity: 1; }

.svc-gal-nav:hover {
    background: var(--red);
    color: #fff;
}

.svc-gal-nav[disabled] {
    opacity: 0 !important;
    pointer-events: none;
}

.svc-gal-prev { inset-inline-start: .75rem; }
.svc-gal-next { inset-inline-end: .75rem; }

/* İkon yönü RTL'de ters çevrilir */
.svc-gal-chev {
    width: 20px;
    height: 20px;
}

[dir="rtl"] .svc-gal-chev { transform: scaleX(-1); }

/* Dokunmatik ekranda oklar sürekli görünür (hover yok) */
@media (hover: none) {
    .svc-gal-nav { opacity: 1; }
}

/* Nokta göstergeleri */
.svc-gal-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-block-start: .85rem;
}

.svc-gal-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgb(100 116 139 / .35);
    cursor: pointer;
    transition: width .3s var(--e-out), background .3s;
}

.svc-gal-dot:hover { background: rgb(100 116 139 / .6); }

.svc-gal-dot.is-active {
    width: 22px;
    background: var(--red);
}

/* -----------------------------------------------------------------
   6) Büyük görsel önizlemesi (lightbox)
   ----------------------------------------------------------------- */
.svc-lb {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem;
    background: rgb(3 12 24 / .9);
    opacity: 0;
    transition: opacity .25s var(--e-out);
}

.svc-lb.is-open {
    display: flex;
    opacity: 1;
}

.svc-lb img {
    max-width: min(1200px, 92vw);
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: .75rem;
    box-shadow: 0 24px 60px rgb(0 0 0 / .5);
    animation: svc-lb-in .3s var(--e-out) both;
}

@keyframes svc-lb-in {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: none; }
}

.svc-lb-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / .14);
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

.svc-lb-btn:hover { background: var(--red); }

.svc-lb-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.svc-lb-close { top: 1rem; inset-inline-end: 1rem; }
.svc-lb-prev  { inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); }
.svc-lb-next  { inset-inline-end: 1rem;   top: 50%; transform: translateY(-50%); }

.svc-lb-count {
    position: absolute;
    bottom: 1.1rem;
    inset-inline: 0;
    text-align: center;
    font-size: 13px;
    letter-spacing: .04em;
    color: rgb(255 255 255 / .75);
}

.svc-lb-icon { width: 22px; height: 22px; }

[dir="rtl"] .svc-lb-prev .svc-lb-icon,
[dir="rtl"] .svc-lb-next .svc-lb-icon { transform: scaleX(-1); }

/* Arka plan kaymasın */
html.svc-lb-open,
html.svc-lb-open body { overflow: hidden; }

@media (max-width: 640px) {
    .svc-gal-nav { width: 36px; height: 36px; }
    .svc-lb { padding: 3.5rem .5rem; }
    .svc-lb-btn { width: 40px; height: 40px; }
    .svc-lb-prev { inset-inline-start: .35rem; }
    .svc-lb-next { inset-inline-end: .35rem; }
}

/* -----------------------------------------------------------------
   7) Referanslar — yıldızlar, avatar ve yorum metni
   ----------------------------------------------------------------- */
.ref-stars {
    position: relative;
    display: inline-block;
    line-height: 0;
    white-space: nowrap;
}

.ref-stars svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

.ref-stars-bg { color: rgb(100 116 139 / .25); }

.ref-stars-fg {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    overflow: hidden;
    color: #fbbc04;              /* Google yıldız sarısı */
    white-space: nowrap;
}

.ref-stars-md { font-size: 17px; }
.ref-stars-lg { font-size: 26px; }

/* RTL'de dolgu sağdan başlamalı */
[dir="rtl"] .ref-stars-fg { direction: rtl; }

/* Google logosu */
.ref-google svg { width: 18px; height: 18px; display: block; }
.ref-google-sm svg { width: 14px; height: 14px; }

/* Avatar — fotoğraf yoksa/yüklenmezse baş harf görünür */
.ref-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    overflow: hidden;
    font-weight: 700;
    font-size: 17px;
}

.ref-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Yorum metni — uzunsa kısaltılır, "Devamını oku" ile açılır */
.ref-body {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ref-body.is-open {
    display: block;
    overflow: visible;
}

/* -----------------------------------------------------------------
   8) Anasayfa · 3B dünya küresi
      Kütüphane yok; canvas'a elle çizilir. Ölçüler tamamen esnektir.
   ----------------------------------------------------------------- */
/* Bölüm zemini — kürenin koyu gövdesiyle kaynaşsın diye derin okyanus tonu.
   Renkler sitenin --ocean-deep / --ocean paletinden alınmıştır. */
/* Beyaz zemin — kürenin çevresinde çok hafif bir mavi aydınlık kalır */
.globe-sec {
    background:
        radial-gradient(58% 58% at 76% 42%, rgba(41,124,168,.10), transparent 68%),
        radial-gradient(60% 60% at 4% 100%, rgba(224,139,62,.07), transparent 66%),
        #ffffff;
}

/* Arapça'da ışık sağdan gelsin */
[dir="rtl"] .globe-sec {
    background:
        radial-gradient(58% 58% at 24% 42%, rgba(41,124,168,.10), transparent 68%),
        radial-gradient(60% 60% at 96% 100%, rgba(224,139,62,.07), transparent 66%),
        #ffffff;
}

.globe-box {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
}

.globe-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: pan-y;              /* dikey kaydırma engellenmesin */
    -webkit-tap-highlight-color: transparent;
}

.globe-canvas:active { cursor: grabbing; }

.globe-canvas:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 6px;
    border-radius: 50%;
}

.globe-hint {
    position: absolute;
    inset-inline: 0;
    bottom: 2%;
    text-align: center;
    font-size: 12px;
    letter-spacing: .02em;
    color: rgb(93 116 128 / .85);
    pointer-events: none;
    transition: opacity .4s var(--e-out);
}

.globe-box:hover .globe-hint { opacity: 0; }

/* Telefon: küre biraz küçülsün, metne yer kalsın */
@media (max-width: 639px) {
    .globe-box { max-width: 340px; }
    .globe-hint { font-size: 11px; }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
    .globe-box { max-width: 420px; }
}

/* Dokunmatik ekranda "sürükleyin" yerine dokunma ipucu kalsın */
@media (hover: none) {
    .globe-box:hover .globe-hint { opacity: 1; }
}

/* -----------------------------------------------------------------
   9) Fareye göre eğilen kartlar
      Yalnızca gerçek fareli cihazlarda ve <html class="ui-tilt"> varken.
   ----------------------------------------------------------------- */
.ui-tilt [data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-glare {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .35s var(--e-out);
    background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 50%),
                rgba(255, 255, 255, .30), transparent 46%);
}

.ui-tilt [data-tilt]:hover .tilt-glare { opacity: 1; }

/* Dokunmatik ekranda tamamen kapalı */
@media (hover: none) {
    .tilt-glare { display: none; }
}

/* -----------------------------------------------------------------
   10) Popüler rotalar — 3B fotoğraf destesi
       Geniş ekranda daire üzerinde 3B; telefonda yana kaydırmalı şerit.
   ----------------------------------------------------------------- */
.deck { position: relative; }

.deck-stage {
    perspective: 1500px;
    perspective-origin: 50% 50%;
}

.deck-track {
    position: relative;
    height: 420px;
    transform-style: preserve-3d;
}

.deck-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 380px;
    margin: -190px 0 0 -140px;
    border-radius: 22px;
    overflow: hidden;
    background: #0b3049;
    box-shadow: 0 26px 60px -26px rgb(8 40 62 / .65);
    text-decoration: none;
    transition: transform .75s var(--e-out), opacity .55s var(--e-out), box-shadow .55s var(--e-out);
}

.deck-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgb(6 32 50 / .88));
}

.deck-cap {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 20px 22px;
    color: #fff;
    text-align: start;
}

.deck-cap strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.deck-cap em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 13px;
    color: rgb(255 255 255 / .78);
}

a.deck-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 0 rgb(255 255 255 / .55);
    transition: box-shadow .4s var(--e-out);
}

a.deck-item:hover::after { box-shadow: inset 0 0 0 2px rgb(255 255 255 / .55); }

/* Gezinme */
.deck-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}

.deck-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgb(100 116 139 / .22);
    border-radius: 50%;
    background: #fff;
    color: #0d3f5c;
    cursor: pointer;
    box-shadow: 0 8px 22px -12px rgb(8 40 62 / .55);
    transition: background .25s, color .25s, border-color .25s;
}

.deck-btn:hover {
    background: var(--red);
    color: #fff;
    border-color: transparent;
}

.deck-btn:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.deck-chev { width: 20px; height: 20px; }
[dir="rtl"] .deck-chev { transform: scaleX(-1); }

.deck-dots { display: flex; align-items: center; gap: 7px; }

.deck-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgb(100 116 139 / .32);
    cursor: pointer;
    transition: width .35s var(--e-out), background .35s;
}

.deck-dot:hover { background: rgb(100 116 139 / .55); }
.deck-dot.is-active { width: 24px; background: var(--red); }

/* Tablet: kartlar biraz küçülsün */
@media (max-width: 1023px) {
    .deck-track { height: 380px; }
    .deck-item { width: 240px; height: 330px; margin: -165px 0 0 -120px; }
    .deck-cap strong { font-size: 19px; }
}

/* Telefon: 3B kapanır, klasik kaydırmalı şeride döner */
@media (max-width: 639px) {
    .deck-stage { perspective: none; }
    .deck-track {
        height: auto;
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        transform: none !important;
        padding-bottom: 4px;
    }
    .deck-track::-webkit-scrollbar { display: none; }
    .deck-item {
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        flex: 0 0 78%;
        width: auto;
        height: 340px;
        scroll-snap-align: center;
        transform: none !important;
        opacity: 1 !important;
    }
    .deck-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .deck-item { transition: none; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    .tilt-glare { display: none; }
    .svc-gal-track { scroll-behavior: auto; }
    .svc-gal-item img,
    .svc-gal-dot,
    .svc-gal-nav,
    .svc-lb { transition: none; }
    .svc-gal-item:hover img { transform: none; }
    .svc-lb img { animation: none; }
}
