.tm-browse-page {
    max-width: 1320px;
}

.tm-browse-filters {
    margin-bottom: 2rem;
    padding: 1.75rem;
    border-radius: 1.75rem;
    border: 1px solid #e3e8f1;
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(30, 73, 199, 0.08), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 8px 30px rgba(10, 22, 51, 0.08);
}

.tm-browse-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tm-browse-filters__title {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a1633;
}

.tm-browse-filters__form {
    display: block;
}

.tm-browse-filters__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr 1fr;
    gap: 0.95rem;
}

.tm-browse-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tm-browse-filter-field__label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5b6b85;
}

.tm-browse-filter-field__control {
    min-height: 50px;
    border-radius: 1rem;
    border: 1px solid #e3e8f1;
    box-shadow: none !important;
    font-weight: 600;
    color: #0a1633;
    background: #fff;
}

.tm-browse-filter-field__control:focus {
    border-color: rgba(30, 73, 199, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(30, 73, 199, 0.08) !important;
}

.tm-browse-filter-field__range-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 50px;
    padding: 0 1rem;
    border-radius: 1rem;
    border: 1px solid #e3e8f1;
    background: #fff;
}

.tm-browse-filter-field__range {
    flex: 1 1 auto;
    margin: 0;
}

.tm-browse-filter-field__range-value {
    min-width: 54px;
    text-align: right;
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e49c7;
}

.tm-browse-filters__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tm-browse-filters__submit,
.tm-browse-filters__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.75rem 1.05rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tm-browse-filters__submit {
    border: 0;
    background: #1e49c7;
    color: #fff;
    box-shadow: 0 10px 24px rgba(30, 73, 199, 0.24);
}

.tm-browse-filters__submit:hover {
    background: #163cad;
    color: #fff;
    transform: translateY(-1px);
}

.tm-browse-filters__reset {
    border: 1px solid #e3e8f1;
    background: #fff;
    color: #0a1633;
}

.tm-browse-filters__reset:hover {
    color: #1e49c7;
    border-color: #1e49c7;
}

.tm-browse-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tm-browse-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: #e6ecfc;
    color: #1e49c7;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Hero */
.tm-browse-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.9rem 2rem;
    border-radius: 1.75rem;
    border: 1px solid #e3e8f1;
    background:
        radial-gradient(540px 240px at 100% 0%, rgba(30, 73, 199, 0.08), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 8px 30px rgba(10, 22, 51, 0.08);
}

.tm-browse-hero__content {
    max-width: 760px;
}

.tm-browse-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 0.65rem;
    align-items: center;
    gap: 0.5rem;
    color: #1e49c7;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tm-browse-hero__eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: #ff8a1e;
}

.tm-browse-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0a1633;
}

.tm-browse-hero__subtitle {
    margin: 0;
    max-width: 640px;
    color: #5b6b85;
    font-size: 1rem;
    line-height: 1.72;
}

.tm-browse-hero__stats {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 150px;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: #0a1633;
    color: #fff;
}

.tm-browse-hero__stats strong {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 900;
}

.tm-browse-hero__stats span {
    margin-top: 0.35rem;
    color: #c9d3e8;
    font-size: 0.8rem;
    font-weight: 700;
}

.tm-browse-hero__stats--secondary {
    background: #f4f7ff;
    color: #0a1633;
}

.tm-browse-hero__stats--secondary span {
    color: #5b6b85;
}

.tm-browse-section {
    margin-bottom: 2rem;
}

.tm-browse-section__head {
    margin-bottom: 1rem;
}

.tm-browse-section__title {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
    font-weight: 900;
    color: #0a1633;
}

.tm-browse-section__text {
    margin: 0;
    color: #5b6b85;
    line-height: 1.6;
}

.tm-browse-section--fallback {
    margin-top: 2rem;
}

/* Cards */
.tm-browse-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(29, 44, 99, 0.08) !important;
    border-radius: 1.25rem !important;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    transition:
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.25s ease;
    will-change: transform, box-shadow, border-color;
}

.tm-browse-card--hovered {
    transform: translateY(-6px);
    border-color: rgba(13, 110, 253, 0.45) !important;
    box-shadow:
        0 14px 26px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(13, 110, 253, 0.18) !important;
}

.tm-browse-card__cover {
    position: relative;
    height: 150px;
    background: #eef3ff;
}

