/* ==========================================================
   LOCALIZAÇÃO — LCC-UFMG
   Padrão visual: página Equipe
   ========================================================== */


/* ==========================================================
   1. VARIÁVEIS E CONFIGURAÇÕES GERAIS
   ========================================================== */

.lcc-location-page {
    --location-navy: #071d41;
    --location-blue: #1351b4;
    --location-blue-hover: #0c326f;

    --location-text: #25344a;
    --location-text-soft: #465770;

    --location-white: #ffffff;
    --location-table-head: #f6f9ff;

    --location-border: #d2dced;
    --location-border-soft: #e5eaf2;

    width: 100%;
    min-width: 0;
    min-height: 100%;

    margin: 0;
    padding: 0;

    color: var(--location-text);
    background: var(--location-white);

    font-family: "Rawline", "Raleway", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.lcc-location-page,
.lcc-location-page *,
.lcc-location-page *::before,
.lcc-location-page *::after {
    box-sizing: border-box;
}


/* ==========================================================
   2. CONTAINER PRINCIPAL
   ========================================================== */

.lcc-location-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 32px 16px 64px;
}


/* ==========================================================
   3. CABEÇALHO DA PÁGINA
   ========================================================== */

.lcc-location-header {
    margin: 0 0 32px;
    padding: 0;

    background: transparent;
    border: 0;
    box-shadow: none;
}

