﻿.KatmanlarCanvas {
    user-select: none;
}

.offcanvas-end, .offcanvas-start {
    margin-top: 74px;
}

#main-map {
    top: 0;
    left: 0;
    width: 100%;
    user-select: none;
    height: calc(100dvh - 74px);
}

.leaflet-control-zoom-fullscreen {
    margin-bottom: 10px;
}

.leaflet-control-zoom {
    border: 0 !important;
}

.pc-content, .pc-container, body {
    overflow: hidden;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.mapInfoBadge {
    z-index: 1023;
    position: absolute;
    bottom: 0;
    opacity: 0.9;
    border-radius: 0;
}

.mapMskLogo {
    z-index: 1023;
    position: absolute;
    bottom: 20px;
    left: 0;
}

.simplebar-content-wrapper, .pct-body, .customizer-body {
    overflow-x: hidden !important;
}

.slider.slider-horizontal {
    width: 100% !important;
}

.SliderCheckBox {
    position: relative;
    top: 4px;
    height: 18px;
    width: 18px;
}

.pct-c-btn {
    position: absolute;
    right: 0;
    z-index: 1096;
    margin-top: 0px !important;
}

.gutter {
    background-color: #1d2630;
    background-repeat: no-repeat;
    background-position: 50%;
}

.gutter.gutter-horizontal {
    cursor: col-resize;
    position: relative;
}

.gutter-horizontal::before,
.gutter-horizontal::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    color: #fd7e14;
    font-size: 0.8rem;
}

.gutter-horizontal::before {
    content: "\f0d9";
    top: 48.5%;
}

.gutter-horizontal::after {
    content: "\f0da";
    top: 50.5%;
}

.street-view-map-icon {
    background-repeat: no-repeat;
    background-size: 49px 832px;
    position: absolute;
    left: -24px;
    top: -34px;
    width: 49px;
    height: 52px;
    background-position: 0px 0px;
    background-image: url("/assets/images/widget/google-street-view/gboi.png");
}

.leaflet-routing-container{
    display: none !important;
}

#toggle-3d-map.active {
    background-color: #3a291d;
}

#cesium-map {
    position: relative;
}

#cesium-map .cesium-viewer-toolbar {
    top: 60px !important;
}

.cesium-custom-popup {
    padding: 15px;
    max-width: 400px;
}

.cesium-custom-popup h5 {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.cesium-custom-popup table {
    font-size: 13px;
}

.cesium-custom-popup table td {
    padding: 4px 8px;
}

.cesium-viewer {
    width: 100%;
    height: 100%;
}

.cesium-viewer-bottom {
    display: none !important;
}

.scene-mode-dropdown {
    position: relative;
    display: inline-block;
}

.scene-mode-options {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 10px;
    display: none;
    flex-direction: row;
    gap: 5px;
    background: rgba(29, 38, 48, 0.95);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scene-mode-dropdown.open .scene-mode-options {
    display: flex;
}

.scene-mode-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.scene-mode-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.scene-mode-option.active {
    background: #4680ff;
}

.scene-mode-toggle {
    cursor: pointer;
}

/* 3D Önemli Nokta Popup Stilleri */
#cesium-poi-popup {
    background: transparent;
    border: none;
    box-shadow: none;
}

#cesium-poi-popup .card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease-in-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* POI Icon stilleri */
.poi-custom-icon {
    background: transparent !important;
    border: none !important;
}

/* Cesium InfoBox Özelleştirmeleri */
.cesium-infoBox {
    display: none !important;
}

/* Cesium Selection Indicator */
.cesium-selection-wrapper {
    color: #4680ff !important;
}

.cesium-selection-wrapper svg {
    filter: drop-shadow(0 0 5px rgba(70, 128, 255, 0.5));
}

/* 3D POI Custom Popup */
#cesium-3d-poi-popup {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: auto;
    max-width: 450px;
    width: 90%;
}

@media (min-width: 768px) {
    #cesium-3d-poi-popup {
        width: 20rem;
    }
}

@media (max-width: 767px) {
    #cesium-3d-poi-popup {
        width: 95%;
        bottom: 10px;
    }
}

/* 3D POI Custom Popup - Marker Üstünde Sabit */
#cesium-3d-poi-popup,
.cesium-3d-popup-container {
    position: fixed !important;     /* absolute yerine fixed - ekran koordinatlarında çalışacak */
    z-index: 10000;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    will-change: transform;         /* Performans için GPU hızlandırma */
}

/* visible class'ı artık sadece display kontrolü için */
#cesium-3d-poi-popup.visible,
.cesium-3d-popup-container.visible {
    opacity: 1;
    visibility: visible;
}

/* 3D Popup card stilleri */
#cesium-3d-poi-popup .card,
.cesium-3d-popup-container .card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    overflow: visible;
    position: relative;
    margin: 0;
}

#cesium-3d-poi-popup .card-header,
.cesium-3d-popup-container .card-header {
    background: var(--bs-body) !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

#cesium-3d-poi-popup .card-body,
.cesium-3d-popup-container .card-body {
    max-height: 400px;
    overflow-y: auto;
}

#cesium-3d-poi-popup .card-body::-webkit-scrollbar,
.cesium-3d-popup-container .card-body::-webkit-scrollbar {
    width: 6px;
}

#cesium-3d-poi-popup .card-body::-webkit-scrollbar-track,
.cesium-3d-popup-container .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#cesium-3d-poi-popup .card-body::-webkit-scrollbar-thumb,
.cesium-3d-popup-container .card-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#cesium-3d-poi-popup .card-body::-webkit-scrollbar-thumb:hover,
.cesium-3d-popup-container .card-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Popup Arrow (Ok işareti) - Marker'a işaret eder */
.popup-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    z-index: 1;
    pointer-events: none;
}

/* Arrow varsayılan (aşağı bakan - popup üstteyken) */
.popup-arrow {
    bottom: -15px;
    border-top: 15px solid #fff;
    border-bottom: none;
}

/* Arrow yukarı baktığında (popup marker'ın altındaysa) */
.popup-arrow.arrow-up {
    bottom: auto;
    top: -15px;
    border-top: none;
    border-bottom: 15px solid #fff;
}

/* Responsive scrollbar ve boyutlar */
@media (max-width: 767px) {
    #cesium-3d-poi-popup .card-body,
    .cesium-3d-popup-container .card-body {
        max-height: 300px;
    }
    
    #cesium-3d-poi-popup .card,
    .cesium-3d-popup-container .card {
        width: 18rem !important;
    }
}

/* Popup içerik stilleri */
.cesium-3d-popup-container .card {
    user-select: none;
}

/* Popup'ın içeriğine tıklanabilir olması için */
.cesium-3d-popup-container * {
    pointer-events: auto;
}

/* Marker göründüğünde popup da görünsün */
.cesium-3d-popup-container[style*="visibility: hidden"] {
    display: none;
}