/* ── Quick Listing Wizard ─────────────────────────────────────── */

.hgl-wrapper {
    max-width: 780px;
    margin: 40px auto;
    padding: 0 16px 60px;
    font-family: inherit;
}

/* Step indicator */
.hgl-steps {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
}
.hgl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
.hgl-step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #aaa;
    background: #fff;
    transition: all .2s;
}
.hgl-step__label {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
}
.hgl-step.active .hgl-step__num {
    border-color: #2c2c2c;
    color: #2c2c2c;
}
.hgl-step.active .hgl-step__label { color: #2c2c2c; }
.hgl-step.done .hgl-step__num {
    background: #2c2c2c;
    border-color: #2c2c2c;
    color: #fff;
}
.hgl-step-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 8px 22px;
}

/* Panels */
.hgl-panel { display: none; }
.hgl-panel.active { display: block; }
.hgl-panel__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
}

/* Category cards */
.hgl-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.hgl-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    text-align: center;
}
.hgl-cat-card:hover {
    border-color: #2c2c2c;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.hgl-cat-card__icon { font-size: 32px; line-height: 1; }
.hgl-cat-card__name { font-size: 13px; font-weight: 600; color: #333; }

.hgl-subcats__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #555;
}
.hgl-back-btn {
    background: none;
    border: none;
    color: #2c2c2c;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 12px;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Form elements */
.hgl-form-group { margin-bottom: 20px; }
.hgl-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.hgl-label .req { color: #c0392b; }
.hgl-hint { font-weight: 400; color: #888; font-size: 12px; }

.hgl-input, .hgl-select, .hgl-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #222;
    background: #fff;
    transition: border-color .15s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.hgl-input:focus, .hgl-select:focus, .hgl-textarea:focus {
    outline: none;
    border-color: #2c2c2c;
}
.hgl-input--error { border-color: #c0392b !important; }
.hgl-textarea { resize: vertical; min-height: 100px; }

.hgl-row { display: flex; gap: 16px; }
.hgl-col-2 { flex: 1; }

/* Photo upload */
.hgl-photo-zone {
    border: 2px dashed #ddd;
    border-radius: 12px;
    min-height: 140px;
    padding: 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    background: #fafafa;
}
.hgl-photo-zone:hover, .hgl-photo-zone--drag {
    border-color: #2c2c2c;
    background: #f5f5f5;
}
.hgl-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #aaa;
    font-size: 14px;
    width: 100%;
    padding: 20px 0;
    pointer-events: none;
}
.hgl-photo-placeholder svg { color: #ccc; }
.hgl-photo-previews { display: flex; flex-wrap: wrap; gap: 10px; }
.hgl-photo-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #ddd;
}
.hgl-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hgl-photo-thumb__del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

/* Navigation buttons */
.hgl-nav {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}
.hgl-btn {
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .15s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.hgl-btn--primary {
    background: #2c2c2c;
    color: #fff;
    border-color: #2c2c2c;
}
.hgl-btn--primary:hover { background: #111; border-color: #111; }
.hgl-btn--primary:disabled { opacity: .6; cursor: not-allowed; }
.hgl-btn--outline {
    background: #fff;
    color: #2c2c2c;
    border-color: #2c2c2c;
}
.hgl-btn--outline:hover { background: #f5f5f5; }
.hgl-btn--publish {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
    flex: 1;
}
.hgl-btn--publish:hover { background: #a93226; border-color: #a93226; }
.hgl-btn--publish:disabled { opacity: .6; cursor: not-allowed; }
.hgl-btn--full { width: 100%; }

/* Error messages */
.hgl-form-errors {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
    color: #c0392b;
    font-size: 14px;
}
.hgl-global-errors {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #c0392b;
}
.hgl-global-errors ul { margin: 0; padding-left: 18px; }

/* Auth modal */
.hgl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hgl-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.hgl-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.hgl-modal__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a1a;
}
.hgl-modal__sub {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* Tabs */
.hgl-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    gap: 0;
}
.hgl-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.hgl-tab.active { color: #2c2c2c; border-color: #2c2c2c; }
.hgl-tab-panel { display: none; }
.hgl-tab-panel.active { display: block; }

/* Success page */
.hgl-success {
    max-width: 560px;
    margin: 60px auto;
    padding: 0 16px;
    text-align: center;
}
.hgl-success__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.hgl-success__title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}
.hgl-success__text {
    font-size: 16px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.6;
}
.hgl-success__ref {
    font-size: 14px;
    color: #888;
    margin-bottom: 28px;
}
.hgl-success__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Photo thumb upload states */
.hgl-photo-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border-radius: 4px;
}
.hgl-photo-thumb[data-upload-state="uploading"]::after {
    display: flex;
    background: rgba(255,255,255,0.7);
    content: '⏳';
}
.hgl-photo-thumb[data-upload-state="done"]::after {
    display: flex;
    background: rgba(34,197,94,0.75);
    content: '✓';
    color: #fff;
}
.hgl-photo-thumb[data-upload-state="error"]::after {
    display: flex;
    background: rgba(239,68,68,0.75);
    content: '✕';
    color: #fff;
}

/* Mobile */
@media (max-width: 520px) {
    .hgl-cats { grid-template-columns: repeat(2, 1fr); }
    .hgl-row { flex-direction: column; }
    .hgl-nav { flex-direction: column-reverse; }
    .hgl-btn { width: 100%; }
    .hgl-success__actions { flex-direction: column; }
}
