/* Estilos específicos para a página de museus */



/* Seção de Filtros */
.filters-section {
    background: #fff3d8;
    padding: 2rem 0;
    border-bottom: 1px solid #ecba78;
    margin-top: 76px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.filters-section .container {
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
}

.filters-container {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #9f643d;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #9f643d;
    background: white;
    color: #9f643d;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover {
    background: #f5e6d3;
    border-color: #9f643d;
}

.filter-btn.active {
    background: #9f643d !important;
    color: white !important;
    border-color: #9f643d !important;
}

.filter-btn.clear-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.filter-btn.clear-btn:hover {
    background: #dc3545;
    color: white;
}

.sort-select {
    padding: 0.6rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

/* Grid de Museus */
.museus-catalog {
    padding: 4rem 0;
    background: #fff3d8;
}

.museus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.museu-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.museu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* .museu-image {
    height: 200px;
    background: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
} */

.museu-image {
    height: 250px;
    min-height: 250px;
    background: linear-gradient(to bottom, #c19660 0%, #d4a574 30%, #ecba78 70%, #f5d4a8 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}



.museu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 320px;
}

.museu-main-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    max-height: calc(100% - 90px);
    overflow: hidden;
}

.museu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #523827;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-align: center;
}

.museu-description {
    color: #634b43;
    line-height: 1.4;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.museu-footer-content {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    z-index: 2;
    padding-top: 0.5rem;
}

.museu-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.museu-location,
.museu-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.museu-location i,
.museu-type i {
    color: #9f643d;
}

.museu-tags-bottom {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.6rem;
    min-height: 24px;
    align-items: center;
}

.museu-tags-bottom .tag {
    background: #f8f9fa;
    color: #523827;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.btn-saiba-mais {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: #9f643d;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
    min-height: 40px;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    margin-top: auto;
}

.btn-saiba-mais:hover {
    background: #cb8659;
}

/* Mensagem de Nenhum Resultado */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #523827;
}

/* Responsividade */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .filters-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .museus-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: stretch;
    }

    .museu-card {
        margin: 0 1rem;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .museu-image {
        height: 200px;
        min-height: 200px;
    }

    .museu-content {
        min-height: 300px;
    }
    
    .museu-main-content {
        max-height: calc(100% - 85px);
    }
    
    .museu-footer-content {
        min-height: 85px;
    }

    .museu-title {
        font-size: 1.2rem;
    }

    .museu-description {
        flex-grow: 1;
    }

    .museu-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 4rem 0 2rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .museu-card {
        margin: 0;
    }

    .museu-image {
        height: 180px;
        min-height: 180px;
    }

    .museu-content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        min-height: 280px;
    }
    
    .museu-main-content {
        max-height: calc(100% - 80px);
    }
    
    .museu-footer-content {
        min-height: 80px;
    }

    .museu-title {
        font-size: 1.1rem;
    }

    .museu-description {
        font-size: 0.9rem;
        flex-grow: 1;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.museu-card {
    animation: fadeInUp 0.6s ease forwards;
}

.museu-card:nth-child(1) {
    animation-delay: 0.1s;
}

.museu-card:nth-child(2) {
    animation-delay: 0.2s;
}

.museu-card:nth-child(3) {
    animation-delay: 0.3s;
}

.museu-card:nth-child(4) {
    animation-delay: 0.4s;
}

.museu-card:nth-child(5) {
    animation-delay: 0.5s;
}

.museu-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Estilos para as logos dos museus como imagem principal */
.museu-image-logo {
    background: linear-gradient(to bottom, #c19660 0%, #d4a574 30%, #ecba78 70%, #f5d4a8 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
}

.museu-logo-img {
    max-width: 260px;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Responsividade para as logos como imagem principal */
@media (max-width: 768px) {
    .museu-image-logo {
        padding: 1.5rem !important;
    }

    .museu-logo-img {
        max-width: 140px;
        max-height: 115px;
    }
}

@media (max-width: 480px) {
    .museu-image-logo {
        padding: 1rem !important;
    }

    .museu-logo-img {
        max-width: 120px;
        max-height: 95px;
    }
}
/* Accordion (reutiliza estilo de roteiros) */
/* Removido: estilos agora em assets/css/accordion.css */
.accordion-container { max-width: 900px; margin: 0 auto; }
.accordion-item { background: white; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(82, 56, 39, 0.1); overflow: hidden; transition: all 0.3s ease; }
.accordion-item:hover { box-shadow: 0 8px 25px rgba(0, 51, 102, 0.15); transform: translateY(-2px); }
.accordion-item.active { box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2); }
.accordion-header { padding: 25px 30px; background: white; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; border-bottom: 1px solid transparent; }
.accordion-header:hover { background: #f8f9fa; }
.espacos-info .accordion-header h3 {
  text-align: center;
  width: 100%;
  color: #4a3a2d; /* escurecer um pouco */
}
.accordion-item.active .accordion-header { background: #ecba78; color: #523827; border-bottom: 1px solid rgba(82, 56, 39, 0.1); }
.accordion-header h3 { font-size: 1.3rem; font-weight: 600; margin: 0; color: #9f643d; }
.accordion-item.active .accordion-header h3 { color: #9f643d !important; }
.accordion-icon { font-size: 1.2rem; color: #9f643d; transition: all 0.3s ease; }
.accordion-item.active .accordion-icon { color: #9f643d; transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: white; }
.accordion-item.active .accordion-content { max-height: 1000px; }
.content-wrapper { padding: 30px; border-top: 1px solid #eee; }
.content-wrapper p { font-size: 1rem; line-height: 1.7; color: #523827; margin-bottom: 1.5rem; }
.content-wrapper ul { margin: 1.5rem 0; padding-left: 20px; }
.content-wrapper li { margin-bottom: 0.8rem; line-height: 1.6; color: #523827; }
.content-wrapper li strong { color: #9f643d; }