.tm-browse-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-browse-card__cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.03) 0%, rgba(17, 24, 39, 0.16) 100%);
}

.tm-browse-card__badges {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    max-width: calc(100% - 1.5rem);
}

.tm-browse-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 28px;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
    white-space: nowrap;
}

.tm-browse-card__badge--verified {
    color: #1e9b57;
}

.tm-browse-card__badge--featured {
    color: #bf7a11;
}

.tm-browse-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.1rem 1.15rem 1.15rem;
}

.tm-browse-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-top: -2rem;
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 2;
}

.tm-browse-card__logo {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid rgba(29, 44, 99, 0.08);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #6f7890;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tm-browse-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-browse-card__identity-text {
    min-width: 0;
    padding-top: 2rem;
}

.tm-browse-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.tm-browse-card__title {
    margin: 0 0 0.3rem;
    font-size: 1.04rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #1f2748;
}

.tm-browse-card__match-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #1e49c7;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.tm-browse-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
}

.tm-browse-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #7a8399;
    font-size: 0.78rem;
    font-weight: 700;
}

.tm-browse-card__meta i {
    color: #2046d8;
}

.tm-browse-card__description {
    margin: 0 0 1rem;
    color: #6f7890;
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.45rem;
}

.tm-browse-card__footer {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(29, 44, 99, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.tm-browse-card__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tm-browse-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 32px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #fff7e8;
    color: #8c6815;
    font-size: 0.78rem;
    font-weight: 800;
}

.tm-browse-card__rating i {
    color: #efb326;
}

.tm-browse-card__rating small {
    color: #b08a35;
    font-size: 0.72rem;
    font-weight: 700;
}

.tm-browse-card__reviews {
    color: #8a92a6;
    font-size: 0.77rem;
    font-weight: 700;
}

.tm-browse-card__distance {
    color: #1e49c7;
    font-size: 0.77rem;
    font-weight: 800;
}

.tm-browse-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 36px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(32, 70, 216, 0.14);
    background: #f8faff;
    color: #2046d8;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.tm-browse-card__link:hover {
    color: #1838b4;
    background: #eef3ff;
    border-color: rgba(32, 70, 216, 0.22);
    text-decoration: none;
}

/* Empty */
.tm-browse-empty {
    padding: 2.8rem 1.5rem;
    border: 1px dashed rgba(29, 44, 99, 0.16);
    border-radius: 1.35rem;
    background: #fff;
    text-align: center;
}

.tm-browse-empty__icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #f5f7fb;
    color: #8b93a5;
    font-size: 1.8rem;
}

.tm-browse-empty__title {
    margin: 0 0 0.4rem;
    font-size: 1.16rem;
    font-weight: 900;
    color: #1f2748;
}

.tm-browse-empty__text {
    margin: 0 auto;
    max-width: 520px;
    color: #70798e;
    line-height: 1.65;
}

.tm-browse-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.tm-browse-pagination__pages {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.tm-browse-pagination__page,
.tm-browse-pagination__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(29, 44, 99, 0.12);
    background: #fff;
    color: #1d2443;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
}

.tm-browse-pagination__page.is-active {
    border-color: #2046d8;
    background: #2046d8;
    color: #fff;
}

.tm-browse-pagination__control.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 1199.98px) {
    .tm-browse-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .tm-browse-filters,
    .tm-browse-hero {
        padding: 1.25rem;
        border-radius: 1.35rem;
    }

    .tm-browse-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .tm-browse-hero__stats {
        align-items: flex-start;
        min-width: 100%;
    }

    .tm-browse-filters__grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .tm-browse-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .tm-browse-hero {
        padding: 1.25rem;
        border-radius: 1.15rem;
    }

    .tm-browse-hero__title {
        font-size: 1.6rem;
    }

    .tm-browse-card {
        border-radius: 1.05rem !important;
    }

    .tm-browse-card__cover {
        height: 138px;
    }

    .tm-browse-card__identity {
        margin-top: -1.7rem;
    }

    .tm-browse-card__logo {
        width: 58px;
        height: 58px;
        border-radius: 0.9rem;
    }

    .tm-browse-card__identity-text {
        padding-top: 1.7rem;
    }

    .tm-browse-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tm-browse-card__link {
        justify-content: center;
    }
}
