/**
 * Real Estate Portal & Tools Styling
 * Modern, High-Performance CSS matching 99Land UX
 */

:root {
    --ml-re-primary: #1d3865;
    --ml-re-primary-hover: #14294b;
    --ml-re-emerald: #10b981;
    --ml-re-emerald-dark: #047857;
    --ml-re-dark: #0f172a;
    --ml-re-dark-card: #1e293b;
    --ml-re-text-dark: #0f172a;
    --ml-re-text-muted: #64748b;
    --ml-re-bg-light: #f8fafc;
    --ml-re-card-bg: #ffffff;
    --ml-re-border: #e2e8f0;
    --ml-re-radius: 16px;
    --ml-re-radius-sm: 8px;
    --ml-re-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --ml-re-shadow-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.15), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

.ml-re-portal-container {
    width: 100%;
    font-family: inherit;
    color: var(--ml-re-text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

.ml-re-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. HERO SECTION */
.ml-re-hero-section {
    position: relative;
    min-height: 580px;
    background-color: #020617;
    overflow: hidden;
    padding: 70px 20px 80px 20px;
    display: flex;
    align-items: center;
}

.ml-re-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.ml-re-hero-bg.ml-bg-1 {
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80');
}
.ml-re-hero-bg.ml-bg-2 {
    background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1600&q=80');
}
.ml-re-hero-bg.ml-bg-3 {
    background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1600&q=80');
}

.ml-re-hero-bg.active {
    opacity: 1;
}

.ml-re-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.85) 45%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 2;
}

.ml-re-hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, #ffffff, transparent);
    z-index: 3;
}

.ml-re-hero-inner {
    position: relative;
    z-index: 10;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
}

.ml-re-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .ml-re-hero-grid {
        grid-template-columns: 1fr 380px;
    }
}

.ml-re-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
}

.ml-re-hero-badge svg {
    color: #fbbf24;
}

.ml-re-hero-title {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .ml-re-hero-title {
        font-size: 52px;
    }
}

.ml-re-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 620px;
    margin: 0 0 28px 0;
}

/* 3-Mode Search Box */
.ml-re-search-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 740px;
}

.ml-re-mode-tabs {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 12px;
    gap: 4px;
}

.ml-re-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 700;
    padding: 0px 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ml-re-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ml-re-fields-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .ml-re-fields-grid {
        grid-template-columns: 1.5fr 1fr auto;
    }
}

.ml-re-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ml-re-input-location .ml-re-input {
    width: 100%;
    height: 42px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px 10px 48px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ml-re-gps-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #d1fae5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.ml-re-gps-btn:hover {
    background: #059669;
    color: #ffffff;
}

.ml-re-select-type {
    position: relative;
}

.ml-re-select-type .ml-select-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.ml-re-select {
    width: 100%;
    height: 42px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px 10px 42px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    appearance: none;
}

.ml-re-btn-search {
    height: 42px;
    padding: 0 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.5);
    transition: all 0.2s ease;
}

.ml-re-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -5px rgba(16, 185, 129, 0.6);
}

.ml-re-hero-pills {
    margin-top: 18px;
}

.ml-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 5px 6px 5px 16px;
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    text-align: -webkit-center;
}

.ml-pill-link:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.ml-pill-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7c4dff 0%, #2563eb 100%);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
}

/* Hero Side Card (Slide Deck) */
.ml-re-hero-side-card {
    display: none;
}

@media (min-width: 1024px) {
    .ml-re-hero-side-card {
        display: block;
    }
}

.ml-re-preview-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ml-re-preview-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3.4;
    border-radius: 18px;
    overflow: hidden;
}

.ml-re-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ml-re-preview-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, transparent 60%);
}

.ml-re-preview-text {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
}

.ml-re-preview-bar {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #7c4dff);
    border-radius: 4px;
    margin-bottom: 10px;
}

