/* ─── ZMORDA DESIGN TOKENS ─── */
:root {
    --z-blue:        #2455EA;
    --z-blue-dark:   #1a3db5;
    --z-blue-light:  #81C4FF;
    --z-blue-bg:     #EEF3FF;
    --z-blue-muted:  #d4e2fd;
    --z-orange:      #FF671F;
    --z-orange-bg:   #FFF0EB;
    --z-orange-dark: #cc4f12;
    --z-text:        #1a1f2e;
    --z-text-muted:  #6b7280;
    --z-text-light:  #9ca3af;
    --z-border:      #e5e9f2;
    --z-bg:          #f4f6fb;
    --z-white:       #ffffff;
    --z-radius:      10px;
    --z-radius-sm:   6px;
    --z-shadow:      0 1px 3px rgba(36,85,234,0.07);
    --z-shadow-md:   0 4px 16px rgba(36,85,234,0.10);
}

/* ─── LOADING OVERLAY ─── */
.zmorda-loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--z-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.zmorda-loading-gif {
    width: 120px;
    height: auto;
}

/* ─── PAGE SHELL ─── */
.zf-page {
    min-height: 100vh;
    padding: 0 0 60px;
    font-family: 'Inter', sans-serif;
    color: var(--z-text);
    font-size: 14px;
    line-height: 1.6;
}

/* ─── PAGE HEADER BANNER ─── */
.zf-header {
    background: var(--z-blue);
    padding: 22px 24px 20px;
    margin-bottom: 24px;
}
.zf-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.zf-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.zf-header-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
}
.zf-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
    letter-spacing: -0.3px;
}
.zf-header p {
    font-size: 13px;
    color: var(--z-blue-light);
    margin: 0;
}

/* ─── LAYOUT: sidebar + content ─── */
.zf-layout {
    padding: 0 16px;
    display: grid;
    grid-template-columns: 185px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .zf-layout { grid-template-columns: 1fr; gap: 16px; }
    .zf-sidebar { display: none; }
    .zf-header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ─── STICKY SIDEBAR NAV ─── */
.zf-sidebar {
    position: sticky;
    top: 20px;
    background: var(--z-white);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius);
    overflow: hidden;
}
.zf-sidebar-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--z-text-light);
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--z-border);
}
.zf-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    color: var(--z-text-muted);
    border-left: 3px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.zf-nav-item:hover {
    background: var(--z-bg);
    color: var(--z-blue);
    text-decoration: none;
}
.zf-nav-item.active {
    border-left-color: var(--z-orange);
    background: var(--z-orange-bg);
    color: var(--z-orange-dark);
    font-weight: 600;
}
.zf-nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--z-border);
    flex-shrink: 0;
}
.zf-nav-item.active .zf-nav-dot { background: var(--z-orange); }

/* ─── FORM CONTENT COLUMN ─── */
.zf-content { display: flex; flex-direction: column; gap: 20px; }

/* ─── SECTION CARD ─── */
.zf-card {
    background: var(--z-white);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius);
    overflow: hidden;
    box-shadow: var(--z-shadow);
}
.zf-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px 16px;
    border-bottom: 1px solid var(--z-border);
    border-left: 4px solid var(--z-orange);
}
.zf-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--z-blue-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.zf-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--z-blue);
    fill: none;
    stroke-width: 1.8;
}
.zf-card-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--z-text);
    margin: 0 0 1px;
}
.zf-card-header span {
    font-size: 12px;
    color: var(--z-text-muted);
}
.zf-card-body { padding: 20px 22px 22px; }

/* ─── FORM FIELDS & INPUTS ─── */
.zf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px 18px;
}
.zf-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.zf-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 600px) {
    .zf-grid, .zf-grid.cols-2, .zf-grid.cols-3 { grid-template-columns: 1fr; }
}

.zf-field { display: flex; flex-direction: column; gap: 5px; }
.zf-field.full { grid-column: 1 / -1; }

.form-label, .zf-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--z-text);
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
}
.zf-req { color: var(--z-orange); margin-left: 2px; }

