/* ============================================================
   ADD LISTING — 3-Step Wizard
   realestate.eg
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
}

/* --- Animations --- */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(30px); }
}
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-30px); }
}
@keyframes slideInReverse {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes successPop {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes shake {
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}
@keyframes spinnerRing {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes toastSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes thumbIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

/* --- Page Base --- */
.add-listing-page {
    background-color: var(--gray-50);
    min-height: 100vh;
    padding-top: 32px;
    padding-bottom: 100px;
    direction: rtl;
}

/* --- Container --- */
.add-listing-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Page Header --- */
.page-header {
    text-align: center;
    margin-bottom: 24px;
}
.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 6px;
    line-height: 1.4;
}
.page-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin: 0;
}

/* --- Wizard Progress --- */
.wizard-progress {
    position: relative;
    margin-bottom: 8px;
}
.wizard-progress-track {
    height: 4px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}
.wizard-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wizard-steps-indicator {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
}
.wizard-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2.5px solid var(--gray-300);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    padding: 0;
    transition: all 250ms ease;
}
.wizard-dot span {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
    line-height: 1;
}
.wizard-dot.active {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.wizard-dot.active span {
    color: #fff;
}
.wizard-dot.done {
    border-color: var(--success);
    background: var(--success);
}
.wizard-dot.done span {
    color: #fff;
}

/* --- Step Label --- */
.wizard-step-label {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 20px;
    margin-top: 12px;
}

/* --- Completeness Mini Bar --- */
.completeness-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}
.completeness-mini-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
}
.completeness-mini-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 6px;
    transition: width 400ms ease, background 400ms ease;
    width: 0%;
}
.completeness-mini-fill[data-state="low"]      { background: var(--error); }
.completeness-mini-fill[data-state="medium"]   { background: var(--warning); }
.completeness-mini-fill[data-state="high"]     { background: var(--primary); }
.completeness-mini-fill[data-state="complete"] { background: var(--success); }
.completeness-mini-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 32px;
    text-align: left;
}

/* --- Form Card --- */
.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-200);
}

/* --- Wizard Steps --- */
.wizard-step {
    display: none;
    opacity: 0;
    transform: translateX(-30px);
}
.wizard-step.active {
    display: block;
    animation: slideIn 300ms ease forwards;
}
.wizard-step.exit-left {
    display: block;
    animation: slideOutLeft 200ms ease forwards;
}
.wizard-step.exit-right {
    display: block;
    animation: slideOutRight 200ms ease forwards;
}
.wizard-step.slide-in-reverse {
    display: block;
    animation: slideInReverse 300ms ease forwards;
}

/* --- Form Section --- */
.form-section {
    margin-bottom: 24px;
}
.form-section:last-child {
    margin-bottom: 0;
}
.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 12px;
}
.section-title .req {
    color: var(--error);
}

/* --- Floating Label Fields --- */
.float-field {
    position: relative;
}
.float-field input,
.float-field select {
    width: 100%;
    height: 56px;
    padding: 24px 16px 8px;
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-900);
    background: #fff;
    border: 1.5px solid var(--gray-300);
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
}
.float-field select {
    padding-right: 16px;
    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=%239CA3AF stroke-width=2.5%3E%3Cpolyline points=6 9 12 15 18 9/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 14px;
    padding-left: 36px;
}
.float-field input:focus,
.float-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.float-field input.has-error,
.float-field select.has-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.float-field label {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-400);
    pointer-events: none;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0;
    line-height: 1;
}
.float-field label.select-label {
    top: 12px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
}
.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label {
    top: 12px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
}
.float-field select:focus + label,
.float-field select:not([value=""]) + label {
    top: 12px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
}
.float-field .ltr-label {
    right: auto;
    left: auto;
    right: 16px;
}
.float-field .ltr-input {
    text-align: left;
    direction: ltr;
}
.float-field .req {
    color: var(--error);
}

/* Float field with suffix */
.float-field.has-suffix input {
    padding-left: 56px;
}
.float-field .input-suffix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    pointer-events: none;
}
.float-field.compact {
    flex: 1;
}

/* --- Field Hint --- */
.field-hint {
    font-size: 13px;
    color: var(--gray-400);
    margin: 6px 0 0 0;
}

/* --- Field Error --- */
.field-error {
    display: none;
    font-size: 13px;
    color: var(--error);
    margin-top: 6px;
    font-weight: 400;
}
.field-error.visible {
    display: block;
    animation: fadeInUp 200ms ease;
}

