.tr-v320-map-page,
.tr-v320-weekend,
.tr-v320-child-today,
.tr-v320-notice,
.tr-v320-trust-panel,
.tr-v320-quality-admin {
    --tr-v320-navy: #263158;
    --tr-v320-red: #c25c60;
    --tr-v320-gold: #c6a969;
    --tr-v320-ink: #29324d;
    --tr-v320-muted: #6f7890;
    --tr-v320-line: #e3e7f0;
    --tr-v320-soft: #f6f7fb;
    --tr-v320-white: #fff;
    color: var(--tr-v320-ink);
}

.tr-v320-map-page,
.tr-v320-weekend {
    width: min(1480px, calc(100% - 28px));
    margin: 30px auto 70px;
}

.tr-v320-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid var(--tr-v320-line);
    border-radius: 32px;
    background:
        radial-gradient(circle at 10% 20%, rgba(194,92,96,.16), transparent 31%),
        radial-gradient(circle at 90% 20%, rgba(198,169,105,.18), transparent 27%),
        linear-gradient(135deg, #fff, #f8f8fc);
    box-shadow: 0 22px 60px rgba(38,49,88,.09);
}

.tr-v320-hero::after {
    content: "";
    position: absolute;
    inset-inline-start: -90px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border: 38px solid rgba(38,49,88,.045);
    border-radius: 50%;
}

.tr-v320-hero > * { position: relative; z-index: 1; }
.tr-v320-hero span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--tr-v320-red);
    font-size: 15px;
    font-weight: 800;
}
.tr-v320-hero h1 {
    margin: 0;
    color: var(--tr-v320-navy);
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.15;
}
.tr-v320-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--tr-v320-muted);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.9;
}

.tr-v320-locate,
.tr-v320-reset,
.tr-v320-bulk-bar button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}
.tr-v320-locate {
    flex: 0 0 auto;
    min-width: 210px;
    padding: 14px 20px;
    background: var(--tr-v320-navy);
    color: #fff;
    box-shadow: 0 12px 30px rgba(38,49,88,.22);
}
.tr-v320-locate:hover { transform: translateY(-2px); }

.tr-v320-map-app,
.tr-v320-weekend-app {
    margin-top: 24px;
}

.tr-v320-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, .8fr));
    gap: 12px;
    align-items: end;
    padding: 18px;
    border: 1px solid var(--tr-v320-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(38,49,88,.06);
}
.tr-v320-weekend .tr-v320-filters {
    grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(145px, .8fr));
}
.tr-v320-filters label { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.tr-v320-filters label > span { color: var(--tr-v320-navy); font-size: 13px; font-weight: 800; }
.tr-v320-filters input[type="search"],
.tr-v320-filters select,
.tr-v320-bulk-bar select {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #dce1eb;
    border-radius: 13px;
    outline: none;
    background: #fbfcfe;
    color: var(--tr-v320-ink);
    font: inherit;
}
.tr-v320-filters input:focus,
.tr-v320-filters select:focus { border-color: var(--tr-v320-navy); box-shadow: 0 0 0 3px rgba(38,49,88,.09); }
.tr-v320-filters .tr-v320-check {
    min-height: 48px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #dce1eb;
    border-radius: 13px;
    background: #fbfcfe;
    cursor: pointer;
}
.tr-v320-filters .tr-v320-check input { width: 18px; height: 18px; margin: 0; }
.tr-v320-filters .tr-v320-check span { font-size: 14px; }
.tr-v320-reset { padding: 0 18px; background: #f1f3f8; color: var(--tr-v320-navy); }

.tr-v320-status {
    margin: 14px 2px 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: #f4f6fa;
    color: var(--tr-v320-muted);
    font-size: 14px;
}
.tr-v320-status.is-success { background: #edf8f2; color: #236b45; }
.tr-v320-status.is-error { background: #fff0f0; color: #a54343; }

.tr-v320-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, .75fr);
    gap: 18px;
    margin-top: 16px;
}
.tr-v320-map-wrap {
    position: sticky;
    top: 18px;
    height: min(74vh, 760px);
    min-height: 570px;
    overflow: hidden;
    border: 1px solid var(--tr-v320-line);
    border-radius: 26px;
    background: #eef1f6;
    box-shadow: 0 18px 48px rgba(38,49,88,.08);
}
.tr-v320-map { width: 100%; height: 100%; z-index: 1; }
.tr-v320-map-fallback {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 30px;
}
.tr-v320-map-fallback[hidden] { display: none; }
.tr-v320-map-results {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--tr-v320-line);
    border-radius: 26px;
    background: #fff;
}
.tr-v320-map-results > header,
.tr-v320-weekend-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.tr-v320-map-results h2,
.tr-v320-weekend-heading h2 { margin: 0; color: var(--tr-v320-navy); font-size: 25px; }
.tr-v320-map-results > header span,
.tr-v320-weekend-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    border-radius: 999px;
    background: #f0f2f8;
    color: var(--tr-v320-navy);
    font-weight: 800;
}
.tr-v320-result-list { display: grid; gap: 14px; max-height: calc(min(74vh, 760px) - 80px); overflow: auto; padding-inline-end: 3px; }

