﻿body {
    cursor: default;
}

#map {
    cursor: default;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#navbar {
    position: absolute;
    z-index: 1000;
    background-color:#14141a;
    width: 100%;
}

.navbar-logo {
    margin-right:10px;
}

.btn-container {
    position: absolute;
    padding-left: 10px;
    z-index: 1000;
}

.text-label {
    background-color: white;
    color: red;
    padding: 5px;
    border-radius: 5px;
}

#test-menu-button {
    position: absolute;
    z-index: 1000;
}

.modal.show {
    display: block;
}

/*Toast Message*/
#custom-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}


/* Side menu */
#side-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: #14141a;
    color: #fff;
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    padding: 1rem;
}

    #side-menu.open {
        right: 0;
    }

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
/* Grid */

.side-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
    font-size: 0.95rem;
}

/* Menü item */
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    border-right: 1px solid #444;
    border-bottom: 1px solid #444; 
}

    .menu-item:nth-child(3n) {
        border-right: none;
    }


    .menu-item:hover {
        background-color: #1f1f28;
    }


/*Location Search*/
#suggestions-list {
    max-height: 200px;
    overflow-y: auto;
    cursor: pointer;
}

.list-group-item {
    background-color: #212529;
    color: #09dddd;
}

    .list-group-item:hover {
        background-color: #343a40;
    }


/*map Text*/
.text-marker {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.6); /* Şeffaf siyah arkaplan */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap; /* Tek satır */
    max-width: 300px; /* İstersen sınır koyarsın */
    pointer-events: auto;
    cursor: pointer;
}

/*Screen lock*/
#lockOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000; 
    pointer-events: none;
}


/*Distance*/
.measure-label-wrapper {
    background-color: transparent;
    pointer-events: auto;
    cursor: pointer;
}

.measure-label {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    transform-origin: center center;
}

/* Map Layers*/
.layer-menu-bottom {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #1d1d1d;
    color: white;
    z-index: 9999;
    transition: bottom 0.3s ease-in-out;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

    .layer-menu-bottom.open {
        bottom: 0;
    }

.layer-menu-header {
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}


/* Yeni Grid yapı */
.layer-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.layer-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2c2c2c;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    border: 1px solid #333;
}

    .layer-option-card:hover {
        transform: translateY(-5px);
        background-color: #444;
    }

    .layer-option-card img {
        width: 100%;
        height: 80px;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .layer-option-card span {
        font-size: 14px;
        text-align: center;
    }


/*Open Weather*/
.weather-sticky-container {
    position: absolute;
    top: 75px;
    left: 20px;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    font-size: 14px;
}

.weather-sticky-container .close-btn {
        position: absolute;
        top: 6px;
        left: 375px;
        cursor: pointer;
        font-weight: bold;
        font-size: 25px;
        color: white;
        background-color: transparent;
        border: none;
}

        .weather-sticky-container .close-btn:hover {
            color: #ff5c5c;
        }


.btn-orange {
    background-color: orange;
    color: white;
}

.btn-orange:hover {
    background-color: darkorange;
}

.leaflet-popup-content-wrapper {
    background-color: #343a40 !important;
    color: white !important;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    border: none;
}

.leaflet-popup-tip {
    background-color: #343a40 !important;
}

.leaflet-popup-content {
    margin: 8px 12px;
}


