/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDFBF7;
}

::-webkit-scrollbar-thumb {
    background: #E76F51;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C8553D;
}

/* Glassmorphism Nav */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(231, 111, 81, 0.1);
}

/* Text Selection */
::selection {
    background: #E76F51;
    color: white;
}

/* Reveal Animation Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Image Zoom */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.7s ease;
}

.img-zoom-container:hover img {
    transform: scale(1.05);
}

.float-alt {
    text-decoration: none;
    position: fixed;
    width: 200px;
    height: 45px;
    bottom: 30px;
    right: 40px;
    background-color: #ffffffc8;
    backdrop-filter: blur(5px);
    border-radius: 0px 10px 10px 0px;
    color: #1467b9 !important;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.float-alt-rezervasyon {
    text-decoration: none;
    position: fixed;
    width: 200px;
    height: 45px;
    bottom: 30px;
    right: 240px;
    background-color: #1467b9;
    backdrop-filter: blur(5px);
    border-radius: 10px 0px 0px 10px;
    color: #fff !important;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media all and (max-width: 768px) {

    .float-alt,
    .float-alt-rezervasyon {
        width: 45%;
        height: 40px;
        bottom: env(safe-area-inset-bottom, 0px);
        font-size: 14px;
        z-index: 3000;
    }

    .float-alt {
        left: 50%;
        transform: translateX(0);
        border-radius: 0 10px 10px 0;
    }

    .float-alt-rezervasyon {
        left: 50%;
        transform: translateX(-100%);
        border-radius: 10px 0 0 10px;
    }

    body {
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }
}

.fo-link a:hover {
    background-color: #fa6c0f;
    color: #fff !important;
}

/* Mobil Menü */
#mobile-menu {
    transition: transform 0.3s ease;
    box-shadow: -10px 0 40px rgba(78, 52, 46, 0.1);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

#mobile-menu nav a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

body.menu-open #mobile-menu nav a {
    opacity: 1;
    transform: translateY(0);
}

/* Dil Butonları Aktif Durumu */
.mobile-lang-btn.active {
    background-color: #1467b9;
    color: white;
    border-color: #1467b9;
}

.mobile-lang-btn:not(.active) {
    background-color: white;
    color: #1467b9;
}

/* animasyonlar */
body.menu-open #mobile-menu nav a:nth-child(1) {
    transition-delay: 0.1s;
}

body.menu-open #mobile-menu nav a:nth-child(2) {
    transition-delay: 0.15s;
}

body.menu-open #mobile-menu nav a:nth-child(3) {
    transition-delay: 0.2s;
}

body.menu-open #mobile-menu nav a:nth-child(4) {
    transition-delay: 0.25s;
}

body.menu-open #mobile-menu nav a:nth-child(5) {
    transition-delay: 0.3s;
}

.lang-active {
    background: #1467b9;
    color: #fff;
    border-color: #1467b9;
}

@keyframes menuShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.mobile-cta-shine {
    position: relative;
    overflow: hidden;
}

.mobile-cta-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: translateX(-100%);
    animation: menuShine 3s infinite;
}

/* ===== GALERİ ===== */
.gallery-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1.5px solid #E8DDD5;
    background: white;
    color: #4E342E;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: #E76F51;
    border-color: #E76F51;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(231, 111, 81, 0.3);
}

.gallery-item {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #f0ede8;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(78, 52, 46, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1.25rem;
}

.gallery-thumb:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.gallery-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.94);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s ease;
}

.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: #E76F51;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: #E76F51;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    z-index: 10000;
}

@media (max-width: 640px) {
    .lightbox-nav {
        width: 2.25rem;
        height: 2.25rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}