/* =============================================================================
   MORTENI TAXONOMY PAGE
   - pagina categoriei de anunturi
   - card alb centrat
   - box mai jos, sa nu intre peste logo/search
============================================================================= */

/* wrapper general pagina taxonomie */
.morteni-taxonomy-page {
    position: relative;
    z-index: 10;
    margin-top: 0;
    padding: 110px 0 80px;
    background: transparent;
}

/* container alb central */
.morteni-taxonomy-page .morteni-container {
    max-width: 1180px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    padding-top: 72px;
    padding-bottom: 60px;
    padding-left: 56px;
    padding-right: 56px;
}

/* header pagina */
.morteni-taxonomy-header {
    text-align: center;
    margin-bottom: 50px;
}

/* titlu pagina */
.morteni-taxonomy-header h1 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.2;
    color: #1d3557;
    font-weight: 700;
}

/* descriere categorie */
.morteni-taxonomy-description {
    max-width: 800px;
    margin: 0 auto;
    color: #5b6573;
    font-size: 16px;
    line-height: 1.7;
}

/* pe pagina categoriei vrem 2 coloane, nu 3 */
.morteni-taxonomy-page .morteni-home-anunturi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 40px;
}

/* paginare */
.morteni-pagination {
    margin-top: 40px;
    text-align: center;
}

/* responsive large */
@media (max-width: 1199px) {
    .morteni-taxonomy-page {
        padding: 95px 0 70px;
    }

    .morteni-taxonomy-page .morteni-container {
        max-width: 1100px;
        padding-top: 60px;
        padding-bottom: 50px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* responsive medium */
@media (max-width: 991px) {
    .morteni-taxonomy-page {
        margin-top: 0;
        padding: 70px 0 60px;
    }

    .morteni-taxonomy-page .morteni-container {
        padding-top: 50px;
        padding-bottom: 45px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .morteni-taxonomy-header h1 {
        font-size: 34px;
    }

    .morteni-taxonomy-page .morteni-home-anunturi-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/* responsive small */
@media (max-width: 767px) {
    .morteni-taxonomy-page {
        margin-top: 0;
        padding: 35px 0 40px;
    }

    .morteni-taxonomy-page .morteni-container {
        width: calc(100% - 28px);
        margin: 0 auto;
        padding-top: 28px;
        padding-bottom: 30px;
        padding-left: 18px;
        padding-right: 18px;
        border-radius: 6px;
    }

    .morteni-taxonomy-header {
        margin-bottom: 30px;
    }

    .morteni-taxonomy-header h1 {
        font-size: 28px;
    }
}

/* responsive extra small */
@media (max-width: 480px) {
    .morteni-taxonomy-page .morteni-container {
        width: calc(100% - 20px);
        padding-top: 22px;
        padding-bottom: 24px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .morteni-taxonomy-header h1 {
        font-size: 24px;
    }
}

/* =============================================================================
   BUTOANE ANI + AJAX LISTARE
============================================================================= */

.morteni-year-buttons-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    margin-bottom: 0;
    justify-content: center;
}

.morteni-year-load-btn {
    appearance: none;
    border: 1px solid #d7e3f0;
    background: #ffffff;
    color: #355070;
    padding: 12px 18px;
    min-height: 48px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.04);
}

.morteni-year-load-btn:hover,
.morteni-year-load-btn:focus {
    background: #f8fbff;
    color: #1d3557;
    border-color: #bfd3e6;
    box-shadow: 0 6px 16px rgba(16, 42, 67, 0.08);
    transform: translateY(-1px);
}

.morteni-year-load-btn.is-loading,
.morteni-year-load-btn.is-loaded {
    background: #1d4f91;
    color: #ffffff;
    border-color: #1d4f91;
}

.morteni-taxonomy-year-results {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.morteni-year-block {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.morteni-year-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.morteni-year-block-header {
    margin-bottom: 18px;
}

.morteni-year-block-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    color: #1d3557;
    font-weight: 700;
    text-align: left;
}

.morteni-empty-link {
    display: inline-block;
    margin-left: 8px;
    color: #1d4f91;
    font-weight: 600;
    text-decoration: underline;
}

.morteni-empty-link:hover {
    color: #0d2a57;
}

@media (max-width: 767px) {
    .morteni-year-buttons-wrap {
        justify-content: stretch;
    }

    .morteni-year-load-btn {
        width: 100%;
    }

    .morteni-year-block-title {
        font-size: 24px;
    }
}