/* =============================================================================
   Tibbetts Repliers Integration — Stylesheet
   Matches Enfold theme navy (#1a2744) / white / gold (#e8a020) palette
   ============================================================================= */

:root {
    --tr-navy:   #0a1124;   /* exact site navy: rgb(10,17,36)   */
    --tr-gold:   #f59618;   /* exact site gold: rgb(245,150,24) */
    --tr-white:  #ffffff;
    --tr-light:  #f5f6f8;
    --tr-border: #dde1e9;
    --tr-text:   #444444;   /* exact body text: rgb(68,68,68)   */
    --tr-heading:#222222;   /* exact heading:   rgb(34,34,34)   */
    --tr-link:   #9cc2df;   /* exact link blue: rgb(156,194,223)*/
    --tr-muted:  #666666;
    --tr-font:   "Open Sans", Helvetica, Arial, sans-serif;
    --tr-radius: 4px;
    --tr-shadow: 0 2px 8px rgba(0,0,0,.10);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
/* ── Base font ────────────────────────────────────────────────────────────── */
.tr-search-page,
.tr-area-landing,
.tr-detail-page,
.lcard,
.tr-lead-form {
    font-family: var(--tr-font);
    color: var(--tr-text);
}

.tr-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--tr-radius);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--tr-font);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    border: 2px solid transparent;
}
.tr-btn--primary {
    background: var(--tr-gold);
    color: var(--tr-white);
    border-color: var(--tr-gold);
}
.tr-btn--primary:hover {
    background: #d4830f;
    border-color: #d4830f;
}
.tr-btn--outline {
    background: transparent;
    color: var(--tr-navy);
    border-color: var(--tr-navy);
}
.tr-btn--outline:hover {
    background: var(--tr-navy);
    color: var(--tr-white);
}
.tr-btn--full { width: 100%; text-align: center; }
.tr-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ── Listing Grid ─────────────────────────────────────────────────────────── */
.tr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

/* ── Listing Card ─────────────────────────────────────────────────────────── */
.lcard {
    background: var(--tr-white);
    border: 1px solid var(--tr-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.lcard:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.11);
    transform: translateY(-2px);
}
.lcard__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.lcard__img-wrap { position: relative; overflow: hidden; }
.lcard__img {
    width: 100%; height: 220px;
    object-fit: cover; display: block;
    transition: transform .35s;
    background: var(--tr-light);
}
.lcard:hover .lcard__img { transform: scale(1.04); }
.lcard__badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--tr-heading); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    padding: 4px 10px; border-radius: 5px;
}
.lcard__heart {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.92); border: 1.5px solid rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #555;
    transition: all .15s; box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.lcard__heart:hover { background: #fff; color: #e74c3c; border-color: #e74c3c; }
.lcard__heart svg { width: 14px; height: 14px; pointer-events: none; }
.lcard__body { padding: 14px 16px 0; }
.lcard__price {
    font-size: 20px; font-weight: 800;
    color: var(--tr-heading); margin-bottom: 3px; letter-spacing: -.02em;
}
.lcard__address { font-size: 13px; color: #222; font-weight: 500; margin-bottom: 5px; }
.lcard__meta    { font-size: 12px; color: #6b7280; }
.lcard__footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px 14px; margin-top: 10px;
    border-top: 1px solid #f3f4f6;
    font-size: 11px; color: #9ca3af; font-weight: 500;
}

/* ── Autocomplete Dropdown ───────────────────────────────────────────────── */
.tr-autocomplete-wrap {
    position: relative;
    flex: 1;
}
.tr-autocomplete-list {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    margin: 0;
    padding: 4px 0;
    list-style: none;
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
}
.tr-autocomplete-list li {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--tr-text);
    cursor: pointer;
    transition: background .1s;
}
.tr-autocomplete-list li:hover,
.tr-autocomplete-list li.tr-autocomplete-active {
    background: var(--tr-light);
    color: var(--tr-navy);
}

/* ── Hero Search Bar ─────────────────────────────────────────────────────── */
.tr-hero-search {
    display: flex;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    border-radius: 4px;
    overflow: visible; /* allow autocomplete dropdown to escape the bar */
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
/* Re-apply radius to the input since overflow:visible removes clipping */
.tr-hero-autocomplete-wrap .tr-hero-search__input {
    border-radius: 4px 0 0 4px;
}
.tr-hero-search__input {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    border: none;
    outline: none;
    font-family: inherit;
    color: #222;
    background: #fff;
}
.tr-hero-search__btn {
    padding: 14px 28px;
    background: var(--tr-gold, #f59618);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s;
}
.tr-hero-search__btn:hover { background: #e08810; }

/* ── Search Form ──────────────────────────────────────────────────────────── */
.tr-search-form {
    background: var(--tr-navy);
    padding: 20px 24px;
    border-radius: var(--tr-radius);
    margin-bottom: 24px;
}
.tr-search-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.tr-search-form__field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}
.tr-search-form__field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255,255,255,.75);
    margin-bottom: 5px;
}
.tr-search-form__field select,
.tr-search-form__field input {
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--tr-radius);
    background: rgba(255,255,255,.1);
    color: var(--tr-white);
    font-size: 14px;
    appearance: none;
}
.tr-search-form__field select option { background: var(--tr-navy); color: var(--tr-white); }
.tr-search-form__field--submit { justify-content: flex-end; }
.tr-search-form__field--submit .tr-btn { width: 100%; }

