.tr-explore,
.tr-place-public {
    --tr-navy: #0B315F;
    --tr-red: #EF334F;
    --tr-green: #2E8B3C;
    --tr-gold: #D4A85A;
    --tr-bg: #F8FAFC;
    --tr-text: #10233F;
    --tr-muted: #64748B;
    --tr-border: #E2E8F0;
    color: var(--tr-text);
}

.tr-explore *,
.tr-place-public * {
    box-sizing: border-box;
}

.tr-explore-hero {
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--tr-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 10%, rgba(239, 51, 79, .08), transparent 22rem),
        linear-gradient(135deg, #fff, #f5f8fc);
}

.tr-explore-kicker {
    color: var(--tr-red);
    font-weight: 800;
}

.tr-explore-hero h1 {
    margin: 8px 0 10px;
    color: var(--tr-navy);
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.25;
}

.tr-explore-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--tr-muted);
    font-size: 17px;
}

.tr-explore-form {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(150px, .7fr)) auto auto;
    gap: 12px;
    align-items: end;
    margin: 22px 0;
    padding: 20px;
    border: 1px solid var(--tr-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(11, 49, 95, .07);
}

.tr-explore-field {
    display: grid;
    gap: 7px;
}

.tr-explore-field > span {
    color: var(--tr-navy);
    font-size: 13px;
    font-weight: 800;
}

.tr-explore-field input,
.tr-explore-field select {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid var(--tr-border);
    border-radius: 12px;
    background: #fff;
    font: inherit;
}

.tr-explore-field input:focus,
.tr-explore-field select:focus {
    border-color: var(--tr-navy);
    box-shadow: 0 0 0 4px rgba(11, 49, 95, .08);
    outline: none;
}

.tr-explore-submit,
.tr-explore-reset {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.tr-explore-submit {
    border: 0;
    color: #fff;
    background: var(--tr-red);
    cursor: pointer;
}

.tr-explore-submit:hover {
    background: var(--tr-navy);
}

.tr-explore-reset {
    color: var(--tr-navy) !important;
    border: 1px solid var(--tr-border);
    background: #fff;
}

.tr-explore-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 28px 0 16px;
}

.tr-explore-summary strong {
    color: var(--tr-red);
    font-size: 28px;
}

.tr-explore-summary span {
    color: var(--tr-muted);
}

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

.tr-place-card {
    overflow: hidden;
    border: 1px solid var(--tr-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(11, 49, 95, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tr-place-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(11, 49, 95, .11);
}

.tr-place-card-media {
    display: block;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(11,49,95,.08), rgba(239,51,79,.08));
}

.tr-place-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tr-place-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--tr-navy);
    font-size: 64px;
    font-weight: 900;
}

.tr-place-card-body {
    padding: 20px;
}

.tr-place-card-top {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tr-place-type {
    color: var(--tr-red);
    font-size: 13px;
    font-weight: 800;
}

.tr-place-verified,
.tr-place-data-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.tr-place-verified {
    color: #166534;
    background: #dcfce7;
}

.tr-place-data-badge {
    color: #92400e;
    background: #fef3c7;
}

.tr-place-card h2 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.45;
}

.tr-place-card h2 a {
    color: var(--tr-navy) !important;
    text-decoration: none !important;
}

.tr-place-address {
    min-height: 48px;
    margin: 0;
    color: var(--tr-muted);
    font-size: 14px;
    line-height: 1.7;
}

.tr-place-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.tr-place-details,
.tr-place-call {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.tr-place-details {
    flex: 1;
    color: #fff !important;
    background: var(--tr-navy);
}

.tr-place-call {
    color: var(--tr-navy) !important;
    border: 1px solid var(--tr-border);
    background: #fff;
}

.tr-pagination {
    margin-top: 32px;
}

.tr-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    padding: 0;
    list-style: none;
}

.tr-pagination a,
.tr-pagination span {
    display: grid;
    min-width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--tr-border);
    border-radius: 10px;
    color: var(--tr-navy) !important;
    background: #fff;
    text-decoration: none !important;
}

.tr-pagination .current {
    color: #fff !important;
    border-color: var(--tr-navy);
    background: var(--tr-navy);
}

.tr-empty-state {
    padding: 54px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    text-align: center;
    background: #fff;
}

.tr-empty-state > span {
    color: var(--tr-red);
    font-size: 52px;
}

.tr-empty-state h2 {
    margin: 8px 0;
    color: var(--tr-navy);
}

.tr-empty-state p {
    color: var(--tr-muted);
}

.tr-empty-state a {
    font-weight: 800;
}

.tr-admin-hint {
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: #92400e;
    background: #fffbeb;
}

@media (max-width: 1100px) {
    .tr-explore-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tr-explore-field-wide {
        grid-column: 1 / -1;
    }

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

@media (max-width: 620px) {
    .tr-explore-form,
    .tr-place-grid {
        grid-template-columns: 1fr;
    }

    .tr-explore-field-wide {
        grid-column: auto;
    }

    .tr-place-card-media {
        height: 170px;
    }
}

.tr-directory-form {
    grid-template-columns: minmax(0, 1.5fr) minmax(190px, .75fr) minmax(180px, .7fr) auto auto;
}

.tr-latest-places {
    padding: 0;
}

.tr-latest-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.tr-latest-heading h2 {
    margin: 8px 0 8px;
    color: #0B315F;
    font-size: clamp(29px, 3vw, 43px);
    font-weight: 900;
    line-height: 1.3;
}

.tr-latest-heading p {
    margin: 0;
    color: #64748B;
}

.tr-latest-heading > a {
    flex: 0 0 auto;
    color: #0B315F !important;
    font-weight: 800;
    text-decoration: none !important;
}

.tr-latest-empty {
    padding: 42px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    text-align: center;
    background: #fff;
}

.tr-latest-empty h3 {
    margin: 0 0 8px;
    color: #0B315F;
}

.tr-latest-empty p {
    margin: 0 0 14px;
    color: #64748B;
}

.tr-latest-empty a {
    font-weight: 800;
}

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

    .tr-directory-form .tr-explore-field-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .tr-directory-form {
        grid-template-columns: 1fr;
    }

    .tr-directory-form .tr-explore-field-wide {
        grid-column: auto;
    }

    .tr-latest-heading {
        display: block;
    }

    .tr-latest-heading > a {
        display: inline-block;
        margin-top: 14px;
    }
}

.tr-social-icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tr-social-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    color: #0B315F !important;
    background: #FFFFFF;
    text-decoration: none !important;
    transition: transform .16s ease, border-color .16s ease, color .16s ease;
}

.tr-social-icon:hover,
.tr-social-icon:focus-visible {
    color: #EF334F !important;
    border-color: rgba(239, 51, 79, .35);
    transform: translateY(-2px);
}

.tr-social-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tr-social-icon-facebook svg,
.tr-social-icon-tiktok svg {
    fill: currentColor;
    stroke: none;
}
