/* Hamburger Menu Styles */
.hamburger-menu {
    width: 40px;
    height: 18px;
    cursor: pointer;
    position: relative;
    z-index: 9999;
}

.hamburger-menu-icon {
    position: relative;
    width: 100%;
    height: 100%;
}

.hamburger-menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active {
    width: 30px;
}

.hamburger-menu.active .hamburger-menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 5px);
    -webkit-transform: rotate(45deg) translate(3px, 5px);
    -moz-transform: rotate(45deg) translate(3px, 5px);
    -ms-transform: rotate(45deg) translate(3px, 5px);
    -o-transform: rotate(45deg) translate(3px, 5px);
}

.hamburger-menu.active .hamburger-menu-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger-menu.active span{
    background: #000;
}

/* Overlay Menu Base Styles */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #F2F2EC;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    font-family: 'Serif', serif;
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 9998;
}

.overlay-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #fff;
    overflow: hidden;
}

/* Header Section */
.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    position: relative;
    z-index: 10;
}

.overlay-header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.book-now-btn {
    display: flex;
    align-items: center;
    gap: 8px;
            color: #000;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        border: 1px solid rgba(0, 0, 0, 0.3);
        padding: 12px 20px;
        border-radius: 25px;
        transition: all 0.3s ease;
}

.book-now-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.phone-number:hover {
    opacity: 0.7;
}

.overlay-close {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    transition: opacity 0.3s ease;
}

.overlay-close:hover {
    opacity: 0.7;
}

/* Main Content Area */
.overlay-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 60px;
    position: relative;
}

.overlay-menu-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.main-navigation {
    position: relative;
    flex: 0 0 auto;
    min-width: 400px;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(-20px);
}

.menu-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.menu-item a {
    color: #000;
    text-decoration: none;
    font-size: 38px;
    font-weight: 300;
    line-height: 1.2;
    transition: all 0.3s ease;
    display: block;
    font-family: 'Fraunces';
    font-weight: 400;
    letter-spacing: -1px;
}

.menu-item a:hover {
    opacity: 0.7;
    transform: translateX(10px);
}

.submenu-trigger {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 10px;
    margin-left: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    user-select: none;
    min-width: 40px;
    min-height: 40px;
    position: relative;
}

.submenu-trigger:hover {
    opacity: 1;
    transform: translateX(5px);
}

.submenu-trigger.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.submenu-data {
    display: none;
}

/* Submenu Section */
.submenu-section {
    position: relative;
    flex: 0 0 auto;
    min-width: 350px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.submenu-section.active {
    opacity: 1;
    transform: translateX(0);
}

/* Back button for submenu */
.submenu-back {
     display: none; align-items: center; gap: 8px; padding: 10px 14px 10px 0; border-radius: 20px; background: rgba(0,0,0,0.06); color: #000; border: 0; cursor: pointer; font-family:'Jost'; 
        background: none;
    }

.submenu-back:hover, .submenu-back:focus{
    background: none !important;
    color: #000;
}

.submenu-section.active .submenu-back { display: inline-flex; }

/* Hide main navigation smoothly when submenu is active (mobile/tablet) */
.main-navigation.hiding { pointer-events: none; }
.main-navigation.hiding .menu-item { opacity: 0 !important; transform: translateX(-20px) !important; transition: opacity .3s ease, transform .3s ease; }

.submenu-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #cfcfcf;
}

/* Removed submenu-back styles - now using toggle behavior */

.submenu-title {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    opacity: 0.7;
    color: #000;
    display: none;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu-list li {
    margin-top: 15px;
    opacity: 0;
    transform: translateX(-20px);
}

.submenu-list a {
    color: #000;
    text-decoration: none;
    font-size: 24px;
    font-family:'Jost';
    line-height: 1.4;
    transition: all 0.3s ease;
    display: block;
}

.submenu-list a:hover {
    opacity: 0.7;
    transform: translateX(10px);
}

/* Image Section */
.overlay-image-section {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 60px;
}

.overlay-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
}

