/* ═══════════════════════════════════════════════════════════
   MAP.CSS — Modern Glassmorphic Map Interface
   ═══════════════════════════════════════════════════════════ */

/* ── Base Reset ─────────────────────────────────────────── */
body, html {
    margin: 0;
    padding: 0;
    font-size: 14px;
    min-height: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
}

#divMap {
    height: 100%;
}

/* ── Glassmorphic Navbar ────────────────────────────────── */
.navbar {
    background: rgba(15, 15, 25, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 14px !important;
    margin: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 6px 12px !important;
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(15, 15, 25, 0.75) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.navbar .action-form {
    width: 280px;
    padding: 20px;
    font-size: 14px;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 992px) {
    .navbar {
        background: rgba(10, 10, 20, 0.92) !important;
        border-radius: 0 !important;
        margin: 0 !important;
        border: none;
    }

    .nav-item {
        display: grid;
    }

    .nav-item button {
        margin: 4px 0 0 4px;
        display: block;
        text-align: left;
    }
}

/* ── Toolbar Buttons ────────────────────────────────────── */
.btn-outline-joven {
    --bs-btn-color: rgba(255, 255, 255, 0.85);
    --bs-btn-border-color: rgba(255, 255, 255, 0.15);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(223, 117, 99, 0.85);
    --bs-btn-hover-border-color: rgba(223, 117, 99, 0.6);
    --bs-btn-focus-shadow-rgb: 223, 117, 99;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #df7563;
    --bs-btn-active-border-color: #df7563;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: rgba(255, 255, 255, 0.4);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgba(255, 255, 255, 0.1);
    --bs-gradient: none;
    border-radius: 10px !important;
    font-size: 13px;
    padding: 6px 12px;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
}

.btn-outline-joven:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(223, 117, 99, 0.3);
}

.btn-outline-joven:active {
    transform: translateY(0);
}

.btn-outline-joven i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.btn-outline-joven:hover i {
    color: #fff !important;
}

/* Active toolbar button */
.btn-outline-joven.active,
.btn-outline-joven[aria-pressed="true"] {
    background: rgba(223, 117, 99, 0.85) !important;
    border-color: rgba(223, 117, 99, 0.6) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(223, 117, 99, 0.25);
}

/* ── Logout Button ──────────────────────────────────────── */
.btn-outline-warning {
    border-radius: 10px !important;
    font-size: 13px;
    padding: 6px 16px;
    transition: all 0.25s ease;
}

/* ── View Selection Panel (Bina/Daire/Fiyat) ────────────── */
#divSelection {
    background: rgba(15, 15, 25, 0.6) !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 8px;
    transition: all 0.3s ease;
}

#divSelection .form-check {
    margin-right: 1rem;
}

#divSelection .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

#divSelection .form-check-input:checked {
    background-color: #df7563;
    border-color: #df7563;
    box-shadow: 0 0 10px rgba(223, 117, 99, 0.4);
}

#divSelection .form-check-label {
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

#divSelection .form-check-input:checked + .form-check-label {
    color: #fff;
}

#divSelection .form-select {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}

#divSelection .form-select:focus {
    border-color: #df7563;
    box-shadow: 0 0 0 0.15rem rgba(223, 117, 99, 0.25);
}

#divSelection .form-select option {
    background-color: #1a1a2e;
    color: #fff;
}

#divSelection label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
}

/* ── Esri UI Offset ─────────────────────────────────────── */
.esri-ui-inner-container {
    margin-top: 70px;
}

/* ── Offcanvas ──────────────────────────────────────────── */
.offcanvas-transparent {
    background: rgba(15, 15, 25, 0.8) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-top: 58px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Glassmorphic BB Info Card ───────────────────────────── */
/* ═══════════════════════════════════════════════════════════
   MODERN GLASSMORPHIC POP-UP TEMALARI (DÜZELTME)
   ═══════════════════════════════════════════════════════════ */

/* Tüm bilgi panellerinin ortak kart gövdesi */
#bbInfo .card, #binaInfo .card, #projeInfo .card {
    background: rgba(20, 20, 32, 0.82) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* Tablolardaki beyaz ve gri arka planları tamamen uçuruyoruz */
#bbInfo .card-body, #binaInfo .card-body, #projeInfo .card-body {
    background: transparent !important;
    color: #ffffff !important;
}

/* Tablo yapılarını pürüzsüzleştirme ve satır çizgilerini inceltme */
#bbInfo table, #binaInfo table, #projeInfo table {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 12px !important;
}

    /* Hücrelerin (Th/Td) arka plan temizliği ve yazı hizalamaları */
    #bbInfo table tr th, #binaInfo table tr th, #projeInfo table tr th {
        background: rgba(255, 255, 255, 0.04) !important; /* Hafif bir kontrast için */
        color: rgba(255, 255, 255, 0.75) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        font-weight: 500;
    }

    #bbInfo table tr td, #binaInfo table tr td, #projeInfo table tr td {
        background: rgba(0, 0, 0, 0.15) !important; /* Değer kısımları daha loş ve net */
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
    }

/* Form girdilerinin (Input) estetik düzeni */
#bbInfo .form-control {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-weight: 500;
}

    #bbInfo .form-control:focus {
        border-color: #df7563 !important;
        box-shadow: 0 0 0 0.25rem rgba(223, 117, 99, 0.25) !important;
    }

/* m² ve ₺ ikon kutuları (Input Group Text) */
#bbInfo .input-group-text {
    background: rgba(223, 117, 99, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 12px;
}

/* Kart alt bilgi alanları (Footer) temizliği */
#bbInfo .card-footer, #binaInfo .card-footer, #projeInfo .card-footer {
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}