/* Shared Input & Filter Styles */
.form-control, .form-select, .zf-input, .ma-search, .ma-filter {
    background: var(--z-white);
    border: 1.5px solid var(--z-border);
    border-radius: var(--z-radius-sm);
    color: var(--z-text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control, .form-select, .zf-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
}
select.form-control, select.form-select, .ma-filter {
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
}
select.form-control, select.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-position: right 12px center;
    padding-right: 32px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--z-blue);
    box-shadow: 0 0 0 3px rgba(36,85,234,0.12);
}
.form-control[readonly] {
    background: var(--z-bg);
    color: var(--z-text-muted);
    cursor: default;
}
.form-control.has-error, .has-error .form-control, .has-error .form-select {
    border-color: #e53e3e;
}
.text-danger { font-size: 11px; color: #e53e3e; margin-top: 3px; }

textarea.form-control {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
    min-height: 90px;
}

/* ─── INLINE DATE (month + year) ─── */
.zf-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ─── PRICE FIELD ─── */
.zf-price-wrap {
    display: flex;
    border: 1.5px solid var(--z-border);
    border-radius: var(--z-radius-sm);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.zf-price-wrap:focus-within {
    border-color: var(--z-blue);
    box-shadow: 0 0 0 3px rgba(36,85,234,0.12);
}
.zf-price-currency {
    padding: 0 12px;
    background: var(--z-bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--z-text-muted);
    display: flex;
    align-items: center;
    border-right: 1.5px solid var(--z-border);
    white-space: nowrap;
}
.zf-price-wrap .form-control {
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.zf-price-wrap .form-control:focus { box-shadow: none; }
.has-error .zf-price-wrap { border-color: #e53e3e; }

/* ─── CHECKBOXES ─── */
.zf-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px 24px;
}
.zf-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--z-border);
    border-radius: var(--z-radius-sm);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
.zf-check-item:has(input:checked) {
    background: var(--z-blue-bg);
    border-color: var(--z-blue-muted);
}
.custom-control-input {
    width: 16px;
    height: 16px;
    accent-color: var(--z-blue);
    flex-shrink: 0;
    cursor: pointer;
}
.custom-control-label {
    font-size: 13px;
    color: var(--z-text);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

/* ─── EQUIPMENT SECTION ─── */
.zf-equip-search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
@media (max-width: 600px) { .zf-equip-search-row { grid-template-columns: 1fr; } }

.zf-equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.zf-equip-category {
    background: var(--z-bg);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-sm);
    padding: 14px;
}
.zf-equip-cat-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--z-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.zf-equip-cat-count {
    background: var(--z-blue-muted);
    color: var(--z-blue);
    font-size: 10px;
    border-radius: 20px;
    padding: 1px 7px;
    font-weight: 600;
}
.scrollable-options {
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--z-border) transparent;
}
.zf-equip-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
    color: var(--z-text);
}
.zf-equip-opt input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--z-blue);
    flex-shrink: 0;
}

/* ─── PHOTOS SECTION ─── */
.zf-photo-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--z-blue-bg);
    border: 1px solid var(--z-blue-muted);
    border-radius: var(--z-radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
}
.zf-photo-tip svg { width: 18px; height: 18px; stroke: var(--z-blue); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 1px; }
.zf-photo-tip p { font-size: 13px; color: #1a3db5; margin: 0; line-height: 1.5; }

/* ── Cover preview — fixed height, never grows ── */
.zf-cover-preview {
    width: 100%;
    height: 330px;
    border-radius: var(--z-radius);
    overflow: hidden;
    background: var(--z-bg);
    border: 2px dashed var(--z-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.2s;
    margin-bottom: 12px;
}
.zf-cover-preview.has-image {
    border-style: solid;
    border-color: var(--z-orange);
}
.zf-cover-preview img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    background: #111;
}
.zf-cover-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--z-text-muted);
}
.zf-cover-preview-empty svg { width: 36px; height: 36px; stroke: var(--z-border); fill: none; stroke-width: 1.4; }
.zf-cover-preview-empty p { font-size: 13px; margin: 0; }