.tr-v320-weekend-heading { margin-top: 28px; }
.tr-v320-weekend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tr-v320-place-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tr-v320-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(38,49,88,.055);
    transition: transform .18s ease, box-shadow .18s ease;
}
.tr-v320-place-card:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(38,49,88,.11); }
.tr-v320-place-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f1fb, #fff6f5);
}
.tr-v320-place-image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.tr-v320-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tr-v320-navy); font-size: 48px; font-weight: 900; }
.tr-v320-distance { position: absolute; inset-inline-start: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(38,49,88,.92); color: #fff; font-size: 12px; }
.tr-v320-place-body { padding: 16px; }
.tr-v320-place-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tr-v320-place-badges span,
.tr-v320-place-meta span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f2f4f8;
    color: var(--tr-v320-muted);
    font-size: 11px;
    font-weight: 800;
}
.tr-v320-place-badges .tr-v320-type { background: #eef0f8; color: var(--tr-v320-navy); }
.tr-v320-place-badges .tr-v320-verified { background: #edf8f2; color: #247048; }
.tr-v320-place-badges .tr-v320-reviewing { background: #fff7e9; color: #8b682b; }
.tr-v320-place-badges .tr-v320-open { background: #ecf8f0; color: #247048; }
.tr-v320-place-badges .tr-v320-closed { background: #fff0f0; color: #9a4141; }
.tr-v320-place-card h3 { margin: 12px 0 8px; font-size: 21px; line-height: 1.45; }
.tr-v320-place-card h3 a { color: var(--tr-v320-navy); text-decoration: none; }
.tr-v320-place-card p { margin: 9px 0; color: var(--tr-v320-muted); line-height: 1.65; }
.tr-v320-rating { display: flex; align-items: center; gap: 4px; color: #b28b39; }
.tr-v320-rating small { color: var(--tr-v320-muted); }
.tr-v320-place-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tr-v320-nav-actions,
.tr-v320-place-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tr-v320-nav-actions a,
.tr-v320-place-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}
.tr-v320-nav-actions a { background: #f0f2f8; color: var(--tr-v320-navy); }
.tr-v320-place-actions .tr-v320-details { background: var(--tr-v320-navy); color: #fff; }
.tr-v320-place-actions .tr-v320-call { background: #edf8f2; color: #236b45; }
.tr-v320-place-actions .tr-v320-external { background: #fff3f3; color: var(--tr-v320-red); }
.tr-v320-map-results .tr-v320-place-card { display: grid; grid-template-columns: 110px 1fr; border-radius: 16px; }
.tr-v320-map-results .tr-v320-place-image { aspect-ratio: auto; min-height: 100%; }
.tr-v320-map-results .tr-v320-place-image img { padding: 9px; }
.tr-v320-map-results .tr-v320-place-body { padding: 12px; }
.tr-v320-map-results .tr-v320-place-card h3 { font-size: 17px; }
.tr-v320-map-results .tr-v320-place-meta,
.tr-v320-map-results .tr-v320-external { display: none; }

.tr-v320-empty,
.tr-v320-notice {
    padding: 28px;
    border: 1px dashed #d9deea;
    border-radius: 18px;
    background: #fafbfe;
    text-align: center;
    color: var(--tr-v320-muted);
}
.tr-v320-notice { max-width: 760px; margin: 40px auto; }
.tr-v320-notice h2 { color: var(--tr-v320-navy); }
.tr-v320-notice a { display: inline-flex; margin-top: 10px; padding: 11px 18px; border-radius: 12px; background: var(--tr-v320-navy); color: #fff; text-decoration: none; font-weight: 800; }
.tr-v320-mini-card { padding: 14px; border: 1px solid var(--tr-v320-line); border-radius: 14px; }
.tr-v320-mini-card a { display: grid; gap: 4px; text-decoration: none; }
.tr-v320-mini-card strong { color: var(--tr-v320-navy); }
.tr-v320-mini-card span,
.tr-v320-mini-card small { color: var(--tr-v320-muted); }

.tr-v320-map-marker { background: transparent; border: 0; }
.tr-v320-map-marker span { display: grid; place-items: center; width: 36px; height: 36px; border: 3px solid #fff; border-radius: 50% 50% 50% 12px; transform: rotate(-45deg); background: var(--tr-v320-navy); color: #fff; box-shadow: 0 7px 18px rgba(38,49,88,.3); font-weight: 900; }
.tr-v320-map-marker span::first-letter { transform: rotate(45deg); }
.tr-v320-marker-health span { background: #bf555a; }
.tr-v320-marker-education span { background: #7463a7; }
.tr-v320-marker-toys span { background: #b38e47; }
.tr-v320-marker-clothing span { background: #9a6583; }
.tr-v320-user-marker { stroke: #fff; fill: #2f76d2; }
.tr-v320-popup { display: grid; gap: 6px; min-width: 220px; font-family: inherit; }
.tr-v320-popup strong { color: var(--tr-v320-navy); font-size: 17px; }
.tr-v320-popup > span { color: var(--tr-v320-red); font-size: 12px; font-weight: 800; }
.tr-v320-popup p { margin: 0; color: var(--tr-v320-muted); }
.tr-v320-popup div { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-v320-popup a { padding: 7px 9px; border-radius: 8px; background: #eff1f7; color: var(--tr-v320-navy); text-decoration: none; font-weight: 800; }

.tr-v320-today-quicklinks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 28px;
}
.tr-v320-today-quicklinks a {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--tr-v320-line);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f7f8fc);
    text-decoration: none;
}
.tr-v320-today-quicklinks strong { color: var(--tr-v320-navy); font-size: 18px; }
.tr-v320-today-quicklinks span { color: var(--tr-v320-muted); }
.tr-v320-campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tr-v320-campaign-grid article { padding: 18px; border: 1px solid var(--tr-v320-line); border-radius: 18px; background: #fff; }
.tr-v320-campaign-grid article > span { color: var(--tr-v320-red); font-size: 12px; font-weight: 800; }
.tr-v320-campaign-grid h3 { margin: 8px 0; color: var(--tr-v320-navy); }
.tr-v320-campaign-grid p { color: var(--tr-v320-muted); }
.tr-v320-campaign-grid small { display: block; color: var(--tr-v320-muted); }
.tr-v320-campaign-grid a { display: inline-flex; margin-top: 10px; color: var(--tr-v320-red); font-weight: 800; }

.tr-v320-trust-panel {
    margin: 28px 0;
    padding: 22px;
    border: 1px solid var(--tr-v320-line);
    border-radius: 22px;
    background: linear-gradient(135deg, #fff, #f8f9fc);
}
.tr-v320-trust-panel header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.tr-v320-trust-panel header span { color: var(--tr-v320-muted); font-size: 13px; }
.tr-v320-trust-panel h2 { margin: 3px 0 0; color: var(--tr-v320-navy); }
.tr-v320-trust-panel header > strong { color: var(--tr-v320-red); }
.tr-v320-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.tr-v320-trust-grid article { display: grid; gap: 3px; padding: 13px; border-radius: 14px; background: #fff; }
.tr-v320-trust-grid b { color: var(--tr-v320-navy); }
.tr-v320-trust-grid span { color: var(--tr-v320-muted); font-size: 12px; }
.tr-v320-report-link { display: inline-flex; padding: 10px 14px; border-radius: 11px; background: #fff0f0; color: #9a4141; text-decoration: none; font-weight: 800; }

.tr-v320-quality-admin { margin-top: 24px; }
.tr-v320-quality-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.tr-v320-quality-metrics article { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--tr-v320-line); border-radius: 16px; background: #fff; }
.tr-v320-quality-metrics strong { color: var(--tr-v320-navy); font-size: 28px; }
.tr-v320-quality-metrics span { color: var(--tr-v320-muted); }
.tr-v320-bulk-bar { display: flex; gap: 10px; margin-bottom: 12px; }
.tr-v320-bulk-bar select { max-width: 320px; }
.tr-v320-bulk-bar button { padding: 0 18px; background: var(--tr-v320-navy); color: #fff; }
.tr-v320-quality-list { display: grid; gap: 8px; max-height: 500px; overflow: auto; }
.tr-v320-quality-list label { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--tr-v320-line); border-radius: 13px; background: #fff; }
.tr-v320-quality-list input { width: 18px; height: 18px; margin: 0; }
.tr-v320-quality-list span { display: grid; gap: 3px; }
.tr-v320-quality-list small { color: var(--tr-v320-muted); }
.tr-v320-insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.tr-v320-insights-grid section { padding: 16px; border: 1px solid var(--tr-v320-line); border-radius: 16px; background: #fff; }
.tr-v320-insights-grid h3 { margin-top: 0; color: var(--tr-v320-navy); }
.tr-v320-insights-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tr-v320-insights-grid li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid #eef0f5; }
.tr-v320-insights-grid li span { color: var(--tr-v320-muted); font-size: 12px; }

@media (max-width: 1180px) {
    .tr-v320-filters,
    .tr-v320-weekend .tr-v320-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tr-v320-search { grid-column: span 2; }
    .tr-v320-map-layout { grid-template-columns: 1fr; }
    .tr-v320-map-wrap { position: relative; top: auto; height: 580px; }
    .tr-v320-result-list { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
    .tr-v320-weekend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .tr-v320-map-page,
    .tr-v320-weekend { width: min(100% - 18px, 1480px); margin-top: 16px; }
    .tr-v320-hero { flex-direction: column; align-items: stretch; padding: 25px 20px; border-radius: 22px; }
    .tr-v320-hero h1 { font-size: 34px; }
    .tr-v320-locate { width: 100%; min-width: 0; }
    .tr-v320-filters,
    .tr-v320-weekend .tr-v320-filters { grid-template-columns: 1fr 1fr; padding: 12px; border-radius: 18px; }
    .tr-v320-search { grid-column: 1 / -1; }
    .tr-v320-filters .tr-v320-check { min-height: 44px; }
    .tr-v320-map-wrap { min-height: 430px; height: 60vh; border-radius: 18px; }
    .tr-v320-map-results { padding: 12px; border-radius: 18px; }
    .tr-v320-result-list,
    .tr-v320-weekend-grid,
    .tr-v320-campaign-grid,
    .tr-v320-today-quicklinks,
    .tr-v320-quality-metrics,
    .tr-v320-insights-grid { grid-template-columns: 1fr; }
    .tr-v320-map-results .tr-v320-place-card { grid-template-columns: 92px 1fr; }
    .tr-v320-trust-grid { grid-template-columns: 1fr; }
    .tr-v320-trust-panel header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 500px) {
    .tr-v320-filters,
    .tr-v320-weekend .tr-v320-filters { grid-template-columns: 1fr; }
    .tr-v320-search { grid-column: auto; }
    .tr-v320-map-results .tr-v320-place-card { grid-template-columns: 1fr; }
    .tr-v320-map-results .tr-v320-place-image { min-height: 150px; }
    .tr-v320-place-actions a,
    .tr-v320-nav-actions a { flex: 1 1 auto; }
    .tr-v320-bulk-bar { flex-direction: column; }
    .tr-v320-bulk-bar select { max-width: none; }
}