/* ── Panoramic Panel ────────────────────────────────────── */
#pnlPanoramic {
    background: rgba(10, 10, 20, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
}

#pnlPanoramic .card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
}

#pnlPanoramic .card-header h5 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Overlay ────────────────────────────────────────────── */
#overlay {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    transition: 0.3s linear;
}

#overlay.active {
    width: 100%;
    height: 100vh;
}

/* ── Accordion ──────────────────────────────────────────── */
.myaccordion {
    margin: 0 auto;
    box-shadow: 0px 10px 38px -19px rgba(0, 0, 0, 0.66);
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.myaccordion .card,
.myaccordion .card:last-child .card-header {
    border: none;
    background: transparent;
}

.myaccordion .card-header {
    border: none;
    background: transparent;
}

.myaccordion .card-header .heading {
    position: relative;
    font-weight: 300;
    z-index: 0;
}

.myaccordion .card-header .heading h3 {
    font-size: 16px;
    margin-bottom: 0;
    color: #fff;
    text-align: left;
}

.myaccordion .card-header .heading .icon {
    width: 40px;
    height: 40px;
    z-index: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.myaccordion .card-header .heading .icon span {
    font-size: 20px;
    color: #fff;
}

.myaccordion .card-header .num {
    border-radius: 40px;
    font-size: 16px;
    padding: 4px 15px;
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: #df7563;
    color: #fff;
}

.myaccordion .fa {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
}

.myaccordion .btn {
    width: 100%;
    font-weight: normal;
    color: #fff;
    padding: 0;
    letter-spacing: 0;
    font-size: 18px;
    border-radius: 0 !important;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(23, 71, 158, 0.7);
    position: relative;
    text-decoration: none;
}

.myaccordion .btn-link:hover,
.myaccordion .btn-link:focus {
    text-decoration: none;
}

[data-toggle="collapse"] .fa:before {
    content: "\f3d8";
    font-family: "Ionicons";
    font-style: normal;
}

[data-toggle="collapse"].collapsed .fa:before {
    content: "\f3d0";
    font-family: "Ionicons";
    font-style: normal;
}

button[aria-expanded="true"] {
    color: #fff !important;
    transition: 0.3s ease;
    box-shadow: 0px 7px 24px -19px rgba(0, 0, 0, 0.32);
    border-color: rgba(23, 71, 158, 0.6) !important;
}

@media (prefers-reduced-motion: reduce) {
    button[aria-expanded="true"] {
        transition: none;
    }
}

button[aria-expanded="true"] .fa,
button[aria-expanded="true"] .num {
    color: #fff !important;
}

button[aria-expanded="true"] .icon span {
    color: #fff !important;
}

button[aria-expanded="true"] .num {
    background: #453f3e !important;
}

button[aria-expanded="false"] {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.myaccordion .card-body:after {
    position: absolute;
    top: 0;
    left: 30px;
    width: 0;
    height: 0;
    content: '';
    border-style: solid;
    border-width: 15px 15px 0 15px;
    border-color: rgba(23, 71, 158, 0.7) transparent transparent transparent;
}

/* ── Weather Box ────────────────────────────────────────── */
.box {
    position: relative;
    width: 300px;
    height: 180px;
    margin-bottom: 30px;
    background: rgba(15, 15, 25, 0.7) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.weather-box {
    position: absolute;
    right: 9px;
    bottom: -10px;
    box-shadow: 0 0 3px rgba(0, 0, 0, .5);
    overflow: hidden;
    color: #fff;
}

.weather-header {
    padding: 7px;
    text-align: center;
    text-transform: capitalize;
    font-size: 1.1em;
    color: #fff;
}

.weather-body {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.weather-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px;
}

.weather-left {
    width: 70px;
    height: 70px;
}

.weather-image {
    width: 100%;
    height: auto;
}

/* ── Range Slider / Query UI ────────────────────────────── */
input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    outline: none;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    background-color: transparent;
    pointer-events: none;
}

.slider-track {
    background-color: rgba(255, 255, 255, 0.2);
    width: 100%;
    height: 5px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    height: 5px;
}

input[type="range"]::-moz-range-track {
    -moz-appearance: none;
    height: 5px;
}

input[type="range"]::-ms-track {
    appearance: none;
    height: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 1.7em;
    width: 1.7em;
    background-color: #df7563;
    cursor: pointer;
    margin-top: -9px;
    pointer-events: auto;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(223, 117, 99, 0.4);
    transition: box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 15px rgba(223, 117, 99, 0.6);
}

input[type="range"]::-ms-thumb {
    appearance: none;
    height: 1.7em;
    width: 1.7em;
    cursor: pointer;
    border-radius: 50%;
    background-color: #df7563;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(223, 117, 99, 0.4);
}

input[type="range"]:active::-webkit-slider-thumb {
    background-color: #ffffff;
    border: 3px solid #df7563;
}

.values {
    background: linear-gradient(135deg, #df7563, #c7604e);
    width: 50%;
    position: relative;
    margin: auto;
    border-radius: 8px;
    text-align: center;
    color: #ffffff;
    font-weight: 500;
}

.values:before {
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border-top: 15px solid #c7604e;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    margin: auto;
    bottom: -14px;
    left: 0;
    right: 0;
}

.container {
    position: absolute;
    width: 80%;
}

/* ── Custom Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Esri Widget Overrides (Dark Theme) ─────────────────── */
.esri-widget {
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.esri-expand__container {
    border-radius: 10px !important;
}

.esri-component.esri-zoom {
    border-radius: 10px !important;
    overflow: hidden;
}
