/* ============================================================
   Portal.Gallery — kategori sekmeli ızgara + PhotoSwipe kabuğu
   Otel/tur fotoğraf galerisi. PhotoSwipe z-index'i (100000) altında kalır.
   ============================================================ */

/* ---- Sayfadaki "Tüm fotoğrafları göster" butonu ---- */
.tmx-open-gallery-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: #16181d;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.tmx-open-gallery-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
    color: #16181d;
}
.tmx-open-gallery-btn .ic {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 15px;
    height: 15px;
}
.tmx-open-gallery-btn .ic i {
    background: currentColor;
    border-radius: 2px;
}
/* Carousel görselinin tamamı tıklanabilir hissi ver */
#hotelMainGallery .swiper-slide { cursor: zoom-in; }

@media (max-width: 575px) {
    .tmx-open-gallery-btn { right: 12px; bottom: 12px; padding: 10px 13px; font-size: 13px; }
    .tmx-open-gallery-btn .lbl-long { display: none; }
}

/* ---- Body kilidi (galeri açıkken arka plan kaymasın) ---- */
body.tmx-gal-lock { overflow: hidden; }

/* ---- Tam ekran ızgara overlay ---- */
.tmx-gal-root {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
}
.tmx-gal-root.is-open { display: block; }
.tmx-gal-backdrop {
    position: absolute;
    inset: 0;
    background: #0d0f14;
}
.tmx-gal-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    color: #eef0f4;
    animation: tmxGalIn .22s ease;
}
@keyframes tmxGalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Sabit üst bar (Agoda tarzı: mod butonu + sekmeler + sayaç + X) ---- */
.tmx-gal-top {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-bottom: 1px solid #1e222c;
}
/* Mod değiştirici (Slayt ↔ Galeri) */
.tmx-gal-modebtn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #171a22;
    border: 1px solid #2c3342;
    color: #e7eaf0;
    border-radius: 9px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}
.tmx-gal-modebtn:hover { background: #232838; border-color: #3a4252; }
.tmx-ic { color: #7fb0ff; }
.tmx-ic-grid { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 13px; height: 13px; }
.tmx-ic-grid i { background: currentColor; border-radius: 1px; }
.tmx-ic-slides { position: relative; width: 15px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; display: inline-block; }
.tmx-ic-slides::after {
    content: ""; position: absolute; top: 50%; left: 54%;
    transform: translate(-50%, -50%);
    border-left: 5px solid currentColor;
    border-top: 3px solid transparent; border-bottom: 3px solid transparent;
}
.tmx-gal-count { flex: 0 0 auto; margin-left: auto; font-size: 14px; color: #c3cad6; white-space: nowrap; }
.tmx-gal-count b { color: #fff; font-weight: 700; }
.tmx-gal-close {
    flex: 0 0 auto;
    width: 40px;
    height: 36px;
    border-radius: 9px;
    background: #171a22;
    border: 1px solid #262b36;
    color: #cfd5df;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.tmx-gal-close:hover { background: #232838; color: #fff; }

/* PhotoSwipe içindeki üst bar (slayt modu) — görselin üstünde, koyu degrade */
.pswp .tmx-pswp-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    border-bottom: none;
    background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0));
    padding: 12px 16px 20px;
}
.tmx-pswp-count { color: #e7eaf0; }

/* ---- Kategori sekmeleri (üst bar içinde, ortada, esner) ---- */
.tmx-gal-tabs {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 8px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.tmx-gal-tab {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #c3cad6;
    background: #171a22;
    border: 1px solid #262b36;
    border-radius: 20px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tmx-gal-tab:hover { background: #232838; color: #fff; }
.tmx-gal-tab.is-active { background: #0a6cff; border-color: #0a6cff; color: #fff; }
.tmx-gal-tab .c { opacity: .7; margin-left: 5px; font-size: 11px; }

/* ---- Izgara ---- */
.tmx-gal-grid {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 18px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-content: start;
    -webkit-overflow-scrolling: touch;
}
.tmx-gal-cat {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 700;
    color: #aeb6c4;
    letter-spacing: .02em;
    margin: 10px 0 2px;
}
.tmx-gal-cat span { color: #6b7280; font-weight: 600; }
/* <div role="button"> — <button> içerik yüksekliğini takip etmiyor.
   Oran için padding-top hack (aspect-ratio grid satır boyutuna güvenilir yansımıyor). */
.tmx-gal-thumb {
    background: #14171e;
    border-radius: 9px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    height: 0;
    padding-top: 75%;          /* 4:3 oran = yükseklik, genişliğin %75'i */
}
.tmx-gal-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.tmx-gal-thumb:hover img { transform: scale(1.05); }
.tmx-gal-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    transition: border-color .15s ease;
}
.tmx-gal-thumb:hover::after,
.tmx-gal-thumb:focus-visible::after { border-color: rgba(255, 255, 255, .85); }

@media (max-width: 991px) { .tmx-gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) {
    .tmx-gal-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 12px 12px 32px; }
    .tmx-gal-tabs { padding: 10px 12px; }
}

/* ---- PhotoSwipe alt thumbnail şeridi (custom UI) ---- */
.pswp .tmx-filmstrip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
    padding: 10px 0 12px;
}
.tmx-filmstrip-inner {
    display: flex;
    gap: 6px;
    padding: 0 14px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.tmx-filmstrip-inner::-webkit-scrollbar { height: 6px; }
.tmx-filmstrip-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 3px; }
.tmx-fs {
    flex: 0 0 auto;
    width: 72px;
    height: 52px;
    border: none;
    border-radius: 7px;
    background-size: cover;
    background-position: center;
    opacity: .5;
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 1px;
    transition: opacity .15s ease, outline-color .15s ease;
}
.tmx-fs:hover { opacity: .82; }
.tmx-fs.is-active { opacity: 1; outline-color: #0a6cff; }

@media (max-width: 575px) {
    .tmx-fs { width: 56px; height: 42px; }
    .pswp .tmx-filmstrip { padding: 8px 0 10px; }
}
