/* ===================================================================
   ListingPro Custom Features — Consolidated Styles v2.3.1
   Generated for production. Do not edit inline styles in PHP.
   =================================================================== */

/* =============================================================
   ListingPro Custom Overrides — Glassmorphic UI + Contact Gating
   ============================================================= */

/* ---------------------------------------------------------------
   1. MODAL OVERLAY (Desktop only)
   --------------------------------------------------------------- */
.md-overlay {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 999999998 !important;
}

/* ---------------------------------------------------------------
   1b. MAP Z-INDEX SUPPRESSION WHEN LOGIN POPUP IS OPEN
   When body.lp-modal-open is active (set by lp-custom-login.js),
   we force ALL map-related elements to z-index:0 so they can't
   bleed through the modal overlay.
   --------------------------------------------------------------- */

/* Modal itself: above everything */
#modal-3.md-show {
    z-index: 999999999 !important;
}

/* Suppress Leaflet maps */
body.lp-modal-open .leaflet-container,
body.lp-modal-open .leaflet-pane,
body.lp-modal-open .leaflet-top,
body.lp-modal-open .leaflet-bottom,
body.lp-modal-open .leaflet-control-container {
    z-index: 0 !important;
}

/* Suppress Google Maps */
body.lp-modal-open .gm-style,
body.lp-modal-open .gm-style > div,
body.lp-modal-open #listingDetailsMap,
body.lp-modal-open #quickmap,
body.lp-modal-open .pac-container {
    z-index: 0 !important;
}

/* Suppress map-related containers */
body.lp-modal-open .mapSidebar,
body.lp-modal-open .listing-map-area,
body.lp-modal-open .map-half,
body.lp-modal-open .map-container,
body.lp-modal-open .lp-map-section,
body.lp-modal-open [class*="map-wrapper"],
body.lp-modal-open [class*="map_wrapper"],
body.lp-modal-open [id*="map"] {
    z-index: 0 !important;
}

/* Suppress header & nav z-index competition */
body.lp-modal-open header,
body.lp-modal-open .lp-menu-bar,
body.lp-modal-open .sidebar,
body.lp-modal-open .lp-main-header,
body.lp-modal-open #sidebar-wrapper,
body.lp-modal-open .sticky-header {
    z-index: 0 !important;
}

/* Prevent body scroll when modal is open */
body.lp-modal-open {
    overflow: hidden !important;
}

/* ---------------------------------------------------------------
   2. GLASSMORPHIC POPUP CARD (Desktop #modal-3)
   --------------------------------------------------------------- */
#modal-3.md-modal {
    width: 480px !important;
    max-width: 95vw !important;
    height: auto !important;
    max-height: 95vh !important;
    overflow-y: auto !important;
}

#modal-3 .login-form-popup {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
    max-height: none !important;
    overflow-y: visible !important;
    min-height: auto !important;
    background: #fff !important;
    padding: 32px 28px !important;
    height: auto !important;
}

/* Fix collapsed height: inner panels use position:absolute by default,
   which doesn't contribute to parent height */
#modal-3 .login-form-popup .siginincontainer,
#modal-3 .login-form-popup .siginupcontainer,
#modal-3 .login-form-popup .forgetpasswordcontainer {
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

#modal-3 .md-content {
    width: 100% !important;
    max-width: 440px !important;
    margin: 5vh auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* ---------------------------------------------------------------
   3. FORM INPUTS — Rounded + Focus States
   --------------------------------------------------------------- */
#modal-3 .login-form-popup .form-control,
.login-form-popup .form-control,
#app-view-login-popup .form-control,
#login-style2-page-wrap .form-control {
    border-radius: 10px !important;
    height: 48px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    background: #f8fafc !important;
}

#modal-3 .login-form-popup .form-control:focus,
.login-form-popup .form-control:focus,
#app-view-login-popup .form-control:focus,
#login-style2-page-wrap .form-control:focus {
    border-color: #2196F3 !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15) !important;
    outline: none !important;
    background: #fff !important;
}

