/* /domains/gromadan.com/public_html/css/geo/real_estate.css
   Использует переменные из css/style.css — подключать ПОСЛЕ него. */

.re-page-head { margin-bottom: 6px; }
.re-title { font-size: 1.5rem; font-weight: 800; }
.re-subtitle { color: var(--text-secondary); margin-top: 4px; }

.re-cat-tabs {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    overflow-x: auto;
}
.re-cat-tab {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.re-cat-tab.active { color: var(--primary); }

.re-deal-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 18px;
    flex-wrap: wrap;
}
.re-deal-chip {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}
.re-deal-chip.active { background: var(--primary); color: #fff; }
.re-add-btn {
    margin-left: auto;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background: var(--gradient);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* === Список карток: горизонтальні рядки (фото зліва, дані справа) === */
.re-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.re-nearby-divider {
    padding: 14px 18px;
    margin: 4px 0;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.re-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.re-card:hover { transform: translateY(-2px); }

.re-card-img-wrap {
    position: relative;
    width: 280px;
    height: 170px;
    flex-shrink: 0;
}
.re-card-img { width: 100%; height: 100%; object-fit: cover; }

.re-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}
.re-badge-sale { background: #C2185B; }
.re-badge-rent { background: #2ECC71; }
.re-badge-short_rent { background: #7C4DFF; }
.re-badge-top { background: #17C3B2; left: auto; right: 10px; }

.re-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.re-card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.re-card-name {
    font-weight: 700;
    font-size: 1.12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.re-card-fav {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
}
.re-card-fav .icon { width: 16px; height: 16px; }
.re-card-fav.active { color: #E63946; border-color: #E63946; }
.re-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.re-card-location .icon { width: 14px; height: 14px; flex-shrink: 0; }
.re-card-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.re-card-price { font-weight: 800; font-size: 1.35rem; color: var(--primary); }
.re-card-price-m2 { font-size: 0.8rem; color: var(--text-secondary); }
.re-card-meta { display: flex; gap: 16px; color: var(--text-secondary); font-size: 0.85rem; flex-wrap: wrap; }
.re-card-meta span { display: flex; align-items: center; gap: 5px; }
.re-card-meta .icon { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 700px) {
    .re-card-img-wrap { width: 200px; height: 150px; }
}
@media (max-width: 560px) {
    .re-card { flex-direction: column; }
    .re-card-img-wrap { width: 100%; height: 180px; }
    .re-card-body { padding: 14px 16px; }
}

/* === Форма створення: сторінка з layout'ом контент+сайдбар === */
.re-form-page { max-width: 1200px; }
.re-form-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

/* Рядок "хлібні крихти + кнопка Назад" на сторінці створення оголошення
   МАЄ повторювати пропорцію .re-form-grid (2fr 1fr), інакше через
   .main.re-form-wide (яка навмисно розтягнута на місце правої колонки
   .app) кнопка їде до правого краю над re-form-side, а не над
   re-form-main. Порожня друга колонка тут — точно такої ж ширини,
   як re-form-side нижче, просто без вмісту. */
.re-form-page .re-detail-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}
.re-form-page .re-detail-top-inner {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
@media (max-width: 900px) {
    .re-form-page .re-detail-top {
        grid-template-columns: 1fr;
    }
    .re-form-page .re-detail-top-inner {
        grid-column: 1;
    }
}

.re-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .re-form-grid { grid-template-columns: 1fr; }
}

.re-form-main { display: flex; flex-direction: column; gap: 0; }
.re-form-main .re-side-block { margin-bottom: 18px; }
.re-form-side { display: flex; flex-direction: column; }

.re-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.re-field:last-child { margin-bottom: 0; }
.re-field label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; }
.re-field select {
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    font-family: inherit;
    font-size: 0.95rem;
}
.re-field-row { display: flex; gap: 12px; margin-bottom: 16px; }
.re-field-row .re-field { flex: 1; margin-bottom: 0; }
.re-field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.re-field-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) {
    .re-field-row-3, .re-field-row-4 { grid-template-columns: 1fr 1fr; }
}
.re-field-inline { display: flex; gap: 8px; }
.re-field-inline input { flex: 1; }
.re-currency-select { width: 90px; flex-shrink: 0; }
.re-address-row { align-items: stretch; }
.re-address-row input { flex: 1; }

.re-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.re-char-counter {
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* === Перемикач Новобудова/Вторинний ринок та amenities === */
.re-toggle-group { display: flex; gap: 10px; margin-bottom: 16px; }
.re-toggle-btn {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.re-toggle-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.re-amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 900px) {
    .re-amenities-grid { grid-template-columns: repeat(2, 1fr); }
}
.re-amenity-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    cursor: pointer;
    user-select: none;
}
.re-amenity-toggle input { display: none; }
.re-amenity-toggle:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.re-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.9rem;
    cursor: pointer;
}

.re-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.re-submit {
    flex: 1;
    min-width: 220px;
    padding: 15px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.re-draft-btn {
    padding: 15px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
}

/* === Дропзона фото === */
.re-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 16px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}
.re-dropzone:hover, .re-dropzone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.re-dropzone-title { font-weight: 700; color: var(--text-primary); }
.re-dropzone-hint { font-size: 0.85rem; }
.re-dropzone-link { color: var(--primary); font-weight: 600; }

.re-photo-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.re-photo-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.re-photo-more {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
}

.re-tips-block ul.re-tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.re-tips-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.88rem;
    color: var(--text-primary);
}
.re-tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ECC71;
    font-weight: 700;
}

.re-safety-block {
    background: var(--primary-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.re-safety-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
}
.re-safety-block p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}





/* === Картка оголошення === */
.re-detail { max-width: 1080px; }
.re-back-link { color: var(--primary); font-weight: 600; text-decoration: none; }

/* Двоколонковий layout деталей: контент + локальний сайдбар.
   Це ВНУТРІШНЯ сітка всередині .main (загальний .right_panel сайту
   лишається праворуч як окрема колонка — тут не чіпаємо .app). */
.re-detail-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.re-detail-breadcrumbs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}
/* Без min-width:0 на самому <nav> браузерний дефолт min-width:auto
   блокує стиснення всієї гілки .breadcrumbs-list → li → .breadcrumbs-current,
   тому довга назва оголошення розпирала ряд замість обрізки трьома крапками. */
.re-detail-breadcrumbs-row .breadcrumbs {
    min-width: 0;
}
.re-lang-switch {
    position: relative;
    flex-shrink: 0;
}
.re-detail-action-btn {
    flex-shrink: 0;
}
.re-lang-switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: pointer;
    list-style: none;
    transition: var(--transition);
}
.re-lang-switch-btn::-webkit-details-marker {
    display: none;
}
.re-lang-switch-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--text-secondary);
}
.re-lang-switch[open] .re-lang-switch-btn,
.re-lang-switch-btn:hover {
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.re-lang-switch-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    min-width: 160px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.re-lang-switch-item {
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.88rem;
}
.re-lang-switch-item:hover {
    background: var(--bg);
}
.re-lang-switch-item.current {
    color: var(--primary);
    background: var(--primary-light);
}
.re-detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.re-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .re-detail-grid { grid-template-columns: 1fr; }
}