/* ── Search Layout ────────────────────────────────────────────────────────── */
.tr-search-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.tr-search-map-wrap { position: sticky; top: 80px; height: 600px !important; }
#tr-map { width: 100% !important; height: 100% !important; min-height: 400px !important; border-radius: var(--tr-radius); }
.tr-search-results-wrap { min-height: 600px; }
.tr-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.tr-results-count { font-size: 14px; color: var(--tr-muted); }
.tr-search-sort select {
    padding: 6px 10px;
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius);
    font-size: 13px;
}

/* ── Map Marker Popup ─────────────────────────────────────────────────────── */
.tr-map-popup img { width: 100%; height: 80px; object-fit: cover; border-radius: 3px; margin-bottom: 6px; }
.tr-map-popup .price { font-weight: 700; color: var(--tr-navy); }
.tr-map-popup a { color: var(--tr-navy); font-size: 12px; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.tr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}
#tr-page-info { font-size: 13px; color: var(--tr-muted); }

/* ── Area Landing ─────────────────────────────────────────────────────────── */
.tr-area-header { margin-bottom: 16px; }
.tr-area-header__title { font-size: 28px; color: var(--tr-heading); margin: 0 0 4px; }
.tr-area-header__count { font-size: 14px; color: var(--tr-muted); margin: 0; }
.tr-area-contact {
    background: var(--tr-light);
    border-left: 4px solid var(--tr-navy);
    padding: 28px 32px;
    margin-top: 40px;
    border-radius: 0 var(--tr-radius) var(--tr-radius) 0;
}
.tr-area-contact h3 { color: var(--tr-heading); margin-top: 0; }

/* ── Listing Detail Page (Pine-Style) ────────────────────────────────────── */