/* --- Unit Type Grid --- */
.unit-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.unit-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    border: 1.5px solid var(--gray-300);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 200ms ease;
    user-select: none;
    -webkit-user-select: none;
    min-height: 88px;
}
.unit-type-card:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}
.unit-type-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary);
}
.unit-type-card.dimmed {
    opacity: 0.4;
    pointer-events: none;
}
.utc-icon {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 200ms ease;
    line-height: 0;
}
.unit-type-card.selected .utc-icon {
    color: var(--primary);
}
.utc-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    text-align: center;
    line-height: 1.3;
    transition: color 200ms ease;
}
.unit-type-card.selected .utc-label {
    color: var(--primary);
    font-weight: 600;
}
.utc-check {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    display: none;
    align-items: center;
    justify-content: center;
}
.unit-type-card.selected .utc-check {
    display: flex;
}

/* --- Location Dropdown --- */
.location-search-wrapper {
    position: relative;
}
.loc-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
}
.loc-dropdown.active {
    display: block;
}
.loc-item {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 150ms;
}
.loc-item:hover,
.loc-item.highlighted {
    background: var(--primary-light);
    color: var(--primary);
}
.loc-empty {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--gray-400);
}

/* --- Number Selector (Rooms/Baths) --- */
.number-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.num-pill {
    min-width: 44px;
    height: 40px;
    border-radius: 100px;
    border: 1.5px solid var(--gray-300);
    background: #fff;
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    padding: 0 14px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.num-pill:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}
.num-pill.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* --- Toggle Chips (Status/Finishing) --- */
.toggle-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.toggle-chip {
    padding: 10px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--gray-300);
    background: #fff;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    font-family: inherit;
    white-space: nowrap;
}
.toggle-chip:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}
.toggle-chip.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* --- Two Column Row --- */
.form-row-2col {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.calc-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    padding: 8px 12px;
    min-height: 56px;
    transition: all 200ms ease;
}
.calc-display.has-value {
    background: var(--primary-light);
    border-color: var(--primary);
}
.calc-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 2px;
}
.calc-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}
.calc-display.has-value .calc-value {
    color: var(--primary);
}
.calc-currency {
    font-size: 11px;
    color: var(--gray-400);
}

/* --- Photo Upload --- */
.photo-upload-zone {
    min-height: 240px;
    border: 2px dashed var(--gray-300);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms ease;
    background: #fff;
    position: relative;
}
.photo-upload-zone:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}
.photo-upload-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.01);
}
.upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    min-height: 240px;
}
.upload-icon-svg {
    color: var(--gray-300);
    margin-bottom: 16px;
}
.upload-main-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 6px;
}
.upload-sub-text {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-400);
    margin: 0;
}

/* Photo Previews */
.photo-previews {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.photo-previews:empty {
    margin-top: 0;
}
.photo-preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--gray-100);
    animation: thumbIn 300ms ease forwards;
}
.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-preview-item.uploading {
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-preview-item.uploading::after {
    content: "";
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinnerRing 0.8s linear infinite;
}
.photo-remove-btn {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms;
    padding: 0;
}
.photo-remove-btn:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* --- Project Dropdown --- */
.project-search-wrapper {
    position: relative;
}
.project-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}
.project-dropdown.active {
    display: block;
}
.project-dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 150ms;
}
.project-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.project-dropdown-empty {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--gray-400);
}
.project-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--primary-light);
    border: 1.5px solid var(--primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-top: 8px;
}
.project-clear-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

/* --- Wizard Navigation --- */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    gap: 12px;
}
.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 200ms ease;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}
.btn-prev {
    background: transparent;
    color: var(--gray-500);
    border: 1.5px solid var(--gray-300);
}
.btn-prev:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-700);
}
.btn-next {
    background: var(--primary);
    color: #fff;
    margin-right: auto;
}
.btn-next:hover {
    background: var(--primary-hover);
}
.btn-submit {
    background: var(--primary);
    color: #fff;
    margin-right: auto;
    min-width: 160px;
    justify-content: center;
}
.btn-submit:hover {
    background: var(--primary-hover);
}
.btn-submit .btn-spinner {
    display: none;
    align-items: center;
    gap: 8px;
}
.btn-submit.loading .btn-text {
    display: none;
}
.btn-submit.loading .btn-spinner {
    display: inline-flex;
}
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}
.spinner-ring {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinnerRing 0.8s linear infinite;
}

