/* Unidades map pins + cards — parity with Laravel unidades/index */

.afagu-map-pin {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afagu-map-pin img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.afagu-map-pin--recebimento {
    position: relative;
    width: 40px;
    height: 40px;
}

.afagu-map-pin--recebimento img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    outline: 2px solid #0070c8;
    outline-offset: 2px;
    border-radius: 9999px;
}

.leaflet-div-icon.afagu-leaflet-pin {
    background: transparent !important;
    border: none !important;
}

.afagu-unidade-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afagu-unidade-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.afagu-unidade-logo--recebimento img {
    width: 40px;
    height: 40px;
    outline: 2px solid #0070c8;
    outline-offset: 2px;
    border-radius: 9999px;
}

.afagu-unidade-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: #0070c8;
    background: rgba(0, 112, 200, 0.1);
}

/* Meta Cidade / UF */
.afagu-unidade-meta {
    margin: 4px 0 0;
}

.afagu-unidade-meta__label {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.3;
}

.afagu-unidade-meta__value {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

/* Contatos: número + ícones Ligar / WhatsApp (padrão do mock) */
.afagu-contatos-stack {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.afagu-contatos-stack--detail {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 20px;
}

.afagu-contato-grupo__label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
}

.afagu-contato-grupo__lista {
    display: flex;
    flex-direction: column;
}

.afagu-contato-grupo__lista .afagu-contato-linha + .afagu-contato-linha {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dotted #cbd5e1;
}

.afagu-contato-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.afagu-contato-linha__num {
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.afagu-contato-linha--md .afagu-contato-linha__num {
    font-size: 16px;
}

.afagu-contato-linha__acoes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.afagu-contato-acao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    text-decoration: none;
    background: #fff;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.afagu-contato-linha--md .afagu-contato-acao {
    width: 38px;
    height: 38px;
}

.afagu-contato-acao__icon {
    width: 16px;
    height: 16px;
    display: block;
}

.afagu-contato-linha--md .afagu-contato-acao__icon {
    width: 17px;
    height: 17px;
}

.afagu-contato-acao--tel {
    color: #64748b;
    border: 1.5px solid #cbd5e1;
}

.afagu-contato-acao--tel:hover {
    color: #0070c8;
    border-color: #0070c8;
    background: rgba(0, 112, 200, 0.04);
    text-decoration: none;
}

.afagu-contato-acao--wa {
    color: #25d366;
    border: 1.5px solid #25d366;
    background: #fff;
}

.afagu-contato-acao--wa:hover {
    color: #fff;
    background: #25d366;
    text-decoration: none;
}

.afagu-wa-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #fff;
}

.afagu-unidade-badge--lg {
    margin-top: 0;
    padding: 4px 12px;
    font-size: 12px;
}

.unidade-card.is-highlighted,
.unidade-card:hover {
    border-color: #0070c8;
    box-shadow: 0 12px 32px -8px rgba(0, 112, 200, 0.18);
}

.leaflet-popup-content {
    font-size: 13px;
    line-height: 1.45;
    padding: 0;
    margin: 0;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.afagu-map-popup {
    min-width: 220px;
    max-width: 280px;
    padding: 14px 16px;
    font-family: inherit;
    color: #334155;
}

.afagu-map-popup__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.afagu-map-popup__badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: #0070c8;
    background: rgba(0, 112, 200, 0.1);
}

.afagu-map-popup__address {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.afagu-map-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.afagu-map-popup__btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    outline: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.afagu-map-popup__btn:focus,
.afagu-map-popup__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 112, 200, 0.25);
}

.afagu-map-popup__btn--primary {
    background: #0070c8;
    color: #fff;
    border: 1px solid #0070c8;
}

.afagu-map-popup__btn--primary:hover {
    background: #005da6;
    border-color: #005da6;
    color: #fff;
}

.leaflet-container a.afagu-map-popup__btn--primary,
.leaflet-container a.afagu-map-popup__btn--primary:hover,
.leaflet-container a.afagu-map-popup__btn--primary:focus,
.leaflet-container a.afagu-map-popup__btn--primary:visited {
    color: #fff !important;
    text-decoration: none;
}

.afagu-map-popup__btn--secondary {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.afagu-map-popup__btn--secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

#mapaUnidades {
    position: relative;
    z-index: 0;
    isolation: isolate;
}