.ml-re-preview-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.ml-re-slide-nav {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ml-re-slide-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.ml-re-slide-btn.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.ml-s-indicator {
    width: 4px;
    height: 28px;
    border-radius: 4px;
    background: #64748b;
}

.ml-re-slide-btn.active .ml-s-indicator {
    background: linear-gradient(to bottom, #10b981, #7c4dff);
}

.ml-s-num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.ml-s-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* 2. METRICS SECTION */
.ml-re-metrics-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
}

.ml-re-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .ml-re-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ml-metric-col {
    padding: 0 16px;
    border-left: 1px solid #e2e8f0;
}

.ml-metric-col:first-child {
    border-left: none;
}

.ml-metric-val {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.ml-metric-lbl {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
}


/* 3. SECTION HEADERS & BASICS */
.ml-re-section {
    padding: 10px 0;
}

.ml-re-section-head {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .ml-re-section-head {
        flex-direction: row;
        align-items: flex-end;
    }
}

.ml-re-section-center-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.ml-re-subbadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    color: #c2410c;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.ml-badge-emerald {
    background: #ecfdf5;
    color: #047857;
}

.ml-badge-amber {
    background: #fef3c7;
    color: #b45309;
}

.ml-badge-indigo {
    background: #e0e7ff;
    color: #4338ca;
}

.ml-badge-translucent {
    background: rgba(255, 255, 255, 0.15);
    color: #a7f3d0;
}

.ml-badge-orange-translucent {
    background: rgba(255, 255, 255, 0.15);
    color: #fdba74;
}

.ml-re-section-title {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .ml-re-section-title {
        font-size: 36px;
    }
}

.ml-head-white .ml-re-section-title {
    color: #ffffff;
}

.ml-re-section-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.ml-head-white .ml-re-section-desc {
    color: #94a3b8;
}

.ml-re-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: #059669;
    text-decoration: none;
    transition: all 0.2s;
}

.ml-re-link-arrow:hover {
    color: #047857;
    transform: translateX(4px);
}


/* 4. DEVELOPER PROJECTS GRID */
.ml-re-dev-section {
    background: #ffffff;
}

.ml-re-dev-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    .ml-re-dev-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .ml-re-dev-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.ml-dev-project-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ml-dev-project-card:hover {
    transform: translateY(-4px);
    border-color: #fdba74;
    box-shadow: 0 12px 20px -5px rgba(249, 115, 22, 0.15);
}

.ml-dev-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}

.ml-dev-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ml-dev-project-card:hover .ml-dev-img {
    transform: scale(1.05);
}

.ml-dev-status-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ml-dev-body {
    padding: 12px;
}

.ml-dev-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-dev-loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.ml-dev-loc svg {
    color: var(--ml-re-primary, #7c4dff);
    flex-shrink: 0;
}

.ml-dev-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.ml-dev-price {
    font-size: 11px;
    font-weight: 800;
    color: var(--ml-re-primary, #7c4dff);
}

.ml-dev-btn-visit {
    background: #f5f3ff;
    color: #7c4dff;
    border: 1px solid #ede9fe;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.ml-dev-btn-visit:hover {
    background: var(--ml-re-primary, #7c4dff);
    color: #ffffff;
}


/* 5. BROWSE BY NEED (CATEGORY CARDS) */
.ml-re-cat-section {
    background: #f8fafc;
}

.ml-re-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .ml-re-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ml-re-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ml-cat-card {
    position: relative;
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ml-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.ml-cat-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ml-cat-card:hover .ml-cat-bg {
    transform: scale(1.08);
}

.ml-cat-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.4) 60%, transparent 100%);
}

.ml-cat-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.ml-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.ml-cat-title {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.ml-cat-desc {
    font-size: 13px;
    line-height: 1.4;
    color: #cbd5e1;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ml-cat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
}


/* 6. CITY GUIDES SECTION */
.ml-re-cities-section {
    background: #020617;
    color: #ffffff;
}

.ml-re-city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 768px) {
    .ml-re-city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .ml-re-city-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.ml-city-card {
    position: relative;
    min-height: 240px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.ml-city-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35);
}

.ml-city-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ml-city-card:hover .ml-city-bg {
    transform: scale(1.08);
}

.ml-city-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.5) 60%, transparent 100%);
}

