/* MASAÜSTÜ MEGA MENÜ STİLLERİ */
.elementor-location-header {
    position: relative;
    z-index: 1000;
}

.elementor-nav-menu--main .elementor-nav-menu {
    position: static !important;
}

.menu-item-has-mega-menu {
    position: static !important;
}

.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    visibility: hidden;
    opacity: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.mega-menu-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.mega-menu-image-area {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.menu-columns-wrapper {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #fff;
}

.menu-column {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.column-image-area {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #f5f5f5;
}

.column-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.column-image.active {
    opacity: 1;
    visibility: visible;
}

.menu-column-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    text-transform: uppercase;
    transition: border-color 0.3s ease, width 0.3s ease;
}

.menu-column:hover .menu-column-title {
    border-bottom: 2px solid #673AB7;
}

.menu-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: static !important;
    display: block !important;
}

.menu-column ul li {
    margin-bottom: 8px;
}

.menu-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0 !important;
    border: none !important;
}

.menu-column ul li a:hover {
    color: #000;
}

.menu-item-has-mega-menu:hover .mega-menu-wrapper {
    visibility: visible;
    opacity: 1;
}

.menu-item-has-mega-menu:hover .mega-menu-wrapper,
.menu-item-has-mega-menu:hover .mega-menu-wrapper ul {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.mega-menu-image-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mega-menu-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-menu-image.active {
    opacity: 1;
}

/* MOBİL CANVAS MENÜ STİLLERİ */
.sp-mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 9998;
}

.sp-mobile-menu-canvas {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
}

.sp-mobile-menu-canvas.active {
    right: 0;
}

.sp-mobile-menu-close {
    position: fixed;
    top: 15px;
    right: -50px;
    width: 30px;
    background-color: #673AB7;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    z-index: 10000;
    cursor: pointer;
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-mobile-menu-close.active {
    right: 20px;
}

/* Mobile Menü Stili */
.sp-mobile-menu {
    padding: 20px 0;
}

/* WPML Dil Değiştirici Widget Stili */

.sp-mobile-wpml-switcher .wpml-ls-legacy-dropdown,
.sp-mobile-wpml-switcher .wpml-ls-legacy-list-horizontal {
    width: 100%;
}

.sp-mobile-wpml-switcher select,
.sp-mobile-wpml-switcher .wpml-ls-item {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

.sp-mobile-wpml-switcher .wpml-ls-item a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.sp-mobile-wpml-switcher .wpml-ls-item a:hover {
    background-color: #f5f5f5;
}

.sp-mobile-wpml-switcher .wpml-ls-current-language {
    font-weight: bold;
    color: #673AB7;
}

.sp-mobile-menu-items,
.sp-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-mobile-menu-items > li {
    border-bottom: 1px solid #eee;
    position: relative;
}

.sp-mobile-menu-items > li > a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 16px;
    text-decoration: none;
}

.sp-submenu {
    display: none;
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-bottom: 50px;
}

.sp-submenu.active {
    left: 0;
    display: block;
}

.sp-submenu > li {
    border-bottom: 1px solid #eee;
}

.sp-submenu > li > a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 16px;
    text-decoration: none;
}

/* Mobil menüde görsel ile birlikte menü öğesi */
.sp-menu-item-with-image {
    display: flex;
    align-items: center;
}

.sp-menu-item-image {
    width: 150px;
    height: 50px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.sp-menu-item-with-image a {
    flex: 1;
}

.sp-submenu-header {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.sp-back-link {
    color: #673AB7 !important;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.sp-back-icon,
.sp-submenu-indicator {
    font-size: 18px;
}

.sp-submenu-indicator {
    float: right;
    margin-left: 5px;
}

/* Mobil Görsel Alanı */
.sp-mobile-image-area {
    padding: 0;
    margin: 0;
    border: none;
}

.sp-mobile-column-images {
    position: relative;
    height: 200px;
    overflow: hidden;
    margin: 0 20px 20px;
    border-radius: 8px;
    background: #f5f5f5;
}

.sp-mobile-column-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sp-mobile-column-image.active {
    opacity: 1;
    visibility: visible;
}

/* Masaüstü görünümde canvas menüyü gizle */
@media (min-width: 1025px) {
    .sp-mobile-menu-overlay, 
    .sp-mobile-menu-canvas, 
    .sp-mobile-menu-close {
        display: none !important;
    }
}

/* Mobil görünümde Elementor'un kendi mobil menüsünü gizle */
@media (max-width: 1024px) {
    .elementor-nav-menu--dropdown {
        display: none !important;
    }
    
    body.sp-mobile-menu-open {
        overflow: hidden;
    }
    
    /* Elementor'un kendi mobil menüsünü kapat */
    .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
    }
}

/* Diğer responsive düzeltmeler */
@media (max-width: 768px) {
    .mega-menu-wrapper {
        position: static;
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none;
    }
    
    .mega-menu-content {
        padding: 0;
    }
    
    .mega-menu-image-area {
        height: 150px;
    }
    
    .menu-columns-wrapper {
        padding: 15px;
        flex-direction: column;
    }
    
    .menu-column {
        width: 100%;
    }
    
    .sp-mobile-column-images {
        height: 180px;
    }
}

/* Mobil menü özel stilleri */
.sp-mobile-top-level {
    border-bottom: 1px solid #eee;
}

.sp-mobile-top-level > a {
    font-weight: 500;
}