.lcc-location-header h1 {
    margin: 0 0 16px;
    padding: 0;

    color: var(--location-navy);

    font-size: clamp(2rem, 1.8rem + 0.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.lcc-location-header p {
    max-width: 850px;

    margin: 0;
    padding: 0;

    color: var(--location-text);

    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.55;
}


/* ==========================================================
   4. SEÇÕES
   ========================================================== */

.lcc-location-section {
    width: 100%;
    min-width: 0;

    margin: 0 0 40px;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.lcc-location-section:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   5. TÍTULOS DAS SEÇÕES
   ========================================================== */

.lcc-location-section-heading {
    width: 100%;

    margin: 0 0 16px;
    padding: 0;
}

.lcc-location-section-heading h2 {
    margin: 0;
    padding: 0;

    color: var(--location-navy);

    font-size: clamp(1.3rem, 1.15rem + 0.35vw, 1.55rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.015em;
}


/* Traço azul abaixo dos subtítulos */

.lcc-location-title-line {
    display: block;

    width: 29px;
    height: 2px;

    margin: 26px 0 16px;

    background: var(--location-blue);
    border: 0;
    border-radius: 0;
}

.lcc-location-section-heading p {
    max-width: 900px;

    margin: 0;
    padding: 0;

    color: var(--location-text-soft);

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}


/* ==========================================================
   6. TABELA — ENDEREÇO E CONTATO
   ========================================================== */

.lcc-location-table-wrapper {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    overflow-x: auto;

    background: var(--location-white);

    border: 1px solid var(--location-border);
    border-radius: 5px;

    -webkit-overflow-scrolling: touch;
}

.lcc-location-table {
    width: 100%;

    margin: 0;
    padding: 0;

    border-collapse: separate;
    border-spacing: 0;

    color: var(--location-text);
    background: var(--location-white);

    font-size: 0.9375rem;
    line-height: 1.45;

    table-layout: fixed;
}


/* Cabeçalho da tabela */

.lcc-location-table thead th {
    padding: 12px 13px;

    color: var(--location-navy);
    background: var(--location-table-head);

    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    vertical-align: middle;

    border: 0;
    border-bottom: 1px solid var(--location-border);
}


/* Largura das colunas */

.lcc-location-table thead th:first-child,
.lcc-location-table tbody th {
    width: 39%;
}

.lcc-location-table thead th:last-child {
    width: 61%;
}


/* Separação vertical */

.lcc-location-table thead th + th,
.lcc-location-table tbody td {
    border-left: 1px solid var(--location-border);
}


/* Linhas da tabela */

.lcc-location-table tbody th,
.lcc-location-table tbody td {
    padding: 12px 13px;

    color: var(--location-text);
    background: var(--location-white);

    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;

    overflow-wrap: anywhere;
    word-break: normal;

    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--location-border);
}

.lcc-location-table tbody tr:last-child th,
.lcc-location-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Evita estilos herdados de tabelas globais */

.lcc-location-table tbody tr:hover th,
.lcc-location-table tbody tr:hover td {
    background: var(--location-white);
}


/* ==========================================================
   7. ENDEREÇO
   ========================================================== */

.lcc-location-address {
    display: block;

    margin: 0;
    padding: 0;

    color: var(--location-text);

    font-family: inherit;
    font-size: inherit;
    font-style: normal;
    font-weight: 400;
    line-height: 1.65;

    overflow-wrap: anywhere;
}


/* ==========================================================
   8. TELEFONE
   ========================================================== */

.lcc-location-contact-link {
    display: inline-block;

    margin: 0;
    padding: 0;

    color: var(--location-blue);

    font-size: inherit;
    font-weight: 600;
    line-height: inherit;

    text-decoration: none;

    transition: color 150ms ease;
}

.lcc-location-contact-link:hover {
    color: var(--location-blue-hover);

    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ==========================================================
   9. AÇÕES DO ENDEREÇO
   ========================================================== */

.lcc-location-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;

    gap: 12px;

    margin: 20px 0 0;
    padding: 0;
}


/* Configuração geral dos botões */

.lcc-location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 42px;

    margin: 0;
    padding: 9px 17px;

    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    border: 1px solid transparent;
    border-radius: 5px;

    cursor: pointer;

    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease;
}


/* Ícones Bootstrap */

.lcc-location-button .bi {
    display: inline-block;

    font-size: 1rem;
    line-height: 1;
}


/* Botão principal */

.lcc-location-button-primary {
    color: #ffffff;
    background: var(--location-blue);

    border-color: var(--location-blue);
}

.lcc-location-button-primary:hover {
    color: #ffffff;
    background: var(--location-blue-hover);

    border-color: var(--location-blue-hover);

    text-decoration: none;
}


/* Botão secundário */

.lcc-location-button-secondary {
    color: var(--location-blue);
    background: #ffffff;

    border-color: var(--location-blue);
}

.lcc-location-button-secondary:hover {
    color: #ffffff;
    background: var(--location-blue);

    border-color: var(--location-blue);
}


/* ==========================================================
   10. SEÇÃO DO MAPA
   ========================================================== */

.lcc-location-map-section {
    margin-top: 40px;
}

.lcc-location-map-section .lcc-location-section-heading {
    margin-bottom: 20px;
}


/* ==========================================================
   11. MAPA INTERATIVO
   ========================================================== */

.lcc-location-map-wrapper {
    position: relative;

    width: 100%;
    height: 440px;
    min-height: 440px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #f3f6fa;

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


/* Iframe do Google Maps */

.lcc-location-map {
    position: relative;
    z-index: 2;

    display: block;

    width: 100%;
    height: 100%;
    min-height: 440px;

    margin: 0;
    padding: 0;

    background: #f3f6fa;

    border: 0;

    /*
       O mapa permanece visível mesmo caso
       o JavaScript não seja executado.
    */

    opacity: 1;
}


/* Classe utilizada pelo JavaScript */

.lcc-location-map.is-loaded {
    opacity: 1;
}


/* ==========================================================
   12. CARREGAMENTO DO MAPA
   ========================================================== */

.lcc-location-map-loading {
    position: absolute;
    z-index: 1;

    inset: 0;

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

    gap: 10px;

    color: var(--location-text-soft);
    background: #f3f6fa;

    font-size: 0.9375rem;
    font-weight: 500;

    visibility: visible;
    opacity: 1;

    transition:
        opacity 200ms ease,
        visibility 200ms ease;
}


/* Ocultação pelo JavaScript */

.lcc-location-map-loading.is-hidden {
    visibility: hidden;
    opacity: 0;
}


/* Indicador circular */

.lcc-location-map-spinner {
    display: inline-block;

    width: 22px;
    height: 22px;

    flex-shrink: 0;

    border: 3px solid #d6e2f5;
    border-top-color: var(--location-blue);
    border-radius: 50%;

    animation: lcc-location-spin 800ms linear infinite;
}

@keyframes lcc-location-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================
   13. LINK — MAPA AMPLIADO
   ========================================================== */

.lcc-location-map-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin: 16px 0 0;
    padding: 0;
}

.lcc-location-map-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--location-blue);

    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;

    text-decoration: none;

    transition: color 150ms ease;
}