.ml-city-content {
    position: relative;
    z-index: 2;
}

.ml-city-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #a7f3d0;
    margin-bottom: 6px;
}

.ml-city-name {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.ml-city-desc {
    font-size: 11px;
    line-height: 1.4;
    color: #cbd5e1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* 7. PROPERTY CARDS & RAILS */
.ml-re-featured-section {
    background: #ffffff;
}

.ml-re-card-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .ml-re-card-rail {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ml-re-card-rail {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ml-property-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ml-property-card:hover {
    transform: translateY(-5px);
    border-color: #fdba74;
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.12);
}

.ml-card-img-box {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
}

.ml-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ml-property-card:hover .ml-card-img {
    transform: scale(1.06);
}

.ml-card-badges-top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.ml-prop-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-featured {
    background: linear-gradient(135deg, #7c4dff 0%, #2563eb 100%);
    color: #ffffff;
}

.badge-sale {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-rent {
    background: #3b82f6;
    color: #ffffff;
}

.badge-lease {
    background: #8b5cf6;
    color: #ffffff;
}

.badge-qualifier {
    background: #ef4444;
    color: #ffffff;
}

.badge-verified {
    background: #10b981;
    color: #ffffff;
}

/* Property Type Badges (Top Right Corner of Image) */
.ml-property-card-badge,
.ml-property-cover-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 25 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    background: #1d3865 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    line-height: 1.2 !important;
    pointer-events: none !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
}

.ml-property-cover-badge {
    top: 24px !important;
    right: 24px !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    z-index: 30 !important;
}

.ml-property-card-badge .ml-badge-dot,
.ml-property-cover-badge .ml-badge-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.ml-badge-for-sale .ml-badge-dot,
.ml-badge-sale .ml-badge-dot {
    background-color: #38bdf8 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.9) !important;
}

.ml-badge-for-rent .ml-badge-dot,
.ml-badge-rent .ml-badge-dot {
    background-color: #34d399 !important;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.9) !important;
}

.ml-badge-for-lease .ml-badge-dot,
.ml-badge-lease .ml-badge-dot {
    background-color: #fbbf24 !important;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.9) !important;
}

.ml-card-type-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

.ml-card-views-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.ml-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ml-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ml-card-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--ml-re-primary, #7c4dff);
    line-height: 1.1;
}

.ml-card-fav-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s;
}

.ml-card-fav-btn:hover,
.ml-card-fav-btn.active {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

.ml-card-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.ml-card-title a {
    color: #0f172a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ml-card-title a:hover {
    color: var(--ml-re-primary, #7c4dff);
}

.ml-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 12px;
}

.ml-card-location svg {
    color: var(--ml-re-primary, #7c4dff);
    flex-shrink: 0;
}

.ml-card-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-card-specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.ml-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.ml-spec-pill svg {
    color: #64748b;
}

.ml-card-actions-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 12px;
}

.ml-btn-visit-mini {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ml-btn-visit-mini:hover {
    background: #10b981;
    color: #ffffff;
}

.ml-btn-view-mini {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.ml-btn-view-mini:hover {
    background: #0f172a;
    color: #ffffff;
}


/* 8. TOOLS SECTION (EMI & LAND CONVERTER) */
.ml-re-tools-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.ml-tools-switch-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.ml-tool-tab-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}

.ml-tool-tab-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.25);
}

.ml-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    max-width: 960px;
    margin: 0 auto;
}

.ml-tool-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 18px;
}

.ml-tool-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ml-icon-emerald {
    background: #ecfdf5;
    color: #059669;
}

