:root {
    /* Identidade Fábrica 7 */
    --blue-900: #173455;
    --blue-800: #1d4068;
    --blue-700: #244b78;
    --blue-100: #eaf0f7;

    --orange-600: #d98332;
    --orange-500: #e39445;
    --orange-100: #fff1e3;

    /* Interface */
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #17202b;
    --text-soft: #697382;
    --border: #dfe5eb;

    --primary: var(--blue-800);
    --primary-hover: var(--blue-900);
    --primary-soft: var(--blue-100);

    --accent: var(--orange-600);
    --accent-hover: #c97428;
    --accent-soft: var(--orange-100);

    --danger: #b93636;

    --shadow:
        0 12px 40px rgba(23, 52, 85, 0.10);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
    radial-gradient(
        circle at top right,
        rgba(227, 148, 69, 0.10),
        transparent 28%
    ),
    radial-gradient(
        circle at top left,
        rgba(36, 75, 120, 0.08),
        transparent 32%
    ),
    var(--bg);

    color: var(--text);
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* -------------------------
   LAYOUT
------------------------- */

.page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 18px 40px;
}

.page-wide {
    max-width: 1050px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 60px;
    margin-bottom: 26px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            var(--blue-700),
            var(--blue-900)
        );

    color: var(--orange-500);

    font-weight: 900;
    font-size: 18px;

    letter-spacing: -0.04em;

    box-shadow:
        0 6px 18px rgba(23, 52, 85, 0.18);

    border:
        1px solid rgba(255, 255, 255, 0.10);
}

.brand-text strong {
    display: block;
    font-size: 15px;
    letter-spacing: 0.08em;
}

.brand-text span {
    display: block;
    margin-top: 2px;

    color: var(--text-soft);
    font-size: 12px;
}

.topbar-link {
    color: var(--text-soft);
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.topbar-link:hover {
    color: var(--text);
}

/* -------------------------
   CARDS
------------------------- */

.card {
    background: var(--surface);

    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}

.card-padding {
    padding: 30px;
}

/* -------------------------
   TYPOGRAPHY
------------------------- */

.eyebrow {
    margin: 0 0 7px;

    color: var(--accent);
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;

    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.08;

    letter-spacing: -0.035em;
}

.page-description {
    max-width: 520px;

    margin: 12px 0 0;

    color: var(--text-soft);
    line-height: 1.55;
}

/* -------------------------
   BUTTONS
------------------------- */

.btn {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 13px;

    padding: 0 18px;

    text-decoration: none;

    cursor: pointer;

    font-weight: 750;
    font-size: 15px;

    transition:
        transform .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.btn:active {
    transform: scale(.985);
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--blue-700),
            var(--blue-900)
        );

    color: white;

    box-shadow:
        0 9px 22px rgba(23, 52, 85, 0.20);

    border-bottom:
        3px solid var(--orange-500);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--surface-soft);
    color: var(--text);

    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #eeeeea;
}

.btn-danger {
    background: white;
    color: var(--danger);

    border: 1px solid rgba(185, 54, 54, 0.28);
}

/* -------------------------
   FORMS
------------------------- */

.field {
    margin-top: 19px;
}

.field label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;

    padding: 0 14px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 12px;

    outline: none;

    color: var(--text);
    font-size: 16px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.field textarea {
    min-height: 110px;
    padding: 13px 14px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(38, 56, 46, 0.10);
}

/* -------------------------
   ALERTS
------------------------- */

.alert {
    padding: 13px 14px;
    margin-bottom: 18px;

    border-radius: 12px;

    font-size: 14px;
    line-height: 1.4;
}

.alert-error {
    background: #fff0f0;
    color: #9b2929;

    border: 1px solid #f4d0d0;
}

.alert-success {
    background: #edf7ef;
    color: #276637;

    border: 1px solid #d3ead8;
}

/* -------------------------
   LOGIN
------------------------- */

.auth-page {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 22px;
}

.auth-shell {
    width: 100%;
    max-width: 430px;
}

