/* ============================================================
   Sidebar Glassmorphism — Front-end (Home side-headers + property widget-boxed)
   Proonmap | Feature: sidebar-glassmorphism
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   1. HOME PAGE — .side-header (left & right panels over the map)
   ═══════════════════════════════════════════════════════════ */

.side-header {
    background-color: rgba(255, 255, 255, 0.35) !important;
    -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
    backdrop-filter:         blur(8px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
}

/* Make inner containers transparent so blur shows through */
.side-header .main_profile,
.side-header .main_one_bottme,
.side-header .amin_tow_top,
.side-header .main_img,
.side-header .main_sochal {
    background: transparent !important;
}

/* Right panel border */
.right-header {
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Left panel border */
.left-header {
    border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
}


/* ═══════════════════════════════════════════════════════════
   2. PROPERTY / SERVICE PAGES — .widget-boxed sidebar
   ═══════════════════════════════════════════════════════════ */

.sidebar {
    background: transparent !important;
}

.sidebar .widget-boxed,
.widget-boxed {
    background: rgba(255, 255, 255, 0.18) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    backdrop-filter:         blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14) !important;
    border-radius: 12px !important;
}

.sidebar .widget-boxed-header,
.widget-boxed-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 12px 12px 0 0 !important;
}

.sidebar .widget-boxed-body,
.widget-boxed-body {
    background: transparent !important;
}


/* ═══════════════════════════════════════════════════════════
   3. FALLBACK — browsers without backdrop-filter
   ═══════════════════════════════════════════════════════════ */

@supports not (backdrop-filter: blur(1px)) {
    .side-header {
        background-color: rgba(255, 255, 255, 0.92) !important;
    }

    .sidebar .widget-boxed,
    .widget-boxed {
        background: rgba(255, 255, 255, 0.92) !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   4. FIX — right-header profile card overflow
   ═══════════════════════════════════════════════════════════ */

.right-header {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Keep profile card inside the panel */
.right-header .main_one_bottme {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 8px 0 0 0 !important;
    box-shadow: 0 2px 12px rgba(62, 193, 211, 0.25) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 8px !important;
}

/* Banner image */
.right-header .main_img,
.right-header .img_cont {
    width: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.right-header .img_cont img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 8px 8px 0 0;
}


/* ═══════════════════════════════════════════════════════════
   5. FIX — Noty toast positioning & glassmorphism style
   ═══════════════════════════════════════════════════════════ */

.noty_layout__topRight {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    transform: none !important;
    width: 320px !important;
    position: fixed !important;
    z-index: 9999999 !important;
}

.noty_bar {
    border-radius: 12px !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    overflow: hidden !important;
}

/* Success */
.noty_theme__mint.noty_type__success .noty_body,
.noty_bar.noty_type__success .noty_body {
    background: rgba(130, 195, 90, 0.80) !important;
    color: #fff !important;
    padding: 14px 18px !important;
}

/* Error */
.noty_bar.noty_type__error .noty_body {
    background: rgba(220, 60, 60, 0.80) !important;
    color: #fff !important;
    padding: 14px 18px !important;
}

/* Warning */
.noty_bar.noty_type__warning .noty_body {
    background: rgba(230, 160, 40, 0.80) !important;
    color: #fff !important;
    padding: 14px 18px !important;
}

/* Info */
.noty_bar.noty_type__information .noty_body {
    background: rgba(60, 130, 220, 0.80) !important;
    color: #fff !important;
    padding: 14px 18px !important;
}

.noty_progressbar {
    height: 3px !important;
    opacity: 0.6 !important;
}