.ml-tool-title {
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.ml-tool-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* EMI Grid */
.ml-emi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .ml-emi-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.ml-slider-group {
    margin-bottom: 24px;
}

.ml-slider-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ml-label-text {
    font-size: 14px;
    font-weight: 800;
    color: #334155;
}

.ml-val-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 10px;
}

.ml-num-input {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    width: 90px;
    text-align: right;
    outline: none;
}

.ml-curr-symbol,
.ml-unit-symbol {
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
}

.ml-range-slider {
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: #e2e8f0;
    outline: none;
    accent-color: #10b981;
    cursor: pointer;
}

.ml-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 6px;
}

/* EMI Results Box */
.ml-emi-results {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ml-emi-highlight-box {
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.ml-emi-highlight-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

.ml-emi-highlight-amount {
    font-size: 36px;
    font-weight: 900;
    color: #059669;
    line-height: 1.1;
    margin: 4px 0;
}

.ml-emi-note {
    font-size: 12px;
    color: #94a3b8;
}

.ml-emi-chart-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: center;
}

.ml-donut-svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.ml-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ml-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ml-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ml-dot-principal { background: #10b981; }
.ml-dot-interest { background: #1d3865; }

.ml-legend-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.ml-legend-val {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.ml-legend-total {
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 4px;
}

/* Land Converter Grid */
.ml-converter-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ml-conv-input-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
}

.ml-conv-label {
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.ml-conv-field-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
}

.ml-conv-input,
.ml-conv-select {
    height: 48px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
}

.ml-conv-arrow-indicator {
    text-align: center;
    color: #059669;
}

.ml-conv-results-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .ml-conv-results-table {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ml-conv-result-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ml-c-unit {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.ml-c-val {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
}


/* 9. CHANNEL PARTNER SECTION */
.ml-re-partner-section {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    color: #ffffff;
    padding: 70px 0;
}

.ml-re-partner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .ml-re-partner-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.ml-partner-title {
    font-size: 23px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 14px 0;
}

.ml-partner-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 24px 0;
}

.ml-partner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.ml-btn-partner-cta {
    background: linear-gradient(135deg, #7c4dff 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(124, 77, 255, 0.45);
    transition: all 0.2s;
}

.ml-btn-partner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px -5px rgba(124, 77, 255, 0.6);
}

.ml-partner-tagline {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.ml-partner-perks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ml-perk-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}


/* 10. MODALS (SITE VISIT & PARTNER) */
.ml-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ml-modal-container {
    background: #ffffff;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.ml-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.ml-modal-title {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.ml-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.ml-modal-close {
    background: #f1f5f9;
    border: none;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
}

.ml-visit-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 10px;
}

.ml-vtype-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.ml-vtype-option input {
    display: none;
}

.ml-vtype-option.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ml-form-group {
    margin-bottom: 14px;
}

.ml-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 6px;
}

.ml-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ml-form-input {
    width: 100%;
    height: 44px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    box-sizing: border-box;
}

textarea.ml-form-input {
    height: auto;
    padding: 8px 12px;
}

.ml-btn-primary {
    height: 48px;
    background: #1d3865;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(29, 56, 101, 0.35);
    transition: all 0.2s;
}

.ml-btn-block {
    width: 100%;
}

.ml-btn-primary:hover {
    background: #14294b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 56, 101, 0.5);
}

/* Autosuggest Dropdown */
.ml-re-autosuggest-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}

.ml-sug-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.ml-sug-item:hover {
    background: #f8fafc;
    color: var(--ml-re-primary, #7c4dff);
}

.ml-sug-tag {
    font-size: 10px;
    font-weight: 800;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #64748b;
    text-transform: uppercase;
}

/* 11. SINGLE LISTING STICKY MOBILE/DESKTOP CONTACT BAR */
.ml-re-sticky-bar {
    position: fixed;
    bottom: 56px; /* Sits above mobile bottom nav */
    left: 0;
    right: 0;
    background: #ffffff;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    padding: 8px 10px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box !important;
    z-index: 999999 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.ml-sticky-bar-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box !important;
}

.ml-sticky-price-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    min-width: 0;
}

.ml-sticky-price-col .ml-s-lbl {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 2px;
}

.ml-sticky-price-col .ml-s-val {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ml-sticky-price-col .ml-s-num {
    font-size: 15px;
    font-weight: 900;
    color: #1d3865 !important;
    white-space: nowrap;
    line-height: 1.1;
}

.ml-sticky-price-col .ml-s-suffix {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    line-height: 1;
    margin-top: 1px;
}

.ml-sticky-actions-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

/* Uniform Theme Button Styling for Call, WhatsApp, and Visit */
.ml-s-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 7px 9px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    background: #1d3865 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(29, 56, 101, 0.35) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.ml-s-btn svg {
    color: #ffffff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
    width: 14px !important;
    height: 14px !important;
}

.ml-s-btn path,
.ml-s-btn line,
.ml-s-btn rect {
    stroke: inherit;
}

.ml-s-btn:hover {
    background: #14294b !important;
    color: #ffffff !important;
    box-shadow: 0 5px 12px rgba(29, 56, 101, 0.5) !important;
    transform: translateY(-1px) !important;
}

.ml-s-btn:active {
    transform: translateY(0) !important;
}

.ml-s-btn-call,
.ml-s-btn-wa,
.ml-s-btn-visit {
    background: #1d3865 !important;
    color: #ffffff !important;
}

.ml-s-btn-call:hover,
.ml-s-btn-wa:hover,
.ml-s-btn-visit:hover {
    background: #14294b !important;
    color: #ffffff !important;
}

/* Extra small devices (<= 360px wide) */
@media (max-width: 360px) {
    .ml-re-sticky-bar {
        padding: 6px 6px;
    }
    .ml-sticky-bar-inner {
        gap: 4px;
    }
    .ml-sticky-actions-col {
        gap: 3px;
    }
    .ml-s-btn {
        padding: 6px 6px !important;
        font-size: 11px !important;
        gap: 2px !important;
    }
    .ml-s-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    .ml-sticky-price-col .ml-s-num {
        font-size: 13.5px;
    }
}

/* Tablet and Desktop screens */
@media (min-width: 768px) {
    .ml-re-sticky-bar {
        padding: 12px 24px;
    }
    .ml-sticky-bar-inner {
        gap: 16px;
    }
    .ml-sticky-price-col .ml-s-val {
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
    }
    .ml-sticky-price-col .ml-s-num {
        font-size: 18px;
    }
    .ml-sticky-price-col .ml-s-suffix {
        font-size: 12px;
    }
    .ml-sticky-actions-col {
        gap: 10px;
    }
    .ml-s-btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
        gap: 6px !important;
        border-radius: 10px !important;
    }
    .ml-s-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (min-width: 992px) {
    .ml-re-sticky-bar {
        bottom: 0;
        padding: 14px 32px;
        box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.14);
    }
    .ml-sticky-bar-inner {
        max-width: 1200px;
        margin: 0 auto;
    }
    .ml-sticky-price-col .ml-s-num {
        font-size: 20px;
    }
}

