/* publicar-servico.css — Wizard de publicação */

.publish-flow {
    width: min(720px, calc(100% - 40px));
    margin: 0 auto;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    padding-top: 24px;
}

.publish-flow__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.publish-flow__back,
.publish-flow__close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted, #9b89b0);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.publish-flow__back:hover,
.publish-flow__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.publish-flow__progress {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.publish-flow__progress-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--accent, #8a05be);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 25%;
}

/* Panels */
.publish-panel {
    display: none;
    flex: 1;
}

.publish-panel--active {
    display: block;
    animation: pubSlideIn 0.3s ease;
}

@keyframes pubSlideIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.publish-panel__title {
    font-family: "Sora", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.publish-panel__subtitle {
    font-size: 0.92rem;
    color: var(--text-muted, #9b89b0);
    margin-bottom: 36px;
    line-height: 1.5;
}

/* Fields */
.publish-field {
    margin-bottom: 24px;
}

.publish-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted, #9b89b0);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.publish-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.publish-input:focus {
    border-color: var(--accent, #8a05be);
    background: rgba(255, 255, 255, 0.05);
}

.publish-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.publish-textarea {
    width: 100%;
    min-height: 130px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.5;
}

.publish-textarea:focus {
    border-color: var(--accent, #8a05be);
}

.publish-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Price row */
.publish-price-row {
    display: flex;
    align-items: center;
}

.publish-price-prefix {
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #9b89b0);
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.publish-input--price {
    border-radius: 0 12px 12px 0;
}

/* Choice buttons */
.publish-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.publish-choice {
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted, #9b89b0);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.publish-choice:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.publish-choice.is-active {
    background: rgba(138, 5, 190, 0.15);
    border-color: var(--accent, #8a05be);
    color: #fff;
}

/* Geo button */
.publish-geo-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px dashed rgba(138, 5, 190, 0.3);
    background: rgba(138, 5, 190, 0.05);
    color: var(--accent, #8a05be);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-family: inherit;
    transition: all 0.2s;
}
.publish-geo-btn:hover {
    background: rgba(138, 5, 190, 0.12);
    border-color: var(--accent, #8a05be);
}
.publish-geo-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Dropzone */
.publish-dropzone {
    display: block;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.publish-dropzone:hover {
    border-color: rgba(138, 5, 190, 0.4);
    background: rgba(138, 5, 190, 0.03);
}

.publish-dropzone__content .material-symbols-rounded {
    font-size: 2.2rem;
    color: var(--text-muted, #9b89b0);
    opacity: 0.6;
}

.publish-dropzone__content p {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 10px;
}

.publish-dropzone__content small {
    font-size: 0.78rem;
    color: var(--text-muted, #9b89b0);
    margin-top: 4px;
    display: block;
}

/* Photos preview */
.publish-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.publish-photos img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

/* Tags */
.publish-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.publish-tags .tag-chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(138, 5, 190, 0.1);
    color: var(--accent, #8a05be);
    font-size: 0.78rem;
    font-weight: 700;
    gap: 6px;
}

.publish-tags .tag-chip button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
}

.publish-tags .tag-chip button .material-symbols-rounded {
    font-size: 0.7rem;
}

/* Footer */
.publish-flow__footer {
    margin-top: auto;
    padding: 24px 0 40px;
}

.publish-main-btn {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    background: var(--accent, #8a05be);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
}
.publish-main-btn:hover { background: #7504a8; transform: translateY(-1px); }
.publish-main-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Toast */
.toast {
    position: fixed;
    right: 20px;
    bottom: 80px;
    background: rgba(7, 3, 13, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    padding: 14px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 200;
    max-width: 360px;
}

@media (max-width: 640px) {
    .publish-flow {
        width: calc(100% - 28px);
        padding-top: 16px;
    }
    .publish-panel__title { font-size: 1.4rem; }
    .publish-panel__subtitle { margin-bottom: 28px; }
    .publish-flow__footer { padding: 20px 0 100px; }
}

/* IBGE Autocomplete dropdown */
.ibge-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(12, 6, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
}
.ibge-dropdown__item {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.12s;
}
.ibge-dropdown__item:hover,
.ibge-dropdown__item--active {
    background: rgba(138, 5, 190, 0.15);
    color: #fff;
}
.ibge-dropdown__item + .ibge-dropdown__item {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