/* Photo grid wrapper — contained with margins, rounded corners */
.tr-photo-grid-wrap {
    max-width: 1350px;
    margin: 20px auto 0;
    padding: 0 24px;
}
.tr-photo-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 430px;
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f2f5;
}
.tr-photo-grid__main {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 0;
    border-radius: 8px;
}
.tr-photo-grid__main img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.tr-photo-grid__main:hover img { transform: scale(1.03); }
.tr-photo-grid__placeholder {
    width: 100%; height: 100%;
    background: var(--tr-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--tr-muted); font-size: 15px;
}
.tr-photo-grid__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
    min-height: 0;
}
.tr-photo-grid__cell {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 0;
    border-radius: 8px;
}
.tr-photo-grid__cell img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .4s ease;
}
.tr-photo-grid__cell:hover img { transform: scale(1.05); }
.tr-photo-grid__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.32);
    display: flex; align-items: flex-end; justify-content: flex-end;
    padding: 12px;
}
.tr-photo-grid__all-btn {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.92);
    border: none; border-radius: 6px;
    padding: 8px 14px; font-size: 13px; font-weight: 600;
    cursor: pointer; color: var(--tr-heading);
    font-family: var(--tr-font);
    box-shadow: 0 1px 6px rgba(0,0,0,.15);
    transition: background .15s;
}
.tr-photo-grid__all-btn:hover { background: #fff; }
.tr-photo-grid__all-btn svg { width: 15px; height: 15px; }
.tr-photo-grid__tour-btn {
    position: absolute; bottom: 12px; left: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.92); color: #111;
    border: none; border-radius: 6px;
    padding: 8px 14px; font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none;
    font-family: var(--tr-font);
    box-shadow: 0 1px 6px rgba(0,0,0,.15);
    transition: background .15s;
}
.tr-photo-grid__tour-btn:hover { background: #fff; color: #111; }
.tr-photo-grid__tour-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Content layout */
.tr-detail-wrap {
    max-width: 1350px;
    margin: 0 auto;
    padding: 36px 24px 64px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

/* Status badge */
.tr-listing-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: .01em;
}
.tr-listing-badge--active     { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.tr-listing-badge--lease      { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tr-listing-badge--commercial { background: #fefce8; color: #854d0e; border: 1px solid #fde68a; }
.tr-listing-badge--other      { background: #f5f5f5; color: #555;    border: 1px solid #ddd;    }

/* Price */
.tr-listing-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--tr-heading);
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 6px;
}

/* Address */
.tr-listing-address {
    font-size: 16px;
    color: var(--tr-muted);
    font-weight: 400;
    margin-bottom: 18px;
}

/* Stats row */
.tr-listing-stats {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--tr-border);
    border-bottom: 1px solid var(--tr-border);
    padding: 14px 0;
    margin-bottom: 8px;
    gap: 0;
}
.tr-listing-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--tr-muted);
    padding-right: 22px;
    margin-right: 22px;
    border-right: 1px solid var(--tr-border);
}
.tr-listing-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.tr-listing-stat svg { width: 17px; height: 17px; stroke: var(--tr-heading); flex-shrink: 0; }
.tr-listing-stat strong { color: var(--tr-heading); font-weight: 600; }
.tr-listing-mls { font-size: 11px; color: #aaa; margin-bottom: 28px; }

/* Sections */
.tr-detail-section { margin-bottom: 36px; }
.tr-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tr-heading);
    letter-spacing: -.02em;
    margin: 0 0 14px;
}
.tr-overview-text { font-size: 14px; line-height: 1.75; color: #444; }
.tr-show-more {
    background: none; border: none;
    font-family: var(--tr-font); font-size: 14px; font-weight: 600;
    color: var(--tr-navy); cursor: pointer; padding: 0;
    text-decoration: underline; margin-top: 6px; display: block;
}

/* Property detail grid — Pine style (3-col, bordered rows) */
.tr-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--tr-border);
    border-radius: 10px;
    overflow: hidden;
}
.tr-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-right: 1px solid var(--tr-border);
    border-bottom: 1px solid var(--tr-border);
}
.tr-detail-item:nth-child(3n)       { border-right: none; }
.tr-detail-item:nth-last-child(-n+3) { border-bottom: none; }
.tr-detail-item svg { width: 20px; height: 20px; stroke: var(--tr-muted); flex-shrink: 0; }
.tr-detail-item__val   { font-size: 14px; font-weight: 600; color: var(--tr-heading); line-height: 1.2; }
.tr-detail-item__label { font-size: 12px; color: var(--tr-muted); margin-top: 1px; }