/* Галерея "виходить за краї" картки (bleed) рівно на padding
   .re-detail-card (22px) — щоб фото торкалось країв блоку. Якщо
   padding .re-detail-card зміниться — поправити ці -22px/44px разом
   з ним (CSS-змінної для padding картки в проєкті поки нема). */
.re-gallery {
    display: grid;
    grid-template-columns: 5fr 1fr;
    gap: 3px;
    margin: -22px -22px 18px -22px;
    width: calc(100% + 44px);
}
.re-gallery-main {
    position: relative;
}
.re-gallery-main img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-lg) 0 0 0;
}
.re-gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}
.re-gallery-badge.re-badge-sale { background: #C2185B; }
.re-gallery-badge.re-badge-rent { background: #2ECC71; }
.re-gallery-badge.re-badge-short_rent { background: #7C4DFF; }
.re-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
}
/* Рівно 2 фото на все оголошення — єдине бокове фото розтягується
   на всю висоту .re-gallery-side, замість того щоб лишати порожню
   нижню половину. */
.re-gallery-side-full {
    grid-template-rows: 1fr;
}
.re-gallery-side-full img:first-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.re-gallery-side img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.re-gallery-side img:first-child { border-radius: 0 var(--radius-lg) 0 0; }
.re-gallery-more {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-weight: 700;
}
/* Одне фото — на всю ширину, обидва верхні кути заокруглені. */
.re-gallery-single { grid-template-columns: 1fr; }
.re-gallery-single .re-gallery-main img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

@media (max-width: 640px) {
    .re-gallery { grid-template-columns: 1fr; gap: 3px; }
    .re-gallery-main img { height: 220px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .re-gallery-side { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
    .re-gallery-side img { height: 100px; border-radius: 0; }
    .re-gallery-side img:first-child { border-radius: 0; }
}

/* Бейджі на сторінці деталей — БЕЗ position:absolute (на відміну від
   .re-card-badge у сітці карток, який прив'язаний до .re-card-img-wrap).
   Раніше тут помилково перевикористовувався .re-card-badge, через
   що бейдж "вилітав" у верхній лівий кут сторінки. */
.re-detail-badges { display: flex; gap: 8px; margin-bottom: 10px; }
.re-detail-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}
.re-detail-badge.re-badge-sale { background: #C2185B; }
.re-detail-badge.re-badge-rent { background: #2ECC71; }
.re-detail-badge.re-badge-short_rent { background: #7C4DFF; }
.re-detail-badge.re-badge-top { background: #17C3B2; }

.re-detail-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.re-detail-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.re-detail-location-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.re-detail-location-link:hover {
    text-decoration: underline;
}

.re-detail-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.re-detail-price-block { display: flex; align-items: baseline; gap: 10px; }
.re-detail-price { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.re-detail-price-m2 { font-size: 0.95rem; color: var(--text-secondary); }
.re-detail-price-actions { display: flex; gap: 10px; }
.re-detail-contact-btn {
    padding: 13px 22px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.re-show-phone {
    padding: 13px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* Единый белый контейнер под галерею/цену/характеристики/опис/контакт —
   вместо отдельной "плитки" на каждый блок. Разделители между блоками —
   через .re-detail-section (border-top), а не через margin+тень. */
.re-detail-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px;
}
.re-detail-section {
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 20px;
}

.re-detail-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.re-detail-specs div { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.re-detail-specs .icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--primary); }
.re-spec-text { display: flex; flex-direction: column; gap: 2px; }
.re-detail-specs span { font-size: 0.78rem; color: var(--text-secondary); }
.re-detail-specs b { font-size: 1rem; }
@media (max-width: 640px) {
    .re-detail-specs { grid-template-columns: repeat(2, 1fr); }
}

.re-detail-desc h2 { font-size: 1.05rem; margin-bottom: 10px; }
.re-detail-desc p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }

.re-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.re-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    color: var(--text-primary);
}
.re-detail-features .icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.re-detail-contact { display: flex; align-items: center; gap: 14px; }
.re-contact-name { font-weight: 700; }

/* === Локальний сайдбар (Seller / Similar / стата) === */
.re-side-block {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 18px;
}
.re-side-title { font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.re-side-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.re-side-title-row .re-side-title { margin-bottom: 0; }
.re-lang-select { padding: 8px 12px; border: 2px solid var(--border); border-radius: var(--radius-md); background: var(--bg); font-size: 0.85rem; }

.re-seller { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.re-seller-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.re-seller-name { font-weight: 700; font-size: 0.95rem; }
.re-seller-meta { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.re-seller-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.re-similar-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.re-similar-item:last-child { border-bottom: none; padding-bottom: 0; }
.re-similar-item:first-child { padding-top: 0; }

.re-similar-thumb {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}
.re-similar-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
}
.re-similar-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
}
.re-similar-badge.re-badge-sale { background: #C2185B; }
.re-similar-badge.re-badge-rent { background: #2ECC71; }
.re-similar-badge.re-badge-short_rent { background: #7C4DFF; }

.re-similar-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.re-similar-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.re-similar-price { font-weight: 800; font-size: 0.95rem; color: var(--text-primary); }
.re-similar-price-m2 { font-size: 0.76rem; color: var(--text-secondary); }
.re-similar-name {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.re-similar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.re-similar-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.re-similar-meta .icon {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}
.re-similar-fav {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    padding: 0;
    cursor: pointer;
}
.re-similar-fav .icon {
    width: 13px;
    height: 13px;
}

.re-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.88rem;
}
.re-stat-row span:first-child { color: var(--text-secondary); }
.re-stat-row b { color: var(--primary); }

.re-tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid var(--border);
    margin-top: 18px;
}
.re-tab {
    background: none;
    border: none;
    padding: 10px 0;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.re-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.re-tab-panel { padding-top: 14px; }
.re-tab-placeholder { color: var(--text-secondary); font-size: 0.9rem; }

.re-amenities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
    margin-top: 14px;
}
.re-amenity { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.re-amenity-check { color: #2ECC71; font-weight: 700; }
@media (max-width: 560px) {
    .re-amenities { grid-template-columns: 1fr; }
}

/* === Сторінка "Нове оголошення" не використовує загальний .right-panel
   сайту (своя колонка re-form-side вже показує фото/поради/безпеку) —
   розтягуємо .main на місце, зарезервоване під третю колонку .app,
   інакше центр звужується, а праворуч лишається порожнеча. === */
.main.re-form-wide {
    grid-column: 2 / -1;
}
@media (max-width: 900px) {
    .main.re-form-wide {
        grid-column: auto;
    }
}

/* === Мобільна крихта на сторінці оголошення: крихти скролять вліво/
   вправо, а глобус мов і кнопка "Назад" лишаються на місці в тому
   самому ряду (не їдуть разом зі скролом). === */
@media (max-width: 900px) {
    .re-detail-top {
        gap: 8px;
        align-items: center;
    }
    /* Увесь ряд (крихти + іконка глобуса) скролиться разом як єдине
       ціле — тягнеться пальцем вліво/вправо, як .stories на головній.
       Кнопка "Назад" — сусідній елемент у .re-detail-top, поза цим
       контейнером, тому лишається нерухомою. */
    .re-detail-breadcrumbs-row {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .re-detail-breadcrumbs-row::-webkit-scrollbar {
        display: none;
    }
    /* Сам <nav> більше НЕ скролиться самостійно (це створювало
       вкладений подвійний скрол-контейнер) — скролиться батьківський
       ряд цілком, nav просто займає свою натуральну ширину контенту. */
    .re-detail-breadcrumbs-row .breadcrumbs {
        overflow: visible;
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        margin-bottom: 0;
    }
    /* Глобус мов більше НЕ фіксується окремо — їде разом з крихтами
       в загальному скролі, як і просив. */
    .re-lang-switch {
        flex-shrink: 0;
    }
}