﻿/* =========================================================
   PÃGINAS DE SOLICITAÃ‡ÃƒO E CONSULTA DE PROTOCOLO
   e-ServiÃ§os Amambai
========================================================= */

.request-page,
.protocol-page {
    max-width: var(--container);
    margin: 0 auto;
    padding: 72px 22px;
}

.request-page__header,
.protocol-page__header {
    max-width: 820px;
    margin-bottom: 34px;
}

.request-page__header h1,
.protocol-page__header h1 {
    margin: 14px 0 12px;
    color: var(--color-primary-deep);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    letter-spacing: -0.035em;
}

.request-page__header p,
.protocol-page__header p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.75;
    font-size: 1.02rem;
}


/* =========================================================
   LINK DE VOLTAR
========================================================= */

.request-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--color-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.request-back svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   ALERTAS
========================================================= */

.request-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 860px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.request-alert svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.request-alert strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary-deep);
}

.request-alert p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.request-alert--error {
    background: #fff5f5;
    border-color: rgba(220, 38, 38, 0.22);
}

.request-alert--error svg {
    color: #dc2626;
}

.request-alert--warning {
    background: #fffbeb;
    border-color: rgba(217, 119, 6, 0.24);
}

.request-alert--warning svg {
    color: #d97706;
}

.request-alert--success {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.28);
}

.request-alert--success svg {
    color: #047857;
}


/* =========================================================
   LISTA DE ERROS DO FORMULÃRIO
========================================================= */

.request-error-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.request-error-list__item {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: inherit;
    line-height: 1.45;
}

.request-error-list__item::before {
    content: "â€¢";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 900;
}


/* =========================================================
   FORMULÃRIO DE SOLICITAÃ‡ÃƒO
========================================================= */

.request-form {
    display: grid;
    gap: 24px;
}

.request-form__section {
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.request-form__section h2 {
    margin: 0 0 20px;
    color: var(--color-primary-deep);
    font-size: 1.25rem;
}

.request-form__section--premium {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.09), transparent 34%),
        #ffffff;
    border: 1px solid rgba(191, 211, 234, 0.92);
    box-shadow:
        0 18px 42px rgba(7, 42, 83, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.request-form__section--premium::after {
    content: "";
    position: absolute;
    right: -54px;
    top: -54px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(15, 91, 181, 0.06);
    pointer-events: none;
}

.request-form__section--premium > * {
    position: relative;
    z-index: 2;
}

/* SeÃ§Ã£o com mapa precisa permitir controles, popups e card visÃ­veis */
.request-form__section--map {
    overflow: visible;
}

.request-form__section--map::after {
    pointer-events: none;
}

.request-form__section-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 24px;
}

.request-form__section-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    box-shadow:
        0 12px 24px rgba(7, 42, 83, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.request-form__section-icon svg {
    width: 23px;
    height: 23px;
}

.request-form__section-header h2 {
    margin: 0 0 6px;
    color: var(--color-primary-deep);
    font-size: 1.32rem;
    line-height: 1.18;
    font-weight: 950;
}

.request-form__section-header p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}


/* =========================================================
   GRID E CAMPOS DO FORMULÃRIO
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label,
.protocol-form label {
    color: var(--color-primary-deep);
    font-weight: 800;
    font-size: 0.92rem;
}

.form-field input,
.form-field textarea,
.protocol-form input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #f9fbfd;
    color: var(--color-text);
    outline: none;
    font: inherit;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-field input,
.protocol-form input {
    min-height: 50px;
    padding: 0 15px;
}

.form-field textarea {
    min-height: 130px;
    padding: 14px 15px;
    resize: vertical;
}

.form-field--full textarea {
    min-height: 130px;
}

.form-field input:focus,
.form-field textarea:focus,
.protocol-form input:focus {
    background: #ffffff;
    border-color: rgba(0, 86, 166, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 86, 166, 0.1);
}


/* =========================================================
   CAMPOS COM ÃCONES LUCIDE
========================================================= */

.form-field__control {
    position: relative;
}

.form-field__control > i,
.form-field__control > svg {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 3;
    width: 19px;
    height: 19px;
    color: var(--color-primary);
    transform: translateY(-50%);
    pointer-events: none;
}

.form-field__control input,
.form-field__control textarea {
    width: 100%;
    min-height: 54px;
    padding-left: 48px;
    box-sizing: border-box;
}

.form-field__control--textarea > i,
.form-field__control--textarea > svg {
    top: 18px;
    transform: none;
}

.form-field__control textarea {
    padding-top: 15px;
    line-height: 1.6;
}


/* =========================================================
   FEEDBACK DE CAMPOS / CPF
========================================================= */

.field-feedback {
    min-height: 18px;
    color: var(--color-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.field-feedback.is-success {
    color: var(--color-secondary-dark);
    font-weight: 700;
}

.field-feedback.is-error {
    color: #dc2626;
    font-weight: 700;
}

.form-field input.is-valid {
    border-color: rgba(0, 168, 107, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.1);
}

.form-field input.is-invalid {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}


/* =========================================================
   BOTÃƒO DE LOCALIZAÃ‡ÃƒO
========================================================= */

.location-button {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.location-button:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.location-button svg {
    width: 18px;
    height: 18px;
}

.form-hint {
    margin: 12px 0 0;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}


/* =========================================================
   AÃ‡Ã•ES DO FORMULÃRIO
========================================================= */

.request-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-light {
    background: #ffffff;
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}


/* =========================================================
   MAPA DA SOLICITAÃ‡ÃƒO
========================================================= */

.request-map-panel {
    position: relative;
    z-index: 5;
    overflow: visible;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(232, 242, 251, 0.72), #ffffff);
}

.request-map-panel__header {
    margin-bottom: 14px;
}

.request-map-panel__header span {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.8rem;
}

.request-map-panel__header h3 {
    margin: 0 0 8px;
    color: var(--color-primary-deep);
    font-size: 1.15rem;
}

.request-map-panel__header p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.request-map {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 520px;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: #eef5fb;
    isolation: isolate;
}

.leaflet-container.request-map-loading {
    cursor: progress;
}


/* =========================================================
   FERRAMENTAS DO MAPA
========================================================= */

.request-map-tools {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.request-map-tools__group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.map-tool-btn {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-primary-dark);
    font-size: 0.86rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: var(--transition);
}

.map-tool-btn:hover,
.map-tool-btn.is-active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.map-tool-btn svg {
    width: 16px;
    height: 16px;
}


/* =========================================================
   BUSCA NO MAPA
========================================================= */

.request-map-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 220px;
}

.request-map-search input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0 12px;
    outline: none;
    background: #ffffff;
    color: var(--color-text);
    box-sizing: border-box;
}

.request-map-search input:focus {
    border-color: rgba(0, 86, 166, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 86, 166, 0.1);
}

.request-map-search button {
    width: 40px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.request-map-search button svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   LINHA DE CAMADA / STATUS DO MAPA
========================================================= */

.request-map-layer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.86rem;
}

.request-map-layer-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary-deep);
    font-weight: 800;
}


/* =========================================================
   RODAPÃ‰ DO MAPA
========================================================= */

.request-map-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--color-muted);
    font-size: 0.84rem;
}


/* =========================================================
   LEAFLET â€” CONTROLES, ZOOM E IMAGENS
========================================================= */

.request-map .leaflet-container,
.request-map .leaflet-pane,
.request-map .leaflet-map-pane,
.request-map .leaflet-tile-pane,
.request-map .leaflet-overlay-pane,
.request-map .leaflet-marker-pane,
.request-map .leaflet-tooltip-pane,
.request-map .leaflet-popup-pane {
    pointer-events: auto;
}

.request-map .leaflet-control-container {
    position: relative;
    z-index: 1200;
    pointer-events: none;
}

.request-map .leaflet-top,
.request-map .leaflet-bottom {
    z-index: 1200;
    pointer-events: none;
}

.request-map .leaflet-control {
    z-index: 1300;
    pointer-events: auto;
}

.request-map .leaflet-control-zoom {
    border: 1px solid rgba(191, 211, 234, 0.95);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(7, 42, 83, 0.16);
}

.request-map .leaflet-control-zoom a {
    display: block;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0;
    border-radius: 0;
    line-height: 36px;
    text-align: center;
    color: #003f7c;
    background: #ffffff;
    box-shadow: none;
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
}

.request-map .leaflet-control-zoom a:hover {
    color: #ffffff;
    background: #0f5bb5;
}

.request-map .leaflet-tile,
.request-map .leaflet-marker-icon,
.request-map .leaflet-marker-shadow {
    max-width: none;
    max-height: none;
}


/* =========================================================
   MAPA EM TELA CHEIA
========================================================= */

.request-map.is-fullscreen-map {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    left: 16px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    z-index: 9999 !important;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.request-map-panel:fullscreen {
    padding: 18px;
    background: #f8fbff;
    overflow: auto;
}

.request-map-panel:fullscreen .request-map {
    height: calc(100vh - 230px);
    min-height: 420px;
}

.request-map-panel:fullscreen .selected-geo-element {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 22px;
    width: min(920px, calc(100% - 32px));
    transform: translateX(-50%);
    z-index: 3000;
}


/* =========================================================
   ELEMENTO SELECIONADO DO GEOPORTAL
========================================================= */

.selected-geo-element {
    position: sticky;
    bottom: 16px;
    z-index: 1400;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--color-primary-deep);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(191, 211, 234, 0.96);
    box-shadow:
        0 16px 34px rgba(7, 42, 83, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.selected-geo-element i,
.selected-geo-element svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.selected-geo-element span {
    font-weight: 850;
    line-height: 1.45;
}

.selected-geo-element strong {
    display: block;
    color: var(--color-primary-deep);
}

.selected-geo-element.is-selected,
.selected-geo-element.has-selected,
.selected-geo-element.active {
    border-color: rgba(16, 185, 129, 0.32);
    background: #ecfdf5;
    color: #064e3b;
}

.selected-geo-element.is-selected i,
.selected-geo-element.is-selected svg,
.selected-geo-element.has-selected i,
.selected-geo-element.has-selected svg,
.selected-geo-element.active i,
.selected-geo-element.active svg {
    color: #047857;
}


/* =========================================================
   MARCADORES DO MAPA
========================================================= */

.request-map-marker-wrapper {
    background: transparent;
    border: 0;
}

.request-map-marker {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 18px rgba(7, 42, 83, 0.22);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.request-map-marker:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 22px rgba(7, 42, 83, 0.28);
}

.request-map-marker.is-selected {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(0, 121, 77, 0.30);
}

.request-map-marker.is-user-location {
    background: linear-gradient(135deg, #00a86b, #00794d);
}

.request-map-marker svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}


/* =========================================================
   POPUP DO MAPA
========================================================= */

.map-popup h3 {
    margin: 0 0 6px;
    color: var(--color-primary-deep);
    font-size: 1rem;
}

.map-popup span {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.map-popup p {
    margin: 6px 0 0;
    color: var(--color-muted);
    line-height: 1.5;
}


/* =========================================================
   TIPO DE PROBLEMA â€” BARRAS DE SELEÃ‡ÃƒO
========================================================= */

.problem-type-field {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.problem-type-field__label {
    color: var(--color-primary-deep);
    font-weight: 800;
    font-size: 0.96rem;
}

.problem-type-field__label strong {
    color: #dc2626;
}

.problem-select-list {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(0, 86, 166, 0.14);
    border-radius: 22px;
    background: #ffffff;
}

.problem-select-option {
    position: relative;
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 86, 166, 0.14);
    border-radius: 16px;
    background: #f8fbff;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.22s ease;
}

.problem-select-option:hover {
    border-color: rgba(0, 86, 166, 0.32);
    background: #eef6ff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(7, 42, 83, 0.08);
}

.problem-select-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.problem-select-option__marker {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 42, 82, 0.38);
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.22s ease;
}

.problem-select-option__marker::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    transform: scale(0);
    transition: 0.22s ease;
}

.problem-select-option__text {
    color: var(--color-primary-deep);
    font-weight: 800;
    line-height: 1.35;
}

.problem-select-option:has(input[type="radio"]:checked) {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, #0056a6, #003f7c);
    box-shadow: 0 14px 30px rgba(0, 86, 166, 0.22);
}

.problem-select-option:has(input[type="radio"]:checked) .problem-select-option__text {
    color: #ffffff;
}

.problem-select-option:has(input[type="radio"]:checked) .problem-select-option__marker {
    border-color: #ffffff;
    background: #ffffff;
}

.problem-select-option:has(input[type="radio"]:checked) .problem-select-option__marker::after {
    background: var(--color-primary);
    transform: scale(1);
}

.problem-select-option--other {
    align-items: center;
}

.problem-select-option__control {
    position: relative;
    flex: 1;
}

.problem-select-option__control > i,
.problem-select-option__control > svg {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 3;
    width: 17px;
    height: 17px;
    color: var(--color-primary);
    transform: translateY(-50%);
    pointer-events: none;
}

.problem-select-option__input {
    flex: 1;
    min-width: 180px;
    border: 0;
    border-bottom: 1px solid rgba(0, 42, 82, 0.18);
    background: transparent;
    padding: 8px 4px;
    color: var(--color-primary-deep);
    font-weight: 700;
    outline: none;
}

.problem-select-option__control .problem-select-option__input {
    width: 100%;
    padding-left: 40px;
    box-sizing: border-box;
}

.problem-select-option__input::placeholder {
    color: rgba(15, 23, 42, 0.38);
}

.problem-select-option:has(input[type="radio"]:checked) .problem-select-option__input {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.problem-select-option:has(input[type="radio"]:checked) .problem-select-option__input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}


/* =========================================================
   ANEXO â€” UPLOAD DE FOTO / CÃ‚MERA
========================================================= */

.attachment-field {
    display: grid;
    gap: 12px;
}

.attachment-field--premium {
    display: grid;
    gap: 12px;
}

.attachment-field__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.attachment-field__box {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px dashed rgba(0, 86, 166, 0.35);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    cursor: pointer;
    transition: 0.22s ease;
}

.attachment-field__box:hover {
    border-color: var(--color-primary);
    background: #f1f7ff;
    box-shadow: 0 14px 28px rgba(7, 42, 83, 0.08);
    transform: translateY(-1px);
}

.attachment-field__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.attachment-field__icon i,
.attachment-field__icon svg {
    display: block;
    width: 24px;
    height: 24px;
    color: #ffffff;
    stroke-width: 2.4;
}

.attachment-field__content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.attachment-field__content strong {
    color: var(--color-primary-deep);
    font-size: 1rem;
    font-weight: 900;
}

.attachment-field__content small {
    color: var(--color-muted);
    line-height: 1.45;
    font-size: 0.88rem;
}

.attachment-field__button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.88rem;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(0, 86, 166, 0.18);
}

.attachment-field__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.attachment-field__selected {
    min-height: 42px;
    padding: 11px 14px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid rgba(0, 86, 166, 0.12);
    color: var(--color-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.attachment-field__selected.has-file {
    color: #065f46;
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.22);
    font-weight: 900;
}

.attachment-field__box--camera .attachment-field__icon,
.attachment-field__box--camera .attachment-field__button {
    background: linear-gradient(135deg, #10b981, #047857);
}


/* =========================================================
   LGPD â€” AVISO DO FORMULÃRIO
========================================================= */

.request-lgpd-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 24px;
    padding: 18px;
    border-radius: 22px;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #064e3b;
}

.request-lgpd-box__icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #047857);
}

