/**
 * CSS para a página de Mapa do Site - IPSM
 * Design moderno e clean com hierarquia visual clara
 */

/* ========================================
   ESTILO DE LINKS (PADRÃO)
   ======================================== 
.content-main a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-main a:visited {
    color: #111;
}

.content-main a:hover {
    color: #a62d2e;
    text-decoration: underline;
}
    */

/* ========================================
   SEÇÕES DO MAPA
   ======================================== */
.mapa-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #444;
}

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

/* ========================================
   TÍTULOS DAS SEÇÕES
   ======================================== */
.mapa-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #444;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.mapa-section-title a {
    color: #444;
    text-decoration: none;
}

.mapa-section-title a:hover {
    color: #a62d2e;
    text-decoration: none;
}

/* ========================================
   SUBSEÇÕES
   ======================================== */
.mapa-subsection {
    margin-bottom: 35px;
}

.mapa-subsection:last-child {
    margin-bottom: 0;
}

.mapa-subsection-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding: 12px 15px;
    background-color: #fff;
    border-radius: 8px;
    border-left: 3px solid #a62d2e;
}

.mapa-subsection-title a {
    color: #333;
    text-decoration: none;
    display: block;
}

.mapa-subsection-title a:hover {
    color: #a62d2e;
    text-decoration: none;
}

/* ========================================
   SUB-SUBSEÇÕES (CATEGORIAS DE SERVIÇOS)
   ======================================== */
.mapa-subsubsection {
    margin-bottom: 25px;
    margin-left: 20px;
}

.mapa-subsubsection:last-child {
    margin-bottom: 0;
}

.mapa-subsubsection-title {
    font-size: 17px;
    font-weight: 600;
    color: #555;
    margin: 0 0 12px 0;
    padding: 10px 12px;
    background-color: #fff;
    border-radius: 6px;
    border-left: 3px solid #999;
}

.mapa-subsubsection-title a {
    color: #555;
    text-decoration: none;
    display: block;
}

.mapa-subsubsection-title a:hover {
    color: #a62d2e;
    text-decoration: none;
}

/* ========================================
   LISTAS
   ======================================== */
.mapa-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mapa-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.mapa-list li:before {
    content: "›";
    position: absolute;
    left: 8px;
    color: #a62d2e;
    font-weight: 700;
    font-size: 18px;
}

.mapa-list li:last-child {
    margin-bottom: 0;
}

/* ========================================
   SUBLISTAS
   ======================================== */
.mapa-sublist {
    margin-top: 15px;
}

.mapa-sublist li {
    font-size: 15px;
}

.mapa-subsublist {
    margin-top: 12px;
    margin-left: 15px;
}

.mapa-subsublist li {
    font-size: 14px;
    color: #666;
}

.mapa-subsublist li:before {
    content: "•";
    font-size: 16px;
    color: #999;
}

.mapa-subsublist li a {
    color: #666;
}

.mapa-subsublist li a:hover {
    color: #a62d2e;
}

/* ========================================
   GRID DE 2 COLUNAS (OPCIONAL)
   ======================================== */
.mapa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ========================================
   RESPONSIVIDADE PARA TABLETS
   ======================================== */
@media (max-width: 992px) {
    .mapa-section {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .mapa-section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .mapa-subsection-title {
        font-size: 18px;
        padding: 10px 12px;
    }
    
    .mapa-subsubsection-title {
        font-size: 16px;
        padding: 8px 10px;
    }
    
    .mapa-subsubsection {
        margin-left: 15px;
    }
    
    .mapa-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVIDADE PARA SMARTPHONES
   ======================================== */
@media (max-width: 768px) {
    .mapa-section {
        padding: 20px;
        margin-bottom: 30px;
        border-left-width: 3px;
    }
    
    .mapa-section-title {
        font-size: 20px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    
    .mapa-subsection {
        margin-bottom: 25px;
    }
    
    .mapa-subsection-title {
        font-size: 17px;
        padding: 10px;
        border-left-width: 2px;
    }
    
    .mapa-subsubsection {
        margin-left: 10px;
        margin-bottom: 20px;
    }
    
    .mapa-subsubsection-title {
        font-size: 15px;
        padding: 8px 10px;
        border-left-width: 2px;
    }
    
    .mapa-list li {
        padding-left: 20px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .mapa-list li:before {
        left: 5px;
        font-size: 16px;
    }
    
    .mapa-sublist li {
        font-size: 14px;
    }
    
    .mapa-subsublist {
        margin-left: 10px;
    }
    
    .mapa-subsublist li {
        font-size: 13px;
    }
}

/* ========================================
   RESPONSIVIDADE PARA TELAS MUITO PEQUENAS
   ======================================== */
@media (max-width: 480px) {
    .mapa-section {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .mapa-section-title {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .mapa-subsection {
        margin-bottom: 20px;
    }
    
    .mapa-subsection-title {
        font-size: 16px;
        padding: 8px;
    }
    
    .mapa-subsubsection {
        margin-left: 5px;
        margin-bottom: 15px;
    }
    
    .mapa-subsubsection-title {
        font-size: 14px;
        padding: 6px 8px;
    }
    
    .mapa-list li {
        padding-left: 18px;
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .mapa-list li:before {
        left: 3px;
        font-size: 14px;
    }
    
    .mapa-sublist li {
        font-size: 13px;
    }
    
    .mapa-subsublist {
        margin-left: 5px;
    }
    
    .mapa-subsublist li {
        font-size: 12px;
    }
}

/* ========================================
   AJUSTES PARA IMPRESSÃO
   ======================================== */
@media print {
    .mapa-section {
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 30px;
    }
    
    .mapa-subsection {
        page-break-inside: avoid;
    }
    
    .mapa-section-title {
        color: #000;
    }
    
    .mapa-subsection-title,
    .mapa-subsubsection-title {
        background-color: #f0f0f0;
    }
    
    .mapa-list li:before {
        color: #000;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */
.mapa-list a:focus,
.mapa-subsection-title a:focus,
.mapa-subsubsection-title a:focus {
    outline: 2px solid #a62d2e;
    outline-offset: 2px;
}

/* ========================================
   ANIMAÇÕES SUAVES
   ======================================== */
.mapa-section,
.mapa-subsection-title,
.mapa-subsubsection-title {
    transition: all 0.3s ease;
}

.mapa-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