/* Map */
.tr-detail-map { height: 300px; border-radius: var(--tr-radius); overflow: hidden; }
.tr-detail-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Listing title (h1 hero) */
.tr-listing-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--tr-heading);
    line-height: 1.3;
    margin: 0 0 14px;
}
.tr-listing-title__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tr-gold);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    margin-bottom: 4px;
}
.tr-listing-title__address {
    display: block;
}

/* Property summary */
.tr-property-summary {
    background: var(--tr-light);
    border-left: 4px solid var(--tr-gold);
    padding: 16px 20px;
    border-radius: 0 var(--tr-radius) var(--tr-radius) 0;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--tr-text);
}

/* Section headings hierarchy */
.tr-section-title--h2 { font-size: 20px; }
.tr-section-title--h3 { font-size: 17px; }
.tr-section-title--h4 { font-size: 15px; font-weight: 600; color: var(--tr-muted); }

/* Listing agent attribution */
.tr-listing-agent {
    font-size: 12px;
    color: var(--tr-muted);
    border-top: 1px solid var(--tr-border);
    padding-top: 12px;
    margin-top: 8px;
}
.tr-listing-agent strong { color: var(--tr-text); }

/* Sidebar */
.tr-detail-sidebar { position: sticky; top: 80px; align-self: start; }

/* Contact card */
.tr-contact-card {
    border: 1px solid var(--tr-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    background: #fff;
}
.tr-contact-card__agent {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--tr-border);
}
.tr-contact-card__photo {
    width: 56px; height: 56px;
    border-radius: 50%; object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--tr-border);
}
.tr-contact-card__photo-fallback {
    width: 56px; height: 56px;
    border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--tr-navy), #1e3a6e);
    display: none; align-items: center; justify-content: center;
    color: #fff; font-size: 17px; font-weight: 700;
    border: 2px solid var(--tr-border);
}
.tr-contact-card__agent-info { display: flex; flex-direction: column; gap: 3px; }
.tr-contact-card__name    { font-size: 15px; font-weight: 700; color: var(--tr-heading); }
.tr-contact-card__company { font-size: 12px; color: var(--tr-muted); }
.tr-contact-card__phone   { font-size: 14px; font-weight: 600; color: var(--tr-navy); text-decoration: none; }
.tr-contact-card__phone:hover { text-decoration: underline; }
.tr-contact-card__email-link { font-size: 13px; color: var(--tr-link); text-decoration: none; }
.tr-contact-card__email-link:hover { text-decoration: underline; }