.auth-brand {
    display: flex;
    justify-content: center;

    margin-bottom: 20px;
}

.auth-card {
    padding: 34px;
}

.auth-card h1 {
    margin: 0;

    text-align: center;

    font-size: 28px;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    margin: 7px 0 27px;

    text-align: center;

    color: var(--text-soft);
    font-size: 14px;
}

.auth-submit {
    width: 100%;
    margin-top: 7px;
}

/* -------------------------
   HOME
------------------------- */

.hero-card {
    padding: 32px;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 22px;

    padding: 8px 11px;

    background: var(--blue-100);
    color: var(--blue-800);

    border:
        1px solid rgba(36, 75, 120, 0.10);

    font-size: 13px;
    font-weight: 700;
}

.user-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--orange-500);
}

.home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin-top: 28px;
}

.action-card {
    min-height: 145px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 20px;

    border-radius: var(--radius-md);

    text-decoration: none;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

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

.action-primary {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--blue-700),
            var(--blue-900)
        );

    color: white;

    box-shadow:
        0 10px 26px rgba(23, 52, 85, .20);
}

.action-primary::after {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 6px;
    height: 100%;

    background: var(--orange-500);
}

.action-secondary {
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.action-icon {
    font-size: 26px;
    line-height: 1;
}

.action-primary .action-icon {
    color: var(--orange-500);
    font-weight: 900;
}

.action-title {
    margin-top: 20px;

    font-size: 17px;
    font-weight: 800;
}

.action-description {
    margin-top: 4px;

    font-size: 12px;
    line-height: 1.4;

    opacity: .72;
}

/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 600px) {

    .page {
        padding:
            16px
            12px
            28px;
    }

    .card-padding,
    .hero-card {
        padding: 22px;
    }

    .auth-page {
        align-items: center;
        padding: 15px;
    }

    .auth-card {
        padding: 27px 21px;
    }

    .home-actions {
        grid-template-columns: 1fr;
    }

    .action-card {
        min-height: 120px;
    }

    .topbar {
        margin-bottom: 18px;
    }
}

/* =====================================================
   NOVA PESQUISA
===================================================== */

.research-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 25px;
}

.research-header .user-pill {
    flex-shrink: 0;
    margin-top: 0;
}

.research-alert {
    margin-bottom: 18px;
}

.form-section {
    padding: 26px;
    margin-bottom: 15px;
}

.form-section-highlight {
    border-top:
        4px solid var(--blue-700);
}

.photo-section {
    border-top:
        4px solid var(--orange-500);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 21px;
}

.section-number {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--blue-100);
    color: var(--blue-800);

    font-size: 14px;
    font-weight: 900;
}

.section-number-orange {
    background: var(--orange-100);
    color: var(--orange-600);
}

.section-heading h2 {
    margin: 0;

    font-size: 17px;
    letter-spacing: -0.015em;
}

.section-heading p {
    margin: 3px 0 0;

    color: var(--text-soft);

    font-size: 12px;
}

.form-section .field:first-of-type {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}


/* FOTO */

.camera-input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.camera-box {
    min-height: 135px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 22px;

    border:
        2px dashed
        rgba(227, 148, 69, .45);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #fffaf5,
            var(--orange-100)
        );

    cursor: pointer;

    text-align: center;

    transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.camera-box:hover {
    transform: translateY(-1px);

    border-color:
        var(--orange-500);
}

.camera-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 9px;

    border-radius: 12px;

    background: var(--orange-500);
    color: white;

    font-size: 24px;
    font-weight: 500;
}

.camera-box strong {
    font-size: 15px;
}

.camera-box span {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 12px;
}


/* PREÇO */

.price-input {
    display: grid;
    grid-template-columns: auto 1fr;

    align-items: center;

    min-height: 58px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: white;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.price-input:focus-within {
    border-color: var(--blue-700);

    box-shadow:
        0 0 0 3px
        rgba(36, 75, 120, .10);
}

.price-input span {
    padding-left: 15px;

    color: var(--orange-600);

    font-size: 18px;
    font-weight: 800;
}

.price-input input {
    min-height: 56px;

    border: 0 !important;
    box-shadow: none !important;

    font-size: 21px;
    font-weight: 750;
}


/* AÇÕES */

.form-actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;

    margin-top: 22px;
}