.request-lgpd-box__icon svg {
    width: 20px;
    height: 20px;
}

.request-lgpd-box p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.92rem;
}

.request-lgpd-box a {
    color: #065f46;
    font-weight: 950;
}


/* =========================================================
   FORMULÃRIO DE CONSULTA DE PROTOCOLO
========================================================= */

.protocol-form {
    max-width: 860px;
    margin-bottom: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.protocol-form__row {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}


/* =========================================================
   RESULTADO DO PROTOCOLO
========================================================= */

.protocol-result {
    max-width: 960px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.protocol-result__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
}

.protocol-result span {
    display: block;
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.protocol-result strong {
    display: block;
    margin-top: 5px;
    color: var(--color-primary-deep);
}

.protocol-result__top strong {
    font-size: 1.4rem;
    font-family: "Montserrat", "Inter", Arial, sans-serif;
}

.protocol-result__top em {
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.protocol-result__section {
    padding: 22px 0;
    border-bottom: 1px solid var(--color-border);
}

.protocol-result__section h2 {
    margin: 0 0 16px;
    color: var(--color-primary-deep);
    font-size: 1.12rem;
}

.protocol-result__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.protocol-result__description {
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.protocol-result__description p {
    margin: 8px 0 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.protocol-result__footer {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* =========================================================
   COMPROVANTE DO PROTOCOLO
========================================================= */

.protocol-download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef6ff, #ffffff);
    border: 1px solid rgba(0, 86, 166, 0.16);
}

.protocol-download-card strong {
    display: block;
    color: var(--color-primary-deep);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.protocol-download-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.5;
}


/* =========================================================
   CONSULTA PÃšBLICA â€” ANDAMENTO / TIMELINE
========================================================= */

.consulta-andamento {
    margin-top: 28px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.consulta-andamento--timeline {
    position: relative;
    margin-top: 28px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.08), transparent 34%),
        #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.consulta-andamento__header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.consulta-andamento__header span {
    display: block;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.consulta-andamento__header h2 {
    margin: 6px 0 6px;
    color: var(--color-primary-deep);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.consulta-andamento__header p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.consulta-andamento__pdf {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    box-shadow:
        0 16px 34px rgba(10, 70, 141, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        filter 0.24s ease;
}

.consulta-andamento__pdf:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 20px 42px rgba(10, 70, 141, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.consulta-andamento__pdf svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.consulta-timeline-pro {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
}

.consulta-timeline-pro__line {
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 25px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.45),
        rgba(15, 91, 181, 0.22)
    );
}

.consulta-timeline-pro__item {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
}

.consulta-timeline-pro__marker {
    position: relative;
    z-index: 3;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    border: 6px solid #edf6ff;
    box-shadow:
        0 10px 22px rgba(7, 42, 83, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.consulta-timeline-pro__marker svg {
    width: 21px;
    height: 21px;
}

.consulta-timeline-pro__card {
    position: relative;
    min-height: 116px;
    padding: 20px 22px;
    border-radius: 22px;
    background: #f8fbff;
    border: 1px solid rgba(15, 91, 181, 0.14);
    box-shadow: 0 10px 24px rgba(7, 42, 83, 0.06);
}

.consulta-timeline-pro__top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.consulta-timeline-pro__top strong {
    display: block;
    color: var(--color-primary-deep);
    font-size: 1.04rem;
    line-height: 1.25;
}

.consulta-timeline-pro__top span {
    display: block;
    margin-top: 5px;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.consulta-timeline-pro__top em {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #047857);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.18);
}

.consulta-timeline-pro__card p {
    margin: 14px 0 0;
    color: #334155;
    line-height: 1.65;
}

.consulta-timeline-pro__card p strong {
    color: var(--color-primary-deep);
}

.consulta-timeline-pro__item.is-current .consulta-timeline-pro__marker {
    background: linear-gradient(135deg, #10b981, #047857);
    border-color: rgba(209, 250, 229, 0.95);
    box-shadow:
        0 0 0 7px rgba(16, 185, 129, 0.12),
        0 14px 28px rgba(5, 150, 105, 0.18);
}

.consulta-timeline-pro__item.is-current .consulta-timeline-pro__card {
    background:
        linear-gradient(180deg, rgba(236, 253, 245, 0.60), rgba(255, 255, 255, 0.96)),
        #ffffff;
    border-color: rgba(16, 185, 129, 0.34);
    box-shadow:
        0 18px 42px rgba(7, 42, 83, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.consulta-timeline-pro__item.is-analysis .consulta-timeline-pro__marker {
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
}

.consulta-timeline-pro__item.is-service .consulta-timeline-pro__marker {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.consulta-timeline-pro__item.is-success .consulta-timeline-pro__marker {
    background: linear-gradient(135deg, #10b981, #047857);
}

.consulta-timeline-pro__item.is-denied .consulta-timeline-pro__marker,
.consulta-timeline-pro__item.is-canceled .consulta-timeline-pro__marker {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.consulta-timeline-pro__message {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid rgba(15, 91, 181, 0.12);
    line-height: 1.65;
    white-space: pre-line;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}


/* =========================================================
   PROTOCOLO â€” DOWNLOAD AUTOMÃTICO DO PDF
========================================================= */

.protocol-auto-download {
    margin-top: 22px;
    border-color: rgba(16, 185, 129, 0.28);
    background: #ecfdf5;
}

.protocol-auto-download i,
.protocol-auto-download svg {
    color: #047857;
}


/* =========================================================
   RESPONSIVO â€” FORMULÃRIO / MAPA / PROTOCOLO
========================================================= */

@media (max-width: 760px) {
    .request-page,
    .protocol-page {
        padding: 58px 16px;
    }

    .request-form__section,
    .protocol-form,
    .protocol-result {
        padding: 20px;
    }

    .request-form__section-header {
        gap: 13px;
    }

    .request-form__section-icon {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .request-form__section-header h2 {
        font-size: 1.18rem;
    }

    .form-grid,
    .protocol-result__grid,
    .protocol-form__row {
        grid-template-columns: 1fr;
    }

    .request-form__actions {
        flex-direction: column;
    }

    .protocol-result__top {
        flex-direction: column;
    }

    .request-map-panel {
        padding: 14px;
    }

    .request-map {
        height: 420px;
        min-height: 420px;
        border-radius: 20px;
    }

    .request-map-tools {
        flex-direction: column;
    }

    .request-map-tools__group {
        width: 100%;
    }

    .map-tool-btn {
        flex: 1;
        justify-content: center;
    }

    .request-map-search {
        width: 100%;
    }

    .request-map-layer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .request-map.is-fullscreen-map {
        top: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        left: 8px !important;
        border-radius: 16px;
    }

    .request-map .leaflet-control-zoom a {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        line-height: 34px;
    }

    .selected-geo-element {
        bottom: 10px;
        padding: 13px 14px;
        border-radius: 16px;
    }

    .problem-select-list {
        padding: 10px;
        gap: 10px;
        border-radius: 18px;
    }

    .problem-select-option {
        min-height: 54px;
        padding: 13px 14px;
        border-radius: 14px;
    }

    .problem-select-option--other {
        display: grid;
        grid-template-columns: auto auto 1fr;
        gap: 10px;
    }

    .problem-select-option__input {
        min-width: 0;
        width: 100%;
    }

    .attachment-field__actions {
        grid-template-columns: 1fr;
    }

    .request-lgpd-box {
        flex-direction: column;
    }

    .protocol-download-card {
        display: grid;
        gap: 14px;
    }

    .protocol-download-card .btn {
        width: 100%;
        justify-content: center;
    }

    .consulta-andamento--timeline {
        padding: 22px;
        border-radius: 24px;
    }

    .consulta-andamento__header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .consulta-andamento__pdf {
        width: 100%;
        min-height: 50px;
    }

    .consulta-timeline-pro {
        gap: 16px;
    }

    .consulta-timeline-pro__line {
        left: 22px;
    }

    .consulta-timeline-pro__item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
    }

    .consulta-timeline-pro__marker {
        width: 48px;
        height: 48px;
        border-width: 5px;
    }

    .consulta-timeline-pro__marker svg {
        width: 19px;
        height: 19px;
    }

    .consulta-timeline-pro__card {
        min-height: 0;
        padding: 18px;
        border-radius: 20px;
    }

    .consulta-timeline-pro__top {
        flex-direction: column;
        gap: 9px;
    }

    .consulta-timeline-pro__top em {
        width: fit-content;
    }
}

@media (max-width: 520px) {
    .consulta-andamento--timeline {
        margin-left: -4px;
        margin-right: -4px;
        padding: 18px;
        border-radius: 22px;
    }

    .consulta-andamento__header h2 {
        font-size: 1.65rem;
    }

    .consulta-timeline-pro__line {
        left: 18px;
        top: 22px;
        bottom: 22px;
        width: 2px;
    }

    .consulta-timeline-pro__item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .consulta-timeline-pro__marker {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }

    .consulta-timeline-pro__marker svg {
        width: 17px;
        height: 17px;
    }

    .consulta-timeline-pro__card {
        padding: 16px;
        border-radius: 18px;
    }

    .consulta-timeline-pro__top strong {
        font-size: 0.98rem;
    }

    .consulta-timeline-pro__top span {
        font-size: 0.84rem;
    }

    .consulta-timeline-pro__card p {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .consulta-timeline-pro__message {
        padding: 12px 14px;
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .problem-select-option--other {
        grid-template-columns: auto 1fr;
    }

    .problem-select-option--other .problem-select-option__input {
        grid-column: 1 / -1;
        margin-left: 34px;
    }
}

@media (max-width: 480px) {
    .attachment-field__box {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .attachment-field__content {
        justify-items: center;
    }

    .attachment-field__icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 460px) {
    .request-form__section--premium {
        border-radius: 22px;
        padding: 18px;
    }

    .request-map {
        min-height: 340px;
    }

    .selected-geo-element {
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .consulta-andamento--timeline {
        padding: 16px 14px;
    }

    .consulta-timeline-pro__item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .consulta-timeline-pro__line {
        left: 16px;
    }

    .consulta-timeline-pro__marker {
        width: 36px;
        height: 36px;
    }

    .consulta-timeline-pro__marker svg {
        width: 15px;
        height: 15px;
    }

    .consulta-timeline-pro__card {
        padding: 14px;
    }
}

/* =========================================================
   AJUSTE â€” FERRAMENTAS DO MAPA EM UMA ÃšNICA LINHA
========================================================= */

.request-map-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin: 18px 0 14px;
}

/* Grupo Mapa / SatÃ©lite */
.request-map-tools__group:first-child {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    flex-shrink: 0;
}

/* Busca central */
.request-map-search {
    order: 2;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 46px;
    align-items: center;
    gap: 8px;
    width: clamp(240px, 24vw, 330px);
    min-width: 240px;
    flex-shrink: 1;
}

/* Grupo Localizar / Centralizar / Tela cheia / Medir / Limpar */
.request-map-tools__group:nth-child(2) {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    flex-shrink: 0;
}

/* BotÃµes do mapa */
.map-tool-btn {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.map-tool-btn svg {
    width: 18px;
    height: 18px;
}

/* Campo de busca */
.request-map-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 0.96rem;
}

.request-map-search button {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    flex-shrink: 0;
}

.request-map-search button svg {
    width: 19px;
    height: 19px;
}

/* Linha "Mostrar elementos da camada" */
.request-map-layer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 50px;
    padding: 10px 18px;
    margin: 8px 0 14px;
    border-radius: 18px;
}

.request-map-layer-row label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    white-space: nowrap;
}

.request-map-layer-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

#mapLoadStatus {
    margin-left: auto;
    text-align: right;
    color: var(--color-muted);
    font-weight: 600;
}

/* =========================================================
   RESPONSIVO â€” FERRAMENTAS DO MAPA
========================================================= */

@media (max-width: 1180px) {
    .request-map-tools {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
    }

    .request-map-tools__group:first-child,
    .request-map-tools__group:nth-child(2) {
        justify-content: flex-start;
        flex-wrap: wrap;
        width: 100%;
    }

    .request-map-search {
        width: min(420px, 100%);
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .request-map-tools__group:first-child,
    .request-map-tools__group:nth-child(2) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .map-tool-btn {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        padding: 0 12px;
    }

    .request-map-search {
        width: 100%;
        grid-template-columns: 1fr 46px;
    }

    .request-map-layer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .request-map-layer-row label {
        white-space: normal;
    }

    #mapLoadStatus {
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .request-map-tools__group:first-child,
    .request-map-tools__group:nth-child(2) {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CONSULTA DE PROTOCOLO â€” HERO PERSONALIZADA AMAMBAI
========================================================= */

.protocol-page--custom {
    max-width: none;
    padding: 0 0 72px;
}

.protocol-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(0, 42, 82, 0.94) 0%,
            rgba(0, 63, 124, 0.82) 38%,
            rgba(0, 86, 166, 0.42) 68%,
            rgba(0, 86, 166, 0.14) 100%
        ),
        var(--protocol-hero-image);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(191, 211, 234, 0.70);
}

.protocol-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 35%, rgba(255, 255, 255, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(0, 42, 82, 0), rgba(0, 42, 82, 0.22));
}

.protocol-hero__content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    color: #ffffff;
}

.protocol-hero__chip {
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.protocol-hero__chip svg {
    width: 17px;
    height: 17px;
}

.protocol-hero h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.protocol-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    line-height: 1.75;
}

.protocol-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.protocol-hero__badges span {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.20);
    font-size: 0.86rem;
    font-weight: 850;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.protocol-hero__badges svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   CONSULTA DE PROTOCOLO â€” CARD PRINCIPAL
========================================================= */

.protocol-consult-layout {
    position: relative;
    z-index: 4;
    width: min(1180px, calc(100% - 44px));
    margin: -70px auto 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    gap: 22px;
    align-items: stretch;
}

.protocol-consult-card,
.protocol-help-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.10), transparent 34%),
        #ffffff;
    border: 1px solid rgba(191, 211, 234, 0.92);
    box-shadow:
        0 22px 56px rgba(7, 42, 83, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.protocol-consult-card {
    padding: clamp(22px, 3vw, 32px);
}

.protocol-consult-card::after,
.protocol-help-card::after {
    content: "";
    position: absolute;
    right: -58px;
    top: -58px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(15, 91, 181, 0.08);
    pointer-events: none;
}

.protocol-consult-card > *,
.protocol-help-card > * {
    position: relative;
    z-index: 2;
}

.protocol-consult-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.protocol-consult-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    box-shadow:
        0 14px 28px rgba(7, 42, 83, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.protocol-consult-card__icon svg {
    width: 26px;
    height: 26px;
}

.protocol-consult-card__header h2 {
    margin: 10px 0 8px;
    color: var(--color-primary-deep);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.08;
    font-weight: 950;
}

.protocol-consult-card__header p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}


/* =========================================================
   CONSULTA DE PROTOCOLO â€” FORMULÃRIO PREMIUM
========================================================= */

.protocol-form--premium {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.protocol-form--premium label {
    display: block;
    margin-bottom: 9px;
    color: var(--color-primary-deep);
    font-size: 0.92rem;
    font-weight: 900;
}

.protocol-form--premium .protocol-form__row {
    margin-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.protocol-form__field {
    position: relative;
}

.protocol-form__field > i,
.protocol-form__field > svg {
    position: absolute;
    left: 17px;
    top: 50%;
    z-index: 3;
    width: 19px;
    height: 19px;
    color: var(--color-primary);
    transform: translateY(-50%);
    pointer-events: none;
}

.protocol-form__field input {
    width: 100%;
    min-height: 58px;
    padding: 0 16px 0 50px;
    border-radius: 999px;
    border: 1px solid rgba(191, 211, 234, 0.96);
    outline: none;
    color: #0f172a;
    background: #f8fbff;
    font: inherit;
    font-size: 0.98rem;
    box-sizing: border-box;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.protocol-form__field input::placeholder {
    color: #94a3b8;
}

.protocol-form__field input:focus {
    border-color: rgba(15, 91, 181, 0.58);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(15, 91, 181, 0.12),
        0 10px 24px rgba(7, 42, 83, 0.08);
}

.protocol-form__button {
    min-height: 58px;
    padding-inline: 22px;
    gap: 9px;
    white-space: nowrap;
}

.protocol-form__button svg {
    width: 18px;
    height: 18px;
}

.protocol-consult-error {
    max-width: none;
    margin: 18px 0 0;
}


/* =========================================================
   CONSULTA DE PROTOCOLO â€” CARD DE AJUDA
========================================================= */

.protocol-help-card {
    padding: 26px;
}

.protocol-help-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow:
        0 14px 28px rgba(5, 150, 105, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.protocol-help-card__icon svg {
    width: 23px;
    height: 23px;
}

.protocol-help-card h2 {
    margin: 16px 0 16px;
    color: var(--color-primary-deep);
    font-size: 1.28rem;
    font-weight: 950;
}

.protocol-help-card__items {
    display: grid;
    gap: 14px;
}

.protocol-help-card__items div {
    padding: 14px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(191, 211, 234, 0.74);
}

.protocol-help-card__items strong {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary-deep);
    font-size: 0.94rem;
    font-weight: 950;
}

.protocol-help-card__items p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.protocol-help-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.protocol-help-card__link {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
}

.protocol-help-card__link:hover {
    text-decoration: underline;
}


/* =========================================================
   RESULTADO DO PROTOCOLO â€” AJUSTE PREMIUM
========================================================= */

.protocol-result--premium {
    width: min(1180px, calc(100% - 44px));
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 32px;
    box-shadow:
        0 22px 56px rgba(7, 42, 83, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}


/* =========================================================
   RESPONSIVO â€” CONSULTA DE PROTOCOLO
========================================================= */

@media (max-width: 980px) {
    .protocol-hero {
        min-height: 390px;
        background-position: center;
    }

    .protocol-consult-layout {
        grid-template-columns: 1fr;
        margin-top: -54px;
    }

    .protocol-help-card {
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .protocol-page--custom {
        padding-bottom: 52px;
    }

    .protocol-hero {
        min-height: 360px;
        background:
            linear-gradient(
                180deg,
                rgba(0, 42, 82, 0.92) 0%,
                rgba(0, 63, 124, 0.78) 58%,
                rgba(0, 86, 166, 0.28) 100%
            ),
            var(--protocol-hero-image);
        background-size: cover;
        background-position: center;
    }

    .protocol-hero__content,
    .protocol-consult-layout,
    .protocol-result--premium {
        width: min(100% - 24px, 1180px);
    }

    .protocol-hero h1 {
        font-size: clamp(2.15rem, 12vw, 3.2rem);
    }

    .protocol-hero__badges {
        display: none;
    }

    .protocol-consult-card,
    .protocol-help-card,
    .protocol-result--premium {
        border-radius: 24px;
    }

    .protocol-consult-card__header {
        flex-direction: column;
    }

    .protocol-form--premium .protocol-form__row {
        grid-template-columns: 1fr;
    }

    .protocol-form__button {
        width: 100%;
        justify-content: center;
    }

    .protocol-help-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .protocol-help-card__actions .btn,
    .protocol-help-card__link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 460px) {
    .protocol-hero {
        min-height: 330px;
    }

    .protocol-consult-layout {
        margin-top: -42px;
    }

    .protocol-consult-card,
    .protocol-help-card {
        padding: 20px;
    }

    .protocol-consult-card__icon,
    .protocol-help-card__icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .protocol-form__field input {
        min-height: 54px;
        border-radius: 18px;
    }

    .protocol-form__button {
        min-height: 54px;
    }
}

/* =========================================================
   MOBILE â€” CONSULTA DE PROTOCOLO COM HERO-ARARA
========================================================= */

@media (max-width: 820px) {
    .protocol-page--custom {
        padding-bottom: 48px;
        overflow-x: hidden;
    }

    .protocol-hero {
        min-height: 380px;
        align-items: flex-end;
        padding: 72px 0 92px;
        background:
            linear-gradient(
                180deg,
                rgba(0, 42, 82, 0.58) 0%,
                rgba(0, 42, 82, 0.78) 48%,
                rgba(0, 42, 82, 0.94) 100%
            ),
            var(--protocol-hero-image);
        background-size: cover;
        background-position: 34% center;
    }

    .protocol-hero__content {
        width: min(100% - 28px, 1180px);
    }

    .protocol-hero__chip {
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.74rem;
    }

    .protocol-hero h1 {
        max-width: 100%;
        margin: 14px 0 10px;
        font-size: clamp(2.1rem, 12vw, 3.3rem);
        line-height: 1;
        letter-spacing: -0.045em;
    }

    .protocol-hero p {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.62;
    }

    .protocol-hero__badges {
        display: none;
    }

    .protocol-consult-layout {
        width: min(100% - 24px, 1180px);
        margin: -66px auto 28px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .protocol-consult-card,
    .protocol-help-card,
    .protocol-result--premium {
        border-radius: 24px;
    }

    .protocol-consult-card {
        padding: 22px;
    }

    .protocol-help-card {
        padding: 22px;
    }

    .protocol-consult-card__header {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
    }

    .protocol-consult-card__icon,
    .protocol-help-card__icon {
        width: 50px;
        height: 50px;
        border-radius: 17px;
    }

    .protocol-consult-card__icon svg,
    .protocol-help-card__icon svg {
        width: 23px;
        height: 23px;
    }

    .protocol-consult-card__header h2 {
        margin: 10px 0 8px;
        font-size: 1.55rem;
        line-height: 1.12;
    }

    .protocol-consult-card__header p {
        font-size: 0.94rem;
        line-height: 1.58;
    }

    .protocol-form--premium .protocol-form__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .protocol-form__field input {
        min-height: 54px;
        border-radius: 18px;
        font-size: 0.95rem;
    }

    .protocol-form__button {
        width: 100%;
        min-height: 54px;
        justify-content: center;
        border-radius: 999px;
    }

    .protocol-help-card h2 {
        margin: 14px 0 14px;
        font-size: 1.18rem;
    }

    .protocol-help-card__items {
        gap: 10px;
    }

    .protocol-help-card__items div {
        padding: 13px;
        border-radius: 16px;
    }

    .protocol-help-card__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .protocol-help-card__actions .btn,
    .protocol-help-card__link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .protocol-result--premium {
        width: min(100% - 24px, 1180px);
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .protocol-hero {
        min-height: 340px;
        padding: 62px 0 86px;
        background-position: 30% center;
    }

    .protocol-hero__content {
        width: min(100% - 22px, 1180px);
    }

    .protocol-hero h1 {
        font-size: clamp(2rem, 13vw, 2.75rem);
    }

    .protocol-hero p {
        font-size: 0.94rem;
        line-height: 1.56;
    }

    .protocol-consult-layout {
        width: min(100% - 20px, 1180px);
        margin-top: -58px;
    }

    .protocol-consult-card,
    .protocol-help-card,
    .protocol-result--premium {
        border-radius: 22px;
    }

    .protocol-consult-card,
    .protocol-help-card {
        padding: 18px;
    }

    .protocol-consult-card__header h2 {
        font-size: 1.38rem;
    }

    .protocol-form__field > i,
    .protocol-form__field > svg {
        left: 15px;
        width: 18px;
        height: 18px;
    }

    .protocol-form__field input {
        padding-left: 46px;
    }

    .protocol-result--premium {
        width: min(100% - 20px, 1180px);
        padding: 18px;
    }

    .protocol-result__top {
        gap: 12px;
    }

    .protocol-result__top strong {
        font-size: 1.18rem;
        word-break: break-word;
    }

    .protocol-result__top em {
        width: fit-content;
    }

    .protocol-result__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .protocol-download-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .protocol-download-card .btn {
        width: 100%;
        justify-content: center;
    }

    .protocol-result__footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .protocol-result__footer .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .protocol-hero {
        min-height: 315px;
        padding: 54px 0 80px;
        background-position: 28% center;
    }

    .protocol-hero__chip {
        min-height: 32px;
        font-size: 0.68rem;
        letter-spacing: 0.035em;
    }

    .protocol-hero h1 {
        font-size: 2.15rem;
    }

    .protocol-hero p {
        font-size: 0.9rem;
    }

    .protocol-consult-layout {
        margin-top: -52px;
    }

    .protocol-consult-card,
    .protocol-help-card {
        padding: 16px;
    }

    .protocol-consult-card__icon,
    .protocol-help-card__icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .protocol-consult-card__header h2 {
        font-size: 1.28rem;
    }

    .protocol-form__field input {
        min-height: 52px;
        border-radius: 16px;
    }

    .protocol-form__button {
        min-height: 52px;
    }
}

/* =========================================================
   SOLICITAÃ‡ÃƒO â€” MAPA OTIMIZADO WEB/MOBILE
   Complemento para nova.html
========================================================= */

.request-map-panel {
    overflow: hidden;
}

.request-map-topbar {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 12px;
    align-items: center;
    margin: 18px 0 12px;
}

.request-map-topbar .request-map-layer-row {
    margin: 0;
}

.request-map-search {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
}

.request-map-search input {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 1px solid rgba(191, 211, 234, 0.95);
    border-radius: 999px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--color-primary-deep);
    font-size: 0.86rem;
    font-weight: 800;
    outline: none;
    box-shadow:
        0 8px 18px rgba(7, 42, 83, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.request-map-search input:focus {
    border-color: rgba(15, 91, 181, 0.46);
    box-shadow:
        0 0 0 4px rgba(15, 91, 181, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.request-map-search button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(7, 42, 83, 0.18);
}

.request-map-search button svg {
    width: 16px;
    height: 16px;
}

.request-map-tools--below {
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(191, 211, 234, 0.92);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.06), transparent 34%),
        #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow:
        0 10px 24px rgba(7, 42, 83, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.request-map-tools__title {
    flex: 0 0 auto;
    min-width: max-content;
}

.request-map-tools__title span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(15, 91, 181, 0.08);
    border: 1px solid rgba(15, 91, 181, 0.12);
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.request-map-tools__actions {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.request-map-tools--below .map-tool-btn {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(191, 211, 234, 0.95);
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-primary-dark);
    font-size: 0.76rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
        0 7px 16px rgba(7, 42, 83, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

.request-map-tools--below .map-tool-btn:hover,
.request-map-tools--below .map-tool-btn.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    border-color: rgba(15, 91, 181, 0.34);
    transform: translateY(-1px);
    box-shadow:
        0 11px 22px rgba(7, 42, 83, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.request-map-tools--below .map-tool-btn svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.35;
}

.request-map-tools--below .map-tool-btn--danger {
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.22);
    background: #fff5f5;
}

.request-map-tools--below .map-tool-btn--danger:hover,
.request-map-tools--below .map-tool-btn--danger.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-color: rgba(220, 38, 38, 0.32);
}

.request-map {
    width: 100%;
    min-height: 460px;
    border-radius: 22px;
    overflow: hidden;
    border: 3px solid rgba(0, 86, 166, 0.18);
    background: #eef5fb;
    box-shadow:
        0 14px 34px rgba(7, 42, 83, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.request-map.leaflet-container {
    font-family: "Inter", Arial, sans-serif;
}

.request-map-footer {
    margin-top: 10px;
}


/* =========================================================
   SOLICITAÃ‡ÃƒO â€” MAPA MOBILE
========================================================= */

@media (max-width: 768px) {
    .request-map-topbar {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 14px;
    }

    .request-map-layer-row {
        width: 100%;
        display: grid;
        gap: 7px;
        justify-items: start;
    }

    .request-map-search {
        grid-template-columns: minmax(0, 1fr) 40px;
    }

    .request-map-search input {
        height: 40px;
        font-size: 0.8rem;
    }

    .request-map-search button {
        width: 40px;
        height: 40px;
    }

    .request-map {
        min-height: 370px;
        border-radius: 18px;
        border-width: 2px;
    }

    .request-map-tools--below {
        margin-top: 9px;
        padding: 9px;
        border-radius: 16px;
        display: grid;
        gap: 8px;
    }

    .request-map-tools__title {
        min-width: 0;
    }

    .request-map-tools__title span {
        width: 100%;
        min-height: 24px;
        justify-content: center;
        font-size: 0.66rem;
    }

    .request-map-tools__actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 7px;
    }

    .request-map-tools--below .map-tool-btn {
        flex: 0 0 54px;
        width: 54px;
        min-height: 48px;
        padding: 5px 4px;
        border-radius: 14px;
        flex-direction: column;
        gap: 3px;
        font-size: 0.66rem;
        line-height: 1.05;
        white-space: normal;
    }

    .request-map-tools--below .map-tool-btn svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .request-map-footer {
        display: grid;
        gap: 6px;
        font-size: 0.78rem;
    }
}

@media (max-width: 520px) {
    .request-map {
        min-height: 340px;
        border-radius: 16px;
    }

    .request-map-tools--below {
        padding: 8px;
    }

    .request-map-tools__actions {
        gap: 6px;
    }

    .request-map-tools--below .map-tool-btn {
        flex: 0 0 50px;
        width: 50px;
        min-height: 44px;
        padding: 4px 3px;
        border-radius: 13px;
        font-size: 0.62rem;
    }

    .request-map-tools--below .map-tool-btn svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 390px) {
    .request-map-tools--below .map-tool-btn {
        flex: 0 0 48px;
        width: 48px;
        min-height: 42px;
        font-size: 0.58rem;
        border-radius: 12px;
    }

    .request-map {
        min-height: 320px;
    }
}

/* =========================================================
   SOLICITAÃ‡ÃƒO â€” TELA CHEIA DO MAPA
========================================================= */

body.is-request-map-fullscreen-active {
    overflow: hidden;
}

.request-map-fullscreen-exit {
    display: none;
}

.request-map-panel.is-request-map-fullscreen {
    position: fixed !important;
    inset: 10px !important;
    z-index: 9999 !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: #eef5fb !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42) !important;
}

.request-map-panel.is-request-map-fullscreen .request-map-panel__header {
    display: none;
}

.request-map-panel.is-request-map-fullscreen .request-map {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: none !important;
}

.request-map-panel.is-request-map-fullscreen .leaflet-container {
    border-radius: 24px !important;
}

.request-map-panel.is-request-map-fullscreen .request-map-fullscreen-exit {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10005;
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 86, 166, 0.35);
}

.request-map-panel.is-request-map-fullscreen .request-map-fullscreen-exit svg {
    width: 15px;
    height: 15px;
}

.request-map-panel.is-request-map-fullscreen .request-map-topbar {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10004;
    width: min(560px, calc(100vw - 180px));
    margin: 0;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 10px;
    align-items: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(191, 211, 234, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(7, 42, 83, 0.22);
}

.request-map-panel.is-request-map-fullscreen .request-map-layer-row {
    margin: 0;
}

.request-map-panel.is-request-map-fullscreen .request-map-layer-row label {
    font-size: 0.78rem;
}

.request-map-panel.is-request-map-fullscreen #mapLoadStatus {
    font-size: 0.72rem;
}

.request-map-panel.is-request-map-fullscreen .request-map-search input {
    height: 38px;
    font-size: 0.78rem;
}

.request-map-panel.is-request-map-fullscreen .request-map-search button {
    width: 38px;
    height: 38px;
}

.request-map-panel.is-request-map-fullscreen .request-map-tools--below {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 10004;
    width: auto;
    max-width: calc(100vw - 28px);
    margin: 0;
    padding: 8px;
    transform: translateX(-50%);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(191, 211, 234, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(7, 42, 83, 0.22);
}

.request-map-panel.is-request-map-fullscreen .request-map-tools__title {
    display: none;
}

.request-map-panel.is-request-map-fullscreen .request-map-tools__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.74rem;
}

.request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn svg {
    width: 13px;
    height: 13px;
}

.request-map-panel.is-request-map-fullscreen .request-map-footer {
    position: absolute;
    left: 14px;
    bottom: 74px;
    z-index: 10003;
    margin: 0;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(191, 211, 234, 0.92);
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 800;
    display: inline-flex;
    gap: 12px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px rgba(7, 42, 83, 0.18);
}

.request-map-panel.is-request-map-fullscreen .selected-geo-element {
    position: absolute;
    right: 14px;
    bottom: 74px;
    z-index: 10003;
    max-width: min(420px, calc(100vw - 28px));
    margin: 0;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(191, 211, 234, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px rgba(7, 42, 83, 0.18);
}


/* =========================================================
   SOLICITAÃ‡ÃƒO â€” TELA CHEIA MOBILE
========================================================= */

@media (max-width: 768px) {
    .request-map-panel.is-request-map-fullscreen {
        inset: 5px !important;
        border-radius: 18px !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map,
    .request-map-panel.is-request-map-fullscreen .leaflet-container {
        border-radius: 18px !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-fullscreen-exit {
        top: 10px;
        right: 10px;
        min-height: 36px;
        padding: 0 11px;
        font-size: 0.74rem;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-topbar {
        top: 56px;
        left: 8px;
        right: 8px;
        width: auto;
        padding: 8px;
        grid-template-columns: 1fr;
        gap: 8px;
        border-radius: 18px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-layer-row {
        display: grid;
        gap: 4px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-layer-row label {
        font-size: 0.74rem;
    }

    .request-map-panel.is-request-map-fullscreen #mapLoadStatus {
        font-size: 0.68rem;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-search {
        grid-template-columns: minmax(0, 1fr) 36px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-search input {
        height: 36px;
        font-size: 0.74rem;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-search button {
        width: 36px;
        height: 36px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below {
        left: 8px;
        right: 8px;
        bottom: 10px;
        width: auto;
        max-width: none;
        transform: none;
        padding: 8px;
        border-radius: 18px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools__actions {
        gap: 6px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
        flex: 0 0 54px;
        width: 54px;
        min-height: 46px;
        padding: 4px 3px;
        border-radius: 13px;
        flex-direction: column;
        gap: 3px;
        font-size: 0.62rem;
        white-space: normal;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn svg {
        width: 12px;
        height: 12px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-footer {
        left: 8px;
        right: 8px;
        bottom: 78px;
        width: auto;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 16px;
        font-size: 0.68rem;
    }

    .request-map-panel.is-request-map-fullscreen .selected-geo-element {
        left: 8px;
        right: 8px;
        bottom: 128px;
        max-width: none;
        border-radius: 16px;
        font-size: 0.76rem;
    }
}

@media (max-width: 430px) {
    .request-map-panel.is-request-map-fullscreen .request-map-topbar {
        top: 54px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
        flex: 0 0 50px;
        width: 50px;
        min-height: 44px;
        font-size: 0.58rem;
    }

    .request-map-panel.is-request-map-fullscreen .selected-geo-element {
        bottom: 124px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-footer {
        bottom: 74px;
    }
}

/* =========================================================
   AJUSTE FINAL â€” OUTRO + BOTÃƒO LOCALIZAÃ‡ÃƒO MOBILE
   e-ServiÃ§os Amambai
========================================================= */

/* MantÃ©m o botÃ£o de localizaÃ§Ã£o em uma linha no layout normal */
.location-button {
    white-space: nowrap;
    text-align: center;
}

.location-button svg,
.location-button i {
    flex-shrink: 0;
}


/* =========================================================
   CAMPO "OUTRO" â€” ALINHAMENTO WEB/MOBILE
========================================================= */

.problem-select-option--other {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
}

.problem-select-option--other .problem-select-option__marker {
    grid-column: 1;
    grid-row: 1;
}

.problem-select-option--other .problem-select-option__text {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
}

.problem-select-option--other .problem-select-option__control {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    margin-left: 0;
}

.problem-select-option--other .problem-select-option__input {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   MOBILE â€” AJUSTE DE "OUTRO" E LOCALIZAÃ‡ÃƒO
========================================================= */

@media (max-width: 760px) {
    .problem-select-option--other {
        grid-template-columns: 24px auto minmax(0, 1fr);
        align-items: center;
        column-gap: 9px;
        row-gap: 8px;
    }

    .problem-select-option--other .problem-select-option__marker {
        grid-column: 1;
        grid-row: 1;
    }

    .problem-select-option--other .problem-select-option__text {
        grid-column: 2;
        grid-row: 1;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .problem-select-option--other .problem-select-option__control {
        grid-column: 3;
        grid-row: 1;
        margin-left: 0;
    }

    .problem-select-option--other .problem-select-option__control > i,
    .problem-select-option--other .problem-select-option__control > svg {
        left: 10px;
        width: 15px;
        height: 15px;
    }

    .problem-select-option--other .problem-select-option__input {
        min-height: 38px;
        padding: 7px 4px 7px 32px;
        font-size: 0.86rem;
    }

    .location-button {
        width: fit-content;
        max-width: 100%;
        min-height: 44px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 18px;
        font-size: 0.9rem;
        line-height: 1;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .problem-select-option--other {
        grid-template-columns: 24px auto minmax(0, 1fr);
        column-gap: 8px;
    }

    .problem-select-option--other .problem-select-option__text {
        font-size: 0.88rem;
    }

    .problem-select-option--other .problem-select-option__input {
        font-size: 0.8rem;
        padding-left: 30px;
    }

    .location-button {
        width: 100%;
        max-width: 310px;
        min-height: 42px;
        padding: 0 14px;
        font-size: 0.86rem;
        gap: 7px;
    }

    .location-button svg,
    .location-button i {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 430px) {
    .problem-select-option--other {
        grid-template-columns: 22px auto minmax(0, 1fr);
        column-gap: 7px;
    }

    .problem-select-option--other .problem-select-option__text {
        font-size: 0.84rem;
    }

    .problem-select-option--other .problem-select-option__control > i,
    .problem-select-option--other .problem-select-option__control > svg {
        left: 8px;
        width: 14px;
        height: 14px;
    }

    .problem-select-option--other .problem-select-option__input {
        min-height: 36px;
        padding-left: 27px;
        font-size: 0.76rem;
    }

    .location-button {
        max-width: 292px;
        font-size: 0.82rem;
        padding: 0 12px;
    }
}

@media (max-width: 380px) {
    .location-button {
        max-width: 276px;
        font-size: 0.78rem;
        padding: 0 10px;
        gap: 6px;
    }

    .location-button svg,
    .location-button i {
        width: 15px;
        height: 15px;
    }
}

/* =========================================================
   NOVA SOLICITAÃ‡ÃƒO â€” ORDEM MOBILE INTUITIVA
   Mapa primeiro, dados obrigatÃ³rios abaixo e endereÃ§o oculto
========================================================= */

.request-form--mobile-priority {
    gap: 22px;
}

.request-form__section--first-map {
    border-color: rgba(15, 91, 181, 0.24);
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.request-map-panel--priority {
    margin-bottom: 16px;
}

.request-map-panel__header--simple h3 {
    font-size: 1.18rem;
}

.request-map-panel__header--simple p {
    max-width: 920px;
}

.location-button--map-priority {
    margin-top: 16px;
}

.form-grid--user-required {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--user-required .form-field--full {
    grid-column: 1 / -1;
}

.request-form__section--user-required {
    border-color: rgba(16, 185, 129, 0.22);
}

.request-form__section--user-required .request-form__section-icon {
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
}


/* =========================================================
   LATITUDE / LONGITUDE OCULTAS
   Os campos continuam sendo enviados ao backend.
========================================================= */

input[type="hidden"]#latitude,
input[type="hidden"]#longitude,
input[type="hidden"]#endereco {
    display: none !important;
}


/* =========================================================
   MAPA COMO PRIMEIRO ELEMENTO NO MOBILE
========================================================= */

@media (max-width: 768px) {
    .request-page {
        padding-top: 44px;
    }

    .request-page__header {
        margin-bottom: 22px;
    }

    .request-page__header h1 {
        font-size: clamp(1.85rem, 10vw, 2.55rem);
        line-height: 1.04;
    }

    .request-page__header p {
        font-size: 0.94rem;
        line-height: 1.58;
    }

    .request-form {
        gap: 18px;
    }

    .request-form__section--premium {
        padding: 16px;
        border-radius: 22px;
    }

    .request-form__section-header {
        margin-bottom: 16px;
    }

    .request-form__section-icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .request-form__section-header h2 {
        font-size: 1.12rem;
    }

    .request-form__section-header p {
        font-size: 0.88rem;
        line-height: 1.48;
    }

    .request-map-panel--priority {
        padding: 12px;
        border-radius: 20px;
    }

    .request-map-panel__header--simple {
        margin-bottom: 10px;
    }

    .request-map-panel__header--simple span {
        font-size: 0.72rem;
    }

    .request-map-panel__header--simple h3 {
        font-size: 1rem;
        line-height: 1.22;
    }

    .request-map-panel__header--simple p {
        font-size: 0.84rem;
        line-height: 1.48;
    }

    .request-map {
        min-height: 430px;
        height: 430px;
        border-radius: 18px;
    }

    .request-map-topbar {
        margin: 12px 0 10px;
    }

    .request-map-layer-row {
        padding: 10px 12px;
        border-radius: 16px;
        font-size: 0.78rem;
    }

    #mapLoadStatus {
        font-size: 0.76rem;
    }

    .request-map-tools--below {
        margin-top: 10px;
    }

    .selected-geo-element {
        margin-top: 12px;
        position: relative;
        bottom: auto;
        min-height: 52px;
        padding: 12px 13px;
        border-radius: 16px;
        font-size: 0.84rem;
    }

    .location-button--map-priority {
        width: 100%;
        max-width: none;
        min-height: 48px;
        margin-top: 14px;
        justify-content: center;
        border-radius: 16px;
        white-space: normal;
        line-height: 1.2;
    }

    .form-grid--user-required {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-field__control input,
    .form-field__control textarea {
        min-height: 52px;
    }

    .problem-select-list {
        gap: 10px;
    }

    .problem-select-option {
        min-height: 54px;
    }

    .attachment-field__box {
        border-radius: 18px;
    }
}

@media (max-width: 520px) {
    .request-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .request-form__section--premium {
        padding: 14px;
        border-radius: 20px;
    }

    .request-map-panel--priority {
        padding: 10px;
        border-radius: 18px;
    }

    .request-map {
        min-height: 400px;
        height: 400px;
        border-radius: 16px;
    }

    .request-map-tools--below .map-tool-btn {
        flex: 0 0 56px;
        width: 56px;
        min-height: 48px;
        font-size: 0.6rem;
    }

    .selected-geo-element {
        font-size: 0.8rem;
    }

    .request-lgpd-box {
        padding: 15px;
        border-radius: 18px;
    }

    .request-form__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 390px) {
    .request-map {
        min-height: 370px;
        height: 370px;
    }

    .request-map-tools--below .map-tool-btn {
        flex: 0 0 51px;
        width: 51px;
        min-height: 45px;
        font-size: 0.56rem;
    }
}

/* =========================================================
   AJUSTE FINAL MOBILE â€” NOVA SOLICITAÃ‡ÃƒO / MAPA
   Corrige rolagem lateral, ferramentas em linha Ãºnica
   e marcador da localizaÃ§Ã£o atual em azul
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.request-page,
.request-form,
.request-form__section,
.request-map-panel,
.request-map,
.request-map-topbar,
.request-map-tools--below,
.selected-geo-element {
    max-width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   LOCALIZAÃ‡ÃƒO ATUAL â€” AZUL, NÃƒO VERDE
========================================================= */

.request-map-marker.is-user-location,
.geoportal-marker.is-user-location,
.leaflet-marker-icon.is-user-location .request-map-marker,
.leaflet-marker-icon.is-user-location .geoportal-marker,
.leaflet-marker-icon.user-location-marker .request-map-marker,
.leaflet-marker-icon.user-location-marker .geoportal-marker {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow:
        0 0 0 5px rgba(37, 99, 235, 0.18),
        0 8px 18px rgba(37, 99, 235, 0.32) !important;
}

.request-map-marker.is-user-location svg,
.geoportal-marker.is-user-location svg,
.leaflet-marker-icon.is-user-location svg,
.leaflet-marker-icon.user-location-marker svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}


/* CÃ­rculo de precisÃ£o da localizaÃ§Ã£o atual */
.leaflet-interactive.user-location-accuracy,
.user-location-accuracy {
    stroke: #2563eb !important;
    fill: #2563eb !important;
    fill-opacity: 0.12 !important;
    stroke-opacity: 0.48 !important;
}


/* MantÃ©m o poste/elemento selecionado diferente da localizaÃ§Ã£o */
.request-map-marker.is-selected:not(.is-user-location),
.geoportal-marker.is-selected:not(.is-user-location) {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    box-shadow:
        0 0 0 5px rgba(16, 185, 129, 0.16),
        0 10px 24px rgba(0, 121, 77, 0.30) !important;
}


/* =========================================================
   MOBILE â€” MAPA SEM ESTOURAR A TELA
========================================================= */

@media (max-width: 768px) {
    .request-page {
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: hidden;
    }

    .request-form__section--premium {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        border-radius: 18px;
        overflow: hidden;
    }

    .request-form__section--map {
        overflow: hidden;
    }

    .request-map-panel,
    .request-map-panel--priority {
        width: 100%;
        max-width: 100%;
        padding: 8px;
        border-radius: 18px;
        overflow: hidden;
    }

    .request-map-topbar {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 8px 0;
    }

    .request-map-layer-row {
        width: 100%;
        max-width: 100%;
        padding: 8px 10px;
        border-radius: 14px;
        font-size: 0.72rem;
        overflow: hidden;
    }

    .request-map-layer-row label {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        line-height: 1.25;
    }

    #mapLoadStatus {
        width: 100%;
        max-width: 100%;
        font-size: 0.7rem;
        line-height: 1.25;
        text-align: left;
    }

    .request-map-search {
        width: 100%;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr) 38px;
        gap: 6px;
    }

    .request-map-search input {
        min-width: 0;
        height: 38px;
        font-size: 0.76rem;
    }

    .request-map-search button {
        width: 38px;
        height: 38px;
    }

    .request-map {
        width: 100%;
        max-width: 100%;
        height: 58vh;
        min-height: 350px;
        max-height: 430px;
        border-radius: 16px;
        border-width: 2px;
    }
}


/* =========================================================
   FERRAMENTAS EM UMA ÃšNICA LINHA NO MOBILE
========================================================= */

@media (max-width: 768px) {
    .request-map-tools--below {
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        padding: 7px;
        border-radius: 16px;
        display: block;
        overflow: hidden;
    }

    .request-map-tools__title {
        display: none;
    }

    .request-map-tools__actions {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        align-items: stretch;
        gap: 5px;
        overflow: hidden;
    }

    .request-map-tools--below .map-tool-btn {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: none;
        min-height: 44px;
        padding: 4px 2px;
        border-radius: 12px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 0.56rem;
        line-height: 1.05;
        white-space: normal;
        text-align: center;
    }

    .request-map-tools--below .map-tool-btn svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .request-map-tools--below .map-tool-btn span {
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 390px) {
    .request-map {
        height: 54vh;
        min-height: 330px;
        max-height: 390px;
    }

    .request-map-tools__actions {
        gap: 4px;
    }

    .request-map-tools--below .map-tool-btn {
        min-height: 42px;
        border-radius: 11px;
        font-size: 0.52rem;
    }

    .request-map-tools--below .map-tool-btn svg {
        width: 12px;
        height: 12px;
    }
}


/* =========================================================
   TELA CHEIA MOBILE â€” SEM ROLAGEM DA PÃGINA
========================================================= */

body.is-request-map-fullscreen-active {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    position: fixed;
    inset: 0;
}

@media (max-width: 768px) {
    .request-map-panel.is-request-map-fullscreen {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        background: #08111f !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map,
    .request-map-panel.is-request-map-fullscreen .leaflet-container {
        position: absolute !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: none !important;
        border-radius: 0 !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-topbar {
        left: 8px;
        right: 8px;
        top: 54px;
        width: auto;
        max-width: none;
        border-radius: 16px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        transform: none;
        border-radius: 16px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools__actions {
        flex-wrap: nowrap !important;
        justify-content: space-between;
        gap: 5px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        min-height: 44px;
        font-size: 0.54rem;
    }

    .request-map-panel.is-request-map-fullscreen .selected-geo-element {
        left: 8px;
        right: 8px;
        bottom: 66px;
        max-width: none;
        border-radius: 15px;
        font-size: 0.75rem;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-footer {
        display: none;
    }
}

/* =========================================================
   AJUSTE FINAL â€” MAPA MOBILE / NOVA SOLICITAÃ‡ÃƒO
   - Evita rolagem lateral
   - MantÃ©m ferramentas em uma Ãºnica linha
   - LocalizaÃ§Ã£o atual azul
   - Local do serviÃ§o em dourado/laranja
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.request-page,
.request-form,
.request-form__section,
.request-map-panel,
.request-map,
.request-map-topbar,
.request-map-tools--below,
.selected-geo-element {
    max-width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   MARCADOR â€” LOCALIZAÃ‡ÃƒO ATUAL DO USUÃRIO
   Azul para nÃ£o confundir com poste selecionado
========================================================= */

.request-map-marker.is-user-location,
.geoportal-marker.is-user-location,
.leaflet-marker-icon.is-user-location .request-map-marker,
.leaflet-marker-icon.is-user-location .geoportal-marker,
.leaflet-marker-icon.user-location-marker .request-map-marker,
.leaflet-marker-icon.user-location-marker .geoportal-marker {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow:
        0 0 0 5px rgba(37, 99, 235, 0.18),
        0 8px 18px rgba(37, 99, 235, 0.32) !important;
}

.request-map-marker.is-user-location svg,
.geoportal-marker.is-user-location svg,
.leaflet-marker-icon.is-user-location svg,
.leaflet-marker-icon.user-location-marker svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}


/* CÃ­rculo de precisÃ£o da localizaÃ§Ã£o atual */
.leaflet-interactive.user-location-accuracy,
.user-location-accuracy {
    stroke: #2563eb !important;
    fill: #2563eb !important;
    fill-opacity: 0.12 !important;
    stroke-opacity: 0.48 !important;
}


/* =========================================================
   MARCADOR â€” LOCAL DO SERVIÃ‡O MARCADO NO MAPA
   Dourado/laranja para diferenciar de localizaÃ§Ã£o e poste
========================================================= */

.request-map-marker.is-service-location,
.geoportal-marker.is-service-location,
.leaflet-marker-icon.service-location-marker .request-map-marker,
.leaflet-marker-icon.service-location-marker .geoportal-marker {
    width: 34px !important;
    height: 34px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #111827 !important;
    border: 2px solid #ffffff !important;
    box-shadow:
        0 0 0 5px rgba(245, 158, 11, 0.18),
        0 10px 24px rgba(217, 119, 6, 0.34) !important;
}

.request-map-marker.is-service-location svg,
.geoportal-marker.is-service-location svg,
.leaflet-marker-icon.service-location-marker svg {
    color: #111827 !important;
    stroke: #111827 !important;
}


/* Poste/elemento selecionado continua verde */
.request-map-marker.is-selected:not(.is-user-location):not(.is-service-location),
.geoportal-marker.is-selected:not(.is-user-location):not(.is-service-location) {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    color: #ffffff !important;
    box-shadow:
        0 0 0 5px rgba(16, 185, 129, 0.16),
        0 10px 24px rgba(0, 121, 77, 0.30) !important;
}


/* =========================================================
   MOBILE â€” EVITA ESTOURAR A TELA
========================================================= */

@media (max-width: 768px) {
    .request-page {
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: hidden;
    }

    .request-form {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .request-form__section--premium {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        border-radius: 18px;
        overflow: hidden;
    }

    .request-form__section--map {
        overflow: hidden;
    }

    .request-map-panel,
    .request-map-panel--priority {
        width: 100%;
        max-width: 100%;
        padding: 8px;
        border-radius: 18px;
        overflow: hidden;
    }

    .request-map-topbar {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 8px 0;
    }

    .request-map-layer-row {
        width: 100%;
        max-width: 100%;
        padding: 8px 10px;
        border-radius: 14px;
        font-size: 0.72rem;
        overflow: hidden;
    }

    .request-map-layer-row label {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        line-height: 1.25;
    }

    #mapLoadStatus {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        font-size: 0.7rem;
        line-height: 1.25;
        text-align: left;
    }

    .request-map-search {
        width: 100%;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr) 38px;
        gap: 6px;
    }

    .request-map-search input {
        min-width: 0;
        height: 38px;
        font-size: 0.76rem;
    }

    .request-map-search button {
        width: 38px;
        height: 38px;
    }

    .request-map {
        width: 100%;
        max-width: 100%;
        height: 56vh;
        min-height: 340px;
        max-height: 420px;
        border-radius: 16px;
        border-width: 2px;
    }
}


/* =========================================================
   FERRAMENTAS EM UMA ÃšNICA LINHA NO MOBILE
========================================================= */

@media (max-width: 768px) {
    .request-map-tools--below {
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        padding: 7px;
        border-radius: 16px;
        display: block !important;
        overflow: hidden;
    }

    .request-map-tools__title {
        display: none !important;
    }

    .request-map-tools__actions {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        align-items: stretch;
        gap: 5px;
        overflow: hidden;
    }

    .request-map-tools--below .map-tool-btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 44px;
        padding: 4px 2px;
        border-radius: 12px;
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 0.56rem;
        line-height: 1.05;
        white-space: normal;
        text-align: center;
    }

    .request-map-tools--below .map-tool-btn svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .request-map-tools--below .map-tool-btn span {
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 390px) {
    .request-map {
        height: 52vh;
        min-height: 320px;
        max-height: 380px;
    }

    .request-map-tools__actions {
        gap: 4px;
    }

    .request-map-tools--below .map-tool-btn {
        min-height: 41px;
        border-radius: 11px;
        font-size: 0.5rem;
    }

    .request-map-tools--below .map-tool-btn svg {
        width: 12px;
        height: 12px;
    }
}


/* =========================================================
   SELEÃ‡ÃƒO DO LOCAL â€” CARD ABAIXO DO MAPA
========================================================= */

@media (max-width: 768px) {
    .selected-geo-element {
        position: relative;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        padding: 11px 12px;
        border-radius: 15px;
        font-size: 0.78rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .selected-geo-element span {
        min-width: 0;
    }
}


/* =========================================================
   TELA CHEIA MOBILE â€” SEM ROLAGEM DA PÃGINA
========================================================= */

body.is-request-map-fullscreen-active {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    position: fixed;
    inset: 0;
}

@media (max-width: 768px) {
    .request-map-panel.is-request-map-fullscreen {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        background: #08111f !important;
        z-index: 9999 !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map,
    .request-map-panel.is-request-map-fullscreen .leaflet-container {
        position: absolute !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: none !important;
        border-radius: 0 !important;
        border: 0 !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-topbar {
        left: 8px;
        right: 8px;
        top: 54px;
        width: auto;
        max-width: none;
        border-radius: 16px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: none;
        transform: none;
        border-radius: 16px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools__actions {
        flex-wrap: nowrap !important;
        justify-content: space-between;
        gap: 5px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 44px;
        font-size: 0.52rem;
    }

    .request-map-panel.is-request-map-fullscreen .selected-geo-element {
        left: 8px;
        right: 8px;
        bottom: 66px;
        max-width: none;
        border-radius: 15px;
        font-size: 0.74rem;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-footer {
        display: none;
    }
}

/* =========================================================
   NOVA SOLICITAÃ‡ÃƒO â€” MAPA OCULTO + TELA CHEIA MOBILE
   Ajuste final para novo.html/nova.html
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.request-page,
.request-form,
.request-form__section,
.request-map-panel,
.request-map,
.request-map-topbar,
.request-map-tools--below,
.selected-geo-element {
    max-width: 100%;
    box-sizing: border-box;
}

.request-map-panel--fullscreen-only[hidden] {
    display: none !important;
}


/* =========================================================
   BOTÃƒO LOCAL DO SERVIÃ‡O
========================================================= */

.btn-local-servico-fullscreen {
    width: 100%;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 91, 181, 0.20);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.14), transparent 36%),
        linear-gradient(135deg, #ffffff, #eef6ff);
    color: var(--color-primary-deep);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    box-shadow:
        0 14px 34px rgba(7, 42, 83, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.btn-local-servico-fullscreen:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 91, 181, 0.34);
    box-shadow:
        0 18px 42px rgba(7, 42, 83, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.btn-local-servico-fullscreen__icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    box-shadow: 0 12px 24px rgba(7, 42, 83, 0.20);
}

.btn-local-servico-fullscreen__icon svg {
    width: 23px;
    height: 23px;
}

.btn-local-servico-fullscreen__text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.btn-local-servico-fullscreen__text strong {
    color: var(--color-primary-deep);
    font-size: 1rem;
    font-weight: 950;
}

.btn-local-servico-fullscreen__text small {
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.btn-local-servico-fullscreen__arrow {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background: rgba(15, 91, 181, 0.08);
}

.btn-local-servico-fullscreen__arrow svg {
    width: 19px;
    height: 19px;
}

.selected-geo-element--outside {
    position: relative;
    bottom: auto;
    margin-top: 12px;
}


/* =========================================================
   TELA CHEIA DO MAPA
========================================================= */

body.is-request-map-fullscreen-active {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    position: fixed;
    inset: 0;
}

.request-map-panel.is-request-map-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #08111f !important;
    box-shadow: none !important;
}

.request-map-panel.is-request-map-fullscreen .request-map {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.request-map-panel.is-request-map-fullscreen .leaflet-container {
    border-radius: 0 !important;
}

.request-map-fullscreen-topbar {
    display: none;
}

.request-map-panel.is-request-map-fullscreen .request-map-fullscreen-topbar {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 10px;
    right: 10px;
    z-index: 10010;
    min-height: 48px;
    padding: 7px 9px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(191, 211, 234, 0.90);
    display: flex;
    align-items: center;
    gap: 10px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 38px rgba(7, 42, 83, 0.24);
}

.request-map-fullscreen-close {
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-weight: 900;
    font-size: 0.78rem;
}

.request-map-fullscreen-close svg {
    width: 16px;
    height: 16px;
}

.request-map-fullscreen-title {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.request-map-fullscreen-title strong {
    color: var(--color-primary-deep);
    font-size: 0.88rem;
    font-weight: 950;
}

.request-map-fullscreen-title small {
    color: var(--color-muted);
    font-size: 0.7rem;
    line-height: 1.25;
}


/* =========================================================
   TOPBAR INTERNA DO MAPA EM TELA CHEIA
========================================================= */

.request-map-panel.is-request-map-fullscreen .request-map-topbar {
    position: absolute;
    top: calc(70px + env(safe-area-inset-top, 0px));
    left: 10px;
    right: 10px;
    z-index: 10008;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(191, 211, 234, 0.90);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 38px rgba(7, 42, 83, 0.22);
}

.request-map-panel.is-request-map-fullscreen .request-map-layer-row {
    margin: 0;
    padding: 7px 9px;
    border-radius: 13px;
    font-size: 0.7rem;
}

.request-map-panel.is-request-map-fullscreen #mapLoadStatus {
    font-size: 0.68rem;
    line-height: 1.22;
}

.request-map-panel.is-request-map-fullscreen .request-map-search {
    grid-template-columns: minmax(0, 1fr) 36px;
}

.request-map-panel.is-request-map-fullscreen .request-map-search input {
    height: 36px;
    font-size: 0.72rem;
}

.request-map-panel.is-request-map-fullscreen .request-map-search button {
    width: 36px;
    height: 36px;
}


/* =========================================================
   FERRAMENTAS â€” UMA ÃšNICA LINHA
========================================================= */

.request-map-panel.is-request-map-fullscreen .request-map-tools--below {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 10009;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 7px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(191, 211, 234, 0.90);
    display: block !important;
    transform: none;
    overflow: hidden;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 38px rgba(7, 42, 83, 0.24);
}

.request-map-panel.is-request-map-fullscreen .request-map-tools__title {
    display: none !important;
}

.request-map-panel.is-request-map-fullscreen .request-map-tools__actions {
    width: 100%;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: stretch;
    gap: 5px;
}

.request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px;
    padding: 4px 2px;
    border-radius: 12px;
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.54rem;
    line-height: 1.05;
    white-space: normal;
    text-align: center;
}

.request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn span {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.request-map-panel.is-request-map-fullscreen .request-map-footer {
    display: none !important;
}


/* =========================================================
   LOCALIZAÃ‡ÃƒO ATUAL â€” ROXO
========================================================= */

.request-map-marker.is-user-location,
.geoportal-marker.is-user-location,
.leaflet-marker-icon.user-location-marker .request-map-marker,
.leaflet-marker-icon.user-location-marker .geoportal-marker {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow:
        0 0 0 6px rgba(124, 58, 237, 0.20),
        0 10px 24px rgba(109, 40, 217, 0.36) !important;
}

.request-map-marker.is-user-location svg,
.geoportal-marker.is-user-location svg,
.leaflet-marker-icon.user-location-marker svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.leaflet-interactive.user-location-accuracy,
.user-location-accuracy {
    stroke: #7c3aed !important;
    fill: #7c3aed !important;
    fill-opacity: 0.12 !important;
    stroke-opacity: 0.55 !important;
}


/* =========================================================
   LOCAL DO SERVIÃ‡O â€” DOURADO/LARANJA
========================================================= */

.request-map-marker.is-service-location,
.geoportal-marker.is-service-location,
.leaflet-marker-icon.service-location-marker .request-map-marker,
.leaflet-marker-icon.service-location-marker .geoportal-marker {
    width: 34px !important;
    height: 34px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #111827 !important;
    border: 2px solid #ffffff !important;
    box-shadow:
        0 0 0 5px rgba(245, 158, 11, 0.20),
        0 10px 24px rgba(217, 119, 6, 0.34) !important;
}

.request-map-marker.is-service-location svg,
.geoportal-marker.is-service-location svg,
.leaflet-marker-icon.service-location-marker svg {
    color: #111827 !important;
    stroke: #111827 !important;
}


/* =========================================================
   POSTE / ELEMENTO SELECIONADO â€” VERDE
========================================================= */

.request-map-marker.is-selected:not(.is-user-location):not(.is-service-location),
.geoportal-marker.is-selected:not(.is-user-location):not(.is-service-location) {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    color: #ffffff !important;
    box-shadow:
        0 0 0 5px rgba(16, 185, 129, 0.16),
        0 10px 24px rgba(0, 121, 77, 0.30) !important;
}


/* =========================================================
   MOBILE â€” BOTÃƒO LOCAL DO SERVIÃ‡O
========================================================= */

@media (max-width: 768px) {
    .request-page {
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: hidden;
    }

    .request-form {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .request-form__section--premium {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        border-radius: 18px;
        overflow: hidden;
    }

    .request-form__section--map {
        overflow: hidden;
    }

    .btn-local-servico-fullscreen {
        min-height: 72px;
        padding: 12px;
        border-radius: 20px;
        gap: 11px;
    }

    .btn-local-servico-fullscreen__icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .btn-local-servico-fullscreen__text strong {
        font-size: 0.94rem;
    }

    .btn-local-servico-fullscreen__text small {
        font-size: 0.78rem;
    }

    .selected-geo-element--outside {
        font-size: 0.8rem;
        border-radius: 15px;
        padding: 12px;
    }
}

@media (max-width: 390px) {
    .request-map-panel.is-request-map-fullscreen .request-map-tools__actions {
        gap: 4px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
        min-height: 41px;
        border-radius: 11px;
        font-size: 0.5rem;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* =========================================================
   MAPA TELA CHEIA â€” REMOVE BARRA DE CAMADA/BUSCA
========================================================= */

.request-map-panel.is-request-map-fullscreen .request-map-topbar,
.request-map-topbar,
.request-map-layer-row,
.request-map-search {
    display: none !important;
}

/* =========================================================
   NOVA SOLICITAÃ‡ÃƒO â€” DESTAQUE PREMIUM DO LOCAL DO SERVIÃ‡O
   BotÃ£o principal para abrir mapa em tela cheia
========================================================= */

.local-servico-callout {
    position: relative;
    width: 100%;
    margin: 4px 0 16px;
    padding: 18px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.16), transparent 34%),
        linear-gradient(135deg, #eef6ff 0%, #ffffff 72%);
    border: 1px solid rgba(15, 91, 181, 0.22);
    box-shadow:
        0 16px 36px rgba(7, 42, 83, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    overflow: hidden;
}

.local-servico-callout::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #0f5bb5, #073f7d);
    border-radius: 999px;
}

.local-servico-callout__icon {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0f5bb5, #073f7d);
    box-shadow:
        0 12px 26px rgba(7, 42, 83, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.local-servico-callout__icon svg {
    width: 22px;
    height: 22px;
}

.local-servico-callout__content {
    min-width: 0;
}

.local-servico-callout__content span {
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #073f7d;
    background: rgba(15, 91, 181, 0.10);
    border: 1px solid rgba(15, 91, 181, 0.14);
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.local-servico-callout__content strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary-deep);
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.2;
}

.local-servico-callout__content p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}


/* =========================================================
   BOTÃƒO DESTACADO â€” ABRIR MAPA
========================================================= */

.btn-local-servico-fullscreen,
.btn-local-servico-fullscreen--featured {
    position: relative;
    width: 100%;
    min-height: 86px;
    padding: 16px 18px;
    border: 0;
    border-radius: 26px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    color: #ffffff;
    background:
        radial-gradient(circle at 92% 15%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, #0f5bb5 0%, #073f7d 56%, #042d5c 100%);
    box-shadow:
        0 22px 48px rgba(7, 42, 83, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    overflow: hidden;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.btn-local-servico-fullscreen::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.btn-local-servico-fullscreen::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -92px;
    top: -84px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.btn-local-servico-fullscreen:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 26px 56px rgba(7, 42, 83, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-local-servico-fullscreen:focus-visible {
    outline: 4px solid rgba(15, 91, 181, 0.26);
    outline-offset: 4px;
}

.btn-local-servico-fullscreen__pulse {
    position: relative;
    z-index: 2;
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #073f7d;
    background: #ffffff;
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.16),
        0 0 0 7px rgba(255, 255, 255, 0.14);
}

.btn-local-servico-fullscreen__pulse::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.34);
    animation: localServicoPulse 1.8s ease-in-out infinite;
}

.btn-local-servico-fullscreen__pulse svg {
    width: 25px;
    height: 25px;
    stroke-width: 2.5;
}

@keyframes localServicoPulse {
    0% {
        transform: scale(0.94);
        opacity: 0.95;
    }

    70% {
        transform: scale(1.12);
        opacity: 0;
    }

    100% {
        transform: scale(1.12);
        opacity: 0;
    }
}

.btn-local-servico-fullscreen__text {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 5px;
    min-width: 0;
}

.btn-local-servico-fullscreen__text strong {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.15;
}

.btn-local-servico-fullscreen__text small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 700;
}

.btn-local-servico-fullscreen__badge {
    position: relative;
    z-index: 2;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #073f7d;
    background: #ffffff;
    font-size: 0.76rem;
    font-weight: 950;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.btn-local-servico-fullscreen__arrow {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-local-servico-fullscreen__arrow svg {
    width: 20px;
    height: 20px;
}


/* =========================================================
   CARD DE LOCAL SELECIONADO
========================================================= */

.selected-geo-element--outside {
    position: relative;
    bottom: auto;
    margin-top: 14px;
    border-radius: 22px;
    border-color: rgba(15, 91, 181, 0.18);
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.08), transparent 34%),
        #ffffff;
}

.selected-geo-element--outside.is-selected,
.selected-geo-element--outside.has-selected,
.selected-geo-element--outside.active {
    border-color: rgba(16, 185, 129, 0.34);
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 34%),
        #ecfdf5;
}


/* =========================================================
   MOBILE â€” DESTAQUE LOCAL DO SERVIÃ‡O
========================================================= */

@media (max-width: 768px) {
    .local-servico-callout {
        padding: 15px;
        border-radius: 20px;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
    }

    .local-servico-callout__icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .local-servico-callout__icon svg {
        width: 20px;
        height: 20px;
    }

    .local-servico-callout__content span {
        min-height: 26px;
        font-size: 0.66rem;
    }

    .local-servico-callout__content strong {
        font-size: 0.98rem;
    }

    .local-servico-callout__content p {
        font-size: 0.86rem;
        line-height: 1.48;
    }

    .btn-local-servico-fullscreen,
    .btn-local-servico-fullscreen--featured {
        min-height: 82px;
        padding: 13px;
        border-radius: 22px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 11px;
    }

    .btn-local-servico-fullscreen__pulse {
        width: 48px;
        height: 48px;
        border-radius: 18px;
    }

    .btn-local-servico-fullscreen__pulse svg {
        width: 22px;
        height: 22px;
    }

    .btn-local-servico-fullscreen__text strong {
        font-size: 0.96rem;
    }

    .btn-local-servico-fullscreen__text small {
        font-size: 0.78rem;
    }

    .btn-local-servico-fullscreen__badge {
        grid-column: 2 / 4;
        width: fit-content;
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .btn-local-servico-fullscreen__arrow {
        width: 34px;
        height: 34px;
    }

    .selected-geo-element--outside {
        padding: 12px;
        border-radius: 17px;
        font-size: 0.8rem;
    }
}

@media (max-width: 420px) {
    .local-servico-callout {
        grid-template-columns: 1fr;
    }

    .local-servico-callout__icon {
        display: none;
    }

    .btn-local-servico-fullscreen,
    .btn-local-servico-fullscreen--featured {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .btn-local-servico-fullscreen__arrow {
        display: none;
    }

    .btn-local-servico-fullscreen__badge {
        grid-column: 1 / -1;
        margin-left: 60px;
    }
}

/* =========================================================
   RESPONSIVIDADE AUTOMÃTICA â€” WEB / TABLET / MOBILE
   e-ServiÃ§os Amambai â€” nova.html
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.request-page,
.request-form,
.request-form__section,
.request-form__section--premium,
.local-servico-callout,
.btn-local-servico-fullscreen,
.selected-geo-element,
.request-lgpd-box,
.attachment-field,
.attachment-field__box {
    max-width: 100%;
}


/* =========================================================
   DESKTOP â€” TELAS GRANDES
========================================================= */

@media (min-width: 1025px) {
    .request-page {
        width: min(1180px, calc(100% - 44px));
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .request-page__header {
        max-width: 900px;
    }

    .request-form {
        gap: 26px;
    }

    .request-form__section--premium {
        padding: 30px;
        border-radius: 30px;
    }

    .request-form__section-header {
        align-items: center;
    }

    .form-grid--user-required {
        grid-template-columns: 1.3fr 0.85fr 0.85fr;
    }

    .form-grid--user-required .form-field--full {
        grid-column: auto;
    }

    .local-servico-callout {
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 20px;
    }

    .btn-local-servico-fullscreen,
    .btn-local-servico-fullscreen--featured {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        min-height: 88px;
    }

    .attachment-field__box {
        grid-template-columns: auto 1fr auto;
        text-align: left;
        justify-items: stretch;
    }
}


/* =========================================================
   TABLET / NOTEBOOK PEQUENO
========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {
    .request-page {
        width: min(100% - 32px, 980px);
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .request-form {
        gap: 22px;
    }

    .request-form__section--premium {
        padding: 24px;
        border-radius: 26px;
    }

    .form-grid,
    .form-grid--user-required {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid--user-required .form-field--full {
        grid-column: 1 / -1;
    }

    .local-servico-callout {
        grid-template-columns: 50px minmax(0, 1fr);
        padding: 18px;
    }

    .btn-local-servico-fullscreen,
    .btn-local-servico-fullscreen--featured {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .btn-local-servico-fullscreen__badge {
        grid-column: 2 / 4;
        width: fit-content;
    }
}


/* =========================================================
   MOBILE â€” CELULARES
========================================================= */

@media (max-width: 768px) {
    .request-page {
        width: 100%;
        padding: 42px 10px 52px;
    }

    .request-page__header {
        margin-bottom: 22px;
    }

    .request-page__header h1 {
        font-size: clamp(1.85rem, 10vw, 2.55rem);
        line-height: 1.04;
        letter-spacing: -0.035em;
    }

    .request-page__header p {
        font-size: 0.94rem;
        line-height: 1.58;
    }

    .request-back {
        margin-bottom: 18px;
    }

    .request-form {
        gap: 18px;
        width: 100%;
        overflow-x: hidden;
    }

    .request-form__section--premium {
        width: 100%;
        padding: 14px;
        border-radius: 20px;
        overflow: hidden;
    }

    .request-form__section-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .request-form__section-icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .request-form__section-header h2 {
        font-size: 1.12rem;
    }

    .request-form__section-header p {
        font-size: 0.88rem;
        line-height: 1.48;
    }

    .form-grid,
    .form-grid--user-required {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-field--full,
    .form-grid--user-required .form-field--full {
        grid-column: 1 / -1;
    }

    .form-field__control input,
    .form-field__control textarea {
        min-height: 52px;
        font-size: 0.94rem;
    }

    .form-field label {
        font-size: 0.88rem;
    }

    .local-servico-callout {
        margin-top: 0;
        padding: 15px;
        border-radius: 20px;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
    }

    .local-servico-callout__icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .local-servico-callout__content span {
        min-height: 25px;
        padding: 0 9px;
        font-size: 0.66rem;
    }

    .local-servico-callout__content strong {
        font-size: 0.98rem;
    }

    .local-servico-callout__content p {
        font-size: 0.86rem;
        line-height: 1.48;
    }

    .btn-local-servico-fullscreen,
    .btn-local-servico-fullscreen--featured {
        min-height: 82px;
        padding: 13px;
        border-radius: 22px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 11px;
    }

    .btn-local-servico-fullscreen__pulse {
        width: 48px;
        height: 48px;
        border-radius: 18px;
    }

    .btn-local-servico-fullscreen__pulse svg {
        width: 22px;
        height: 22px;
    }

    .btn-local-servico-fullscreen__text strong {
        font-size: 0.96rem;
    }

    .btn-local-servico-fullscreen__text small {
        font-size: 0.78rem;
    }

    .btn-local-servico-fullscreen__badge {
        grid-column: 2 / 4;
        width: fit-content;
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .btn-local-servico-fullscreen__arrow {
        width: 34px;
        height: 34px;
    }

    .selected-geo-element--outside {
        padding: 12px;
        border-radius: 17px;
        font-size: 0.8rem;
        overflow-wrap: anywhere;
    }

    .problem-select-list {
        padding: 10px;
        gap: 10px;
        border-radius: 18px;
    }

    .problem-select-option {
        min-height: 54px;
        padding: 13px 14px;
        border-radius: 14px;
    }

    .problem-select-option__text {
        font-size: 0.9rem;
    }

    .problem-select-option--other {
        grid-template-columns: 24px auto minmax(0, 1fr);
        gap: 8px;
    }

    .problem-select-option--other .problem-select-option__input {
        font-size: 0.82rem;
    }

    .attachment-field__box {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 13px;
        padding: 16px;
        border-radius: 18px;
    }

    .attachment-field__content {
        justify-items: center;
    }

    .attachment-field__button {
        width: 100%;
        min-height: 42px;
    }

    .request-lgpd-box {
        flex-direction: column;
        padding: 15px;
        border-radius: 18px;
    }

    .request-form__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .request-form__actions .btn {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================
   MOBILE PEQUENO
========================================================= */

@media (max-width: 420px) {
    .request-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .request-form__section--premium {
        padding: 12px;
        border-radius: 18px;
    }

    .local-servico-callout {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .local-servico-callout__icon {
        display: none;
    }

    .btn-local-servico-fullscreen,
    .btn-local-servico-fullscreen--featured {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 78px;
    }

    .btn-local-servico-fullscreen__arrow {
        display: none;
    }

    .btn-local-servico-fullscreen__badge {
        grid-column: 1 / -1;
        margin-left: 60px;
    }

    .btn-local-servico-fullscreen__text strong {
        font-size: 0.9rem;
    }

    .btn-local-servico-fullscreen__text small {
        font-size: 0.72rem;
    }

    .problem-select-option--other {
        grid-template-columns: 22px auto minmax(0, 1fr);
        column-gap: 7px;
    }

    .problem-select-option--other .problem-select-option__text {
        font-size: 0.82rem;
    }
}


/* =========================================================
   TELA CHEIA DO MAPA â€” DESKTOP
========================================================= */

@media (min-width: 1025px) {
    body.is-request-map-fullscreen-active {
        overflow: hidden !important;
        position: static !important;
    }

    body.is-request-map-fullscreen-active::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(3, 18, 36, 0.72);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .request-map-panel.is-request-map-fullscreen {
        position: fixed !important;
        top: 28px !important;
        bottom: 28px !important;
        left: max(28px, calc((100vw - 1280px) / 2)) !important;
        right: max(28px, calc((100vw - 1280px) / 2)) !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 30px !important;
        overflow: hidden !important;
        z-index: 9999 !important;
        background: #08111f !important;
        box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46) !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map,
    .request-map-panel.is-request-map-fullscreen .leaflet-container {
        border-radius: 30px !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-fullscreen-topbar {
        top: 16px;
        left: 16px;
        right: 16px;
        width: min(620px, calc(100% - 32px));
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below {
        left: 50%;
        right: auto;
        bottom: 18px;
        width: min(760px, calc(100% - 36px));
        transform: translateX(-50%);
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
        min-height: 46px;
        font-size: 0.78rem;
        flex-direction: row;
        gap: 7px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn svg {
        width: 16px;
        height: 16px;
    }
}


/* =========================================================
   TELA CHEIA DO MAPA â€” TABLET
========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {
    body.is-request-map-fullscreen-active {
        overflow: hidden !important;
        position: static !important;
    }

    body.is-request-map-fullscreen-active::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(3, 18, 36, 0.65);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .request-map-panel.is-request-map-fullscreen {
        position: fixed !important;
        inset: 14px !important;
        width: auto !important;
        height: auto !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        z-index: 9999 !important;
        background: #08111f !important;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42) !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map,
    .request-map-panel.is-request-map-fullscreen .leaflet-container {
        border-radius: 24px !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
        min-height: 44px;
        font-size: 0.7rem;
    }
}


/* =========================================================
   TELA CHEIA DO MAPA â€” MOBILE REAL
========================================================= */

@media (max-width: 768px) {
    body.is-request-map-fullscreen-active {
        width: 100%;
        height: 100%;
        overflow: hidden !important;
        position: fixed !important;
        inset: 0;
    }

    .request-map-panel.is-request-map-fullscreen {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        background: #08111f !important;
        z-index: 9999 !important;
        box-shadow: none !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map,
    .request-map-panel.is-request-map-fullscreen .leaflet-container {
        position: absolute !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: none !important;
        border-radius: 0 !important;
        border: 0 !important;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-fullscreen-topbar {
        top: calc(10px + env(safe-area-inset-top, 0px));
        left: 10px;
        right: 10px;
        width: auto;
        border-radius: 18px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below {
        left: 8px;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
        transform: none;
        border-radius: 16px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools__actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        gap: 5px;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 44px;
        padding: 4px 2px;
        border-radius: 12px;
        flex-direction: column;
        gap: 3px;
        font-size: 0.54rem;
        line-height: 1.05;
    }

    .request-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn svg {
        width: 13px;
        height: 13px;
    }
}

/* =========================================================
   MAPA TELA CHEIA â€” BOTÃƒO CONFIRMAR LOCAL
========================================================= */

.request-map-confirm {
    position: absolute;
    left: 50%;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    z-index: 10011;
    width: min(620px, calc(100% - 24px));
    transform: translateX(-50%);
    padding: 9px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(191, 211, 234, 0.92);
    display: grid;
    gap: 5px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 38px rgba(7, 42, 83, 0.24);
}

.request-map-confirm__btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #047857);
    font-size: 0.9rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow:
        0 12px 24px rgba(4, 120, 87, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        opacity 0.2s ease;
}

.request-map-confirm__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.request-map-confirm__btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    filter: grayscale(0.15);
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: none;
}

.request-map-confirm__btn svg {
    width: 19px;
    height: 19px;
}

.request-map-confirm small {
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

.request-map-confirm.has-selection {
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow:
        0 16px 38px rgba(4, 120, 87, 0.18),
        0 0 0 4px rgba(16, 185, 129, 0.10);
}

@media (max-width: 768px) {
    .request-map-confirm {
        left: 8px;
        right: 8px;
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        width: auto;
        transform: none;
        padding: 7px;
        border-radius: 16px;
    }

    .request-map-confirm__btn {
        min-height: 44px;
        border-radius: 13px;
        font-size: 0.82rem;
    }

    .request-map-confirm small {
        font-size: 0.66rem;
    }
}

@media (max-width: 390px) {
    .request-map-confirm {
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    }

    .request-map-confirm__btn {
        min-height: 41px;
        font-size: 0.76rem;
    }
}

/* =========================================================
   NOVA SOLICITAÃ‡ÃƒO â€” BOTÃƒO CONFIRMAR DENTRO DO POPUP
========================================================= */

.map-popup--request {
    min-width: 170px;
}

.map-popup__actions--request {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.map-popup__confirm-local {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow:
        0 10px 20px rgba(4, 120, 87, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease;
}

.map-popup__confirm-local:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow:
        0 12px 24px rgba(4, 120, 87, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.map-popup__confirm-local svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

@media (max-width: 768px) {
    .map-popup--request {
        min-width: 160px;
    }

    .map-popup__confirm-local {
        min-height: 40px;
        font-size: 0.76rem;
    }
}

/* =========================================================
   NOVA SOLICITAÃ‡ÃƒO â€” BOTÃƒO CONFIRMAR NO POPUP DO POSTE
========================================================= */

#requestMap .leaflet-popup-content .map-popup__actions--request,
.request-map-panel .leaflet-popup-content .map-popup__actions--request {
    margin-top: 10px !important;
    display: grid !important;
    gap: 8px !important;
}

#requestMap .leaflet-popup-content .map-popup__confirm-local,
.request-map-panel .leaflet-popup-content .map-popup__confirm-local {
    width: 100% !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    cursor: pointer !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981, #047857) !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    box-shadow:
        0 10px 20px rgba(4, 120, 87, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

#requestMap .leaflet-popup-content .map-popup__confirm-local svg,
.request-map-panel .leaflet-popup-content .map-popup__confirm-local svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2.5 !important;
}

/* =========================================================
   BOTÃƒO CONFIRMAR NO POPUP DO MAPA â€” NOVA SOLICITAÃ‡ÃƒO
========================================================= */

.leaflet-popup-content .map-popup__actions--request {
    margin-top: 10px !important;
    display: grid !important;
    gap: 8px !important;
}

.leaflet-popup-content .map-popup__confirm-local {
    width: 100% !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    cursor: pointer !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981, #047857) !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    box-shadow:
        0 10px 20px rgba(4, 120, 87, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.leaflet-popup-content .map-popup__confirm-local:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.leaflet-popup-content .map-popup__confirm-local svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2.5 !important;
}

/* =========================================================
   POPUP DOS POSTES - ILUMINAÃ‡ÃƒO PÃšBLICA
========================================================= */

.leaflet-popup.poste-popup .leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.leaflet-popup.poste-popup .leaflet-popup-content {
    margin: 16px;
    min-width: 190px;
}

.poste-popup-card {
    font-family: "Inter", "Montserrat", Arial, sans-serif;
}

.poste-popup-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #005ca8;
    margin-bottom: 8px;
}

.poste-popup-number {
    font-size: 1.35rem;
    font-weight: 900;
    color: #10233f;
    line-height: 1.1;
    margin-bottom: 6px;
}

.poste-popup-id {
    font-size: 0.9rem;
    font-weight: 600;
    color: #516174;
    margin-bottom: 14px;
}

.btn-confirmar-poste {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: linear-gradient(135deg, #005ca8 0%, #004b8d 100%);
    color: #ffffff !important;

    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;

    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 92, 168, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-confirmar-poste span,
.btn-confirmar-poste i,
.btn-confirmar-poste svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.btn-confirmar-poste svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.btn-confirmar-poste:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 92, 168, 0.34);
}

.btn-confirmar-poste:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 92, 168, 0.25);
}

.protocol-page--custom {
    --protocol-hero-image: url("../../img/identidade/identidade3.png");
}

/* =========================================================
   PROTOCOLO DE SERVIÃ‡O â€” FORMULÃRIO SIMPLES
   Reparo de via urbana / lotes sujos / descarte irregular
   ========================================================= */

.protocol-service-location-box {
    margin-top: 18px;
}

.protocol-service-location-actions {
    margin-top: 12px;
}

.protocol-service-location-feedback {
    margin-top: 10px;
}

.protocol-service-location-actions .btn {
    width: fit-content;
}

@media (max-width: 768px) {
    .protocol-service-location-actions .btn {
        width: 100%;
    }
}

/* =========================================================
   PROTOCOLO SIMPLES â€” MAPA LIVRE DE OCORRÃŠNCIA
   Reparo de Via Urbana / Lotes Sujos e Descarte Irregular
========================================================= */

.protocol-service-form select {
    width: 100%;
    min-height: 54px;
    padding: 0 15px 0 48px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #f9fbfd;
    color: var(--color-text);
    outline: none;
    font: inherit;
    box-sizing: border-box;
    transition: var(--transition);
}

.protocol-service-form select:focus {
    background: #ffffff;
    border-color: rgba(0, 86, 166, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 86, 166, 0.1);
}

.protocol-free-map-panel[hidden] {
    display: none !important;
}

.protocol-free-map-panel.is-request-map-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at top left, rgba(8, 115, 196, 0.24), transparent 34%),
        linear-gradient(135deg, #102538 0%, #30455a 100%) !important;
    box-shadow: none !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-stage {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 32px !important;
    overflow: hidden !important;
    background: #edf4fb !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map,
.protocol-free-map-panel.is-request-map-fullscreen .leaflet-container {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 32px !important;
    background: #d8e6ef !important;
    box-shadow: none !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-topbar {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 48px) !important;
    left: 52px !important;
    z-index: 1160 !important;
    max-width: min(720px, calc(100vw - 104px)) !important;
    min-height: 72px !important;
    padding: 10px !important;
    border-radius: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(0, 92, 168, 0.16) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
    box-shadow:
        0 14px 34px rgba(6, 43, 80, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below {
    position: fixed !important;
    left: 50% !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 52px) !important;
    z-index: 1160 !important;
    width: min(580px, calc(100vw - 96px)) !important;
    max-width: min(580px, calc(100vw - 96px)) !important;
    margin: 0 !important;
    padding: 8px !important;
    border-radius: 24px !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(0, 92, 168, 0.16) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
    box-shadow:
        0 18px 44px rgba(6, 43, 80, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
    overflow: hidden !important;
    transform: translateX(-50%) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools__title {
    display: none !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools__actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 12px !important;
    border-radius: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    color: #004b8d !important;
    background: #f8fbff !important;
    border: 1px solid #c9d9ea !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn.is-active,
.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn.is-locating,
.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn.is-tool-selected {
    color: #ffffff !important;
    background: linear-gradient(135deg, #005ca8, #0873c4) !important;
    border-color: rgba(255, 255, 255, 0.48) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen #mapGeolocateBtn.is-active,
.protocol-free-map-panel.is-request-map-fullscreen #mapGeolocateBtn.is-locating,
.protocol-free-map-panel.is-request-map-fullscreen #mapGeolocateBtn.is-tool-selected {
    color: #ffffff !important;
    background: linear-gradient(135deg, #6d28d9, #7c3aed) !important;
}

.protocol-free-map-panel .leaflet-popup-content-wrapper {
    border-radius: 24px !important;
    background:
        radial-gradient(circle at top right, rgba(15, 91, 181, 0.08), transparent 34%),
        #ffffff !important;
    border: 1px solid rgba(191, 211, 234, 0.92) !important;
    box-shadow:
        0 20px 48px rgba(6, 43, 80, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
    overflow: hidden !important;
}

.protocol-free-map-panel .leaflet-popup-content {
    width: 260px !important;
    max-width: 260px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.protocol-free-map-panel .leaflet-popup-tip {
    background: #ffffff !important;
}

.protocol-free-map-panel .map-popup--location {
    padding: 18px !important;
}

.protocol-free-map-panel .map-popup__top {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-right: 26px !important;
    margin-bottom: 14px !important;
}

.protocol-free-map-panel .map-popup__service-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #005ca8, #003f78) !important;
    box-shadow:
        0 10px 22px rgba(0, 92, 168, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

.protocol-free-map-panel .map-popup__heading span {
    display: block !important;
    margin: 0 0 4px !important;
    color: #005ca8 !important;
    font-size: 0.74rem !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
}

.protocol-free-map-panel .map-popup__heading h3 {
    margin: 0 !important;
    color: #062b50 !important;
    font-size: 1.08rem !important;
    font-weight: 950 !important;
    line-height: 1.18 !important;
}

.protocol-free-map-panel .map-popup__info-list {
    display: grid !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
}

.protocol-free-map-panel .map-popup__info {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 9px 10px !important;
    border-radius: 14px !important;
    background: #f8fbff !important;
    border: 1px solid rgba(191, 211, 234, 0.82) !important;
}

.protocol-free-map-panel .map-popup__info small,
.protocol-free-map-panel .request-location-popup__orientation small {
    display: block !important;
    margin: 0 0 2px !important;
    color: #5d7088 !important;
    font-size: 0.66rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.035em !important;
}

.protocol-free-map-panel .map-popup__info strong,
.protocol-free-map-panel .request-location-popup__orientation strong {
    display: block !important;
    color: #0f2747 !important;
    font-size: 0.86rem !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
}

.protocol-free-map-panel .request-location-popup__orientation {
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: flex-start !important;
    margin: 0 0 14px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background: #f8fbff !important;
    border: 1px solid rgba(191, 211, 234, 0.92) !important;
}

.protocol-free-map-panel .request-location-popup__orientation-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #005ca8 !important;
}

.protocol-free-map-panel .map-popup__actions,
.protocol-free-map-panel .map-popup__actions--request {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
}

.protocol-free-map-panel .map-popup__confirm-local {
    width: 100% !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981, #047857) !important;
    font-size: 0.84rem !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow:
        0 12px 24px rgba(4, 120, 87, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.protocol-free-map-panel .map-popup__confirm-local span,
.protocol-free-map-panel .map-popup__confirm-local i,
.protocol-free-map-panel .map-popup__confirm-local svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.request-map-marker.is-user-location {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow:
        0 0 0 6px rgba(124, 58, 237, 0.20),
        0 10px 24px rgba(109, 40, 217, 0.36) !important;
}

.request-map-marker.is-service-location {
    width: 34px !important;
    height: 34px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #111827 !important;
    border: 2px solid #ffffff !important;
    box-shadow:
        0 0 0 5px rgba(245, 158, 11, 0.20),
        0 10px 24px rgba(217, 119, 6, 0.34) !important;
}

.request-map-marker.is-user-location,
.request-map-marker.is-service-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.request-map-marker.is-user-location svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.request-map-marker.is-service-location svg {
    color: #111827 !important;
    stroke: #111827 !important;
}

.protocol-service-form .attachment-field__selected.has-file {
    color: #065f46;
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.22);
    font-weight: 900;
}

@media (max-width: 768px) {
    .protocol-free-map-panel.is-request-map-fullscreen {
        padding: 0 !important;
        background: #062b50 !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-stage {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map,
    .protocol-free-map-panel.is-request-map-fullscreen .leaflet-container {
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        border-radius: 0 !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-topbar {
        top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
        left: 8px !important;
        right: 8px !important;
        max-width: none !important;
        min-height: 48px !important;
        padding: 7px !important;
        border-radius: 18px !important;
        display: grid !important;
        grid-template-columns: 46px minmax(0, 1fr) !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below {
        left: 8px !important;
        right: 8px !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
        width: auto !important;
        max-width: none !important;
        padding: 7px !important;
        border-radius: 18px !important;
        transform: none !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-tools__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
        height: 52px !important;
        min-height: 52px !important;
        padding: 5px 3px !important;
        border-radius: 16px !important;
        flex-direction: column !important;
        gap: 3px !important;
        font-size: 0.62rem !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .leaflet-control-attribution {
        display: none !important;
    }

    .protocol-free-map-panel .leaflet-popup-content {
        width: min(270px, calc(100vw - 48px)) !important;
        max-width: calc(100vw - 48px) !important;
    }
}

/* =========================================================
   PROTOCOLO SIMPLES â€” PADRONIZAÃ‡ÃƒO DOS ÃCONES DO MAPA
   LocalizaÃ§Ã£o atual / Local da ocorrÃªncia
========================================================= */

/* LocalizaÃ§Ã£o atual do cidadÃ£o â€” roxo, igual ao botÃ£o Localizar */
.protocol-free-map-panel .request-map-marker.is-user-location,
.protocol-free-map-panel .geoportal-marker.is-user-location,
.protocol-free-map-panel .leaflet-marker-icon.user-location-marker .request-map-marker,
.protocol-free-map-panel .leaflet-marker-icon.user-location-marker .geoportal-marker {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow:
        0 0 0 6px rgba(124, 58, 237, 0.20),
        0 10px 24px rgba(109, 40, 217, 0.36) !important;
}

.protocol-free-map-panel .request-map-marker.is-user-location svg,
.protocol-free-map-panel .geoportal-marker.is-user-location svg,
.protocol-free-map-panel .leaflet-marker-icon.user-location-marker svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Local da ocorrÃªncia â€” verde institucional de confirmaÃ§Ã£o */
.protocol-free-map-panel .request-map-marker.is-service-location,
.protocol-free-map-panel .geoportal-marker.is-service-location,
.protocol-free-map-panel .leaflet-marker-icon.service-location-marker .request-map-marker,
.protocol-free-map-panel .leaflet-marker-icon.service-location-marker .geoportal-marker {
    width: 36px !important;
    height: 36px !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #10b981, #047857) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow:
        0 0 0 6px rgba(16, 185, 129, 0.18),
        0 12px 26px rgba(4, 120, 87, 0.34) !important;
}

.protocol-free-map-panel .request-map-marker.is-service-location svg,
.protocol-free-map-panel .geoportal-marker.is-service-location svg,
.protocol-free-map-panel .leaflet-marker-icon.service-location-marker svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Ãcones centralizados */
.protocol-free-map-panel .request-map-marker.is-user-location,
.protocol-free-map-panel .request-map-marker.is-service-location {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.protocol-free-map-panel .request-map-marker.is-user-location svg,
.protocol-free-map-panel .request-map-marker.is-service-location svg {
    width: 17px !important;
    height: 17px !important;
    stroke-width: 2.6 !important;
}

/* =========================================================
   PROTOCOLO SIMPLES â€” PADRONIZAÃ‡ÃƒO DOS ÃCONES DO MAPA
   LocalizaÃ§Ã£o atual / Local da ocorrÃªncia
========================================================= */

.protocol-free-map-panel .request-map-marker.is-user-location,
.protocol-free-map-panel .geoportal-marker.is-user-location,
.protocol-free-map-panel .leaflet-marker-icon.user-location-marker .request-map-marker,
.protocol-free-map-panel .leaflet-marker-icon.user-location-marker .geoportal-marker {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow:
        0 0 0 6px rgba(124, 58, 237, 0.20),
        0 10px 24px rgba(109, 40, 217, 0.36) !important;
}

.protocol-free-map-panel .request-map-marker.is-user-location svg,
.protocol-free-map-panel .geoportal-marker.is-user-location svg,
.protocol-free-map-panel .leaflet-marker-icon.user-location-marker svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.protocol-free-map-panel .request-map-marker.is-service-location,
.protocol-free-map-panel .geoportal-marker.is-service-location,
.protocol-free-map-panel .leaflet-marker-icon.service-location-marker .request-map-marker,
.protocol-free-map-panel .leaflet-marker-icon.service-location-marker .geoportal-marker {
    width: 36px !important;
    height: 36px !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #10b981, #047857) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow:
        0 0 0 6px rgba(16, 185, 129, 0.18),
        0 12px 26px rgba(4, 120, 87, 0.34) !important;
}

.protocol-free-map-panel .request-map-marker.is-service-location svg,
.protocol-free-map-panel .geoportal-marker.is-service-location svg,
.protocol-free-map-panel .leaflet-marker-icon.service-location-marker svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.protocol-free-map-panel .request-map-marker.is-user-location,
.protocol-free-map-panel .request-map-marker.is-service-location {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.protocol-free-map-panel .request-map-marker.is-user-location svg,
.protocol-free-map-panel .request-map-marker.is-service-location svg {
    width: 17px !important;
    height: 17px !important;
    stroke-width: 2.6 !important;
}

/* =========================================================
   PROTOCOLO SIMPLES â€” MAPA NO PADRÃƒO DA INTERFACE
   Reparo de Via Urbana / Lotes Sujos
========================================================= */

.protocol-free-map-panel.is-request-map-fullscreen {
    padding: 28px !important;
    background: linear-gradient(135deg, #153552 0%, #244766 100%) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-stage {
    border-radius: 30px !important;
    overflow: hidden !important;
    background: #eaf2f8 !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow:
        0 28px 78px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map,
.protocol-free-map-panel.is-request-map-fullscreen .leaflet-container {
    border-radius: 30px !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-topbar {
    top: 46px !important;
    left: 46px !important;
    right: auto !important;
    width: auto !important;
    max-width: min(560px, calc(100vw - 92px)) !important;
    min-height: 58px !important;
    padding: 8px !important;
    border-radius: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(0, 92, 168, 0.16) !important;
    box-shadow:
        0 14px 34px rgba(6, 43, 80, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-close {
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #005ca8, #003f78) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-title strong {
    color: #062b50 !important;
    font-size: 0.94rem !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-title small {
    color: #64748b !important;
    font-size: 0.74rem !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below {
    left: 50% !important;
    right: auto !important;
    bottom: 32px !important;
    width: min(580px, calc(100vw - 64px)) !important;
    max-width: min(580px, calc(100vw - 64px)) !important;
    padding: 8px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(0, 92, 168, 0.16) !important;
    transform: translateX(-50%) !important;
    box-shadow:
        0 18px 44px rgba(6, 43, 80, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools__actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
    height: 58px !important;
    min-height: 58px !important;
    border-radius: 18px !important;
    color: #005ca8 !important;
    background: #f8fbff !important;
    border: 1px solid #c9d9ea !important;
    font-size: 0.94rem !important;
    font-weight: 900 !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn.is-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #005ca8, #0873c4) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen #mapGeolocateBtn.is-active,
.protocol-free-map-panel.is-request-map-fullscreen #mapGeolocateBtn.is-locating,
.protocol-free-map-panel.is-request-map-fullscreen #mapGeolocateBtn.is-tool-selected {
    color: #ffffff !important;
    background: linear-gradient(135deg, #6d28d9, #7c3aed) !important;
}

/* Evita aproximaÃ§Ã£o visual excessiva e estouro de tiles */
.protocol-free-map-panel .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}

.protocol-free-map-panel .leaflet-container {
    background: #d9e8f3 !important;
}

@media (max-width: 768px) {
    .protocol-free-map-panel.is-request-map-fullscreen {
        padding: 0 !important;
        background: #153552 !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-stage,
    .protocol-free-map-panel.is-request-map-fullscreen .request-map,
    .protocol-free-map-panel.is-request-map-fullscreen .leaflet-container {
        border-radius: 0 !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-topbar {
        top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        min-height: 50px !important;
        border-radius: 18px !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below {
        left: 8px !important;
        right: 8px !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        border-radius: 18px !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below .map-tool-btn {
        height: 52px !important;
        min-height: 52px !important;
        font-size: 0.68rem !important;
        flex-direction: column !important;
        gap: 3px !important;
    }
}

/* =========================================================
   PROTOCOLO SIMPLES â€” PADRÃƒO VISUAL DO MAPA
   Ajuste do topo, botÃ£o voltar e zoom +/-
========================================================= */

/* Topbar no padrÃ£o do mapa de serviÃ§os */
.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-topbar {
    top: 28px !important;
    left: 28px !important;
    right: auto !important;
    width: auto !important;
    max-width: min(430px, calc(100vw - 56px)) !important;
    min-height: 72px !important;
    padding: 9px 14px 9px 9px !important;
    border-radius: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;

    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(0, 92, 168, 0.16) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
    box-shadow:
        0 14px 34px rgba(6, 43, 80, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

/* BotÃ£o voltar somente com seta */
.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-close {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    border-radius: 16px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #ffffff !important;
    background: linear-gradient(135deg, #005ca8, #003f78) !important;
    border: 0 !important;
    box-shadow:
        0 10px 22px rgba(0, 92, 168, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-close span {
    display: none !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-close svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.6 !important;
}

/* TÃ­tulo ao lado do botÃ£o voltar */
.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-title {
    min-width: 0 !important;
    display: grid !important;
    gap: 3px !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-title strong {
    color: #062b50 !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    line-height: 1.12 !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-title small {
    color: #64748b !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* Controle + / - um pouco abaixo do card voltar */
.protocol-free-map-panel.is-request-map-fullscreen .leaflet-top.leaflet-left {
    top: 116px !important;
    left: 32px !important;
    z-index: 1150 !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .leaflet-control-zoom {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow:
        0 12px 28px rgba(7, 42, 83, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .leaflet-control-zoom a {
    width: 46px !important;
    height: 46px !important;
    line-height: 46px !important;
    color: #062b50 !important;
    background: #ffffff !important;
    border: 0 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.protocol-free-map-panel.is-request-map-fullscreen .leaflet-control-zoom a:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #005ca8, #003f78) !important;
}

/* Popup/card de confirmaÃ§Ã£o mais centralizado e sem estourar */
.protocol-free-map-panel .leaflet-popup {
    max-width: min(300px, calc(100vw - 48px)) !important;
}

.protocol-free-map-panel .leaflet-popup-content-wrapper {
    border-radius: 24px !important;
}

.protocol-free-map-panel .leaflet-popup-content {
    width: min(270px, calc(100vw - 56px)) !important;
    max-width: calc(100vw - 56px) !important;
}

/* Evita o popup ficar alto demais no mapa */
.protocol-free-map-panel.is-request-map-fullscreen .leaflet-popup-pane {
    z-index: 1120 !important;
}

/* Ferramentas inferiores no mesmo padrÃ£o do mapa modelo */
.protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below {
    bottom: 28px !important;
    width: min(580px, calc(100vw - 64px)) !important;
    max-width: min(580px, calc(100vw - 64px)) !important;
    border-radius: 24px !important;
}

/* Mobile */
@media (max-width: 768px) {
    .protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-topbar {
        top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
        min-height: 58px !important;
        padding: 7px 10px 7px 7px !important;
        border-radius: 18px !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-close {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        border-radius: 15px !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-close svg {
        width: 22px !important;
        height: 22px !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-title strong {
        font-size: 0.9rem !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-fullscreen-title small {
        font-size: 0.68rem !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .leaflet-top.leaflet-left {
        top: 84px !important;
        left: 16px !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .leaflet-control-zoom a {
        width: 42px !important;
        height: 42px !important;
        line-height: 42px !important;
        font-size: 22px !important;
    }

    .protocol-free-map-panel .leaflet-popup-content {
        width: min(260px, calc(100vw - 44px)) !important;
        max-width: calc(100vw - 44px) !important;
    }

    .protocol-free-map-panel.is-request-map-fullscreen .request-map-tools--below {
        left: 8px !important;
        right: 8px !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        border-radius: 18px !important;
    }
}

/* =========================================================
   NOVA SOLICITAÃ‡ÃƒO â€” DESCRIÃ‡ÃƒO DO PROBLEMA SELECIONÃVEL
   IluminaÃ§Ã£o PÃºblica
========================================================= */

.problem-type-select-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* Garante que campos ocultos pelo JS nÃ£o apareÃ§am */
#tipoProblemaOutroBox[hidden],
#tipoOcorrenciaOutroBox[hidden] {
    display: none !important;
}

/* Select no mesmo padrÃ£o dos inputs */
.request-form select,
.request-form .problem-type-select,
.request-form #tipo_problema,
.request-form #tipo_ocorrencia {
    width: 100% !important;
    min-height: 54px !important;
    height: 54px !important;
    padding: 0 44px 0 48px !important;
    border: 1px solid #b8d4ef !important;
    border-radius: 14px !important;
    background-color: #ffffff !important;
    color: #062b50 !important;
    font-family: inherit !important;
    font-size: 0.96rem !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    outline: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease !important;
}

.request-form select:focus,
.request-form .problem-type-select:focus,
.request-form #tipo_problema:focus,
.request-form #tipo_ocorrencia:focus {
    background-color: #ffffff !important;
    border-color: #005ca8 !important;
    box-shadow:
        0 0 0 4px rgba(0, 92, 168, 0.14),
        0 10px 24px rgba(0, 92, 168, 0.10) !important;
}

/* Corrige o Ã­cone dentro do campo select */
.request-form .form-field__control select + i,
.request-form .form-field__control i {
    pointer-events: none;
}

.request-form .form-field__control:has(select) > i {
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #005ca8 !important;
    stroke: #005ca8 !important;
}

/* Campo â€œOutroâ€ quando aparece */
#tipoProblemaOutroBox,
#tipoOcorrenciaOutroBox {
    margin-top: 2px;
    animation: rpFadeInField 0.18s ease both;
}

#tipoProblemaOutroBox input,
#tipoOcorrenciaOutroBox input {
    width: 100% !important;
    min-height: 54px !important;
    height: 54px !important;
    padding-left: 48px !important;
    border-radius: 14px !important;
}

/* Textarea complementar no mesmo padrÃ£o */
#descricaoComplementar,
#descricao_complementar {
    min-height: 136px !important;
    resize: vertical !important;
}

/* OrganizaÃ§Ã£o visual da seÃ§Ã£o */
.request-form__section .field-feedback {
    display: block;
    margin-top: 7px;
    color: #5d7088;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
}

@keyframes rpFadeInField {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .request-form select,
    .request-form .problem-type-select,
    .request-form #tipo_problema,
    .request-form #tipo_ocorrencia {
        min-height: 52px !important;
        height: 52px !important;
        font-size: 0.92rem !important;
        padding-left: 46px !important;
    }

    #descricaoComplementar,
    #descricao_complementar {
        min-height: 128px !important;
    }
}
