/**
 * Military Directory - Frontend Styles
 * Utility-first CSS with md- prefix
 */

/* ===== CSS Variables ===== */
:root {
    --md-primary: #1e3a8a;
    --md-primary-dark: #1e40af;
    --md-primary-light: #1e40af;
    --md-secondary: #475569;
    --md-accent: #0f172a;
    --md-success: #065f46;
    --md-warning: #d97706;
    --md-danger: #991b1b;
    --md-slate-50: #f8fafc;
    --md-slate-100: #f1f5f9;
    --md-slate-200: #e2e8f0;
    --md-slate-300: #cbd5e1;
    --md-slate-400: #94a3b8;
    --md-slate-500: #475569;
    --md-slate-600: #475569;
    --md-slate-700: #334155;
    --md-slate-800: #1e293b;
    --md-slate-900: #0f172a;
    --md-white: #ffffff;
    --md-radius: 8px;
    --md-radius-lg: 12px;
    --md-radius-xl: 16px;
    --md-shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --md-shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
    --md-shadow-lg: 0 12px 24px -4px rgba(0,0,0,0.1), 0 4px 8px -2px rgba(0,0,0,0.05);
    --md-shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.12);
    --md-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --md-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Layout Utilities ===== */
.md-max-w-4xl { max-width: 56rem; }
.md-max-w-5xl { max-width: 64rem; }
.md-max-w-6xl { max-width: 72rem; }
.md-mx-auto { margin-left: auto; margin-right: auto; }
.md-my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.md-my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.md-my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.md-mt-2 { margin-top: 0.5rem; }
.md-mt-3 { margin-top: 0.75rem; }
.md-mt-4 { margin-top: 1rem; }
.md-mt-6 { margin-top: 1.5rem; }
.md-mt-8 { margin-top: 2rem; }
.md-mb-1 { margin-bottom: 0.25rem; }
.md-mb-2 { margin-bottom: 0.5rem; }
.md-mb-3 { margin-bottom: 0.75rem; }
.md-mb-4 { margin-bottom: 1rem; }
.md-mb-6 { margin-bottom: 1.5rem; }
.md-mb-8 { margin-bottom: 2rem; }
.md-p-2 { padding: 0.5rem; }
.md-p-3 { padding: 0.75rem; }
.md-p-4 { padding: 1rem; }
.md-p-6 { padding: 1.5rem; }
.md-p-8 { padding: 2rem; }
.md-px-4 { padding-left: 1rem; padding-right: 1rem; }
.md-py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.md-py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* ===== Flexbox & Grid ===== */
.md-flex { display: flex; }
.md-flex-1 { flex: 1; }
.md-flex-wrap { flex-wrap: wrap; }
.md-items-center { align-items: center; }
.md-justify-between { justify-content: space-between; }
.md-justify-center { justify-content: center; }
.md-gap-2 { gap: 0.5rem; }
.md-gap-4 { gap: 1rem; }
.md-gap-6 { gap: 1.5rem; }

.md-grid { display: grid; }
@media (min-width: 640px) {
    .md-sm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .md-md-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md-md-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .md-lg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md-lg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Colors ===== */
.md-bg-white { background-color: var(--md-white); }
.md-bg-slate-50 { background-color: var(--md-slate-50); }
.md-bg-slate-100 { background-color: var(--md-slate-100); }
.md-bg-blue-50 { background-color: #eff6ff; }
.md-bg-blue-600 { background-color: var(--md-primary); }
.md-bg-green-100 { background-color: #dcfce7; }
.md-bg-yellow-100 { background-color: #fef9c3; }
.md-bg-red-100 { background-color: #fee2e2; }

.md-text-white { color: var(--md-white); }
.md-text-slate-500 { color: var(--md-slate-500); }
.md-text-slate-600 { color: var(--md-slate-600); }
.md-text-slate-700 { color: var(--md-slate-700); }
.md-text-slate-800 { color: var(--md-slate-800); }
.md-text-blue-600 { color: var(--md-primary); }
.md-text-blue-800 { color: #1e40af; }
.md-text-green-800 { color: #166534; }
.md-text-yellow-800 { color: #854d0e; }
.md-text-red-800 { color: #991b1b; }

/* ===== Typography ===== */
.md-text-xs { font-size: 0.75rem; line-height: 1rem; }
.md-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.md-text-base { font-size: 1rem; line-height: 1.5rem; }
.md-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.md-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.md-text-2xl { font-size: 1.5rem; line-height: 2rem; }
.md-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.md-font-semibold { font-weight: 600; }
.md-font-bold { font-weight: 700; }
.md-text-center { text-align: center; }
.md-block { display: block; }
.md-w-full { width: 100%; }

/* ===== Border & Shadow ===== */
.md-rounded-lg { border-radius: var(--md-radius); }
.md-rounded-xl { border-radius: var(--md-radius-lg); }
.md-rounded-full { border-radius: 9999px; }
.md-shadow-sm { box-shadow: var(--md-shadow-sm); }
.md-shadow-md { box-shadow: var(--md-shadow-md); }
.md-shadow-lg { box-shadow: var(--md-shadow-lg); }
.md-border-2 { border-width: 2px; border-style: solid; }
.md-border-blue-500 { border-color: var(--md-primary); }

/* ===== Buttons ===== */
.md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--md-radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all var(--md-transition);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.md-btn-primary {
    background-color: var(--md-primary);
    color: var(--md-white);
    box-shadow: 0 1px 3px rgba(29,78,216,0.3);
}
.md-btn-primary:hover {
    background-color: var(--md-primary-dark);
    color: var(--md-white);
    box-shadow: 0 4px 12px rgba(29,78,216,0.35);
    transform: translateY(-1px);
}

.md-btn-secondary {
    background-color: var(--md-slate-800);
    color: var(--md-white);
}
.md-btn-secondary:hover {
    background-color: var(--md-slate-900);
    color: var(--md-white);
    transform: translateY(-1px);
}

.md-btn-outline {
    background-color: var(--md-white);
    border: 1.5px solid var(--md-slate-200);
    color: var(--md-slate-700);
}
.md-btn-outline:hover {
    border-color: var(--md-primary);
    color: var(--md-primary);
    background-color: #f0f5ff;
}

.md-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Form Inputs ===== */
.md-input,
.md-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--md-slate-300);
    border-radius: var(--md-radius);
    font-size: 0.9375rem;
    line-height: 1.5;
    background-color: var(--md-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.md-input:focus,
.md-textarea:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.md-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--md-slate-700);
    font-size: 0.875rem;
}

.md-required {
    color: var(--md-danger);
}

.md-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--md-slate-700);
}

.md-checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

/* ===== Cards ===== */
.md-card {
    background-color: var(--md-white);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-shadow-md);
    overflow: hidden;
    transition: transform var(--md-transition), box-shadow var(--md-transition);
    border: 1px solid var(--md-slate-100);
}

.md-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--md-shadow-lg);
}

.md-card-featured {
    border: 2px solid var(--md-warning);
}

.md-card-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--md-slate-100);
}

.md-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.md-card-body {
    padding: 1rem;
}

.md-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.md-card-title a {
    color: inherit;
    text-decoration: none;
}
.md-card-title a:hover {
    color: var(--md-primary);
}

.md-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--md-slate-500);
}

.md-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--md-slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.md-card-link {
    text-decoration: none;
    font-weight: 500;
}

/* Dashboard card links */
.md-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s;
}

a.md-card-link:hover {
    transform: translateY(-2px);
}

/* ===== Badges ===== */
.md-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 9999px;
}

.md-badge-publish,
.md-badge-published {
    background-color: #dcfce7;
    color: #166534;
}

.md-badge-pending {
    background-color: #fef9c3;
    color: #854d0e;
}

.md-badge-draft {
    background-color: var(--md-slate-100);
    color: var(--md-slate-600);
}

.md-badge-featured {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    background-color: var(--md-warning);
    color: var(--md-white);
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 9999px;
    z-index: 10;
}

.md-badge-featured-inline {
    display: inline-block;
    background-color: var(--md-primary);
    color: var(--md-white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

/* ===== Tabs ===== */
.md-tab {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--md-slate-600);
    background: transparent;
    border: none;
    border-radius: var(--md-radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.md-tab:hover {
    background-color: var(--md-slate-100);
    color: var(--md-slate-800);
}

.md-tab-active,
.md-tab.active {
    background-color: var(--md-primary);
    color: var(--md-white);
}

/* ===== Map ===== */
.md-map {
    height: 400px;
    border-radius: var(--md-radius-lg);
    z-index: 1;
    background-color: var(--md-slate-100);
}

/* Map markers */
.md-marker {
    background: var(--md-white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid var(--md-primary);
}

.md-marker-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--md-primary);
}

.md-marker-featured {
    border-color: var(--md-warning);
    background: #fef3c7;
}

.md-marker-featured .md-marker-inner {
    color: var(--md-warning);
}

/* Map popup */
.md-map-popup {
    min-width: 200px;
}

.md-map-popup img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.md-map-popup strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.md-map-popup .md-popup-meta {
    font-size: 12px;
    color: var(--md-slate-500);
    margin-bottom: 4px;
}

.md-map-popup .md-popup-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--md-primary);
    margin-bottom: 8px;
}

.md-map-popup .md-popup-link {
    display: block;
    color: var(--md-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

/* ===== Modal ===== */
.md-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.md-modal.active {
    opacity: 1;
    visibility: visible;
}

.md-modal-backdrop {
    position: absolute;
    inset: 0;
}

.md-modal-panel {
    position: relative;
    background: var(--md-white);
    padding: 1.5rem;
    border-radius: var(--md-radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--md-shadow-lg);
}

.md-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--md-slate-400);
    line-height: 1;
}

/* ===== Search Panel ===== */
.md-search-panel {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.md-search-panel .md-input {
    background-color: var(--md-white);
}

/* ===== Tables ===== */
.md-table-container {
    overflow-x: auto;
}

.md-table {
    width: 100%;
    border-collapse: collapse;
}

.md-table th,
.md-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--md-slate-200);
}

.md-table th {
    font-weight: 600;
    color: var(--md-slate-600);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--md-slate-50);
}