.lcc-location-map-link .bi {
    font-size: 0.875rem;
    line-height: 1;
}

.lcc-location-map-link:hover {
    color: var(--location-blue-hover);

    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ==========================================================
   14. COMO CHEGAR
   ========================================================== */

.lcc-location-guidance {
    margin-top: 40px;
}

.lcc-location-guidance-list {
    display: flex;
    flex-direction: column;

    gap: 0;

    width: 100%;

    margin: 20px 0 0;
    padding: 0;

    list-style: none;

    counter-reset: location-step;
}


/* Cada orientação */

.lcc-location-guidance-item {
    display: flex;
    align-items: flex-start;

    gap: 16px;

    margin: 0;
    padding: 20px 0;

    background: transparent;

    border: 0;
    border-bottom: 1px solid var(--location-border-soft);

    border-radius: 0;
    box-shadow: none;

    counter-increment: location-step;
}

.lcc-location-guidance-item:first-child {
    padding-top: 0;
}

.lcc-location-guidance-item:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


/* Numeração discreta em azul */

.lcc-location-guidance-item::before {
    content: counter(location-step, decimal-leading-zero);

    display: flex;
    flex: 0 0 32px;
    align-items: flex-start;
    justify-content: flex-start;

    width: 32px;

    margin: 0;
    padding: 0;

    color: var(--location-blue);

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}


/* Conteúdo */

.lcc-location-guidance-content {
    flex: 1;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.lcc-location-guidance-content h3 {
    margin: 0 0 5px;
    padding: 0;

    color: var(--location-navy);

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.lcc-location-guidance-content p {
    max-width: 900px;

    margin: 0;
    padding: 0;

    color: var(--location-text-soft);

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}


/* ==========================================================
   15. NOTIFICAÇÃO — ENDEREÇO COPIADO
   ========================================================== */

.lcc-location-toast {
    position: fixed;
    z-index: 9999;

    right: 24px;
    bottom: 24px;

    display: flex;
    align-items: center;

    gap: 10px;

    max-width: min(360px, calc(100vw - 32px));

    margin: 0;
    padding: 13px 17px;

    color: #ffffff;
    background: var(--location-navy);

    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;

    border: 1px solid var(--location-navy);
    border-radius: 5px;

    box-shadow: 0 4px 16px rgba(7, 29, 65, 0.15);

    visibility: hidden;
    opacity: 0;

    transform: translateY(10px);

    pointer-events: none;

    transition:
        opacity 200ms ease,
        visibility 200ms ease,
        transform 200ms ease;
}


/* Notificação exibida pelo JavaScript */

.lcc-location-toast.is-visible {
    visibility: visible;
    opacity: 1;

    transform: translateY(0);
}


/* Ícone da notificação */

.lcc-location-toast .bi {
    flex-shrink: 0;

    color: #7ee787;

    font-size: 1.2rem;
    line-height: 1;
}


/* ==========================================================
   16. ACESSIBILIDADE
   ========================================================== */

/* Foco visível para navegação por teclado */

.lcc-location-page a:focus-visible,
.lcc-location-page button:focus-visible,
.lcc-location-page iframe:focus-visible,
.lcc-location-page [tabindex="0"]:focus-visible {
    outline: 3px solid var(--location-blue);
    outline-offset: 3px;
}


/* Texto reservado para leitores de tela */

.lcc-location-page .visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;

    border: 0 !important;
}


/* ==========================================================
   17. RESPONSIVIDADE — TABLETS
   ========================================================== */

@media (max-width: 991px) {

    .lcc-location-container {
        padding-top: 28px;
        padding-bottom: 56px;
    }

    .lcc-location-header {
        margin-bottom: 32px;
    }

    .lcc-location-section {
        margin-bottom: 40px;
    }

    .lcc-location-map-wrapper {
        height: 400px;
        min-height: 400px;
    }

    .lcc-location-map {
        min-height: 400px;
    }

}


/* ==========================================================
   18. RESPONSIVIDADE — CELULARES
   ========================================================== */

@media (max-width: 600px) {

    /* Container */

    .lcc-location-container {
        width: 100%;
        max-width: 100%;

        padding: 30px 16px 48px;
    }


    /* Cabeçalho */

    .lcc-location-header {
        margin-bottom: 32px;
    }

    .lcc-location-header h1 {
        margin-bottom: 16px;

        font-size: 2rem;
        line-height: 1.25;
    }

    .lcc-location-header p {
        font-size: 1rem;
        line-height: 1.6;
    }


    /* Seções */

    .lcc-location-section {
        margin-bottom: 32px;
    }

    .lcc-location-section-heading {
        margin-bottom: 16px;
    }

    .lcc-location-section-heading h2 {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .lcc-location-title-line {
        width: 29px;
        height: 2px;

        margin: 26px 0 16px;
    }

    .lcc-location-section-heading p {
        font-size: 1rem;
        line-height: 1.6;
    }


    /* Tabela */

    .lcc-location-table {
        width: 100%;

        font-size: 0.9375rem;
    }

    .lcc-location-table thead th,
    .lcc-location-table tbody th,
    .lcc-location-table tbody td {
        padding: 12px 13px;

        font-size: 0.9375rem;
        line-height: 1.45;
    }

    .lcc-location-table thead th:first-child,
    .lcc-location-table tbody th {
        width: 39%;
    }

    .lcc-location-table thead th:last-child {
        width: 61%;
    }

    .lcc-location-address {
        line-height: 1.65;
    }


    /* Botões */

    .lcc-location-actions {
        flex-direction: column;
        align-items: stretch;

        gap: 10px;

        margin-top: 20px;
    }

    .lcc-location-button {
        width: 100%;
        min-height: 44px;

        padding: 10px 15px;
    }


    /* Mapa */

    .lcc-location-map-section {
        margin-top: 32px;
    }

    .lcc-location-map-wrapper {
        height: 350px;
        min-height: 350px;

        border-radius: 5px;
    }

    .lcc-location-map {
        height: 100%;
        min-height: 350px;
    }

    .lcc-location-map-actions {
        margin-top: 16px;
    }


    /* Orientações */

    .lcc-location-guidance {
        margin-top: 32px;
    }

    .lcc-location-guidance-list {
        margin-top: 20px;
    }

    .lcc-location-guidance-item {
        gap: 12px;

        padding: 18px 0;
    }

    .lcc-location-guidance-item::before {
        flex-basis: 28px;
        width: 28px;

        font-size: 0.9375rem;
    }

    .lcc-location-guidance-content h3 {
        font-size: 1rem;
    }

    .lcc-location-guidance-content p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }


    /* Notificação */

    .lcc-location-toast {
        right: 12px;
        bottom: 12px;
        left: 12px;

        width: auto;
        max-width: none;

        padding: 12px 14px;
    }

}


/* ==========================================================
   19. TELAS MUITO PEQUENAS
   ========================================================== */

@media (max-width: 360px) {

    .lcc-location-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .lcc-location-header h1 {
        font-size: 1.85rem;
    }

    .lcc-location-table thead th,
    .lcc-location-table tbody th,
    .lcc-location-table tbody td {
        padding: 10px 9px;

        font-size: 0.875rem;
    }

    .lcc-location-map-wrapper {
        height: 300px;
        min-height: 300px;
    }

    .lcc-location-map {
        min-height: 300px;
    }

}


/* ==========================================================
   20. REDUÇÃO DE MOVIMENTO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .lcc-location-page *,
    .lcc-location-page *::before,
    .lcc-location-page *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}