/* ============================================
   ПОСАДОЧНАЯ СТРАНИЦА ЛОКАЦИИ
   Страница "Имоти в <локация>" — SEO-вход по запросам вида
   "апартаменти златни пясъци". Переиспользует карточки из properties.css.
   ============================================ */

/* properties.css вешает на ГЛОБАЛЬНЫЙ body { height:100vh; overflow:hidden }
   ради фикс-высоты каталога. Посадочная грузит тот же файл, поэтому скролл
   пропадал, а контент обрезался по высоте экрана. Возвращаем обычную
   прокручиваемую страницу (специфичность body.location-page бьёт body). */
body.location-page {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    display: block;
}

.location-main {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0 60px;
}

.location-breadcrumbs {
    font-size: 14px;
    color: #8a8a8a;
    margin-bottom: 18px;
}
.location-breadcrumbs a {
    color: var(--brown);
    text-decoration: none;
}
.location-breadcrumbs a:hover { text-decoration: underline; }
.location-breadcrumbs span.sep { margin: 0 8px; opacity: 0.5; }

.location-head { margin-bottom: 32px; }

.location-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.15;
    color: var(--brown);
    margin-bottom: 14px;
}

.location-intro {
    font-size: 17px;
    line-height: 1.6;
    color: #4a4a4a;
    max-width: 820px;
}

.location-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
    max-width: 820px;
    margin-top: 14px;
}
.location-desc p { margin-bottom: 12px; }

/* Сетка карточек: та же вёрстка, что в каталоге, но без ограничения высоты
   и внутреннего скролла — здесь страница прокручивается целиком. */
.location-listings .listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* Каталог задаёт карточке width: calc(33.333% - 39px) под свой флекс на
   3 колонки. В grid это превращало карточку в узкую полоску (~54px) внутри
   ячейки. Здесь ширину определяет трек сетки, поэтому width сбрасываем. */
.location-listings .property-card {
    width: auto;
}

/* Блок перелинковки: соседние районы, родитель, дочерние локации */
.location-links {
    border-top: 1px solid #ececec;
    padding-top: 28px;
}
.location-links h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--brown);
    margin-bottom: 16px;
}
.location-links .links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.location-links a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--beige);
    border-radius: 999px;
    color: var(--brown);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}
.location-links a:hover { background: #e2d9d0; }

@media (max-width: 768px) {
    .location-main { padding-top: 90px; }
    .location-title { font-size: 26px; }
    .location-intro { font-size: 15px; }
    .location-listings .listings-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .location-listings .listings-grid { grid-template-columns: 1fr; }
}

/* Блок "Популярные локации" на главной и в каталоге */
.popular-locations {
    padding: 40px 0;
}
.popular-locations .container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}
.popular-locations h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--brown);
    margin-bottom: 18px;
}
.popular-locations .popular-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.popular-locations .popular-links a {
    display: inline-block;
    padding: 9px 18px;
    background: var(--beige);
    border-radius: 999px;
    color: var(--brown);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.15s;
}
.popular-locations .popular-links a:hover { background: #e2d9d0; }
.popular-locations .popular-links a .cnt { opacity: 0.55; margin-left: 6px; font-size: 13px; }

/* Компактный вариант — внутри сайдбара фильтров каталога */
.popular-in-sidebar {
    padding: 0;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(94, 74, 60, 0.15);
}
.popular-in-sidebar h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.popular-in-sidebar .popular-links {
    gap: 6px;
}
.popular-in-sidebar .popular-links a {
    padding: 4px 10px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.6);
}
.popular-in-sidebar .popular-links a:hover { background: #fff; }
.popular-in-sidebar .popular-links a .cnt { margin-left: 4px; font-size: 11px; }