/* ---------------------------------------------------------------
   4. GRADIENT SUBMIT BUTTONS
   --------------------------------------------------------------- */
#modal-3 .login-form-popup input[type="submit"],
.login-form-popup input[type="submit"],
#app-view-login-popup input[type="submit"],
#login-style2-page-wrap input[type="submit"] {
    background: linear-gradient(135deg, #2196F3, #1976D2) !important;
    border: none !important;
    border-radius: 10px !important;
    height: 48px !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease !important;
}

#modal-3 .login-form-popup input[type="submit"]:hover,
.login-form-popup input[type="submit"]:hover,
#app-view-login-popup input[type="submit"]:hover,
#login-style2-page-wrap input[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35) !important;
}

/* ---------------------------------------------------------------
   5. CLOSE BUTTON ALIGNMENT FIX
   --------------------------------------------------------------- */
#modal-3 .md-close i,
.md-modal .md-close i {
    position: static !important;
    float: none !important;
    display: inline !important;
}

#modal-3 .md-close,
.md-modal .md-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
    transition: background 0.2s ease !important;
    border: none !important;
}

#modal-3 .md-close:hover,
.md-modal .md-close:hover {
    background: rgba(0, 0, 0, 0.12) !important;
}

/* ---------------------------------------------------------------
   6. REVIEW LOGIN NOTIFICATION BAR
   --------------------------------------------------------------- */
#lp-review-login-notice {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.25);
    animation: lpSlideDown 0.3s ease;
}

@keyframes lpSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#lp-review-login-notice .lp-notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

#lp-review-login-notice .lp-notice-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

#lp-review-login-notice .lp-notice-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

#lp-review-login-notice .lp-notice-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

#lp-review-login-notice .lp-notice-btn-login {
    background: #fff;
    color: #1976D2;
}

#lp-review-login-notice .lp-notice-btn-login:hover {
    background: #e3f2fd;
}

#lp-review-login-notice .lp-notice-btn-signup {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

#lp-review-login-notice .lp-notice-btn-signup:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ---------------------------------------------------------------
   7. "LOGIN TO VIEW" BUTTON (Contact Info Gating)
   --------------------------------------------------------------- */
.lp-login-to-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1;
}

.lp-login-to-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.35);
    color: #fff !important;
}

.lp-login-to-view-btn i {
    font-size: 14px;
}

li.lp-login-to-view-li {
    list-style: none;
    padding: 6px 0;
}

/* ---------------------------------------------------------------
   8. +91 MOBILE NUMBER FIELD
   --------------------------------------------------------------- */
.lp-mobile-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-mobile-wrapper:focus-within {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
    background: #fff;
}

.lp-mobile-prefix {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    height: 46px;
    border-right: 1.5px solid #e2e8f0;
    user-select: none;
    flex-shrink: 0;
}

.lp-mobile-prefix .lp-flag {
    font-size: 16px;
}

.lp-mobile-wrapper input#lp_mobile,
.lp-mobile-wrapper input#lp_mobile_tmp,
.lp-mobile-wrapper input#lp_mobile_popup,
.lp-mobile-wrapper input#lp_mobile_needlogin,
.lp-mobile-wrapper input#lp_mobile_app {
    border: none !important;
    border-radius: 0 !important;
    height: 46px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    background: transparent !important;
    flex: 1;
    box-shadow: none !important;
    outline: none !important;
    min-width: 0;
}

/* Mobile Number Disclaimer Text */
.lp-mobile-disclaimer {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin: 6px 0 0 0;
    line-height: 1.5;
    padding: 0 2px;
}