.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(15px);
    transition: none; /* GSAP will handle transitions */
}



.overlay-image.active {
    opacity: 1;
    transform: translateX(0);
}

.overlay-image.default-image {
    position: relative; /* Default image sets the container height */
    opacity: 0;
}

.overlay-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Footer Section */
.overlay-footer {
    padding: 40px 60px;
    display: flex;
    justify-content: flex-end;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-links a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.3s ease;
    text-transform: lowercase;
    font-family: 'Jost';
    transform: translateX(20px);
    -webkit-transform: translateX(20px);
    -moz-transform: translateX(20px);
    -ms-transform: translateX(20px);
    -o-transform: translateX(20px);
    opacity: 0;
}

.social-links a:hover {
    opacity: 0.7;
}

.overlay-footer {
    padding: 40px 60px;
    display: flex;
    position: absolute;
    bottom: 60px;
    width: 100%;
}

.overlay-logo{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
}


@media (max-width: 768px) {
    .overlay-logo{
        display:none;
    }

    .overlay-btn{
        left: 30px !important;
        top: 30px !important;
    }
}

.overlay-btn{
    position: absolute;
    top: 50px;
    left: 60px;
    border: solid 1px #000;
    border-radius: 50px;
    padding: 13px 28px;
    font-family: 'Jost';
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #000;
    color: #000;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    z-index: 11;
    transition:  all ease .3s;
    -webkit-transition:  all ease .3s;
    -moz-transition:  all ease .3s;
    -ms-transition:  all ease .3s;
    -o-transition:  all ease .3s;
}

.overlay-btn:hover{
    background: #295E75;
    border-color: #295E75;
    color: #fff;
}

.overlay-btn:hover svg{
    fill: #fff;
}


.overlay-btn span{
    display: flex;
    align-items: center;
}

.overlay-btn svg{
    width: 8px;
}


.admin-bar .overlay-logo{
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overlay-main {
        flex-direction: column;
        gap: 24px;
    }
    
    .overlay-menu-section {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
        justify-content: center;
    }

    .main-navigation { min-width: auto; width: 100%; display: flex; flex-direction: column; align-items: center; }
    
    .submenu-section { min-width: auto; width: 100%; margin-top: 8px; display: flex; flex-direction: column; align-items: flex-start; text-align: left;  position: absolute; pointer-events: none;}
    
    .submenu-section.active {
        pointer-events: all;
    }
    .overlay-footer {
        padding: 40px 60px;
        display: flex;
    justify-content: center;
        position: absolute;
        bottom: 60px;
        width: 100%;
        pointer-events: none;
    }

    .overlay-footer .social-links a{
        pointer-events: all;
    }

    .submenu-header {
        margin-bottom: 10px;
    }
    .overlay-image-section {
        flex: none;
        padding-left: 0;
        width: 100%;
    }
    
    .overlay-image {
        max-width: 400px;
        display: none;
    }
    
    .menu-item a { font-size: 42px; text-align: center; }
    
    .submenu-list a {
        font-size: 24px;
    }

    /* Mobil/tabletde içerik kaydırılabilir olsun */
    .overlay-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .overlay-header,
    .overlay-main,
    .overlay-footer {
        padding-left: 30px;
        padding-right: 30px;
    }

    .overlay-main{
        align-items: flex-start;
    }
    
    .overlay-header-left {
        gap: 20px;
    }
    
    .menu-item a { font-size: 36px; text-align: center; }
    
    .submenu-list a {
        font-size: 20px;
    }
    
    /* Küçük ekranlarda görsel alanını gizle */
    .overlay-image-section { display: none; }
    .overlay-image { max-width: 300px; }
}

@media (max-width: 480px) {
    .overlay-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .overlay-header-left {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .menu-item a {
        font-size: 28px;
    }
    
    .submenu-list a {
        font-size: 18px;
    }
}