.md-table tr:hover {
    background-color: var(--md-slate-50);
}

/* ===== Links ===== */
.md-link {
    color: var(--md-primary);
    text-decoration: none;
}

.md-link:hover {
    text-decoration: underline;
}

/* ===== Icons ===== */
.md-icon {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
}

/* ===== Avatar Placeholder ===== */
.md-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    color: var(--md-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

/* ===== Notices ===== */
.md-notice {
    padding: 1rem;
    border-radius: var(--md-radius);
    margin-bottom: 1rem;
}

.md-notice a {
    color: inherit;
    font-weight: 600;
}

/* ===== Pagination ===== */
.md-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.md-pagination a,
.md-pagination span {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--md-slate-300);
    border-radius: var(--md-radius);
    text-decoration: none;
    color: var(--md-slate-700);
    font-size: 0.875rem;
}

.md-pagination a:hover {
    border-color: var(--md-primary);
    color: var(--md-primary);
}

.md-pagination .current {
    background-color: var(--md-primary);
    border-color: var(--md-primary);
    color: var(--md-white);
}

/* ===== State/Base Templates ===== */
.md-state-page,
.md-base-page,
.md-agent-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--md-slate-800);
    line-height: 1.6;
}

.md-page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: var(--md-white);
    padding: 3.5rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.md-page-header h1 {
    margin: 0 0 0.5rem;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.md-page-header p {
    margin: 0;
    color: #cbd5e1;
}

.md-base-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--md-white);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-shadow-md);
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.md-base-card:hover {
    transform: translateY(-2px);
}

.md-branch-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--md-white);
    flex-shrink: 0;
}

.md-base-info {
    flex: 1;
}

.md-base-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
}

.md-base-info .md-city {
    font-size: 0.875rem;
    color: var(--md-slate-500);
    margin-bottom: 0.5rem;
}

.md-base-info .md-summary {
    font-size: 0.875rem;
    color: var(--md-slate-600);
    margin-bottom: 0.75rem;
}

/* ===== Property Card Grid Item ===== */
.md-property-card {
    background: var(--md-white);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-shadow-md);
    overflow: hidden;
    transition: transform var(--md-transition), box-shadow var(--md-transition);
    border: 1px solid var(--md-slate-100);
}

.md-property-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--md-shadow-lg);
}

.md-property-card .md-card-media {
    aspect-ratio: 16/10;
    background: var(--md-slate-100);
}

.md-property-card .md-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--md-primary);
}

.md-property-card .md-specs {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--md-slate-600);
    margin-top: 0.5rem;
}

/* ===== Agent Profile ===== */
.md-agent-header {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--md-white);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-shadow-md);
    margin-bottom: 2rem;
}

.md-agent-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.md-agent-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    color: var(--md-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.md-agent-details h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.md-agent-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.md-agent-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--md-slate-600);
    text-decoration: none;
    font-size: 0.9375rem;
}

.md-agent-contact a:hover {
    color: var(--md-primary);
}

/* ===== Listings Section ===== */
.md-listings-section {
    margin-bottom: 2rem;
}

.md-listings-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--md-slate-200);
}

/* ===== Contact Modal ===== */
#mdir-contact-modal .md-modal-panel {
    max-width: 450px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .md-agent-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .md-agent-contact {
        justify-content: center;
    }
    
    .md-base-card {
        flex-direction: column;
        text-align: center;
    }
    
    .md-branch-icon {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .md-grid {
        grid-template-columns: 1fr !important;
    }
    
    .md-page-header {
        padding: 2rem 1rem;
    }
    
    .md-page-header h1 {
        font-size: 1.5rem;
    }
}

/* ===== Loading Spinner ===== */
.md-spinner {
    animation: md-spin 1s linear infinite;
}

@keyframes md-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ================================================================
   SHORTCODE-SPECIFIC STYLES
   Extracted from inline <style> blocks - v1.1.0 - 2026-02-19
   ================================================================ */

/* ===== ADVERTISE STYLES ===== */

.md-advertise {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.md-advertise-header {
    text-align: center;
    margin-bottom: 3rem;
}
.md-advertise-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.md-advertise-header p {
    font-size: 1.25rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

/* Listing Types Section */
.md-listing-types {
    margin-bottom: 4rem;
}
.md-listing-types h2 {
    text-align: center;
    font-size: 1.75rem;
    color: #1e293b;
    margin: 0 0 0.5rem;
}
.md-listing-types > p {
    text-align: center;
    color: #475569;
    margin: 0 0 2rem;
}
.md-listing-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.md-listing-type-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.md-listing-type-card:hover {
    border-color: #1e3a8a;
    box-shadow: 0 12px 40px rgba(29, 78, 216, 0.12);
    transform: translateY(-4px);
}
.md-listing-type-card:hover .md-lt-title {
    color: #1e3a8a;
}
.md-lt-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}
.md-lt-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.md-lt-desc {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.md-lt-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    width: 100%;
}
.md-lt-features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.md-lt-features li:last-child {
    border-bottom: none;
}
.md-lt-features li::before {
    content: "✓";
    color: #065f46;
    font-weight: 700;
}
.md-lt-btn {
    display: inline-block;
    background: #1e40af;
    color: #fff !important;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: auto;
}
.md-lt-btn:hover {
    background: #1e3a8a;
    color: #fff !important;
}

/* Packages Section */
.md-packages {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    margin-bottom: 3rem;
}
.md-packages h2 {
    text-align: center;
    font-size: 1.75rem;
    color: #fff;
    margin: 0 0 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.md-packages > p {
    text-align: center;
    color: #cbd5e1;
    margin: 0 0 2.5rem;
}
.md-package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.md-package-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    border: 1.5px solid transparent;
    transition: transform var(--md-transition), box-shadow var(--md-transition);
}
.md-package-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-shadow-lg);
}
.md-package-card.md-package-featured {
    border: 2px solid #d97706;
    transform: scale(1.02);
}
.md-package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.05em;
}
.md-package-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}
.md-package-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0.5rem 0;
}
.md-package-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #475569;
}
.md-package-desc {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 1.5rem;
}
.md-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}
.md-package-features li {
    padding: 0.625rem 0;
    font-size: 0.875rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.md-package-features li::before {
    content: "✓";
    color: #065f46;
    font-weight: 700;
    font-size: 1rem;
}
.md-package-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}
.md-package-btn-primary {
    background: #1e3a8a;
    color: #fff !important;
}
.md-package-btn-primary:hover {
    background: #1e40af;
    color: #fff !important;
}
.md-package-btn-secondary {
    background: #1e293b;
    color: #fff !important;
}
.md-package-btn-secondary:hover {
    background: #0f172a;
    color: #fff !important;
}

/* CTA Section */
.md-advertise-cta {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
}
.md-advertise-cta h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 0.5rem;
}
.md-advertise-cta p {
    color: #475569;
    margin: 0 0 1.5rem;
}
.md-advertise-cta a {
    display: inline-block;
    background: #065f46;
    color: #fff !important;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.md-advertise-cta a:hover {
    background: #064e3b;
    color: #fff !important;
}

@media (max-width: 900px) {
    .md-listing-type-grid,
    .md-package-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .md-package-card.md-package-featured {
        transform: none;
        order: -1;
    }
}



/* ===== AGENTS STYLES ===== */