/* ---------------------------------------------------------------
   9. MOBILE / RESPONSIVE FIXES
   --------------------------------------------------------------- */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    #modal-3.md-modal {
        width: 100% !important;
        max-width: 100vw !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
    }

    #modal-3 .login-form-popup {
        padding: 24px 18px !important;
        border-radius: 0 !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    #modal-3 .md-content {
        margin: 0 !important;
        max-width: 100% !important;
        padding: 10px !important;
    }

    #lp-review-login-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #lp-review-login-notice .lp-notice-btns {
        width: 100%;
    }

    #lp-review-login-notice .lp-notice-btn {
        flex: 1;
        text-align: center;
    }
}

/* Do NOT apply custom backdrop-filter to mobile app-view popup — let theme handle its native overlay */

/* ---------------------------------------------------------------
   10. FORM LABELS & TYPOGRAPHY POLISH
   --------------------------------------------------------------- */
#modal-3 .login-form-popup label,
.login-form-popup label,
#app-view-login-popup label,
#login-style2-page-wrap label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
}

#modal-3 .login-form-popup h1,
.login-form-popup h1 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

/* ---------------------------------------------------------------
   11. SOCIAL LOGIN BUTTONS POLISH
   --------------------------------------------------------------- */
.login-form-popup .social-login a,
#app-view-login-popup .social-login a {
    border-radius: 10px !important;
    padding: 10px 16px !important;
    transition: transform 0.15s ease !important;
}

.login-form-popup .social-login a:hover,
#app-view-login-popup .social-login a:hover {
    transform: translateY(-1px) !important;
}

/* ---------------------------------------------------------------
   12. BOTTOM LINKS POLISH
   --------------------------------------------------------------- */
.login-form-popup .bottom-links a,
#app-view-login-popup .bottom-links a {
    color: #2196F3 !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.login-form-popup .bottom-links a:hover,
#app-view-login-popup .bottom-links a:hover {
    color: #1565C0 !important;
}

/* ---------------------------------------------------------------
   13. MOBILE APP VIEW — LOGIN TO VIEW CONTACT BUTTON
   --------------------------------------------------------------- */
.listing-app-view .lp-login-to-view-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s ease;
    width: 100%;
    justify-content: center;
}

.listing-app-view .lp-login-to-view-btn:hover,
.listing-app-view .lp-login-to-view-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35);
    color: #fff !important;
}

.listing-app-view .lp-login-to-view-li {
    list-style: none;
    padding: 8px 0;
}

/* ---------------------------------------------------------------
   14. MOBILE APP VIEW — REVIEW LOGIN NOTICE RESPONSIVE
   --------------------------------------------------------------- */
.listing-app-view #lp-review-login-notice {
    border-radius: 12px;
    margin: 10px 0 16px;
}

@media (max-width: 480px) {
    #lp-review-login-notice {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 16px;
    }

    #lp-review-login-notice .lp-notice-btns {
        width: 100%;
        display: flex;
    }

    #lp-review-login-notice .lp-notice-btn {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
    }

    .lp-login-to-view-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
}




/* =========================================
   Auto-extracted from inline blocks
   ========================================= */

/* === From line 1391 === */
.md-overlay { transition: opacity 0.3s ease, visibility 0.3s ease; }

