.tr-portal,
.tr-portal * {
    box-sizing: border-box;
}

.tr-portal {
    max-width: 1320px;
    margin: auto;
    padding: 26px 30px;
    color: #30343b;
}

.tr-intro h1 {
    font-size: 29px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
}

.tr-intro p {
    font-size: 16px;
    color: #62666b;
    line-height: 1.6;
    margin: 0 0 20px;
}

.tr-search {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
}

.tr-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid #d9dee0;
    border-radius: 4px;
    background: #fafafa;
    font-size: 15px;
}

.tr-search button {
    border: 0;
    border-radius: 4px;
    background: #315c4e;
    color: #fff;
    padding: 10px 20px;
}

.tr-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tr-platforms a {
    flex: 1 1 130px;
    padding: 10px 12px;
    background: #f1f5f3;
    border: 1px solid #dfe7e3;
    border-radius: 4px;
    text-align: center;
    color: #315c4e;
    font-size: 14px;
    font-weight: 600;
}

.tr-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e4e7e9;
}

.tr-section h2 {
    color: #30343b;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 18px;
}

.tr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.tr-latest {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tr-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e3e6e8;
    border-radius: 5px;
    background: #fff;
}

.tr-card-main {
    display: block;
    color: #30343b;
    text-decoration: none;
}

.tr-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #f1f1f1;
}

.tr-card h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    padding: 12px;
}

.tr-destinations h3 {
    font-size: 18px;
}

.tr-card:hover {
    border-color: #729387;
}

.tr-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 12px;
    margin-top: auto;
}

.tr-card-links a,
.tr-content-type {
    font-size: 12px;
    color: #315c4e;
}

.tr-card-links a {
    background: #edf3ef;
    border-radius: 3px;
    padding: 4px 8px;
}

.tr-content-type {
    padding: 0 12px 12px;
    margin-top: auto;
}

.tr-more {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.tr-more a,
.tr-about a {
    color: #315c4e;
    font-weight: 600;
}

.tr-about p {
    line-height: 1.7;
    margin-bottom: 12px;
}

.tr-portal a:focus-visible,
.tr-portal button:focus-visible {
    outline: 2px solid #315c4e;
    outline-offset: 3px;
}

@media (max-width: 1000px) {
    .tr-latest {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .tr-portal {
        padding: 18px 12px;
    }

    .tr-intro h1 {
        font-size: 23px;
    }

    .tr-intro p {
        font-size: 14px;
    }

    .tr-section h2 {
        font-size: 20px;
    }

    .tr-grid,
    .tr-latest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tr-card h3 {
        font-size: 14px;
        padding: 9px;
    }

    .tr-destinations h3 {
        font-size: 16px;
    }

    .tr-platforms a {
        flex-basis: 100px;
    }
}


/* TRECATOR_VISUAL_V21 */

.tr-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.tr-card-excerpt {
    color: #666c72;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 0 12px 15px;
    overflow-wrap: anywhere;
}

.tr-card-main:hover .tr-card-excerpt {
    color: #454b50;
}

.tr-card-main:hover h3 {
    color: #315c4e;
}

@media (max-width: 650px) {

    .tr-card-excerpt {
        font-size: 12px;
        padding: 0 9px 12px;
    }
}


/* TRECATOR_DISCOVERY_V1 */

.tr-destinations .tr-card-main {
    flex: 0 0 auto;
}

.tr-discovery-links {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 12px 12px;
}

.tr-discovery-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.tr-discovery-links li {
    list-style: none;
    border-bottom: 1px solid #eceeef;
    padding: 0;
    margin: 0;
}

.tr-discovery-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    color: #454b50;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tr-discovery-links li a::after {
    content: '›';
    color: #9ba3a7;
    font-size: 19px;
    flex-shrink: 0;
}

.tr-discovery-links li a:hover {
    color: #315c4e;
}

.tr-discovery-all {
    display: block;
    margin-top: auto;
    padding: 8px 10px;
    border: 1px solid #dce6e1;
    border-radius: 3px;
    background: #f4f7f5;
    color: #315c4e;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.tr-discovery-all:hover {
    background: #315c4e;
    color: #fff;
}

@media (max-width: 650px) {

    .tr-discovery-links {
        padding: 0 9px 10px;
    }

    .tr-discovery-links li a {
        font-size: 12px;
        padding: 8px 0;
    }

    .tr-discovery-all {
        font-size: 12px;
        padding: 7px 4px;
    }
}
.tr-portal .tr-section {
    margin-top: 20px;
    padding-top: 16px;
}

.tr-portal .tr-section h2 {
    margin-bottom: 12px;
    font-size: 21px;
}

.tr-explore-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tr-explore-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #e0e5e2;
    border-radius: 5px;
    background: #fff;
}