.btn-save-next {
    border-bottom:
        3px solid var(--orange-500);
}


/* MOBILE */

@media (max-width: 600px) {

    .research-header {
        display: block;
    }

    .research-header .user-pill {
        margin-top: 17px;
    }

    .form-section {
        padding: 20px 17px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        grid-template-columns: 1fr;
    }

    .btn-save-next {
        min-height: 58px;
    }

}


/* =====================================================
   LISTA DE PESQUISAS
===================================================== */

.list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 25px;
}

.new-research-button {
    min-width: 190px;
}


/* FILTROS */

.filters-card {
    padding: 18px;
    margin-bottom: 18px;
}

.search-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;

    min-height: 54px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: white;

    overflow: hidden;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.search-field:focus-within {
    border-color: var(--blue-700);

    box-shadow:
        0 0 0 3px rgba(36, 75, 120, .10);
}

.search-icon {
    padding-left: 16px;

    color: var(--orange-600);

    font-size: 21px;
}

.search-field input {
    width: 100%;
    height: 52px;

    padding: 0 15px 0 11px;

    border: 0;
    outline: none;

    background: transparent;

    font-size: 16px;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;

    align-items: end;

    margin-top: 12px;
}

.filter-field {
    margin-top: 0;
}

.filter-actions {
    display: grid;
    grid-template-columns: auto auto;
    gap: 7px;
}

.filter-actions .btn {
    min-height: 52px;
}


/* RESULTADOS */

.results-bar {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 4px 2px 10px;

    color: var(--text-soft);

    font-size: 14px;
}

.results-bar strong {
    color: var(--blue-800);
    font-size: 16px;
}

.filtered-badge {
    padding: 6px 10px;

    border-radius: 999px;

    background: var(--orange-100);
    color: var(--orange-600);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .05em;
}


/* GRID */

.research-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 17px;
}


/* CARD */

.research-card {
    min-width: 0;

    overflow: hidden;

    background: var(--surface);

    border:
        1px solid rgba(23, 52, 85, .07);

    border-radius: 20px;

    box-shadow:
        0 8px 28px rgba(23, 52, 85, .07);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.research-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 36px rgba(23, 52, 85, .12);
}


/* FOTO */

.research-image-area {
    position: relative;

    height: 250px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--blue-100),
            #f5f7fa
        );
}

.research-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .25s ease;
}

.research-card:hover .research-image {
    transform: scale(1.025);
}

.research-no-image {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 9px;

    color: var(--text-soft);

    font-size: 13px;
}

.no-image-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: var(--blue-800);
    color: var(--orange-500);

    font-weight: 900;
}

.image-badge {
    position: absolute;

    left: 13px;
    bottom: 13px;

    max-width: calc(100% - 26px);

    padding: 7px 10px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(23, 52, 85, .91);

    color: white;

    font-size: 11px;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;

    backdrop-filter: blur(8px);
}


/* CONTEÚDO */

.research-content {
    padding: 19px;
}

.research-category {
    margin-bottom: 5px;

    color: var(--orange-600);

    font-size: 11px;
    font-weight: 850;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.research-title {
    margin: 0;

    color: var(--text);

    font-size: 20px;
    line-height: 1.2;

    letter-spacing: -.025em;
}

.research-supplier {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 8px;

    color: var(--text-soft);

    font-size: 13px;
}

.supplier-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 50%;

    background: var(--blue-700);
}


/* PREÇO */

.research-price {
    margin-top: 20px;

    padding: 13px 14px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--blue-100),
            #f5f8fb
        );
}

.research-price span {
    display: block;

    margin-bottom: 2px;

    color: var(--text-soft);

    font-size: 10px;
    font-weight: 750;

    letter-spacing: .07em;
    text-transform: uppercase;
}

.research-price strong {
    color: var(--blue-900);

    font-size: 24px;
    letter-spacing: -.025em;
}