/* === From line 1503 === */
/* Review form styling for non-logged-in users */
#lp-review-login-notice {
	display: flex; align-items: center; gap: 12px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: #fff; padding: 14px 20px; border-radius: 8px;
	margin: 15px 0; font-size: 14px; flex-wrap: wrap;
}
#lp-review-login-notice .lp-notice-icon { font-size: 18px; }
#lp-review-login-notice .lp-notice-text { flex: 1; }
#lp-review-login-notice .lp-notice-btns { display: flex; gap: 8px; }
#lp-review-login-notice .lp-notice-btn {
	padding: 6px 16px; border-radius: 20px; font-weight: 600;
	text-decoration: none; font-size: 13px; cursor: pointer;
}
.lp-notice-btn-login { background: #fff; color: #667eea !important; }
.lp-notice-btn-signup { background: rgba(255,255,255,0.2); color: #fff !important; border: 1px solid rgba(255,255,255,0.4); }
.lp-notice-btn-login:hover { background: #f0f0f0; }
.lp-notice-btn-signup:hover { background: rgba(255,255,255,0.3); }
/* Dim review form fields when not logged in */
body[data-lpcf-guest="1"] .review-form form,
body[data-lpcf-guest="1"] .lp-listing-review-form form {
	opacity: 0.4; pointer-events: none; user-select: none;
}

/* === From line 2230 === */
/* === App View Listing Detail: Ensure phone section is visible === */
.listing-app-view .lp-listing-phone,
.listing-app-view-new .lp-listing-phone,
.listing-app-view .lp-listing-phone a,
.listing-app-view-new .lp-listing-phone a,
.listing-app-view .lp-listing-phone-whatsapp,
.listing-app-view-new .lp-listing-phone-whatsapp {
	display: list-item !important;
	visibility: visible !important;
}
.listing-app-view .lp-login-to-view-li,
.listing-app-view-new .lp-login-to-view-li {
	display: list-item !important;
	visibility: visible !important;
}
.listing-app-view .lp-login-to-view-btn,
.listing-app-view-new .lp-login-to-view-btn {
	display: inline-block !important;
	visibility: visible !important;
}

/* === From line 2262 === */
/* === Dashboard Sidebar Labels — AFTER responsive.css === */

/* 1. Sidebar width: 50px → 220px — DESKTOP ONLY (≥992px)
   On mobile the theme collapses to 50px with icon-only view — we must respect that. */
@media (min-width: 992px) {
	.dashboard-content div.pull-left.left-panel.tbl-cell {
		width: 220px !important;
		min-width: 220px !important;
	}
}

/* 2. text-indent → 0 on ALL dashboard links */
.dashboard-tabs.lp-main-tabs.text-center > ul > li > a {
	text-indent: 0 !important;
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 14px 16px !important;
	font-size: 13px !important;
	white-space: nowrap !important;
	overflow: visible !important;
	border-left: 3px solid transparent !important;
}

/* 3. text-indent → 0 on ALL icons */
.dashboard-tabs.lp-main-tabs.text-center > ul > li > a > i,
.dashboard-tabs.lp-main-tabs.text-center > ul > li > a > .sub_icon,
.dashboard-tabs.lp-main-tabs.text-center > ul > li > a > .sub_icon > i {
	text-indent: 0 !important;
	min-width: 22px !important;
	width: 22px !important;
	text-align: center !important;
	font-size: 16px !important;
	flex-shrink: 0 !important;
}

/* 4. Right panel width — DESKTOP ONLY */
@media (min-width: 992px) {
	.dashboard-content div.right-panel {
		width: calc(100% - 220px) !important;
	}
}

/* 5. App View sidebar always visible */
.listing-app-view .dashboard-content-app-view .app-view-dashboard-menu {
	margin-left: 0 !important;
	position: relative !important;
}

/* 6. Container alignment */
.dashboard-tabs.lp-main-tabs.text-center {
	text-align: left !important;
}
.dashboard-content .left-panel .dashboard-tabs > ul {
	padding: 0 !important;
	margin: 0 !important;
}
.dashboard-content .left-panel .dashboard-tabs > ul > li {
	width: 100% !important;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* 7. Hover and active */
.dashboard-tabs.lp-main-tabs.text-center > ul > li > a:hover {
	background: rgba(255,255,255,0.1) !important;
	border-left-color: #42a7df !important;
}
.dashboard-tabs.lp-main-tabs.text-center > ul > li > a.active-dash-menu {
	background: rgba(66,167,223,0.2) !important;
	border-left-color: #42a7df !important;
	font-weight: 600 !important;
}

/* 8. FA icons */
.dashboard-content .left-panel ul li a .fa {
	text-indent: 0 !important;
	color: #fff !important;
}

/* 9. Sub-menu links */
.dashboard-tabs.lp-main-tabs.text-center > ul > li > ul > li > a {
	text-indent: 0 !important;
	font-size: 12px !important;
}

/* === From line 2522 === */
/* Registered Mobile styling in inbox */
.lpcf-registered-mobile-row h5 {
	color: #333 !important;
}
.lpcf-registered-mobile-row h5 span {
	color: #27ae60 !important;
	font-weight: 600 !important;
}
.lpcf-registered-mobile-row h5 .lpcf-mobile-badge {
	display: inline-block;
	background: linear-gradient(135deg, #27ae60, #2ecc71);
	color: #fff !important;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 6px;
	font-weight: 600;
	vertical-align: middle;
	max-width: 80px;
	white-space: nowrap;
	box-sizing: border-box;
}

/* === From line 2956 === */
/* Click Activity Enhancements */
.lpcf-click-mobile-badge {
	display: inline-block;
	background: linear-gradient(135deg, #27ae60, #2ecc71);
	color: #fff !important;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 6px;
	font-weight: 600;
	max-width: 80px;
	white-space: nowrap;
	vertical-align: middle;
	box-sizing: border-box;
}
.lpcf-whatsapp-icon {
	color: #25d366 !important;
}
.lpcf-phone-icon {
	color: #3498db !important;
}
.lpcf-activity-mobile {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	color: #27ae60;
	font-weight: 600;
	max-width: 100%;
	word-break: break-word;
}
/* Mobile responsive for activity badges */
@media (max-width: 768px) {
	.lpcf-click-mobile-badge {
font-size: 10px !important;
padding: 1px 6px !important;
max-width: 70px !important;
margin-left: 4px !important;
display: inline-block !important;
width: auto !important;
	}
	.lpcf-activity-mobile {
font-size: 11px !important;
display: inline-block !important;
width: auto !important;
max-width: 100% !important;
	}
	.lpcf-mobile-badge {
font-size: 10px !important;
padding: 1px 6px !important;
max-width: 70px !important;
display: inline-block !important;
width: auto !important;
margin-left: 4px !important;
	}
}

/* === From line 3228 === */
/* WhatsApp & Email Buttons Container */
.lpcf-extra-contact-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
	padding: 10px 0;
}
.lpcf-wa-call-btn,
.lpcf-wa-msg-btn,
.lpcf-email-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.2s ease;
	line-height: 1;
}
.lpcf-wa-call-btn {
	background: linear-gradient(135deg, #25d366, #128c7e);
	color: #fff !important;
}
.lpcf-wa-msg-btn {
	background: linear-gradient(135deg, #25d366, #075e54);
	color: #fff !important;
}
.lpcf-email-btn {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: #fff !important;
}
.lpcf-wa-call-btn:hover,
.lpcf-wa-msg-btn:hover,
.lpcf-email-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	color: #fff !important;
}
.lpcf-wa-call-btn i,
.lpcf-wa-msg-btn i,
.lpcf-email-btn i {
	font-size: 15px;
}
@media (max-width: 768px) {
	.lpcf-extra-contact-btns {
flex-direction: column;
	}
	.lpcf-wa-call-btn,
	.lpcf-wa-msg-btn,
	.lpcf-email-btn,
	.lpcf-extra-contact-btns .lp-login-to-view-btn {
width: 100%;
justify-content: center;
padding: 12px 16px;
font-size: 14px;
	}
}

/* ---------------------------------------------------------------
   Z-INDEX STACKING FIX: Login Popup Must Cover Everything
   Theme sets .md-modal: 999999999, .md-overlay: 999999
   Header/Map/Sidebar sit between these values — fix by boosting overlay.
   --------------------------------------------------------------- */

/* Desktop popup: overlay covers header, map, sidebar */
.md-overlay {
	z-index: 999999998 !important;
}

/* Desktop popup modal stays on top of overlay */
.md-modal,
#modal-3.md-modal {
	z-index: 999999999 !important;
}

/* Bootstrap modal (app-view / mobile): overlay + popup on top */
#app-view-login-popup.modal {
	z-index: 999999999 !important;
}
#app-view-login-popup.modal + .modal-backdrop,
.modal-backdrop.in,
.modal-backdrop.show {
	z-index: 999999998 !important;
}

/* Ensure Leaflet / Google Maps do NOT stack above popup.
   Our lp-custom-login.js adds body.lp-modal-open on open. */
body.lp-modal-open .leaflet-container,
body.lp-modal-open .mapSidebar,
body.lp-modal-open .gm-style,
body.lp-modal-open #listingDetailsMap,
body.lp-modal-open #quickmap,
body.lp-modal-open .listing-map-area,
body.lp-modal-open .map-half,
body.lp-modal-open .leaflet-pane,
body.lp-modal-open .leaflet-control-container {
	z-index: 0 !important;
	pointer-events: none !important;
}

/* Also suppress the header and sidebar from competing with z-index */
body.lp-modal-open header,
body.lp-modal-open .lp-menu-bar,
body.lp-modal-open .sidebar,
body.lp-modal-open #sidebar {
	z-index: 0 !important;
}

/* Re-enable pointer events on close → handled by removing body.lp-modal-open */

/* ---------------------------------------------------------------
   MOBILE DASHBOARD: Plugin Menu Items — Visible Text & Icons
   Theme responsive.css hides text with text-indent:-99999px on ≤667px.
   Our plugin injects menu items like Bookings, Chat, Coupons, etc.
   We need them to show icon + text always.
   --------------------------------------------------------------- */

/* All LPCF-injected menu items: always show text + icon */
li[class*="lpcf-menu-"] > a {
	text-indent: 0 !important;
	font-size: 13px !important;
	overflow: visible !important;
	white-space: nowrap !important;
}
li[class*="lpcf-menu-"] > a > i,
li[class*="lpcf-menu-"] > a > .sub_icon,
li[class*="lpcf-menu-"] > a > .sub_icon > i {
	text-indent: 0 !important;
}

/* On collapsed sidebar (≤991px), show only first icon, hide second icon */
@media (max-width: 991px) {
	/* Theme uses sub_iconfirst (visible on collapsed) and sub_iconsecond (visible on expanded).
	   On mobile the sidebar is 50px → show first icon only. */
	li[class*="lpcf-menu-"] > a > .sub_iconsecond {
		display: none !important;
	}
	li[class*="lpcf-menu-"] > a > .sub_iconfirst {
		display: inline-block !important;
		text-indent: 0 !important;
	}
	/* On mobile the sidebar is only 50px wide, so hide text and show icon only */
	li[class*="lpcf-menu-"] > a {
		text-indent: -99999px !important;
		position: relative !important;
		height: 47px !important;
		line-height: 47px !important;
		padding: 0 !important;
		text-align: center !important;
	}
	li[class*="lpcf-menu-"] > a > .sub_iconfirst {
		text-indent: 0 !important;
		position: absolute !important;
		left: 50% !important;
		top: 50% !important;
		transform: translate(-50%, -50%) !important;
	}
	li[class*="lpcf-menu-"] > a > .sub_iconfirst > i {
		text-indent: 0 !important;
		font-size: 18px !important;
	}

	/* Badge (notification count) — keep visible on collapsed sidebar */
	li[class*="lpcf-menu-"] .lpcf-vm-badge {
		position: absolute !important;
		top: 4px !important;
		right: 4px !important;
		text-indent: 0 !important;
	}
}

/* On EXPANDED sidebar (≥992px), show text + hide the second redundant icon */
@media (min-width: 992px) {
	li[class*="lpcf-menu-"] > a > .sub_iconsecond {
		display: none !important;
	}
}

/* ---------------------------------------------------------------
   DASHBOARD: User Name + Profile Visibility Fix
   On mobile the user-description-box is hidden by theme at ≤667px.
   The user-portfolio (avatar+name) must always remain visible.
   --------------------------------------------------------------- */

/* User portfolio (avatar + name) — always visible */
.admin-top-section .user-portfolio {
	display: block !important;
	visibility: visible !important;
}
.admin-top-section .user-portfolio .user-text,
.admin-top-section .user-portfolio .user-text h5,
.admin-top-section .user-portfolio .user-text p {
	display: block !important;
	visibility: visible !important;
	color: #fff !important;
	text-indent: 0 !important;
	overflow: visible !important;
}

/* App-view dashboard: user-name heading visible */
.dashboard-content-app-view .user-name,
h5.user-name {
	display: block !important;
	visibility: visible !important;
	text-indent: 0 !important;
	overflow: visible !important;
	white-space: normal !important;
	word-break: break-word !important;
	max-width: 100% !important;
}

/* Vendor dashboard right panel: display name paragraph */
.right-panel .dashboard-right-panel .user-portfolio .user-text p,
.user-portfolio p {
	display: block !important;
	visibility: visible !important;
	text-indent: 0 !important;
}

/* Mobile fix: ensure user name area has enough room */
@media (max-width: 667px) {
	.admin-top-section .user-details div.col-md-3 {
		width: 100% !important;
		text-align: center !important;
		padding-bottom: 10px !important;
	}
	.admin-top-section .user-portfolio .user-text {
		width: 100% !important;
		text-align: center !important;
		padding: 8px 0 !important;
	}
	.admin-top-section .user-portfolio .user-text h5 {
		font-size: 16px !important;
	}
	/* Show the description box on mobile (theme hides it) */
	.admin-top-section .user-description-box {
		display: block !important;
		visibility: visible !important;
		width: 100% !important;
		padding: 10px !important;
	}
	}
}

/* ---------------------------------------------------------------
   APP-VIEW DASHBOARD: Content Area Layout Fixes
   The app-view sidebar is absolute positioned at -220px margin.
   Booking content gets clipped behind the toggle button.
   --------------------------------------------------------------- */

/* App-view: dashboard content area needs safe left padding */
.listing-app-view .dashboard-content-app-view {
	padding-left: 0 !important;
	overflow-x: hidden !important;
}

/* Dashboard panel inside app-view: safe side padding */
.listing-app-view .dashboard-content .dashboard-panel,
.listing-app-view .dashboard-content .dashboard-right-panel {
	padding-left: 15px !important;
	padding-right: 15px !important;
	box-sizing: border-box !important;
}

/* user-portfolio: always show name + avatar in app-view */
.listing-app-view .admin-top-section .user-portfolio {
	display: block !important;
	visibility: visible !important;
}
.listing-app-view .admin-top-section .user-portfolio .user-text {
	display: block !important;
	visibility: visible !important;
}
.listing-app-view .admin-top-section .user-portfolio .user-text h5,
.listing-app-view .admin-top-section .user-portfolio .user-text h5.user-name {
	display: block !important;
	visibility: visible !important;
	color: #fff !important;
	text-indent: 0 !important;
	overflow: visible !important;
	font-size: 14px !important;
	margin-top: 8px !important;
}
.listing-app-view .admin-top-section .user-portfolio .user-text p {
	display: block !important;
	visibility: visible !important;
	color: rgba(255,255,255,0.85) !important;
	font-size: 12px !important;
}

/* Desktop (new dashboard): sidebar open — user name in header */
#wrapper.lp-dashboard-new .sidebar-brand + .sidebar-nav#sidebar {
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

/* Vendor name in top-right header area */
.lp-dashboard-new #page-content-wrapper .user-portfolio .user-text,
.lp-dashboard-new #page-content-wrapper .user-portfolio .user-text h5 {
	display: block !important;
	visibility: visible !important;
	text-indent: 0 !important;
}