.tr-explore-photo {
    display: block;
    flex: 0 0 100px;
    width: 100px;
}

.tr-explore-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.tr-explore-info {
    flex: 1;
    min-width: 0;
}

.tr-explore-info h3 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 6px;
}

.tr-explore-info h3 a {
    color: #30343b;
}

.tr-explore-places,
.tr-explore-types {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.tr-explore-places a {
    font-size: 13px;
    line-height: 1.5;
    color: #315c4e;
}

.tr-explore-places a:not(:last-child)::after {
    content: ' ·';
    color: #a0aaa5;
}

.tr-explore-types {
    margin-top: 7px;
}

.tr-explore-types a {
    background: #f0f4f2;
    border-radius: 3px;
    color: #45554c;
    font-size: 11px;
    line-height: 1.4;
    padding: 3px 6px;
}

.tr-explore-card a:hover {
    color: #216247;
    text-decoration: underline;
}

.tr-explore-extra summary,
.tr-explore-more summary {
    cursor: pointer;
    color: #315c4e;
    font-weight: 600;
}

.tr-explore-extra {
    font-size: 12px;
    margin-top: 6px;
}

.tr-explore-more {
    margin-top: 10px;
    padding: 9px 12px;
    border: 1px solid #e0e5e2;
    border-radius: 4px;
}

.tr-explore-more[open] .tr-explore-grid {
    margin-top: 10px;
}

.tr-explore-themes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
}

.tr-explore-themes .tr-card img {
    aspect-ratio: 16 / 9;
}

.tr-explore-themes .tr-card h3 {
    font-size: 13px;
    padding: 8px;
}

@media (max-width: 1000px) {

    .tr-explore-themes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tr-explore-photo {
        flex-basis: 82px;
        width: 82px;
    }
}

@media (max-width: 700px) {

    #header.tr-network-header .tr-brand-row.tr-brand-solo {
        padding: 12px;
    }

    .tr-explore-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tr-explore-themes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tr-explore-card {
        gap: 8px;
        padding: 8px;
    }

    .tr-explore-info h3 {
        font-size: 16px;
    }
}

/* TRECATOR_ARCHIVES_V4 */

.tr-archive {
    padding-top: 18px;
}

.tr-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    line-height: 1.5;
    color: #6c7470;
    margin-bottom: 16px;
}

.tr-breadcrumbs a {
    color: #315c4e;
}

.tr-archive-heading h1 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #30343b;
}

.tr-archive-subtitle {
    color: #315c4e;
    font-size: 18px;
    margin-bottom: 8px;
}

.tr-archive-count {
    color: #737b76;
    font-size: 13px;
    margin: 0;
}

.tr-archive-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.tr-archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tr-archive-filters a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 1.5;
    background: #f4f7f5;
    border: 1px solid #dce5df;
    border-radius: 4px;
    color: #315c4e;
}

.tr-archive-filters a span {
    font-size: 11px;
    opacity: .7;
}

.tr-archive-filters a:hover,
.tr-archive-filters a.tr-filter-active {
    background: #315c4e;
    color: #fff;
}