.research-price-empty strong {
    color: var(--text-soft);

    font-size: 15px;
}


/* TAGS */

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 13px;
}

.tag {
    max-width: 100%;

    padding: 6px 9px;

    border-radius: 999px;

    background: var(--surface-soft);

    border: 1px solid var(--border);

    color: var(--text-soft);

    font-size: 11px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-orange {
    background: var(--orange-100);
    border-color:
        rgba(217, 131, 50, .17);

    color: var(--orange-600);

    font-weight: 750;
}


/* OBS */

.research-note {
    display: -webkit-box;

    margin: 13px 0 0;

    overflow: hidden;

    color: var(--text-soft);

    font-size: 12px;
    line-height: 1.5;

    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* RODAPÉ */

.research-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 14px;

    margin-top: 18px;
    padding-top: 14px;

    border-top: 1px solid var(--border);
}

.research-meta {
    display: flex;
    flex-direction: column;

    gap: 2px;

    color: #9299a2;

    font-size: 10px;
}

.open-research {
    flex-shrink: 0;

    color: var(--blue-800);

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;
}

.open-research:hover {
    color: var(--orange-600);
}


/* VAZIO */

.empty-state {
    grid-column: 1 / -1;

    padding: 50px 25px;

    text-align: center;
}

.empty-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 16px;

    background: var(--blue-100);
    color: var(--blue-800);

    font-size: 24px;
}

.empty-state h2 {
    margin: 0;

    font-size: 20px;
}

.empty-state p {
    margin: 8px auto 20px;

    max-width: 350px;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.5;
}

.empty-state .btn {
    max-width: 220px;
    margin: auto;
}


/* MOBILE */

@media (max-width: 760px) {

    .list-header {
        display: block;
    }

    .new-research-button {
        width: 100%;
        margin-top: 20px;
    }

    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .research-image-area {
        height: 280px;
    }

}


@media (max-width: 480px) {

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        grid-column: auto;
        grid-template-columns: 1fr 1fr;
    }

    .research-image-area {
        height: 235px;
    }

    .research-content {
        padding: 16px;
    }

    .research-title {
        font-size: 18px;
    }

    .research-price strong {
        font-size: 22px;
    }

}


/* =====================================================
   DETALHE / EDIÇÃO
===================================================== */

.detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 22px;
}

.detail-price {
    flex-shrink: 0;

    min-width: 180px;

    padding: 13px 16px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--blue-800),
            var(--blue-900)
        );

    border-bottom:
        3px solid var(--orange-500);

    color: white;

    box-shadow:
        0 9px 25px rgba(23, 52, 85, .17);
}

.detail-price span {
    display: block;

    margin-bottom: 2px;

    color: rgba(255, 255, 255, .70);

    font-size: 10px;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: .07em;
}

.detail-price strong {
    display: block;

    font-size: 24px;
    letter-spacing: -.025em;
}


/* METADADOS */

.detail-meta-bar {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1px;

    overflow: hidden;

    margin-bottom: 18px;

    background: var(--border);

    border: 1px solid var(--border);
    border-radius: 14px;
}

.detail-meta-bar > div {
    padding: 13px 15px;

    background: var(--surface);
}

.detail-meta-bar span {
    display: block;

    margin-bottom: 3px;

    color: var(--text-soft);

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: .05em;
}

.detail-meta-bar strong {
    display: block;

    font-size: 12px;
}


/* FOTO ATUAL */

.detail-photo-card {
    overflow: hidden;

    margin-bottom: 15px;

    background:
        linear-gradient(
            145deg,
            var(--blue-100),
            #f6f8fa
        );
}

.detail-photo {
    width: 100%;
    max-height: 600px;

    display: block;

    object-fit: contain;
}


/* SALVAR */

.detail-save-area {
    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 10px;

    margin-top: 22px;
}


/* EXCLUSÃO */

.danger-zone {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 36px;

    padding: 21px;

    border:
        1px solid rgba(185, 54, 54, .17);

    border-radius: 16px;

    background: #fffafa;
}