.zf-cover-ribbon {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 28px 14px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.zf-cover-ribbon-badge {
    background: var(--z-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.zf-cover-ribbon-name {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Thumbnail strip — flex, wraps, add-btn is a flex sibling ── */
.zf-thumb-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

/* individual thumb */
.zf-thumb {
    width: 88px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.zf-thumb-img {
    width: 88px;
    height: 66px;
    border: 2px solid var(--z-border);
    position: relative;
    background: var(--z-bg);
    transition: border-color 0.15s, box-shadow 0.15s;
    border-radius: var(--z-radius-sm);
    overflow: hidden;
}
.zf-thumb-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    cursor: pointer;
}
.zf-thumb.is-cover .zf-thumb-img {
    border-color: var(--z-orange);
    box-shadow: 0 0 0 3px rgba(255,103,31,0.2);
}

/* orange star badge on active cover */
.zf-thumb-star {
    display: none;
    position: absolute;
    bottom: 5px; left: 5px;
    background: var(--z-orange);
    color: #fff;
    font-size: 9px;
    width: 17px; height: 17px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    pointer-events: none;
    z-index: 3;
}
.zf-thumb.is-cover .zf-thumb-star { display: flex; }

/* delete × — top right, always visible on hover */
.zf-thumb-del {
    position: absolute;
    top: 4px; right: 4px;
    width: 19px; height: 19px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s, background 0.12s;
    z-index: 4;
}
.zf-thumb-img:hover .zf-thumb-del { opacity: 1; }
.zf-thumb-del:hover { background: rgba(229,62,62,0.92); }

/* "Set as cover" button — top left, appears on hover, hidden when already cover */
.zf-thumb-set-cover {
    position: absolute;
    top: 4px; left: 4px;
    background: rgba(255,255,255,0.88);
    color: var(--z-orange-dark);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.12s;
    z-index: 4;
    white-space: nowrap;
    line-height: 1.4;
}
.zf-thumb-img:hover .zf-thumb-set-cover { opacity: 1; }
.zf-thumb-img:hover .zf-thumb-set-cover:hover { background: #fff; }
.zf-thumb.is-cover .zf-thumb-set-cover { display: none; }

/* label below */
.zf-thumb-label {
    font-size: 10px;
    text-align: center;
    color: var(--z-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.zf-thumb.is-cover .zf-thumb-label { color: var(--z-orange-dark); font-weight: 600; }

/* Add-photo button — flex sibling, same height as thumb */
.zf-add-btn-wrap {
    width: 88px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.zf-add-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 88px; height: 66px;
    border: 2px dashed var(--z-blue-muted);
    border-radius: var(--z-radius-sm);
    background: var(--z-blue-bg);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-decoration: none;
}
.zf-add-btn:hover { border-color: var(--z-blue); background: #dce9fd; }
.zf-add-btn svg { width: 20px; height: 20px; stroke: var(--z-blue); fill: none; stroke-width: 1.8; }
.zf-add-btn span { font-size: 10px; color: var(--z-blue); font-weight: 600; text-align: center; line-height: 1.2; }
.zf-add-btn-label { font-size: 10px; color: transparent; line-height: 1.3; }

/* ── Photo preview modal ── */
.zf-photo-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.zf-photo-modal-overlay.open { display: flex; }
.zf-photo-modal {
    position: relative;
    max-width: 860px;
    width: 100%;
    background: #111;
    border-radius: var(--z-radius);
    overflow: hidden;
}
.zf-photo-modal img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
.zf-photo-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
    cursor: pointer;
    border: none;
    line-height: 1;
    transition: background 0.12s;
    z-index: 2;
}
.zf-photo-modal-close:hover { background: rgba(255,103,31,0.8); }
.zf-photo-modal-bar {
    padding: 10px 16px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.zf-photo-modal-name { font-size: 12px; color: rgba(255,255,255,0.6); }
.zf-photo-modal-set {
    background: var(--z-orange);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
}
.zf-photo-modal-set:hover { background: var(--z-orange-dark); }
.zf-photo-modal-set.already-cover {
    background: transparent;
    border: 1.5px solid var(--z-orange);
    color: var(--z-orange);
    cursor: default;
}

/* ─── SPECS LINK ─── */
.zf-specs-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--z-blue);
    font-weight: 500;
    text-decoration: none;
    padding: 7px 14px;
    border: 1.5px solid var(--z-blue-muted);
    border-radius: var(--z-radius-sm);
    background: var(--z-blue-bg);
    margin-top: 4px;
    transition: background 0.12s;
}
.zf-specs-link:hover { background: #d4e2fd; text-decoration: none; }
.zf-specs-link svg { width: 15px; height: 15px; stroke: var(--z-blue); fill: none; stroke-width: 2; }

/* ─── CONTACT INFO BOX ─── */
.zf-contact-note {
    background: var(--z-orange-bg);
    border: 1px solid rgba(255,103,31,0.2);
    border-radius: var(--z-radius-sm);
    padding: 12px 16px;
    font-size: 12px;
    color: var(--z-orange-dark);
    margin-bottom: 16px;
    line-height: 1.55;
}

/* ─── SECTION DIVIDER ─── */
.zf-divider {
    height: 1px;
    background: var(--z-border);
    margin: 20px 0;
}

/* ─── PUBLISH BAR ─── */
.zf-publish-bar {
    background: var(--z-white);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius);
    padding: 20px 22px;
    box-shadow: var(--z-shadow);
}
.zf-publish-meta {
    font-size: 11px;
    color: var(--z-text-light);
    margin-bottom: 14px;
    line-height: 1.6;
}
.zf-publish-meta strong { color: var(--z-text-muted); }

.zf-error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--z-radius-sm);
    padding: 12px 16px;
    color: #b91c1c;
    font-size: 13px;
    margin-bottom: 14px;
}

.btn-thm, .btn.btn-thm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: var(--z-orange);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-thm:hover, .btn.btn-thm:hover { background: var(--z-orange-dark); }
.btn-thm:active, .btn.btn-thm:active { transform: scale(0.98); }
.btn-thm svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }

/* ─── SPINNER ─── */
.fa-spinner { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── UTILITY ─── */
.mb20 { margin-bottom: 20px; }
.mb25 { margin-bottom: 10px; }
.mb30, .mb30-lg { margin-bottom: 0; }
.df { display: flex; }
.new_property_form, .add_new_property, .ui_kit_select_search, .ui_kit_checkbox, .ui_kit_message_box { margin: 0; }
.zmorda-padding-top { padding-top: 0; }
.zmorda-small-text { font-size: 11px; color: var(--z-text-light); }

/* hide bootstrap structural leftovers we don't need */
.breadcrumb_content { display: none; }
.row { margin: 0; }
[class*="col-"] { padding: 0; }

/* ═══════════════════════════════════════════════════════
   MES ANNONCES — ma-* scoped classes
═══════════════════════════════════════════════════════ */
.ma-page { padding: 0 0 80px; font-size: 14px; color: var(--z-text); }

/* ── Page header ── */
.ma-header {
    background: var(--z-white);
    border-bottom: 1px solid var(--z-border);
    padding: 24px 20px 20px;
    position: relative; overflow: hidden;
}
.ma-header::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg, var(--z-blue) 0%, var(--z-orange) 100%); }

.ma-header-badge {
    display:inline-flex; align-items:center; gap:6px;
    background:var(--z-blue-bg); border:1px solid var(--z-blue-muted);
    color:var(--z-blue); font-size:11px; font-weight:700;
    letter-spacing:0.06em; text-transform:uppercase;
    padding:4px 12px; border-radius:20px; margin-bottom:12px;
}
.ma-header-badge svg { width:12px; height:12px; stroke:var(--z-blue); fill:none; stroke-width:2.5; }

.ma-header-inner { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.ma-header-text h1 { font-size:24px; font-weight:800; color:var(--z-text); margin:0 0 5px; letter-spacing:-0.6px; line-height:1.15; }
.ma-header-text p  { font-size:13px; color:var(--z-text-muted); margin:0; max-width:380px; line-height:1.5; }

/* Stat chips */
.ma-header-stats { display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.ma-stat-chip {
    background:var(--z-bg); border:1px solid var(--z-border);
    border-radius:var(--z-radius-sm); padding:9px 16px;
    display:flex; align-items:center; gap:10px; min-width:110px;
}
.ma-stat-chip-icon {
    width:30px; height:30px; border-radius:7px; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
}
.ma-stat-chip-icon svg { width:15px; height:15px; fill:none; stroke-width:2; }
.ma-stat-chip-icon.total  { background:var(--z-blue-bg); }
.ma-stat-chip-icon.total svg  { stroke:var(--z-blue); }
.ma-stat-chip-icon.active { background:#dcfce7; }
.ma-stat-chip-icon.active svg { stroke:#16a34a; }
.ma-stat-chip-icon.sold   { background:#ede9fe; }
.ma-stat-chip-icon.sold svg   { stroke:#7c3aed; }
.ma-stat-chip-text { display:flex; flex-direction:column; gap:1px; }
.ma-stat-num { font-size:18px; font-weight:800; color:var(--z-text); line-height:1; }
.ma-stat-label { font-size:10px; font-weight:600; color:var(--z-text-muted); text-transform:uppercase; letter-spacing:0.05em; }

/* CTA button */
.ma-btn-sell {
    display:inline-flex; align-items:center; gap:8px;
    padding:12px 22px; border-radius:9px;
    background:var(--z-orange); color:#fff;
    font-size:13px; font-weight:700; border:none; cursor:pointer;
    transition:background 0.15s, transform 0.15s, box-shadow 0.15s;
    white-space:nowrap; text-decoration:none;
    box-shadow:0 4px 14px rgba(255,103,31,0.30);
}
.ma-btn-sell:hover { background:var(--z-orange-dark); color:#fff; transform:translateY(-1px); box-shadow:0 6px 18px rgba(255,103,31,0.4); }
.ma-btn-sell:active { transform:translateY(0) scale(0.98); }
.ma-btn-sell svg { width:16px; height:16px; stroke:#fff; fill:none; stroke-width:2.5; }

/* ── Toolbar ── */
.ma-toolbar {
    display:flex; gap:10px; flex-wrap:wrap; align-items:center;
    padding:14px 20px;
    background:var(--z-white);
    border-bottom:1px solid var(--z-border);
    position:sticky; top:0; z-index:50;
}
.ma-search-wrap { flex:1; min-width:200px; position:relative; }
.ma-search-wrap svg { position:absolute; left:11px; top:50%; transform:translateY(-50%); width:15px; height:15px; stroke:var(--z-text-muted); fill:none; stroke-width:2; pointer-events:none; }
.ma-search { width:100%; height:38px; padding:0 12px 0 34px; font-size:13px; }
.ma-search:focus { border-color:var(--z-blue); background:var(--z-white); }
.ma-filter { height:38px; padding:0 12px; font-size:13px; cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-position:right 10px center; padding-right:30px; min-width:140px; }
.ma-filter:focus { border-color:var(--z-blue); }
.ma-count { font-size:12px; color:var(--z-text-muted); white-space:nowrap; }

/* ── Layout ── */
.ma-body { padding:16px 20px; }

/* ── Empty state ── */
.ma-empty {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    padding:60px 20px; text-align:center; gap:16px;
}
.ma-empty-icon { width:64px; height:64px; border-radius:16px; background:var(--z-bg); display:flex; align-items:center; justify-content:center; border:1.5px solid var(--z-border); }
.ma-empty-icon svg { width:32px; height:32px; stroke:var(--z-border); fill:none; stroke-width:1.5; }
.ma-empty h3 { font-size:16px; font-weight:600; color:var(--z-text); margin:0; }
.ma-empty p  { font-size:13px; color:var(--z-text-muted); margin:0; max-width:280px; line-height:1.55; }

/* ── Car card ── */
.ma-grid { display:flex; flex-direction:column; gap:10px; }

.ma-card {
    background:var(--z-white);
    border:1px solid var(--z-border);
    border-radius:var(--z-radius);
    overflow:hidden;
    box-shadow:var(--z-shadow);
    display:grid;
    grid-template-columns: 120px 1fr auto;
    transition:box-shadow 0.15s;
}
.ma-card:hover { box-shadow:var(--z-shadow-md); }

/* status accent on left edge */
.ma-card.status-active   { border-left:4px solid #16a34a; }
.ma-card.status-inactive { border-left:4px solid #94a3b8; }
.ma-card.status-sold     { border-left:4px solid #7c3aed; }
.ma-card.status-deleted  { border-left:4px solid #e53e3e; }
.ma-card.status-draft    { border-left:4px solid #d97706; }

/* Thumbnail */
.ma-thumb {
    width:120px; min-height:90px;
    background:var(--z-bg); overflow:hidden; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
}
.ma-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.ma-thumb-empty svg { width:28px; height:28px; stroke:var(--z-border); fill:none; stroke-width:1.5; }

/* Info */
.ma-info { padding:14px 16px; min-width:0; display:flex; flex-direction:column; gap:4px; }
.ma-info-title { font-size:14px; font-weight:600; color:var(--z-text); margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-info-price { font-size:16px; font-weight:700; color:var(--z-orange); }
.ma-info-sub   { font-size:12px; color:var(--z-text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-info-badges { display:flex; gap:5px; flex-wrap:wrap; margin-top:2px; }

/* Status badges */
.ma-pill { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }
.ma-pill svg { width:9px; height:9px; fill:currentColor; stroke:none; }
.ma-pill-active   { background:#dcfce7; color:#15803d; }
.ma-pill-inactive { background:#f1f5f9; color:#475569; }
.ma-pill-sold     { background:#ede9fe; color:#6d28d9; }
.ma-pill-deleted  { background:#fef2f2; color:#b91c1c; }
.ma-pill-draft    { background:#fef9c3; color:#92400e; }
.ma-pill-views    { background:var(--z-blue-bg); color:var(--z-blue); }
.ma-pill-since    { background:var(--z-bg); color:var(--z-text-muted); border:1px solid var(--z-border); }

/* Actions column */
.ma-actions {
    display:flex; flex-direction:column;
    border-left:1px solid var(--z-border);
    min-width:48px;
}
.ma-action-btn {
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:3px; padding:8px 12px;
    font-size:10px; font-weight:600; color:var(--z-text-muted);
    background:none; border:none; cursor:pointer;
    transition:background 0.12s, color 0.12s;
    text-decoration:none; white-space:nowrap;
    border-bottom:1px solid var(--z-border);
}
.ma-action-btn:last-child { border-bottom:none; }
.ma-action-btn svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; }
.ma-action-btn:hover { background:var(--z-bg); color:var(--z-blue); }
.ma-action-btn.btn-view:hover, .ma-action-btn.btn-edit:hover  { background:var(--z-blue-bg); color:var(--z-blue); }
.ma-action-btn.btn-sold:hover  { background:#ede9fe; color:#6d28d9; }
.ma-action-btn.btn-del:hover   { background:#fef2f2; color:#e53e3e; }

/* ── Modals ── */
.ma-modal-icon {
    width:52px; height:52px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 14px;
}
.ma-modal-icon svg { width:26px; height:26px; fill:none; stroke-width:2; }
.ma-modal-icon.danger  { background:#fef2f2; }
.ma-modal-icon.danger svg { stroke:#e53e3e; }
.ma-modal-icon.success { background:#f0fdf4; }
.ma-modal-icon.success svg { stroke:#16a34a; }
.ma-modal-body-inner { padding:24px 20px 8px; text-align:center; }
.ma-modal-body-inner h4 { font-size:16px; font-weight:700; color:var(--z-text); margin:0 0 8px; }
.ma-modal-body-inner p  { font-size:13px; color:var(--z-text-muted); margin:0; line-height:1.55; }
.ma-modal-footer { padding:16px 20px; display:flex; gap:10px; justify-content:center; border-top:1px solid var(--z-border); }

.ma-btn-primary { display:inline-flex; align-items:center; gap:7px; padding:10px 22px; border-radius:8px; background:var(--z-orange); color:#fff; font-size:13px; font-weight:600; border:none; cursor:pointer; transition:background 0.15s; }
.ma-btn-primary:hover { background:var(--z-orange-dark); }
.ma-btn-primary svg { width:14px; height:14px; stroke:#fff; fill:none; stroke-width:2.5; }
.ma-btn-primary.danger  { background:#e53e3e; }
.ma-btn-primary.danger:hover  { background:#b91c1c; }
.ma-btn-primary.success { background:#16a34a; }
.ma-btn-primary.success:hover { background:#15803d; }

.ma-btn-secondary { display:inline-flex; align-items:center; gap:7px; padding:10px 20px; border-radius:8px; background:var(--z-bg); color:var(--z-text); font-size:13px; font-weight:500; border:1.5px solid var(--z-border); cursor:pointer; transition:background 0.12s; }
.ma-btn-secondary:hover { background:var(--z-blue-bg); border-color:var(--z-blue-muted); color:var(--z-blue); }

/* ── Responsive Mobile States ── */
@media (max-width: 600px) {
    .ma-header-inner { align-items:stretch; }
    .ma-btn-sell { width:100%; justify-content:center; }
    .ma-header-stats { width:100%; }
    .ma-stat-chip { flex:1; }

    .ma-header { padding:18px 14px 16px; }
    .ma-header-text h1 { font-size:19px; }
    .ma-header-text p { font-size:12px; }
    .ma-stat-num { font-size:16px; }
    .ma-toolbar { padding:10px 12px; gap:8px; }
    .ma-body { padding:10px 12px; }

    .ma-card { grid-template-columns: 90px 1fr auto; }
    .ma-thumb { width:90px; min-height:70px; }
    .ma-info { padding:10px 10px; gap:3px; }
    .ma-info-title { font-size:13px; }
    .ma-info-price { font-size:14px; }
    .ma-info-sub   { font-size:11px; }
    .ma-actions { min-width:42px; }
    .ma-action-btn { padding:6px 8px; font-size:9px; gap:2px; }
    .ma-action-btn svg { width:14px; height:14px; }
}