/* --- Success State --- */
.success-state {
    text-align: center;
    padding: 60px 20px;
}
.success-icon {
    margin-bottom: 24px;
    animation: successPop 500ms ease forwards;
}
.success-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 10px;
}
.success-message {
    font-size: 15px;
    color: var(--gray-500);
    margin: 0 0 24px;
}
.reference-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gray-100);
    border-radius: 10px;
    margin-bottom: 24px;
}
.reference-label {
    font-size: 14px;
    color: var(--gray-500);
}
.reference-code {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    direction: ltr;
}
.success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-add-another {
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 200ms;
}
.btn-add-another:hover {
    background: var(--primary-hover);
    color: #fff;
    text-decoration: none;
}
.btn-go-home {
    padding: 14px 28px;
    background: transparent;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms;
}
.btn-go-home:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
    text-decoration: none;
}

/* --- Honeypot --- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* --- Screen-reader only --- */
.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;
}

/* --- Toast --- */
.add-listing-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--gray-900);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 350ms ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    max-width: 90%;
    text-align: center;
}
.add-listing-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .add-listing-container {
        padding: 0 16px;
    }
    .form-card {
        padding: 20px;
        border-radius: 14px;
    }
    .page-header h1 {
        font-size: 20px;
    }
    .unit-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .unit-type-card {
        padding: 12px 6px;
        min-height: 76px;
    }
    .utc-icon svg {
        width: 28px;
        height: 28px;
    }
    .utc-label {
        font-size: 12px;
    }
    .photo-previews {
        grid-template-columns: repeat(3, 1fr);
    }
    .form-row-2col {
        flex-direction: column;
    }
    .wizard-nav {
        position: sticky;
        bottom: 0;
        background: #fff;
        margin: 24px -20px -20px;
        padding: 16px 20px;
        border-top: 1px solid var(--gray-200);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
        z-index: 50;
    }
    .wizard-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    .success-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .success-actions a {
        text-align: center;
    }
    .toggle-chip {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .unit-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .unit-type-card {
        padding: 10px 4px;
        min-height: 68px;
        gap: 4px;
    }
    .utc-icon svg {
        width: 24px;
        height: 24px;
    }
    .utc-label {
        font-size: 11px;
    }
    .form-card {
        padding: 16px;
    }
}

/* ====== LTR Support (English) ====== */
[dir="ltr"] .add-listing-page { direction: ltr; text-align: left; }
[dir="ltr"] .unit-type-grid { direction: ltr; }
[dir="ltr"] .wizard-steps-indicator { direction: ltr; }
[dir="ltr"] .wizard-progress { direction: ltr; }
[dir="ltr"] .float-field label { right: auto; left: 16px; }
[dir="ltr"] .float-field input:focus ~ label,
[dir="ltr"] .float-field input:not(:placeholder-shown) ~ label,
[dir="ltr"] .float-field select ~ .select-label { right: auto; left: 16px; }
[dir="ltr"] .section-title { text-align: left; }
[dir="ltr"] .field-hint { text-align: left; }
[dir="ltr"] .wizard-nav { direction: ltr; }
[dir="ltr"] .btn-next svg { transform: scaleX(-1); }
[dir="ltr"] .btn-prev svg { transform: scaleX(-1); }
[dir="ltr"] .float-field .input-suffix { left: auto; right: 16px; }
[dir="ltr"] .float-field.has-suffix input { padding-left: 16px; padding-right: 56px; }
[dir="ltr"] .toggle-chips { direction: ltr; }
[dir="ltr"] .number-selector { direction: ltr; }
[dir="ltr"] .calc-display { direction: ltr; text-align: left; }
[dir="ltr"] .form-row-2col { direction: ltr; }
[dir="ltr"] .success-state { direction: ltr; text-align: left; }
[dir="ltr"] .success-actions { direction: ltr; }
[dir="ltr"] .upload-prompt { direction: ltr; }
[dir="ltr"] .completeness-mini { direction: ltr; }
[dir="ltr"] .page-header { text-align: center; }
[dir="ltr"] .wizard-step-label { direction: ltr; }

/* RTL explicit (Arabic) */
[dir="rtl"] .add-listing-page { direction: rtl; text-align: right; }