.tr-archive-random,
.tr-archive-results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tr-archive .navigation.pagination {
    margin: 22px 0 0;
}

.tr-archive .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.tr-archive .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dce5df;
    border-radius: 3px;
    color: #315c4e;
    background: #fff;
}

.tr-archive .page-numbers.current,
.tr-archive a.page-numbers:hover {
    background: #315c4e;
    color: #fff;
}

@media (max-width: 1050px) {

    .tr-archive-random,
    .tr-archive-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .tr-archive-heading h1 {
        font-size: 24px;
    }

    .tr-archive-random,
    .tr-archive-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .tr-archive-filters a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .tr-breadcrumbs {
        font-size: 11px;
        gap: 5px;
    }
}

/* TRECATOR_SEARCH_V5 */

.tr-archive-heading .tr-search {
    margin-top: 15px;
    max-width: 800px;
}

.tr-search-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.tr-archive .tr-card h3 {
    overflow-wrap: anywhere;
}

/* TRECATOR_MATRIX_V6 */

.tr-portal .tr-matrix {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.tr-portal .tr-matrix > .tr-card,
.tr-portal .tr-matrix > .tr-explore-card {
    flex: 1 1 var(--tr-matrix-basis, 100%);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.tr-portal .tr-matrix > .tr-card[hidden],
.tr-portal .tr-matrix > .tr-explore-card[hidden] {
    display: none !important;
}

/* Ultimul rand ocupa toata latimea disponibila,
   fara sa mareasca excesiv fotografiile. */

.tr-matrix > .tr-matrix-tail.tr-card img {
    max-height: var(--tr-matrix-image-height, 220px);
    object-fit: cover;
}

.tr-matrix-controls {
    display: flex;
    justify-content: center;
    margin: 14px 0 4px;
}

.tr-matrix-controls[hidden] {
    display: none !important;
}

.tr-matrix-more {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 170px;
    max-width: 100%;
    padding: 10px 22px;
    background: #fff;
    border: 1px solid #cddbd4;
    border-radius: 4px;
    color: #315c4e;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.tr-matrix-more:hover {
    background: #315c4e;
    border-color: #315c4e;
    color: #fff;
}

.tr-matrix-more:focus-visible {
    outline: 2px solid #315c4e;
    outline-offset: 3px;
}

@media (max-width: 650px) {

    .tr-matrix-controls {
        margin-top: 10px;
    }

    .tr-matrix-more {
        min-width: 150px;
        font-size: 13px;
        padding: 9px 16px;
    }
}


/* TRECATOR_ROMANIA_IMAGES_V2 */

/* Continutul curge in jurul fotografiei. */

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-card {
    display: flow-root;
    min-width: 0;
    padding: 10px;
}

/* Fotografie mai mare, in partea stanga. */

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-photo {
    display: block;
    float: left;
    width: 54%;
    max-width: 260px;
    min-width: 0;
    margin: 0 12px 7px 0;
}

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

/* Eliminam coloana rigida din dreapta. */

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-info {
    display: block;
    width: auto;
    min-width: 0;
    overflow: visible;
}

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-info h3 {
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 7px;
}

/* Judetele se aseaza natural langa imagine. */

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-places {
    display: block;
    line-height: 1.6;
}

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-places a {
    display: inline;
    overflow-wrap: anywhere;
    margin-right: 4px;
}

/* Etichetele continua sub fotografie. */

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-types {
    display: block;
    margin-top: 6px;
    line-height: 1.5;
}

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-types a {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    margin: 0 3px 4px 0;
    padding: 4px 6px;
    font-size: 12px;
}

/* Adaptare pentru telefon. */

@media (max-width: 700px) {

    :is(.tr-romania-section, body.category .tr-portal) .tr-explore-photo {
        width: 50%;
        max-width: 220px;
        margin-right: 9px;
        margin-bottom: 5px;
    }

    :is(.tr-romania-section, body.category .tr-portal) .tr-explore-info h3 {
        font-size: 17px;
    }

    :is(.tr-romania-section, body.category .tr-portal) .tr-explore-types a {
        font-size: 11px;
        padding: 3px 5px;
    }
}


/* TRECATOR_COMPACT_REGIONS_V1 */

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-info h3 {
    margin: 0 0 5px !important;
    padding: 0 !important;
    line-height: 1.25;
}

/* Judete grupate compact */

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-places {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.45;
    font-size: 13px;
}

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-places a {
    display: inline;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit;
    font-size: inherit;
}

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-places a:not(:last-child)::after {
    content: ' · ';
    margin: 0;
    padding: 0;
}

/* Categorii tematice fara spatii inutile */

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-types {
    display: block;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    line-height: 1.2;
    font-size: 0;
}

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-types a {
    display: inline-block;
    vertical-align: middle;
    margin: 0 3px 2px 0 !important;
    padding: 3px 5px !important;
    font-size: 12px;
    line-height: 1.2;
}

:is(.tr-romania-section, body.category .tr-portal) .tr-explore-photo {
    margin-right: 9px;
    margin-bottom: 3px;
}

@media (max-width: 700px) {

    :is(.tr-romania-section, body.category .tr-portal) .tr-explore-places {
        font-size: 12px;
        line-height: 1.4;
    }

    :is(.tr-romania-section, body.category .tr-portal) .tr-explore-types a {
        font-size: 11px;
        padding: 3px 4px !important;
        margin: 0 2px 2px 0 !important;
    }

    :is(.tr-romania-section, body.category .tr-portal) .tr-explore-photo {
        margin-right: 7px;
        margin-bottom: 3px;
    }
}

/* TRECATOR_SUGGESTIONS_V7 */

.tr-portal .tr-search {
    position: relative;
}

.tr-portal .tr-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #dce5df;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,.10);
    text-align: left;
}

.tr-portal .tr-suggestions[hidden] {
    display: none !important;
}

.tr-portal .tr-suggestions a {
    display: block;
    padding: 11px 14px;
    color: #30343b;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.tr-portal .tr-suggestions a + a {
    border-top: 1px solid #edf0ee;
}

.tr-portal .tr-suggestions a:hover,
.tr-portal .tr-suggestions a[aria-selected="true"] {
    background: #edf4ef;
    color: #315c4e;
}

/* TRECATOR_CARD_CATEGORY_V8 */

.tr-portal .tr-card-cover {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    overflow: hidden;
}

.tr-portal .tr-card-cover img {
    display: block;
    width: 100%;
}

.tr-portal .tr-card-category {
    display: block;
    align-self: flex-start;
    margin: 8px 12px 0;
    padding: 0;
    color: #315c4e;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.tr-portal .tr-card-category:hover {
    color: #216247;
    text-decoration: underline;
}

.tr-portal .tr-card-category + .tr-card-main h3 {
    padding-top: 5px;
}

@media (max-width: 700px) {

    .tr-portal .tr-card-category {
        margin: 6px 9px 0;
        font-size: 10px;
    }
}

/* TRECATOR_CATEGORY_LINKS_V81 */

.tr-portal .tr-card-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 3px;
    margin: 7px 10px 0;
}

.tr-portal .tr-card-categories .tr-card-category {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 3px 6px;
    background: #edf3ef;
    color: #315c4e;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tr-portal .tr-card-categories .tr-card-category:hover {
    background: #315c4e;
    color: #fff;
    text-decoration: none;
}

.tr-portal .tr-card-categories + .tr-card-main h3 {
    padding-top: 6px;
}

@media (max-width: 700px) {

    .tr-portal .tr-card-categories {
        margin: 5px 7px 0;
        gap: 2px;
    }

    .tr-portal .tr-card-categories .tr-card-category {
        padding: 3px 4px;
        font-size: 10px;
    }
}