/* ==========================================================================
   PROPERTY ANALYTICS CARD (Single Listing Details View)
   Matches screenshot layout, colors, typography, icon containers, and badges
   ========================================================================== */
.ml-re-analytics-row {
    margin-top: 10px;
    margin-bottom: 24px;
}

.ml-property-analytics-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 22px 24px;
    margin: 10px 0 20px 0;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.035);
    font-family: inherit;
    box-sizing: border-box;
}

.ml-analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ml-analytics-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ml-analytics-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.ml-analytics-hint {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.ml-analytics-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ml-btn-export-analytics {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1d3865;
    color: #ffffff !important;
    border: none;
    outline: none;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(29, 56, 101, 0.2);
    text-decoration: none !important;
    line-height: 1.3;
}

.ml-btn-export-analytics:hover {
    background: #132644;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 56, 101, 0.3);
    color: #ffffff !important;
}

.ml-btn-export-analytics:active {
    transform: translateY(0);
}

.ml-analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.ml-analytics-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-radius: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-sizing: border-box;
    position: relative;
}

.ml-analytics-clickable {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.ml-analytics-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.ml-analytics-clickable:active {
    transform: translateY(0);
}

.ml-item-action-hint {
    margin-left: auto;
    color: #94a3b8;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
}

.ml-analytics-clickable:hover .ml-item-action-hint {
    opacity: 1;
    transform: translateX(3px);
    color: #1d3865;
}

.ml-item-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ml-item-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ml-item-val {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ml-item-lbl {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.15;
}

/* 1. Viewed Theme (Soft Blue) */
.ml-analytics-viewed {
    background: #f8fbff;
    border: 1.5px solid #dce8ff;
}
.ml-analytics-viewed .ml-item-icon-box {
    background: #e2edff;
    color: #2563eb;
}
.ml-analytics-viewed .ml-item-val {
    color: #1d4ed8;
}

/* 2. Called Theme (Soft Green) */
.ml-analytics-called {
    background: #f3fbf6;
    border: 1.5px solid #bcf2d2;
}
.ml-analytics-called .ml-item-icon-box {
    background: #ddf7e7;
    color: #16a34a;
}
.ml-analytics-called .ml-item-val {
    color: #15803d;
}

/* 3. WhatsApp Theme (Soft Emerald) */
.ml-analytics-whatsapp {
    background: #f3fbf6;
    border: 1.5px solid #bcf2d2;
}
.ml-analytics-whatsapp .ml-item-icon-box {
    background: #ddf7e7;
    color: #22c55e;
}
.ml-analytics-whatsapp .ml-item-val {
    color: #15803d;
}

/* 4. Message Theme (Soft Peach/Orange) */
.ml-analytics-message {
    background: #fffbf7;
    border: 1.5px solid #fedbc2;
}
.ml-analytics-message .ml-item-icon-box {
    background: #ffede0;
    color: #ea580c;
}
.ml-analytics-message .ml-item-val {
    color: #ea580c;
}

/* ==========================================================================
   ANALYTICS DETAILED MODAL & AUDIT LOG TABLE
   ========================================================================== */
.ml-analytics-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: mlFadeIn 0.2s ease-out;
}

@keyframes mlFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ml-analytics-modal {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 1120px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: mlModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    font-family: inherit;
}

@keyframes mlModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ml-analytics-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.ml-modal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ml-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.ml-modal-prop-badge {
    background: #f1f5f9;
    color: #334155;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0 0;
    line-height: 1.35;
}

.ml-analytics-modal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ml-btn-export-excel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #10b981;
    color: #ffffff !important;
    border: none;
    outline: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    text-decoration: none !important;
}

