/**
 * CidadeTur BR - Estilos da Lista de Noticias
 */

.news-section {
    background-color: var(--primary-blue);
    padding: 20px;
    width: 100%;
    margin: 3px 0;
}

.title-news {
    margin-bottom: 20px;
}

.title-news h2 {
    color: #333333;
    font-size: 16px;
    font-weight: normal;
    margin: 0;
    text-align: left;
}

.title-news::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--sidebar-background);
    margin-top: 15px;
}

.news-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.news-entry {
    width: 100%;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    width: 100%;
}

.news-image {
    flex-shrink: 0;
    width: 85px;
    min-height: 0;
    background-color: #c0c0c0;
    overflow: visible;
    border: none;
    padding: 0;
    cursor: pointer;
}

.news-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.news-title {
    color: #003399;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-item:hover .news-title {
    color: #ff6600;
}

.news-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-details p {
    color: #333333;
    font-size: 10px;
    margin: 0;
    line-height: 1.4;
}

.news-details-value {
    color: #003399;
}

.news-source-link {
    color: #003399;
    text-decoration: none;
}

.news-source-link:hover {
    text-decoration: underline;
}

.news-source-unavailable {
    color: #7a7a7a;
    text-decoration: none;
}

.news-separator {
    width: 100%;
    height: 1px;
    background-color: var(--sidebar-background);
    margin: 0;
}

.news-empty {
    color: #333333;
    font-size: 13px;
    padding: 8px 0;
}

.btn-exibir-mais {
    width: 100%;
    background-color: var(--text-light);
    color: #ffffff;
    border: 2px solid var(--text-light);
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
    transition: all 0.3s;
    text-align: center;
}

.btn-exibir-mais:hover {
    background-color: var(--text-light-hover);
    border-color: var(--text-light-hover);
    color: #ffffff;
}

.btn-exibir-mais[disabled] {
    opacity: 0.75;
    cursor: default;
    pointer-events: none;
}

.btn-exibir-mais.is-end-label {
    white-space: nowrap;
    font-size: inherit;
    line-height: inherit;
}

.btn-exibir-lugares.is-end-label {
    white-space: nowrap;
    font-size: 22px;
    line-height: 1.2;
}

.news-image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10001;
    padding: 20px;
}

.news-image-modal.active {
    display: flex;
}

.news-image-modal-dialog {
    position: relative;
    max-width: min(92vw, 800px);
    max-height: 90vh;
    background: #ffffff;
    padding: 12px;
}

.news-image-modal-dialog img {
    max-width: 100%;
    max-height: calc(90vh - 24px);
    display: block;
    margin: 0 auto;
}

.news-image-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .news-section {
        padding: 15px;
    }

    .news-item {
        gap: 12px;
        padding: 12px 0;
    }

    .news-image {
        width: 80px;
        min-height: 0;
    }

    .news-details p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 12px;
    }

    .title-news h2 {
        font-size: 16px;
    }

    .news-image {
        width: 70px;
        min-height: 0;
    }

    .news-title {
        font-size: 13px;
    }
}