.mda-agents-page { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.mda-header { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #fff; padding: 3rem 1.5rem; text-align: center; border-radius: 16px; margin-bottom: 1.5rem; }
.mda-header h1 { font-size: 2.25rem; font-weight: 700; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.mda-header p { color: #cbd5e1; margin: 0; font-size: 1.125rem; }
.mda-search-bar { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.mda-search-form { display: grid; grid-template-columns: 1fr 1.5fr 2fr auto; gap: 1rem; align-items: end; }
.mda-search-field label { display: block; font-size: 0.6875rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.375rem; }
.mda-search-field select, .mda-search-field input { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 0.9375rem; background: #fff; color: #1e293b; }
.mda-search-field select:focus, .mda-search-field input:focus { outline: none; border-color: #1e3a8a; box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1); }
.mda-search-buttons { display: flex; gap: 0.5rem; }
.mda-btn-search { background: #1e3a8a; color: #fff; border: none; padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.mda-btn-search:hover { background: #1e40af; }
.mda-btn-clear { background: #f1f5f9; color: #475569; border: none; padding: 0.75rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; }
.mda-btn-clear:hover { background: #e2e8f0; }
.mda-btn-add { background: #065f46; color: #fff; padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mda-btn-add:hover { background: #064e3b; color: #fff; }
.mda-results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.mda-results-count { color: #475569; font-size: 0.9375rem; }
.mda-active-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mda-filter-tag { display: inline-flex; align-items: center; gap: 0.375rem; background: #eff6ff; color: #1e3a8a; padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 500; }
.mda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.mda-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1); border: 1px solid #e2e8f0; }
.mda-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -6px rgba(0,0,0,0.12); }
.mda-card-header { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); padding: 1.5rem 1.25rem 1rem; text-align: center; position: relative; }
.mda-agent-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid #fff; box-shadow: 0 4px 12px -2px rgba(0,0,0,0.1); }
.mda-agent-photo-placeholder { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, #1e3a8a, #1e40af); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700; margin: 0 auto 1rem; border: 3px solid #fff; box-shadow: 0 4px 12px -2px rgba(0,0,0,0.1); }
.mda-featured-badge { position: absolute; top: 1rem; right: 1rem; background: linear-gradient(135deg, #d97706, #b45309); color: #fff; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; }
.mda-agent-name { font-size: 1.125rem; font-weight: 700; color: #0f172a; margin: 0 0 0.25rem; }
.mda-agent-name a { color: inherit; text-decoration: none; }
.mda-agent-name a:hover { color: #1e3a8a; }
.mda-agent-brokerage { color: #475569; font-size: 0.875rem; margin: 0; }
.mda-card-body { padding: 1.25rem; }
.mda-agent-services { margin-bottom: 1rem; }
.mda-agent-services h4 { font-size: 0.75rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.5rem; }
.mda-services-list { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.mda-service-tag { background: #eff6ff; color: #1e3a8a; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.mda-agent-bio { color: #475569; font-size: 0.875rem; line-height: 1.6; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mda-agent-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.mda-agent-contact a { display: flex; align-items: center; gap: 0.5rem; color: #475569; text-decoration: none; font-size: 0.875rem; }
.mda-agent-contact a:hover { color: #1e3a8a; }
.mda-card-footer { padding: 1rem 1.25rem; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.mda-view-btn { display: block; text-align: center; background: #1e3a8a; color: #fff; padding: 0.625rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.875rem; transition: background 0.2s; }
.mda-view-btn:hover { background: #1e40af; color: #fff; }
.mda-no-results { text-align: center; padding: 3rem; background: #f8fafc; border-radius: 14px; border: 1px solid #e2e8f0; }
.mda-no-results h3 { color: #0f172a; margin: 0 0 0.5rem; }
.mda-no-results p { color: #475569; margin: 0; }
.mda-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.mda-pagination a, .mda-pagination span { padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 0.875rem; }
.mda-pagination a { background: #fff; color: #475569; border: 1.5px solid #e2e8f0; }
.mda-pagination a:hover { background: #f1f5f9; border-color: #cbd5e1; }
.mda-pagination .current { background: #1e3a8a; color: #fff; border: 1.5px solid #1e3a8a; }
@media (max-width: 900px) { .mda-search-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mda-search-form { grid-template-columns: 1fr; } .mda-grid { grid-template-columns: 1fr; } }



/* ===== AUTH STYLES ===== */

.md-login-page {
    min-height: 100vh;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.md-login-left {
    flex: 1;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2439 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.md-login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 200px 200px;
    opacity: 0.5;
}
.md-login-brand {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}
.md-login-logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
}
.md-login-brand h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #fff;
}
.md-login-brand p {
    font-size: 1.125rem;
    margin: 0 0 2rem;
    line-height: 1.6;
    color: #cbd5e1;
}
.md-login-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.md-login-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: #e2e8f0;
}
.md-login-features li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #065f46;
}
.md-login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: #f8fafc;
}
.md-login-form-container {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}
.md-login-header {
    margin-bottom: 2rem;
}
.md-login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}
.md-login-header p {
    color: #475569;
    margin: 0;
    font-size: 1rem;
}
.md-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.md-form-group {
    margin-bottom: 1.5rem;
}
.md-form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.md-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #fff;
}
.md-form-input:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}
.md-form-input::placeholder {
    color: #94a3b8;
}
.md-form-row-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.md-form-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.md-form-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1e3a5f;
}
.md-form-remember label {
    margin: 0;
    font-weight: 400;
    color: #475569;
    font-size: 0.875rem;
    cursor: pointer;
}
.md-form-forgot {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}
.md-form-forgot:hover {
    text-decoration: underline;
    color: #1e40af;
}
.md-login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}
.md-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}
.md-login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.875rem;
}
.md-login-divider::before,
.md-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.md-login-divider span {
    padding: 0 1rem;
}
.md-login-register-link {
    text-align: center;
}
.md-login-register-link p {
    color: #475569;
    margin: 0;
    font-size: 0.9375rem;
}
.md-login-register-link a {
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
}
.md-login-register-link a:hover {
    text-decoration: underline;
}
.md-login-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.md-login-error::before {
    content: '⚠';
    font-size: 1.25rem;
}
.md-login-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.md-login-success::before {
    content: '✓';
    font-size: 1.25rem;
}
@media (max-width: 900px) {
    .md-login-page {
        flex-direction: column;
    }
    .md-login-left {
        padding: 2rem;
        min-height: auto;
    }
    .md-login-brand h1 {
        font-size: 1.5rem;
    }
    .md-login-brand p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .md-login-features {
        display: none;
    }
    .md-login-right {
        padding: 2rem 1rem;
    }
}

.md-register-page {
    min-height: 100vh;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.md-register-left {
    flex: 1;
    background: linear-gradient(135deg, #0f2439 0%, #1e3a5f 50%, #2d4a6f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.md-register-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,160,23,0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}
.md-register-brand {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}
.md-register-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 40px rgba(212, 160, 23, 0.3);
}
.md-register-brand h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #fff;
}
.md-register-brand p {
    font-size: 1.125rem;
    margin: 0 0 2.5rem;
    line-height: 1.6;
    color: #cbd5e1;
}
.md-register-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.md-register-stat {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    backdrop-filter: blur(10px);
}
.md-register-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #d4a017;
    display: block;
}
.md-register-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-top: 0.25rem;
    display: block;
}
.md-register-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 3rem;
    background: #fff;
    overflow-y: auto;
}
.md-register-form-container {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}
.md-register-header {
    margin-bottom: 1.5rem;
}
.md-register-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}
.md-register-header p {
    color: #475569;
    margin: 0;
    font-size: 1rem;
}
.md-register-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.md-register-error::before {
    content: '⚠';
    font-size: 1.25rem;
}
.md-form-group {
    margin-bottom: 1.25rem;
}
.md-form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.md-form-group label .required {
    color: #991b1b;
}
.md-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #fff;
}
.md-form-input:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}
.md-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.md-account-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.md-account-type-option {
    position: relative;
}
.md-account-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.md-account-type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin: 0;
}
.md-account-type-option input:checked + label {
    border-color: #1e3a5f;
    background: #f0f4f8;
}
.md-account-type-option label:hover {
    border-color: #cbd5e1;
}
.md-account-type-icon {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
}
.md-account-type-title {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #1e293b;
}
.md-register-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2439 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    margin-top: 0.5rem;
}
.md-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}
.md-register-terms {
    font-size: 0.8125rem;
    color: #475569;
    text-align: center;
    margin-top: 1rem;
}
.md-register-terms a {
    color: #1e3a5f;
    text-decoration: none;
}
.md-register-terms a:hover {
    text-decoration: underline;
}
.md-register-login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.md-register-login-link p {
    color: #475569;
    margin: 0;
    font-size: 0.9375rem;
}
.md-register-login-link a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
}
.md-register-login-link a:hover {
    text-decoration: underline;
}
@media (max-width: 900px) {
    .md-register-page {
        flex-direction: column;
    }
    .md-register-left {
        padding: 2rem;
        min-height: auto;
    }
    .md-register-brand h1 {
        font-size: 1.5rem;
    }
    .md-register-brand p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .md-register-stats {
        display: none;
    }
    .md-register-right {
        padding: 2rem 1rem;
    }
    .md-form-row {
        grid-template-columns: 1fr;
    }
    .md-account-type-grid {
        grid-template-columns: 1fr;
    }
}

.md-account {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.md-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.md-account-header h1 {
    margin: 0;
    font-size: 1.75rem;
    color: #1e293b;
}
.md-account-nav {
    display: flex;
    gap: 0.75rem;
}
.md-account-nav a {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}
.md-account-nav a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.md-account-nav a.md-nav-logout {
    color: #991b1b;
    border-color: #991b1b;
}
.md-account-nav a.md-nav-logout:hover {
    background: #991b1b;
    color: #fff;
}
.md-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.md-account-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}
.md-account-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.md-account-card-header h2 {
    margin: 0;
    font-size: 1.125rem;
    color: #1e293b;
}
.md-account-card-body {
    padding: 1.5rem;
}
.md-form-group {
    margin-bottom: 1.25rem;
}
.md-form-group:last-child {
    margin-bottom: 0;
}
.md-form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.md-form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.md-form-group input:focus {
    outline: none;
    border-color: #1e40af;
}
.md-form-group input:disabled {
    background: #f1f5f9;
    color: #475569;
}
.md-account-btn {
    width: 100%;
    padding: 0.875rem;
    background: #1e40af;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}
.md-account-btn:hover {
    background: #1e3a8a;
}
.md-account-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.md-account-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
@media (max-width: 768px) {
    .md-account-grid {
        grid-template-columns: 1fr;
    }
    .md-account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}



/* ===== DASHBOARD STYLES ===== */

/* Dashboard Layout */
.mdir-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.5;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.mdir-dash-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.mdir-dash-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mdir-dash-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.mdir-dash-welcome-text h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.mdir-dash-welcome-text p {
    margin: 0.25rem 0 0;
    color: #475569;
    font-size: 0.9375rem;
}

.mdir-dash-subtitle {
    display: block;
    font-size: 0.875rem;
}

.mdir-dash-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mdir-dash-actions .md-btn-logout {
    color: #991b1b !important;
    border-color: #991b1b !important;
}

.mdir-dash-actions .md-btn-logout:hover {
    background: #991b1b !important;
    color: #fff !important;
}

/* Stats Cards */
.mdir-dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.mdir-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    border-top: 3px solid #94a3b8;
    transition: transform var(--md-transition), box-shadow var(--md-transition);
}

.mdir-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-shadow-md);
}

.mdir-stat-card.mdir-stat-published {
    border-top-color: #22c55e;
}

.mdir-stat-card.mdir-stat-pending {
    border-top-color: #f59e0b;
}

.mdir-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.mdir-stat-label {
    display: block;
    font-size: 0.8125rem;
    color: #475569;
    margin-top: 0.25rem;
}

/* Listings Section */
.mdir-dash-listings {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mdir-dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.mdir-dash-section-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.mdir-dash-filters select {
    min-width: 150px;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
}

/* Table */
.mdir-listings-table {
    width: 100%;
    border-collapse: collapse;
}

.mdir-listings-table th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #475569;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.mdir-listings-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.mdir-listings-table tr:hover {
    background: #f8fafc;
}

.mdir-loading-row {
    text-align: center;
    padding: 3rem !important;
    color: #475569;
}

/* Listing Row */
.mdir-listing-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mdir-listing-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.mdir-listing-thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mdir-listing-info {
    min-width: 0;
}

.mdir-listing-title {
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.mdir-listing-title:hover {
    color: #1e40af;
}

.mdir-listing-date {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Status Badge */
.mdir-status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: capitalize;
}

.mdir-status-publish {
    background: #dcfce7;
    color: #166534;
}

.mdir-status-pending {
    background: #fef9c3;
    color: #854d0e;
}

.mdir-status-draft {
    background: #f1f5f9;
    color: #475569;
}

/* Reviews */
.mdir-reviews-cell {
    white-space: nowrap;
}

.mdir-rating {
    color: #f59e0b;
}

/* Action Buttons */
.mdir-action-btns {
    display: flex;
    gap: 0.5rem;
}

.mdir-action-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.15s;
}

.mdir-action-btn:hover {
    border-color: #1e40af;
    background: #eff6ff;
}

.mdir-action-btn.mdir-btn-delete:hover {
    border-color: #991b1b;
    background: #fef2f2;
}

/* Empty State */
.mdir-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #475569;
}

/* Modal */
.mdir-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdir-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.mdir-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.mdir-modal-sm {
    max-width: 420px;
}

.mdir-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.mdir-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.mdir-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
    padding: 0.25rem;
}

.mdir-modal-close:hover {
    color: #1e293b;
}

.mdir-modal-body {
    padding: 1.5rem;
}

.mdir-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Edit Form */
.mdir-edit-form {
    padding: 1.5rem;
}

.mdir-form-group {
    margin-bottom: 1rem;
}

.mdir-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.mdir-form-help {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Image Upload */
.mdir-image-upload {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mdir-image-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.mdir-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mdir-image-placeholder {
    font-size: 2rem;
    color: #94a3b8;
}

.mdir-image-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Gallery Upload */
.mdir-gallery-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.mdir-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mdir-gallery-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    cursor: grab;
}

.mdir-gallery-item:active {
    cursor: grabbing;
}

.mdir-gallery-item.dragging {
    opacity: 0.5;
}

.mdir-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mdir-gallery-item-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}

.mdir-gallery-item:hover .mdir-gallery-item-remove {
    opacity: 1;
}

.mdir-gallery-item-remove:hover {
    background: #991b1b;
}

.mdir-gallery-add-btn {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.mdir-gallery-add-btn:hover {
    border-color: #1e40af;
    background: #eff6ff;
}

.mdir-gallery-add-icon {
    font-size: 1.5rem;
    color: #475569;
    line-height: 1;
}

.mdir-gallery-add-btn span:last-child {
    font-size: 0.6875rem;
    color: #475569;
    margin-top: 0.25rem;
}

.mdir-gallery-uploading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.mdir-form-help-inline {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.8125rem;
}

.mdir-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Checkbox Grid */
.mdir-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

/* Danger Button */
.mdir-btn-danger {
    background: #991b1b !important;
    color: #fff !important;
    border: none !important;
}

.mdir-btn-danger:hover {
    background: #991b1b !important;
}

/* Delete Modal */
.mdir-delete-listing-name {
    font-weight: 600;
    color: #1e293b;
    background: #f1f5f9;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* Analytics Content */
.mdir-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mdir-analytics-stat {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.mdir-analytics-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.mdir-analytics-stat-label {
    font-size: 0.8125rem;
    color: #475569;
}

/* Toast Notification */
.mdir-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e293b;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 100000;
    animation: mdir-slide-up 0.3s ease;
}

.mdir-toast.mdir-toast-success {
    background: #166534;
}

.mdir-toast.mdir-toast-error {
    background: #991b1b;
}

@keyframes mdir-slide-up {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States for Accessibility */
.mdir-dashboard button:focus,
.mdir-dashboard a:focus,
.mdir-dashboard input:focus,
.mdir-dashboard select:focus,
.mdir-dashboard textarea:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .mdir-dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mdir-dash-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mdir-action-btns {
        flex-wrap: wrap;
    }
    
    .mdir-modal-panel {
        margin: 1rem;
    }
}

@media (max-width: 640px) {
    .mdir-dash-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .mdir-listing-title {
        max-width: 150px;
    }
    
    .mdir-form-row {
        grid-template-columns: 1fr;
    }
}

.mdir-listing-type-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .mdir-listing-type-options.mdir-listing-type-3col {
        grid-template-columns: repeat(3, 1fr);
    }
    .mdir-listing-type-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        text-decoration: none;
        color: inherit;
        transition: all 0.2s;
    }
    .mdir-listing-type-card:hover {
        border-color: #1e40af;
        background: #eff6ff;
        transform: translateY(-2px);
    }
    .mdir-listing-type-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    .mdir-listing-type-title {
        font-weight: 600;
        font-size: 1rem;
        color: #1e293b;
        margin-bottom: 0.25rem;
    }
    .mdir-listing-type-desc {
        font-size: 0.8125rem;
        color: #475569;
    }
    @media (max-width: 640px) {
        .mdir-listing-type-options.mdir-listing-type-3col {
            grid-template-columns: 1fr;
        }
    }
    @media (max-width: 480px) {
        .mdir-listing-type-options {
            grid-template-columns: 1fr;
        }
    }

.mde-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.mde-header {
    margin-bottom: 2rem;
}
.mde-back {
    display: inline-flex;
    align-items: center;
    color: #1e40af;
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}
.mde-back:hover {
    text-decoration: underline;
}
.mde-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}
.mde-subtitle {
    color: #475569;
    margin: 0;
}
.mde-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}
.mde-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}
.mde-section:last-of-type {
    border-bottom: none;
}
.mde-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mde-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}
.mde-grid-2:last-child {
    margin-bottom: 0;
}
.mde-field {
    margin-bottom: 1rem;
}
.mde-field:last-child {
    margin-bottom: 0;
}
.mde-field label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}
.mde-field input,
.mde-field select,
.mde-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background-color: #fff;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.mde-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.25rem;
}
.mde-field select option {
    color: #1a1a1a;
    background: #fff;
}
.mde-field input:focus,
.mde-field select:focus,
.mde-field textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.mde-field textarea {
    resize: vertical;
    min-height: 120px;
}
.mde-help {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
}
.mde-photo-upload {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.mde-current-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}
.mde-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.875rem;
}
.mde-photo-input {
    flex: 1;
}
.mde-photo-input label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.mde-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.mde-checkbox-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.mde-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}
.mde-checkbox:hover {
    background: #f8fafc;
}
.mde-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #1e40af;
}
.mde-checkbox span {
    font-size: 0.9375rem;
    color: #374151;
}
.mde-actions {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    display: flex;
    gap: 1rem;
}
.mde-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.mde-btn-primary {
    background: #1e40af;
    color: #fff;
}
.mde-btn-primary:hover {
    background: #1e3a8a;
}
.mde-btn-secondary {
    background: #e2e8f0;
    color: #475569;
}
.mde-btn-secondary:hover {
    background: #cbd5e1;
}
.md-notice {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.md-notice-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.md-notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.md-notice-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
@media (max-width: 768px) {
    .mde-grid-2 {
        grid-template-columns: 1fr;
    }
    .mde-checkbox-grid {
        grid-template-columns: 1fr;
    }
    .mde-checkbox-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .mde-photo-upload {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .mde-section {
        padding: 1.25rem 1rem;
    }
    .mde-actions {
        padding: 1.25rem 1rem;
    }
}



/* ===== FRONTEND-ADMIN STYLES ===== */

.md-admin { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 1000px; margin: 0 auto; }
.md-admin-header { background: linear-gradient(135deg, #0f172a, #1e3a5f); color: #fff; padding: 2rem; border-radius: 14px 14px 0 0; }
.md-admin-header h1 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 700; }
.md-admin-header p { margin: 0; color: #cbd5e1; }
.md-admin-body { background: #fff; border: 1px solid #e2e8f0; border-top: none; border-radius: 0 0 12px 12px; padding: 2rem; }
.md-admin-section { margin-bottom: 2rem; }
.md-admin-section h2 { font-size: 1.125rem; color: #1e293b; margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e2e8f0; }
.md-admin-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; }
.md-admin-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.md-admin-form-group { margin-bottom: 1rem; }
.md-admin-form-group label { display: block; font-weight: 500; margin-bottom: 0.375rem; font-size: 0.875rem; color: #374151; }
.md-admin-form-group input, .md-admin-form-group select, .md-admin-form-group textarea { width: 100%; padding: 0.625rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; }
.md-admin-form-group input:focus, .md-admin-form-group select:focus { outline: none; border-color: #1e40af; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.md-admin-form-group small { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: #6b7280; }
.md-admin-btn { padding: 0.625rem 1.25rem; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.875rem; transition: all 0.2s; }
.md-admin-btn-primary { background: #1e40af; color: #fff; }
.md-admin-btn-primary:hover { background: #1e3a8a; }
.md-admin-btn-danger { background: #991b1b; color: #fff; }
.md-admin-btn-danger:hover { background: #b91c1c; }
.md-admin-btn-outline { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.md-admin-btn-outline:hover { background: #f9fafb; }
.md-admin-table { width: 100%; border-collapse: collapse; }
.md-admin-table th, .md-admin-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.md-admin-table th { background: #f8fafc; font-weight: 600; font-size: 0.8125rem; color: #475569; text-transform: uppercase; }
.md-admin-table td { font-size: 0.875rem; }
.md-admin-badge { display: inline-block; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.md-admin-badge-blue { background: #dbeafe; color: #1e40af; }
.md-admin-badge-green { background: #dcfce7; color: #166534; }
.md-admin-badge-gray { background: #f3f4f6; color: #374151; }
.md-admin-message { padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; }
.md-admin-message-success { background: #dcfce7; color: #166534; }
.md-admin-message-error { background: #fef2f2; color: #991b1b; }
.md-admin-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 0; }
.md-admin-tab { padding: 0.75rem 1.25rem; background: none; border: none; font-weight: 500; color: #475569; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.md-admin-tab:hover { color: #1e293b; }
.md-admin-tab.active { color: #1e40af; border-bottom-color: #1e40af; }
.md-admin-tab-content { display: none; }
.md-admin-tab-content.active { display: block; }
.md-admin-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; max-height: 200px; overflow-y: auto; padding: 0.5rem; background: #f8fafc; border-radius: 6px; border: 1px solid #e2e8f0; }
.md-admin-icon-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.md-admin-icon-option:hover { background: #e2e8f0; }
.md-admin-icon-option input { margin: 0; }

.md-backend {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}
.md-backend-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 14px 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.md-backend-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.md-backend-header-actions {
    display: flex;
    gap: 0.5rem;
}
.md-backend-header-actions a {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}
.md-backend-header-actions a:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.md-backend-body {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

/* Tabs */
.md-backend-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
}
.md-backend-tab {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.9375rem;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.2s;
}
.md-backend-tab:hover {
    color: #1e293b;
    background: #fff;
}
.md-backend-tab.active {
    color: #1e40af;
    border-bottom-color: #1e40af;
    background: #fff;
}
.md-backend-tab-count {
    background: #e2e8f0;
    color: #475569;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.md-backend-tab.active .md-backend-tab-count {
    background: #dbeafe;
    color: #1e40af;
}

/* Toolbar */
.md-backend-toolbar {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.md-backend-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.md-backend-filter {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.md-backend-filter:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.md-backend-filter.active {
    background: #1e3a5f;
    color: #fff;
}
.md-backend-search {
    display: flex;
    gap: 0.5rem;
}
.md-backend-search input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    width: 200px;
}
.md-backend-search button {
    padding: 0.5rem 1rem;
    background: #1e40af;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Table */
.md-backend-table {
    width: 100%;
    border-collapse: collapse;
}
.md-backend-table th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}
.md-backend-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    vertical-align: middle;
}
.md-backend-table tr:hover td {
    background: #f8fafc;
}
.md-backend-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}
.md-backend-title a {
    color: inherit;
    text-decoration: none;
}
.md-backend-title a:hover {
    color: #1e40af;
}
.md-backend-meta {
    font-size: 0.75rem;
    color: #475569;
}
.md-backend-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    background: #e2e8f0;
}
.md-backend-status {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}
.md-backend-status.publish { background: #dcfce7; color: #166534; }
.md-backend-status.pending { background: #fef3c7; color: #92400e; }
.md-backend-status.draft { background: #f3f4f6; color: #374151; }
.md-backend-featured {
    color: #f59e0b;
    font-size: 1.25rem;
}
.md-backend-actions {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.md-backend-action {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.md-backend-action.view { background: #dbeafe; color: #1e40af; }
.md-backend-action.edit { background: #fef3c7; color: #92400e; }
.md-backend-action.delete { background: #fee2e2; color: #991b1b; }
.md-backend-action.feature { background: #fef3c7; color: #92400e; }
.md-backend-action:hover { opacity: 0.8; }

/* Status dropdown */
.md-backend-status-form {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.md-backend-status-select {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
}
.md-backend-status-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    background: #1e40af;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Pagination */
.md-backend-pagination {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}
.md-backend-pagination-info {
    font-size: 0.875rem;
    color: #475569;
}
.md-backend-pagination-links {
    display: flex;
    gap: 0.25rem;
}
.md-backend-pagination-links a,
.md-backend-pagination-links span {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    color: #475569;
}
.md-backend-pagination-links a:hover {
    background: #f1f5f9;
}
.md-backend-pagination-links .current {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}

/* Message */
.md-backend-message {
    margin: 1rem 1.5rem;
    padding: 1rem;
    border-radius: 8px;
}
.md-backend-message.success { background: #dcfce7; color: #166534; }
.md-backend-message.error { background: #fee2e2; color: #991b1b; }

/* Empty state */
.md-backend-empty {
    padding: 3rem;
    text-align: center;
    color: #475569;
}

/* User row styles */
.md-backend-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
}
.md-backend-user-role {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #475569;
}

@media (max-width: 768px) {
    .md-backend-table { display: block; overflow-x: auto; }
    .md-backend-toolbar { flex-direction: column; align-items: stretch; }
    .md-backend-header { flex-direction: column; text-align: center; }
}

.md-bases-admin {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}
.md-bases-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff !important;
    padding: 1.5rem 2rem;
    border-radius: 14px 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.md-bases-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}
.md-bases-header * {
    color: #fff !important;
}
.md-bases-header-link {
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.md-bases-header-link:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}
.md-bases-body {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 1.5rem;
}
.md-bases-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.md-bases-message.success { background: #dcfce7; color: #166534; }
.md-bases-message.error { background: #fee2e2; color: #991b1b; }

.md-bases-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
}
@media (max-width: 900px) {
    .md-bases-grid { grid-template-columns: 1fr; }
}

/* Add/Edit Form */
.md-bases-form-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
}
.md-bases-form-card h2 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: #1e293b;
}
.md-bases-form-group {
    margin-bottom: 1rem;
}
.md-bases-form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
}
.md-bases-form-group input,
.md-bases-form-group select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
}
.md-bases-form-group input:focus,
.md-bases-form-group select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.md-bases-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.md-bases-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}
.md-bases-btn-primary {
    background: #1e40af;
    color: #fff;
}
.md-bases-btn-primary:hover { background: #1e3a8a; }
.md-bases-btn-secondary {
    background: #e2e8f0;
    color: #475569;
}
.md-bases-btn-secondary:hover { background: #cbd5e1; }
.md-bases-btn-full { width: 100%; }

/* Filter Bar */
.md-bases-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.md-bases-filters select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    min-width: 180px;
}
.md-bases-filters input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    flex: 1;
    min-width: 150px;
}
.md-bases-filters button {
    padding: 0.5rem 1rem;
    background: #1e40af;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Table */
.md-bases-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.md-bases-table th {
    background: #f1f5f9;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}
.md-bases-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.md-bases-table tr:hover td {
    background: #f8fafc;
}
.md-bases-name {
    font-weight: 600;
    color: #1e293b;
}
.md-bases-state {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.md-bases-location {
    color: #475569;
    font-size: 0.8125rem;
}
.md-bases-coords {
    color: #94a3b8;
    font-size: 0.75rem;
    font-family: monospace;
}
.md-bases-actions {
    display: flex;
    gap: 0.375rem;
}
.md-bases-action {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}
.md-bases-action.edit { background: #fef3c7; color: #92400e; }
.md-bases-action.delete { background: #fee2e2; color: #991b1b; }
.md-bases-action.view { background: #dbeafe; color: #1e40af; }
.md-bases-action:hover { opacity: 0.8; }

.md-bases-count {
    color: #475569;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.md-bases-empty {
    text-align: center;
    padding: 2rem;
    color: #475569;
}



/* ===== SEARCH STYLES ===== */

/* Skip Link for Keyboard Navigation */
.mbo-skip-link {
    position: absolute;
    left: 0;
    top: 0;
    background: #1e3a8a;
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 100;
    text-decoration: none;
    font-weight: 600;
    /* Visually hidden until keyboard focus - clip pattern, not offset */
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}
.mbo-skip-link:focus {
    clip-path: none;
    width: auto;
    height: auto;
    overflow: visible;
}

/* Base styles with accessible colors */
.mbo-home { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
}

/* Focus indicators - WCAG 2.4.7 */
.mbo-home a:focus,
.mbo-home button:focus,
.mbo-home select:focus,
.mbo-home input:focus {
    outline: 3px solid #1e40af;
    outline-offset: 2px;
}

/* ── Hero Section ── */
.mbo-hero { 
    background: linear-gradient(160deg, rgba(10,25,47,0.92) 0%, rgba(15,50,80,0.88) 100%), url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1600') center/cover;
    padding: 4rem 1.5rem 4.5rem;
    text-align: center;
    color: #fff;
}
.mbo-hero h1 { 
    font-size: 2.75rem; 
    font-weight: 700; 
    margin: 0 0 2rem; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Tab buttons - ARIA compliant */
.mbo-tabs { 
    display: inline-flex; 
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.mbo-tab { 
    padding: 0.75rem 2rem; 
    font-weight: 600; 
    cursor: pointer; 
    text-decoration: none; 
    display: inline-block; 
    border: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}
/* BUY tab: white bg, dark text — contrast 14.5:1 ✓ */
.mbo-tab-buy { background: #fff; color: #1a1a1a; }
/* RENT tab: amber bg, dark text — contrast 9.8:1 ✓ */
.mbo-tab-rent { background: #d97706; color: #fff; }
/* ADVERTISE tab: dark bg, white text — contrast 12.6:1 ✓ */
.mbo-tab-advertise { background: #1e293b; color: #fff; }
.mbo-tab-buy:hover, .mbo-tab-buy:focus { 
    background: #e2e8f0;
    color: #1a1a1a;
}
.mbo-tab-rent:hover, .mbo-tab-rent:focus { 
    background: #b45309;
    color: #fff;
}
.mbo-tab-advertise:hover, .mbo-tab-advertise:focus { 
    background: #0f172a;
    color: #fff;
}
.mbo-tab[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 #fff;
}

/* Search Box - Accessible Form */
.mbo-search-box { max-width: 520px; margin: 0 auto; }
.mbo-search-input { 
    width: 100%; 
    padding: 0.875rem 1.25rem; 
    font-size: 1rem; 
    border: 2px solid rgba(255,255,255,0.3); 
    border-radius: 8px !important;
    margin-bottom: 1.25rem; 
    box-sizing: border-box;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s;
}
.mbo-search-input:focus {
    border-color: #1e40af;
}
.mbo-search-input::placeholder { color: #6b7280; }
.mbo-search-label { 
    font-size: 0.875rem; 
    margin-bottom: 0.75rem; 
    display: block; 
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mbo-search-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 0.75rem; 
}

/* ── DROPDOWN FIX — full text visible, no clipping ── */
.mbo-search-select { 
    width: 100%;
    padding: 0.75rem 2.25rem 0.75rem 1rem; 
    font-size: 0.9375rem; 
    border: 2px solid rgba(255,255,255,0.3); 
    border-radius: 8px !important;
    background: #fff !important; 
    cursor: pointer;
    color: #1a1a1a !important;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='2' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 12px !important;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.4;
    transition: border-color 0.2s;
}
.mbo-search-select:focus {
    border-color: #1e40af;
    outline: 3px solid rgba(37,99,235,0.3);
}
.mbo-search-select option {
    color: #1a1a1a !important;
    background: #fff !important;
    padding: 0.5rem;
}

/* ── Geolocation Bar ── */
.mbo-geo-bar {
    margin-bottom: 1.25rem;
}
.mbo-geo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(4px);
    width: 100%;
    justify-content: center;
}
.mbo-geo-btn:hover,
.mbo-geo-btn:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-1px);
}
.mbo-geo-btn.loading {
    opacity: 0.7;
    cursor: wait;
}
.mbo-geo-btn.loading svg {
    animation: mbo-geo-spin 1s linear infinite;
}
@keyframes mbo-geo-spin {
    to { transform: rotate(360deg); }
}
.mbo-geo-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(59,130,246,0.5);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    backdrop-filter: blur(4px);
}
.mbo-geo-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.mbo-geo-text {
    flex: 1;
    text-align: left;
    line-height: 1.3;
}
.mbo-geo-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}
.mbo-geo-text small {
    display: block;
    font-size: 0.8125rem;
    color: #cbd5e1;
    margin-top: 2px;
}
.mbo-geo-go {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: #1e3a8a;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(29,78,216,0.3);
}
.mbo-geo-go:hover,
.mbo-geo-go:focus {
    background: #1e40af;
    color: #fff !important;
}
.mbo-geo-change {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.mbo-geo-change:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* Geo on light backgrounds (search bar shortcode) */
.md-search-box .mbo-geo-bar {
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .mbo-geo-result {
        flex-wrap: wrap;
    }
    .mbo-geo-go {
        flex: 1;
        justify-content: center;
    }
}

/* ── Map Section ── */
.mbo-map-section { 
    padding: 4rem 1.5rem; 
    background: #fff; 
    text-align: center; 
}
.mbo-map-section h2 { 
    font-size: 2rem; 
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.mbo-map-section p { 
    color: #475569; /* 5.9:1 contrast on white ✓ */
    margin: 0 0 2.5rem;
    font-size: 1.0625rem;
}

/* Interactive US Map - SVG with proper ARIA */
.mbo-us-map { 
    max-width: 960px; 
    margin: 0 auto 2rem; 
}
.mbo-us-map:not(.mbo-us-map--leaflet) svg { 
    width: 100%; 
    height: auto; 
}
.state-group { cursor: pointer; }
.state-group:hover .state-shape,
.state-group:focus .state-shape { 
    fill: #1e3a8a; 
}
.state-group:hover .state-label,
.state-group:focus .state-label { 
    fill: #fff; 
}
.state-shape { 
    fill: #e2e8f0; 
    stroke: #94a3b8; 
    stroke-width: 1;
    transition: fill 0.2s;
}
.state-label { 
    font-size: 11px; 
    font-weight: 600; 
    fill: #334155; /* 7.5:1 contrast on light fill ✓ */
    pointer-events: none;
}

/* State buttons grid - Fallback/Alternative */
.mbo-states-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}
.mbo-state-btn { 
    padding: 0.5rem 1rem; 
    background: #f1f5f9; 
    color: #1e293b; /* 13.6:1 contrast ✓ */
    text-decoration: none; 
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
}
.mbo-state-btn:hover,
.mbo-state-btn:focus { 
    background: #1e3a8a; 
    color: #fff;
    border-color: #1e3a8a;
}

/* ── Testimonial Section ── */
.mbo-testimonial { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    min-height: 350px;
    overflow: hidden;
}
.mbo-testimonial-image { 
    background: url('https://images.unsplash.com/photo-1555636222-cae831e670b3?w=600') center/cover;
    min-height: 300px;
}
/* Dark navy bg — white text gives 15.4:1 contrast ✓ */
.mbo-testimonial-content { 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff; 
    padding: 3.5rem 2.5rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}
.mbo-testimonial-location { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin: 0 0 1.25rem;
    color: #fff;
    letter-spacing: -0.01em;
}
.mbo-testimonial-quote { 
    font-style: italic; 
    font-size: 1.125rem; 
    margin: 0 0 1.25rem;
    line-height: 1.7;
    color: #cbd5e1; /* 9.1:1 on #0f172a ✓ */
}
.mbo-testimonial-author { 
    font-size: 0.9375rem;
    margin: 0;
    color: #94a3b8; /* 5.6:1 on #0f172a ✓ */
    font-weight: 500;
}
.mbo-pagination-dots { 
    display: flex; 
    gap: 0.5rem; 
    margin-top: 1.75rem;
}
.mbo-dot { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.25);
    transition: all 0.2s;
}
.mbo-dot.active { 
    background: #fff; 
    width: 24px;
    border-radius: 4px;
}

/* ── Advertising Section ── */
.mbo-advertising { 
    padding: 4rem 1.5rem; 
    background: #f8fafc;
}
.mbo-advertising h2 { 
    text-align: center; 
    font-size: 2rem; 
    font-weight: 700;
    margin: 0 0 2.5rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.mbo-ad-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem; 
    max-width: 1000px; 
    margin: 0 auto;
}
.mbo-ad-card { 
    background: #fff; 
    padding: 2.5rem 2rem; 
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mbo-ad-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.mbo-ad-icon { 
    font-size: 2.5rem; 
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #eff6ff;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}
.mbo-ad-title { 
    font-size: 1.125rem; 
    font-weight: 700; 
    margin: 0 0 0.75rem;
    color: #0f172a;
}
.mbo-ad-text { 
    font-size: 0.9375rem; 
    color: #475569; /* 5.9:1 contrast on white ✓ */
    margin: 0 0 1.5rem;
    line-height: 1.6;
}
.mbo-ad-btn { 
    display: inline-block; 
    background: #1e293b; 
    color: #fff; 
    padding: 0.625rem 1.75rem; 
    text-decoration: none; 
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid #1e293b;
    border-radius: 8px;
    transition: all 0.2s;
}
.mbo-ad-btn:hover,
.mbo-ad-btn:focus { 
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Live Region for Announcements */
.mbo-live-region {
    position: absolute;
    left: -9999px;
}

/* Responsive */
@media (max-width: 768px) {
    .mbo-hero { padding: 3rem 1.25rem 3.5rem; }
    .mbo-hero h1 { font-size: 2rem; }
    .mbo-testimonial { grid-template-columns: 1fr; }
    .mbo-ad-grid { grid-template-columns: 1fr; gap: 1rem; }
    .mbo-search-row { grid-template-columns: 1fr; }
    .mbo-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; border-radius: 8px; }
    .mbo-tab-advertise { grid-column: 1 / -1; }
    .mbo-map-section { padding: 3rem 1.25rem; }
    .mbo-advertising { padding: 3rem 1.25rem; }
}

/* Search Bar - Clean & Simple */
.md-search-box {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 2.5rem 2rem 3rem;
    text-align: center;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(15,23,42,0.2);
}
.md-search-box h2 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Step Labels */
.md-step {
    margin-bottom: 1.25rem;
}
.md-step-label {
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.625rem;
    display: block;
}

/* Listing Type: For Sale / For Rent / Both */
.md-type-options {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.md-type-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
}
.md-type-btn:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.md-type-btn.selected {
    border-color: #fff;
    background: #fff;
    color: #1e3a5f;
}
.md-type-btn.selected.sale-btn {
    background: #065f46;
    border-color: #065f46;
    color: #fff;
}
.md-type-btn.selected.rent-btn {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}
.md-type-btn.selected.both-btn {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}

/* Search Mode Tabs */
.md-mode-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 4px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.md-mode-tab {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: rgba(255,255,255,0.7);
}
.md-mode-tab:hover {
    color: #fff;
}
.md-mode-tab.active {
    background: #fff;
    color: #1e3a5f;
}

/* Search Forms */
.md-search-form {
    display: none;
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.md-search-form.active {
    display: block;
}

/* Form Elements */
.md-form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.md-form-group {
    flex: 1;
    text-align: left;
}
.md-form-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}
.md-select {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.md-select:focus {
    outline: none;
    border-color: #1e40af;
}
.md-select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}
.md-input {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #1e293b;
}
.md-input:focus {
    outline: none;
    border-color: #1e40af;
}
.md-input::placeholder {
    color: #94a3b8;
}

/* Location Results Dropdown */
.md-location-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.md-location-results.show {
    display: block;
}
.md-location-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}
.md-location-item:hover {
    background: #f8fafc;
}
.md-location-item:last-child {
    border-bottom: none;
}
.md-location-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9375rem;
}
.md-location-detail {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 2px;
}
.md-location-wrap {
    position: relative;
}

/* Search Button */
.md-search-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #94a3b8;
    border: none;
    border-radius: 8px;
    cursor: not-allowed;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.md-search-btn.ready {
    background: #1e3a8a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(29,78,216,0.3);
}
.md-search-btn.ready:hover {
    background: #1e40af;
    box-shadow: 0 4px 12px rgba(29,78,216,0.35);
}
.md-search-btn svg {
    width: 18px;
    height: 18px;
}

/* Error message */
.md-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: none;
}
.md-error.show {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .md-search-box {
        padding: 1.5rem 1rem 2rem;
    }
    .md-search-box h2 {
        font-size: 1.375rem;
    }
    .md-type-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    .md-type-btn {
        width: 100%;
    }
    .md-form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* MBO Style - Search Results */
.mbo-results {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
}

/* Blue Filter Bar */
.mbo-filter-bar {
    background: #1e3a8a;
    padding: 0;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}
.mbo-filter-search {
    display: flex;
    background: #fff;
    margin: 8px;
}
.mbo-filter-search input {
    width: 180px;
    padding: 8px 12px;
    border: none;
    font-size: 14px;
    outline: none;
}
.mbo-filter-search input::placeholder { color: #999; }
.mbo-filter-search button {
    background: #1e3a8a;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}
.mbo-filters { display: flex; align-items: stretch; flex-wrap: wrap; }
.mbo-filter-dropdown { position: relative; }
.mbo-filter-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}
.mbo-filter-btn:hover { background: rgba(255,255,255,0.1); }
.mbo-filter-btn.active { background: rgba(255,255,255,0.2); }
.mbo-filter-btn::after {
    content: '';
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fff;
}
.mbo-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
}
.mbo-dropdown-menu.show { display: block; }
.mbo-dropdown-menu label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    gap: 8px;
    font-size: 13px;
    color: #333;
}
.mbo-dropdown-menu label:hover { background: #f5f5f5; }
.mbo-clear-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}
.mbo-clear-btn:hover { text-decoration: underline; color: #fff; }
.mbo-add-listing-btn {
    background: #28a745;
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-left: auto;
}
.mbo-add-listing-btn:hover { background: #218838; color: #fff; }

/* Header */
.mbo-results-header { background: #fff; padding: 1rem 1.5rem; border-bottom: 1px solid #e5e7eb; }
.mbo-breadcrumb { font-size: 0.8125rem; color: #6b7280; margin-bottom: 0.5rem; }
.mbo-breadcrumb a { color: #6b7280; text-decoration: none; }
.mbo-breadcrumb a:hover { color: #1e3a8a; }
.mbo-results-subtitle { color: #1e3a8a; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; font-weight: 600; }
.mbo-results-title { font-size: 1.5rem; font-weight: 700; margin: 0.25rem 0 0; color: #1e293b; }

/* Sort Bar */
.mbo-sort-bar {
    display: flex;
    align-items: center;
    padding: 10px 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    gap: 12px;
    flex-wrap: wrap;
}
.mbo-sort-bar label { font-size: 12px; color: #333; font-weight: 600; white-space: nowrap; }
.mbo-sort-bar select { 
    padding: 6px 10px; 
    border: 1px solid #ccc; 
    font-size: 12px; 
    background: #fff; 
    max-width: 160px;
}

/* Main Layout */
.mbo-main { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; max-width: 1200px; margin: 0 auto; padding: 1.5rem; }

/* Results Header */
.mbo-results-info { display: flex; align-items: flex-start; margin-bottom: 1rem; gap: 1rem; }
.mbo-map-btn {
    background: #e8e8e8;
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #333;
}
.mbo-results-count { font-size: 13px; color: #333; line-height: 1.4; }
.mbo-results-count strong { display: block; }

/* Listings Grid */
.mbo-listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.mbo-listing { background: #1e293b; overflow: hidden; text-decoration: none; color: #fff; display: block; position: relative; border-radius: 10px; transition: transform 0.2s, box-shadow 0.2s; }
.mbo-listing:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.mbo-listing-img { aspect-ratio: 4/3; background: #374151; position: relative; }
.mbo-listing-img img { width: 100%; height: 100%; object-fit: cover; }
.mbo-listing-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.mbo-badge { padding: 3px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.mbo-badge-rent { background: #1e3a8a; color: #fff; }
.mbo-badge-sale { background: #1e3a8a; color: #fff; }
.mbo-badge-owner { background: #fff; color: #333; }
.mbo-badge-agent { background: #777; color: #fff; }
.mbo-badge-manager { background: #5bc0de; color: #fff; }
.mbo-listing-star { position: absolute; top: 8px; right: 8px; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 18px; background: none; border: none; }
.mbo-listing-star:hover { color: #ffc107; }
.mbo-listing-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: #fff; }
.mbo-listing-address { font-size: 11px; margin: 0 0 3px; text-transform: uppercase; font-weight: 600; line-height: 1.3; }
.mbo-listing-specs { font-size: 11px; margin: 0 0 3px; color: rgba(255,255,255,0.8); }
.mbo-listing-price { font-size: 14px; font-weight: 700; margin: 0; }
.mbo-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(135deg, #475569, #1e293b); }

/* Pagination */
.mbo-pagination { display: flex; justify-content: center; padding: 20px 0; gap: 8px; flex-wrap: wrap; }
.mbo-pagination a, .mbo-pagination span { 
    padding: 8px 14px; 
    border: 1.5px solid #e2e8f0; 
    font-size: 13px; 
    text-decoration: none; 
    color: #475569;
    background: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.15s;
}
.mbo-pagination a:hover { background: #f1f5f9; border-color: #cbd5e1; }
.mbo-pagination .current { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }

/* Sidebar */
.mbo-sidebar-section { background: #fff; margin-bottom: 1rem; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.mbo-sidebar-title { background: #f8fafc; padding: 0.75rem 1rem; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; color: #374151; border-bottom: 1px solid #e2e8f0; margin: 0; letter-spacing: 0.03em; }
.mbo-sidebar-content { padding: 1rem; }
.mbo-sidebar-link { display: block; padding: 0.5rem 0; color: #1e3a8a; text-decoration: none; font-size: 0.875rem; border-bottom: 1px solid #f1f5f9; }
.mbo-sidebar-link:hover { color: #1e40af; }
.mbo-sidebar-link:last-child { border-bottom: none; }
.mbo-featured-title { font-size: 14px; color: #fff; font-weight: 700; padding: 0.75rem 1rem; margin: 0; }

/* Empty State */
.mbo-empty { text-align: center; padding: 3rem; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; }
.mbo-empty p { color: #475569; margin: 0 0 1rem; }
.mbo-empty-btn { display: inline-block; background: #1e3a8a; color: #fff; padding: 0.75rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background 0.2s; }
.mbo-empty-btn:hover { background: #1e40af; color: #fff; }

@media (max-width: 900px) {
    .mbo-main { grid-template-columns: 1fr; }
    .mbo-listings { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .mbo-listings { grid-template-columns: 1fr; }
    .mbo-filter-bar { flex-direction: column; }
    .mbo-filters { width: 100%; }
    .mbo-add-listing-btn { margin: 8px; }
}



/* ===== SUBMIT STYLES ===== */

.mbo-submit-form { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 900px; }
.mbo-submit-form h2 { color: #1e3a8a; font-size: 1.25rem; border-bottom: 2px solid #1e3a8a; padding-bottom: 0.5rem; margin: 2rem 0 1rem; }
.mbo-submit-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; color: #333; }
.mbo-submit-form .required { color: #991b1b; }
.mbo-submit-form input[type="text"],
.mbo-submit-form input[type="email"],
.mbo-submit-form input[type="tel"],
.mbo-submit-form input[type="number"],
.mbo-submit-form input[type="date"],
.mbo-submit-form select,
.mbo-submit-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.mbo-submit-form input:focus,
.mbo-submit-form select:focus,
.mbo-submit-form textarea:focus {
    outline: 2px solid #1e3a8a;
    border-color: #1e3a8a;
}
.mbo-submit-form .field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.mbo-submit-form .field-group { margin-bottom: 0; }
.mbo-submit-form .help-text { font-size: 0.8125rem; color: #666; margin-top: -0.75rem; margin-bottom: 1rem; }
.mbo-submit-form .checkbox-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.mbo-submit-form .checkbox-group label { display: flex; align-items: center; gap: 0.5rem; font-weight: normal; }
.mbo-submit-form .radio-group { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.mbo-submit-form .radio-group label { display: flex; align-items: center; gap: 0.5rem; font-weight: normal; }
.mbo-submit-form .btn-primary { background: #28a745; color: #fff; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; border-radius: 4px; }
.mbo-submit-form .btn-secondary { background: #6c757d; color: #fff; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; border-radius: 4px; margin-left: 0.5rem; }
.mbo-submit-form .btn-primary:hover { background: #218838; }
.mbo-submit-form .char-count { font-size: 0.8125rem; color: #666; text-align: right; margin-top: -0.75rem; }
.mbo-geocode-btn { background: #1e3a8a; color: #fff; padding: 0.5rem 1rem; border: none; cursor: pointer; border-radius: 4px; font-size: 0.875rem; margin-left: 0.5rem; }
.mbo-geocode-status { font-size: 0.875rem; margin-left: 0.5rem; }

.main-photo-drop-zone:hover,
        .main-photo-drop-zone.dragover,
        .gallery-photo-drop-zone:hover,
        .gallery-photo-drop-zone.dragover {
            border-color: #1e40af;
            background: #eff6ff;
        }
        .gallery-thumb {
            position: relative;
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            background: #f1f5f9;
        }
        .gallery-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .gallery-thumb .remove-thumb {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: rgba(220,38,38,0.9);
            color: #fff;
            border: none;
            cursor: pointer;
            font-size: 12px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .gallery-thumb .remove-thumb:hover {
            background: #991b1b;
        }
        @media (max-width: 768px) {
            .photo-upload-card { grid-template-columns: 1fr; }
        }

.mbo-business-form { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 900px; }
.mbo-business-form h2 { color: #1e3a8a; font-size: 1.25rem; border-bottom: 2px solid #1e3a8a; padding-bottom: 0.5rem; margin: 2rem 0 1rem; }
.mbo-business-form h2:first-of-type { margin-top: 0; }
.mbo-business-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; color: #333; }
.mbo-business-form .required { color: #991b1b; }
.mbo-business-form input[type="text"],
.mbo-business-form input[type="email"],
.mbo-business-form input[type="tel"],
.mbo-business-form input[type="url"],
.mbo-business-form input[type="number"],
.mbo-business-form input[type="time"],
.mbo-business-form input[type="file"],
.mbo-business-form select,
.mbo-business-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.mbo-business-form input:focus,
.mbo-business-form select:focus,
.mbo-business-form textarea:focus {
    outline: 2px solid #1e3a8a;
    border-color: #1e3a8a;
}
.mbo-business-form .field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.mbo-business-form .field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mbo-business-form .field-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mbo-business-form .field-group { margin-bottom: 0; }
.mbo-business-form .help-text { font-size: 0.8125rem; color: #666; margin-top: -0.75rem; margin-bottom: 1rem; }
.mbo-business-form .btn-back { background: #333; color: #fff; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; border-radius: 4px; }
.mbo-business-form .btn-primary { background: #28a745; color: #fff; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; border-radius: 4px; margin-left: 0.5rem; }
.mbo-business-form .btn-secondary { background: #6c757d; color: #fff; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; border-radius: 4px; margin-left: 0.5rem; }
.mbo-business-form .btn-primary:hover { background: #218838; }
.mbo-business-form .phone-inputs { display: flex; gap: 0.5rem; align-items: center; }
.mbo-business-form .phone-inputs input { width: auto; flex: 1; }
.mbo-business-form .phone-inputs span { color: #666; }
.mbo-business-form .checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.mbo-business-form .checkbox-grid label { font-weight: normal; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.mbo-business-form .checkbox-grid input[type="checkbox"] { width: auto; margin: 0; }
.mbo-business-form .hours-row { display: grid; grid-template-columns: 100px 1fr 1fr auto; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.mbo-business-form .hours-row label { margin-bottom: 0; font-weight: normal; }
.mbo-business-form .hours-row input[type="time"] { margin-bottom: 0; padding: 0.5rem; }
.mbo-business-form .hours-row input[type="checkbox"] { width: auto; margin: 0; }
.mbo-business-form .section-note { background: #f8fafc; padding: 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.875rem; color: #475569; border-left: 4px solid #1e3a8a; }
.mbo-business-form .listing-type-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; }
.mbo-business-form .listing-type-tab { flex: 1; padding: 1rem; text-align: center; background: #f1f5f9; border: 2px solid #e2e8f0; cursor: pointer; font-weight: 600; transition: all 0.2s; color: #333; text-decoration: none; }
.mbo-business-form .listing-type-tab:first-child { border-radius: 8px 0 0 8px; }
.mbo-business-form .listing-type-tab:last-child { border-radius: 0 8px 8px 0; }
.mbo-business-form .listing-type-tab.active { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }
.mbo-business-form .listing-type-tab input { display: none; }
@media (max-width: 768px) {
    .mbo-business-form .field-row-3,
    .mbo-business-form .field-row-4 { grid-template-columns: 1fr; }
    .mbo-business-form .hours-row { grid-template-columns: 1fr; }
}

.mbo-agent-form { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 900px; }
.mbo-agent-form h2 { color: #1e3a8a; font-size: 1.25rem; border-bottom: 2px solid #1e40af; padding-bottom: 0.5rem; margin: 2rem 0 1rem; }
.mbo-agent-form h2:first-of-type { margin-top: 0; }
.mbo-agent-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; color: #333; }
.mbo-agent-form .required { color: #991b1b; }
.mbo-agent-form input[type="text"],
.mbo-agent-form input[type="email"],
.mbo-agent-form input[type="tel"],
.mbo-agent-form input[type="url"],
.mbo-agent-form input[type="number"],
.mbo-agent-form input[type="file"],
.mbo-agent-form select,
.mbo-agent-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}
.mbo-agent-form input:focus,
.mbo-agent-form select:focus,
.mbo-agent-form textarea:focus {
    outline: 2px solid #1e40af;
    border-color: #1e40af;
}
.mbo-agent-form .field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.mbo-agent-form .field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mbo-agent-form .field-group { margin-bottom: 0; }
.mbo-agent-form .help-text { font-size: 0.8125rem; color: #666; margin-top: -0.75rem; margin-bottom: 1rem; }
.mbo-agent-form .btn-primary { background: #1e40af; color: #fff; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; border-radius: 4px; }
.mbo-agent-form .btn-primary:hover { background: #1e3a8a; }
.mbo-agent-form .btn-secondary { background: #6c757d; color: #fff; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; border-radius: 4px; margin-left: 0.5rem; }
.mbo-agent-form .checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.mbo-agent-form .checkbox-grid label { font-weight: normal; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.5rem; border-radius: 4px; }
.mbo-agent-form .checkbox-grid label:hover { background: #f1f5f9; }
.mbo-agent-form .checkbox-grid input[type="checkbox"] { width: auto; margin: 0; }
.mbo-agent-form .bases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.5rem; max-height: 400px; overflow-y: auto; border: 1px solid #e2e8f0; padding: 0.75rem; border-radius: 6px; margin-bottom: 1rem; }
.mbo-agent-form .bases-grid label { font-weight: normal; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; }
.mbo-agent-form .state-bases-group { display: contents; }
.mbo-agent-form .state-bases-group[style*="display: none"] { display: none !important; }
.mbo-agent-form .listing-type-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; }
.mbo-agent-form .listing-type-tab { flex: 1; padding: 1rem; text-align: center; background: #f1f5f9; border: 2px solid #e2e8f0; cursor: pointer; font-weight: 600; transition: all 0.2s; text-decoration: none; color: #333; }
.mbo-agent-form .listing-type-tab:first-child { border-radius: 8px 0 0 8px; }
.mbo-agent-form .listing-type-tab:last-child { border-radius: 0 8px 8px 0; }
.mbo-agent-form .listing-type-tab.active { background: #1e40af; color: #fff; border-color: #1e40af; }
.mbo-agent-form .section-note { background: #eff6ff; padding: 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.875rem; color: #1e40af; border-left: 4px solid #1e40af; }
@media (max-width: 768px) {
    .mbo-agent-form .field-row,
    .mbo-agent-form .field-row-3 { grid-template-columns: 1fr; }
}



/* ================================================================
   THEME OVERRIDE FIXES
   These rules use !important to prevent WordPress themes from
   overriding text colors in dark-background sections.
   ================================================================ */

/* All dark headers - force white text on children */
.md-bases-header h1,
.md-bases-header h2,
.md-bases-header p,
.md-bases-header a,
.md-bases-header span,
.md-backend-header h1,
.md-backend-header h2,
.md-backend-header p,
.md-backend-header a,
.md-backend-header span,
.md-admin-header h1,
.md-admin-header h2,
.md-admin-header p,
.mda-header h1,
.mda-header h2,
.mda-header p,
.mbo-hero h1,
.mbo-hero h2,
.mbo-hero p,
.mbo-hero span {
    color: #fff !important;
}

/* (Form select overrides consolidated into UNIVERSAL block at end of file) */

/* (Hero select overrides consolidated into UNIVERSAL block below) */
.mbo-hero .mbo-search-input,
.mbo-home .mbo-search-input {
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #1a1a1a !important;
}
/* Hero selects need white border on dark background */
.mbo-hero select,
.mbo-home select,
.mbo-search-box select {
    border: 2px solid rgba(255,255,255,0.3) !important;
}

/* (Form input overrides consolidated into UNIVERSAL block below) */

/* ================================================================
   UNIVERSAL SELECT/INPUT THEME OVERRIDE
   Covers: edit form, submit property, submit business, agent form,
   search hero, search bar — ALL plugin selects
   ================================================================ */
.mde-field select,
.mde-form select,
.mbo-submit-form select,
.mbo-business-form select,
.mbo-agent-form select,
.mbo-hero select,
.mbo-home select,
.mbo-search-box select,
#mbo-state-select,
#mbo-base-select,
#nearby_base,
#business_state,
#business_base,
#state-filter,
select[name="listing_type"],
select[name="property_type"],
select[name="advertise_as"],
select[name="listing_package"],
select[name="home_type"],
select[name="age_of_home"],
select[name="lease_duration"],
select[name="pet_policy"],
select[name="business_category"],
select[name="num_employees"],
select[name="military_affiliation"] {
    background-color: #fff !important;
    color: #1a1a1a !important;
    font-size: 0.9375rem !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 42px !important;
    max-height: none !important;
    padding: 0.6rem 2.25rem 0.6rem 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-indent: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='2' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 12px !important;
    box-sizing: border-box !important;
}
.mde-field select option,
.mde-form select option,
.mbo-submit-form select option,
.mbo-business-form select option,
.mbo-agent-form select option {
    color: #1a1a1a !important;
    background: #fff !important;
    font-size: 0.9375rem !important;
    padding: 0.5rem !important;
}
/* Inputs and textareas across all plugin forms */
.mde-field input,
.mde-field textarea,
.mde-form input[type="text"],
.mde-form input[type="number"],
.mde-form input[type="email"],
.mde-form input[type="tel"],
.mde-form input[type="url"],
.mde-form textarea,
.mbo-submit-form input[type="text"],
.mbo-submit-form input[type="email"],
.mbo-submit-form input[type="tel"],
.mbo-submit-form input[type="url"],
.mbo-submit-form input[type="number"],
.mbo-submit-form input[type="date"],
.mbo-submit-form textarea,
.mbo-business-form input[type="text"],
.mbo-business-form input[type="email"],
.mbo-business-form input[type="tel"],
.mbo-business-form input[type="url"],
.mbo-business-form input[type="number"],
.mbo-business-form textarea,
.mbo-agent-form input[type="text"],
.mbo-agent-form input[type="email"],
.mbo-agent-form input[type="tel"],
.mbo-agent-form input[type="url"],
.mbo-agent-form input[type="number"],
.mbo-agent-form textarea {
    background-color: #fff !important;
    color: #1a1a1a !important;
    font-size: 0.9375rem !important;
    line-height: 1.4 !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* v1.3.0 — Leaflet Albers map variant (SnapSite Leaflet U.S. Map integration).
   Leaflet manages its own SVG pane sizing — never apply width/height to it. */
.mbo-us-map--leaflet {
    max-width: 1200px;
}


/* ── v1.3.1 — Mobile map layout ─────────────────────────────────── */

/* Duplicate page title: the hero has its own H1, so suppress the theme's
   entry title on pages containing this shortcode. */
body:has(.mbo-home) .entry-title,
body:has(.mbo-home) .page-title,
body:has(.mbo-home) .entry-header .wp-block-post-title {
    display: none;
}

/* State quick-links: mobile replacement for the interactive map */
.mbo-state-quicklinks {
    display: none;
}
@media (max-width: 767px) {
    .mbo-map-desktop {
        display: none;
    }
    .mbo-state-quicklinks {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        max-width: 480px;
        margin: 0 auto;
    }
    .mbo-state-pill {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        min-height: 44px;
        padding: 0.5rem 0.75rem;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        text-decoration: none;
        color: #1e293b;
    }
    .mbo-state-pill:visited {
        background: #ffffff;
        color: #1e293b;
    }
    .mbo-state-pill:hover {
        background: #1e3a8a;
        border-color: #1e3a8a;
        color: #ffffff;
    }
    .mbo-state-pill:active {
        background: #163a9e;
        border-color: #163a9e;
        color: #ffffff;
    }
    .mbo-state-pill:focus-visible {
        background: #1e3a8a;
        border-color: #1e3a8a;
        color: #ffffff;
        outline: 3px solid #1e40af;
        outline-offset: 2px;
    }
    .mbo-state-pill:hover .mbo-state-pill-abbr,
    .mbo-state-pill:active .mbo-state-pill-abbr,
    .mbo-state-pill:focus-visible .mbo-state-pill-abbr {
        background: #ffffff;
        color: #1e3a8a;
    }
    .mbo-state-pill-abbr {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border-radius: 8px;
        background: #1e3a8a;
        color: #ffffff;
        font-size: 0.75rem;
        font-weight: 700;
    }
    .mbo-state-pill-name {
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.2;
    }
}