.danger-zone strong {
    color: #9b2929;

    font-size: 14px;
}

.danger-zone p {
    margin: 4px 0 0;

    color: var(--text-soft);

    font-size: 12px;
}


/* MOBILE */

@media (max-width: 600px) {

    .detail-header {
        display: block;
    }

    .detail-price {
        width: 100%;
        margin-top: 18px;
    }

    .detail-meta-bar {
        grid-template-columns: 1fr;
    }

    .detail-save-area {
        grid-template-columns: 1fr;
    }

    .danger-zone {
        display: block;
    }

    .danger-zone form {
        margin-top: 15px;
    }

    .danger-zone .btn {
        width: 100%;
    }

}

.btn:disabled {
    opacity: .65;
    cursor: wait;
    transform: none !important;
}


/* =====================================================
   GALERIA DE FOTOS
===================================================== */

.gallery-section {
    padding: 20px;
    margin-bottom: 15px;
}

.gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}

.gallery-heading strong {
    font-size: 16px;
}

.gallery-heading span {
    margin-left: 7px;

    color: var(--text-soft);
    font-size: 12px;
}

.photo-gallery {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;
}

.gallery-item {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 13px;

    background: var(--blue-100);
}

.gallery-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.principal-badge {
    position: absolute;

    left: 8px;
    bottom: 8px;

    padding: 5px 8px;

    border-radius: 999px;

    background:
        rgba(23, 52, 85, .90);

    color: white;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.remove-photo {
    position: absolute;

    top: 7px;
    right: 7px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background:
        rgba(20, 25, 30, .78);

    color: white;

    cursor: pointer;

    font-size: 21px;
    line-height: 1;
}

.remove-photo:hover {
    background: #b93636;
}


@media (max-width: 600px) {

    .photo-gallery {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

/* =====================================================
   PREVIEW DE FOTOS - NOVA PESQUISA
===================================================== */

.selected-photos {
    margin-top: 16px;
}

.selected-photos[hidden] {
    display: none !important;
}


.selected-photos-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}


.selected-photos-header > div {
    display: flex;

    align-items: center;

    gap: 8px;
}


.selected-photos-header strong {
    color: var(--text);

    font-size: 13px;
}


.selected-photos-header span {
    padding: 4px 8px;

    border-radius: 999px;

    background: var(--orange-100);

    color: var(--accent);

    font-size: 10px;
    font-weight: 800;
}


.clear-photos-button {
    padding: 6px 10px;

    border: 0;

    background: transparent;

    color: var(--text-soft);

    cursor: pointer;

    font-size: 11px;
    font-weight: 700;
}


.clear-photos-button:hover {
    color: var(--danger);
}


.selected-photo-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;
}


.selected-photo-item {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 14px;

    border:
        1px solid rgba(23, 52, 85, .10);

    background: var(--blue-100);
}


.selected-photo-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.selected-photo-number {
    position: absolute;

    left: 8px;
    bottom: 8px;

    padding: 5px 8px;

    border-radius: 999px;

    background:
        rgba(23, 52, 85, .90);

    color: #fff;

    font-size: 9px;
    font-weight: 800;

    backdrop-filter: blur(5px);
}


.selected-photo-remove {
    position: absolute;

    top: 7px;
    right: 7px;

    width: 31px;
    height: 31px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(20, 25, 30, .80);

    color: #fff;

    cursor: pointer;

    font-size: 22px;
    line-height: 1;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, .15);
}


.selected-photo-remove:hover {
    background: var(--danger);
}


.add-more-photos {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-top: 11px;

    padding: 13px 15px;

    border:
        1px dashed rgba(217, 131, 50, .60);

    border-radius: 12px;

    background: var(--orange-100);

    color: var(--accent);

    cursor: pointer;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .025em;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}


.add-more-photos:hover {
    border-color: var(--accent);

    background: #ffead4;

    transform: translateY(-1px);
}


.add-more-photos[hidden] {
    display: none !important;
}


@media (max-width: 600px) {

    .selected-photo-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}