/* Tabs */
.tr-contact-card__tabs { display: flex; border-bottom: 1px solid var(--tr-border); }
.tr-contact-tab {
    flex: 1; padding: 12px 8px;
    background: var(--tr-light);
    border: none; font-size: 13px; font-weight: 600;
    color: var(--tr-muted); cursor: pointer;
    font-family: var(--tr-font);
    transition: background .15s, color .15s;
    border-right: 1px solid var(--tr-border);
}
.tr-contact-tab:last-child { border-right: none; }
.tr-contact-tab--active { background: var(--tr-heading); color: #fff; }
.tr-contact-tab:not(.tr-contact-tab--active):hover { background: #e9ecf1; color: var(--tr-heading); }

/* Panels */
.tr-contact-panel { padding: 18px 20px 20px; }
.tr-contact-panel--hidden { display: none; }
.tr-contact-panel__title { font-size: 13px; font-weight: 700; color: var(--tr-heading); margin: 0 0 14px; }

/* Dark button */
.tr-btn--dark {
    background: var(--tr-heading); color: #fff;
    border-color: var(--tr-heading);
}
.tr-btn--dark:hover { background: #000; border-color: #000; }

/* Lightbox */
.tr-lightbox {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.94);
    align-items: center; justify-content: center; flex-direction: column;
}
.tr-lightbox--open { display: flex; }
.tr-lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 4px; display: block; }
.tr-lightbox__close,
.tr-lightbox__nav {
    position: fixed;
    background: rgba(255,255,255,.12); border: none; border-radius: 50%;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; transition: background .15s; z-index: 2;
}
.tr-lightbox__close { top: 18px; right: 20px; }
.tr-lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.tr-lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.tr-lightbox__close:hover, .tr-lightbox__nav:hover { background: rgba(255,255,255,.26); }
.tr-lightbox__close svg, .tr-lightbox__nav svg { width: 22px; height: 22px; }
.tr-lightbox__counter {
    color: rgba(255,255,255,.6); font-size: 13px;
    margin-top: 14px; font-family: var(--tr-font);
}
.tr-no-scroll { overflow: hidden; }

/* ── Lead Form ────────────────────────────────────────────────────────────── */
.tr-lead-form .tr-lead-form__row { margin-bottom: 10px; }
.tr-lead-form input,
.tr-lead-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--tr-border);
    border-radius: var(--tr-radius);
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--tr-text);
    background: #fff;
}
.tr-lead-form input:focus,
.tr-lead-form textarea:focus {
    border-color: var(--tr-navy);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,17,36,.07);
}
.tr-lead-form__feedback {
    padding: 10px 14px;
    border-radius: var(--tr-radius);
    font-size: 14px;
    margin-top: 10px;
}
.tr-lead-form__feedback--success { background: #d4edda; color: #155724; }
.tr-lead-form__feedback--error   { background: #f8d7da; color: #721c24; }
.tr-lead-form__consent { font-size: 11px; color: var(--tr-muted); margin-top: 10px; line-height: 1.4; }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.tr-error { color: #c0392b; background: #fdf0ef; border: 1px solid #f5c6cb; padding: 12px 16px; border-radius: var(--tr-radius); }
.tr-no-results { color: var(--tr-muted); font-size: 15px; padding: 24px 0; }
.tr-loading { display: flex; flex-direction: column; align-items: center; padding: 48px; color: var(--tr-muted); }
.tr-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--tr-border);
    border-top-color: var(--tr-navy);
    border-radius: 50%;
    animation: tr-spin .7s linear infinite;
    margin-bottom: 12px;
}
@keyframes tr-spin { to { transform: rotate(360deg); } }
.tr-disclaimer {
    font-size: 11px; color: var(--tr-muted); line-height: 1.5;
    border-top: 1px solid var(--tr-border); padding-top: 12px; margin-top: 16px;
}
.tr-mlspin-logo { opacity: .7; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .tr-detail-wrap { grid-template-columns: 1fr 320px; gap: 32px; }
    .tr-photo-grid { grid-template-rows: 360px; }
}
@media (max-width: 1024px) {
    .tr-search-layout { grid-template-columns: 1fr; }
    .tr-search-map-wrap { height: 300px; position: static; }
    .tr-detail-wrap { grid-template-columns: 1fr; }
    .tr-detail-sidebar { position: static; }
    .tr-photo-grid { grid-template-rows: 320px; }
}
@media (max-width: 768px) {
    .tr-grid { grid-template-columns: 1fr 1fr; }
    .tr-search-form__row { flex-direction: column; }
    .tr-photo-grid { grid-template-columns: 1fr; grid-template-rows: 260px; }
    .tr-photo-grid__side { display: none; }
    .tr-listing-price { font-size: 28px; }
    .tr-detail-grid { grid-template-columns: 1fr 1fr; }
    .tr-detail-item:nth-child(3n)        { border-right: 1px solid var(--tr-border); }
    .tr-detail-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--tr-border); }
    .tr-detail-item:nth-child(2n)        { border-right: none; }
    .tr-detail-item:nth-last-child(-n+2) { border-bottom: none; }
    .tr-detail-wrap { padding: 24px 16px 48px; }
    .tr-photo-grid-wrap { padding: 0 16px; }
}
@media (max-width: 480px) {
    .tr-grid { grid-template-columns: 1fr; }
    .tr-detail-grid { grid-template-columns: 1fr; }
    .tr-detail-item { border-right: none !important; }
    .tr-detail-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--tr-border); }
    .tr-detail-item:last-child { border-bottom: none; }
    .tr-listing-stats { gap: 12px 0; }
}