.ml-btn-export-excel:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.ml-modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ml-modal-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Tabs Bar */
.ml-analytics-tabs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none;
}

.ml-analytics-tabs-bar::-webkit-scrollbar {
    display: none;
}

.ml-analytics-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ml-analytics-tab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.ml-analytics-tab-btn.active {
    background: #1d3865;
    color: #ffffff;
    border-color: #1d3865;
    box-shadow: 0 2px 6px rgba(29, 56, 101, 0.2);
}

.ml-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
    line-height: 1.3;
}

.ml-analytics-tab-btn.active .ml-tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.ml-tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-view { background: #2563eb; }
.dot-call { background: #16a34a; }
.dot-wa   { background: #22c55e; }
.dot-msg  { background: #ea580c; }

/* Toolbar & Search */
.ml-analytics-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
    flex-wrap: wrap;
}

.ml-analytics-search-wrap {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.ml-analytics-search-wrap .ml-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.ml-analytics-search-wrap input {
    width: 100%;
    padding: 8px 12px 8px 36px !important;
    font-size: 13px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

.ml-analytics-search-wrap input:focus {
    background: #ffffff !important;
    border-color: #1d3865 !important;
    box-shadow: 0 0 0 3px rgba(29, 56, 101, 0.1) !important;
}

.ml-analytics-summary-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Table Wrap */
.ml-analytics-table-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    background: #ffffff;
    min-height: 280px;
    position: relative;
}

.ml-analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.ml-analytics-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    z-index: 10;
}

.ml-analytics-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    white-space: nowrap;
}

.ml-analytics-table tbody tr {
    transition: background 0.12s ease;
}

.ml-analytics-table tbody tr:hover {
    background: #f8fbff;
}

/* Cell Elements */
.ml-activity-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.ml-badge-view {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.ml-badge-call {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.ml-badge-wa {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.ml-badge-msg {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.ml-user-cell {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ml-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
    flex-shrink: 0;
}

.ml-user-avatar.ml-badge-view { background: #dbeafe; color: #1e40af; }
.ml-user-avatar.ml-badge-call { background: #dcfce7; color: #166534; }
.ml-user-avatar.ml-badge-wa   { background: #dcfce7; color: #166534; }
.ml-user-avatar.ml-badge-msg  { background: #ffedd5; color: #9a3412; }

.ml-user-name-text {
    font-weight: 600;
    color: #0f172a;
}

.ml-log-phone-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #0284c7 !important;
    text-decoration: none !important;
    padding: 3px 8px;
    background: #f0f9ff;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.ml-log-phone-link:hover {
    background: #e0f2fe;
    color: #0369a1 !important;
}

.ml-log-na {
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
}

.ml-ip-badge {
    display: inline-block;
    font-family: monospace, Consolas, sans-serif;
    font-size: 12px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 7px;
    border-radius: 5px;
}

.ml-geo-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 6px;
}

.ml-city-tag {
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 6px;
}

.ml-dev-badge {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 5px;
}

.ml-meta-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ml-log-note-text {
    font-size: 11px;
    color: #64748b;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty & Loading States */
.ml-analytics-empty-state {
    padding: 48px 24px;
    text-align: center;
    color: #64748b;
}

.ml-analytics-empty-state svg {
    margin-bottom: 12px;
    opacity: 0.7;
}

.ml-analytics-empty-state p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.ml-analytics-loading-state {
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.ml-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #1d3865;
    border-radius: 50%;
    animation: mlSpin 0.7s linear infinite;
}

@keyframes mlSpin {
    to { transform: rotate(360deg); }
}

/* Modal Footer */
.ml-analytics-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    gap: 16px;
    flex-wrap: wrap;
}

.ml-footer-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ml-legend-tag {
    font-size: 11px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ml-btn-modal-close {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ml-btn-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ml-analytics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .ml-analytics-modal {
        max-height: 94vh;
    }
}

@media (max-width: 640px) {
    .ml-analytics-modal-backdrop {
        padding: 8px;
    }
    .ml-analytics-modal {
        max-height: 96vh;
        border-radius: 14px;
    }
    .ml-analytics-modal-header {
        padding: 14px 16px;
    }
    .ml-analytics-tabs-bar {
        padding: 10px 16px;
    }
    .ml-analytics-toolbar {
        padding: 10px 16px;
    }
    .ml-btn-export-excel span {
        display: none;
    }
    .ml-btn-export-excel {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .ml-property-analytics-card {
        padding: 16px 14px;
        margin: 10px 0 16px 0;
        border-radius: 14px;
    }
    .ml-analytics-header {
        margin-bottom: 12px;
    }
    .ml-analytics-title {
        font-size: 18px;
    }
    .ml-btn-export-analytics span {
        font-size: 12px;
    }
    .ml-btn-export-analytics {
        padding: 7px 12px;
    }
    .ml-analytics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .ml-analytics-item {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 10px;
    }
    .ml-item-icon-box {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    .ml-item-icon-box svg {
        width: 18px;
        height: 18px;
    }
    .ml-item-val {
        font-size: 17px;
    }
    .ml-item-lbl {
        font-size: 12px;
    }
}

/* ==========================================================================
   DASHBOARD AUDIT MODAL, WIDGETS & TIMEFRAME CONTROLS
   ========================================================================== */

/* Timeframe Pills in Toolbar */
.ml-dash-timeframe-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ml-timeframe-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ml-timeframe-pills {
    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.ml-timeframe-pill {
    border: none;
    outline: none;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.ml-timeframe-pill:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

.ml-timeframe-pill.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dots & Badges for Unique Views, Button Tracks, Published */
.dot-uview {
    background: #8b5cf6;
}
.dot-track {
    background: #0284c7;
}
.dot-publish {
    background: #10b981;
}

.ml-badge-uview {
    background: #ede9fe;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}
.ml-badge-track {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.ml-badge-publish {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Top Stat Card Report Trigger Badge */
.ml-card-report-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ml-card-report-badge:hover {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.stat-card:hover .mlduo-stat-box {
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Dashboard Widget Excel & Audit Button */
.ml-btn-widget-excel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-right: 10px;
}

.ml-btn-widget-excel:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

/* Interactive Stat Rows in Views & Unique Views */
.ml-stat-row-clickable {
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 10px !important;
    margin-bottom: 6px !important;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    position: relative;
}

.ml-stat-row-clickable:hover {
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateX(3px);
}

.ml-stat-row-clickable:hover span:first-of-type {
    color: #2563eb;
}

.ml-stat-view-arrow {
    margin-left: auto;
    font-size: 14px;
    color: #94a3b8;
    opacity: 0;
    transition: all 0.18s ease;
}

.ml-stat-row-clickable:hover .ml-stat-view-arrow {
    opacity: 1;
    color: #2563eb;
    transform: translateX(3px);
}

/* Interactive Button Track Items in Button Clicks Widget */
.ml-track-group-header {
    font-size: 13px;
    color: #475569;
    padding: 6px 0 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ml-track-item-clickable {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 10px !important;
    border-radius: 6px;
    transition: all 0.18s ease;
    margin-bottom: 4px;
}

.ml-track-item-clickable:hover {
    background: #f1f5f9;
    transform: translateX(3px);
}

.ml-track-item-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ml-track-view-arrow {
    color: #94a3b8;
    font-size: 14px;
    opacity: 0;
    transition: all 0.18s ease;
}

.ml-track-item-clickable:hover .ml-track-view-arrow {
    opacity: 1;
    color: #0284c7;
    transform: translateX(3px);
}

/* Listing Links in Table */
.ml-dash-listing-link {
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ml-dash-listing-link:hover {
    color: #1d4ed8 !important;
    text-decoration: underline;
}

.ml-dash-listing-text {
    font-weight: 600;
    color: #334155;
}

/* ==========================================================================
   Frontend Layout Customizer (Admin Only)
   ========================================================================== */
.ml-re-floating-customizer-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ml-re-floating-customizer-btn:hover {
    background: linear-gradient(135deg, #9333ea 0%, #6b21a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(147, 51, 234, 0.4);
}

.ml-re-customizer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.ml-re-customizer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ml-re-customizer-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 440px;
    max-width: 92vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.ml-re-customizer-drawer.active {
    right: 0;
}

.ml-customizer-header {
    padding: 18px 22px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ml-customizer-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.ml-customizer-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.ml-customizer-close-btn:hover {
    color: #ffffff;
}

.ml-customizer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ml-customizer-section {
    margin-bottom: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
}

.ml-customizer-sec-title {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ml-customizer-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
}

.ml-customizer-toggle-row:last-child {
    border-bottom: none;
}

.ml-customizer-field {
    margin-bottom: 12px;
}

.ml-customizer-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.ml-customizer-field input,
.ml-customizer-field textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    box-sizing: border-box;
}

.ml-customizer-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}




