/* ===== Дизайн-токены =====
   Пока только фирменный оранжевый — это единственный цвет, который реально
   переиспользуется по всему файлу (см. CLAUDE.md). Остальные оттенки (#222/#555/
   #999/#e5e5e5 и т.д.) используются контекстно под разные роли (текст/бордер/фон)
   и не токенизированы — риск/выгода такой правки не оправдан в рамках polish-фазы. */
:root {
    --accent: #ff9c43;
    --accent-dark: #f09040;
}

/* Primary Buttons */
.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: #d08030;
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--accent);
    color: #000000;
}

.btn-outline-primary:hover {
    background-color: var(--accent-dark);
    border-color: #d08030;
    color: #000000;
}

/* Modern Navbar */
.navbar-custom {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-custom.sticky-top {
    z-index: 1030;
}

/* Brand */
.navbar-brand-custom {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: opacity 0.2s;
}

.navbar-brand-custom:hover {
    opacity: 0.8;
}

.navbar-brand-circle {
    flex-shrink: 0;
}

.navbar-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.5px;
}

/* Nav Links */
.navbar-custom .nav-link {
    color: #555;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-custom .nav-link i {
    font-size: 14px;
    color: #999;
    transition: color 0.2s;
}

.navbar-custom .nav-link:hover {
    background-color: #fff8f0;
    color: var(--accent);
}

.navbar-custom .nav-link:hover i {
    color: var(--accent);
}

.navbar-custom .nav-link.active {
    background-color: var(--accent);
    color: #fff;
}

.navbar-custom .nav-link.active i {
    color: #fff;
}

/* User Section */
.navbar-user-section {
    display: flex;
    align-items: center;
}

.navbar-user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    transition: all 0.2s;
}

.navbar-user-dropdown:hover {
    background-color: #f8f8f8;
    border-color: var(--accent);
}

.navbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.navbar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.navbar-user-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
}

.navbar-user-dropdown[aria-expanded="true"] .navbar-user-icon {
    transform: rotate(180deg);
}

/* Custom Dropdown */
.navbar-dropdown-custom {
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
}

.navbar-dropdown-custom .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.navbar-dropdown-custom .dropdown-item i {
    width: 16px;
    color: #999;
}

.navbar-dropdown-custom .dropdown-item:hover {
    background-color: #fff8f0;
    color: var(--accent);
}

.navbar-dropdown-custom .dropdown-item:hover i {
    color: var(--accent);
}

/* Auth Buttons */
.navbar-auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.navbar-auth-buttons .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-weight: 500;
}

/* Mobile Navbar */
@media (max-width: 991px) {
    .navbar-custom {
        padding: 10px 0;
    }

    .navbar-brand-text {
        font-size: 18px;
    }

    .navbar-custom .nav-link {
        padding: 10px 12px;
        margin: 4px 0;
    }

    .navbar-user-dropdown {
        width: 100%;
        justify-content: space-between;
        margin: 10px 0;
        border-radius: 8px;
    }

    /* Фикс для dropdown на мобиле */
    .navbar-user-section .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 8px;
        border: 1px solid #e5e5e5;
        box-shadow: none;
    }

    .navbar-dropdown-custom {
        width: 100%;
    }

    .navbar-auth-buttons {
        width: 100%;
        margin-top: 10px;
    }

    .navbar-auth-buttons .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Toggler */
.navbar-custom .navbar-toggler {
    border: 1px solid #e5e5e5;
    padding: 8px 12px;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 156, 67, 0.25);
}

/* Мобильное меню — выезжающий сайдбар (Bootstrap Offcanvas responsive:
   #mobileSidebar на ≥992px становится обычной строкой навбара автоматически
   за счёт .offcanvas-lg + .navbar-expand-lg, см. base.html.twig) */
#mobileSidebar {
    --bs-offcanvas-width: 300px;
}

@media (max-width: 991px) {
    #mobileSidebar .offcanvas-header {
        border-bottom: 1px solid #f0f0f0;
        padding: 16px 20px;
    }

    #mobileSidebar .offcanvas-body {
        padding: 16px 20px 24px;
    }

    #mobileSidebar .navbar-nav {
        gap: 2px;
    }
}

/*
 * Extra utilities
 */

.flex-equal > * {
    flex: 1;
}
@media (min-width: 768px) {
    .flex-md-equal > * {
        flex: 1;
    }
}


.gallery {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.image-gallery-wrapper {
    width: 240px;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.image-gallery-upload {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
}

.btn-gallery-upload-remove {
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 1
}

/* Drive2-style Property Page */
body {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content растягивается, footer прижимается к низу */
main {
    flex: 1 0 auto;
    padding-top: 20px;
}

footer {
    flex-shrink: 0;
    margin-top: 0;
}

.property-page-container {
    padding-top: 0;
    padding-bottom: 20px;
}

.property-main-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.property-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.property-title {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.property-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #999;
    font-size: 14px;
}

.property-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-meta-item i {
    color: var(--accent);
}

/* User Sidebar Card */
.property-user-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    position: sticky;
    top: 80px;
}

.property-user-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.property-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.property-user-info {
    flex: 1;
}

.property-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px 0;
}

.property-user-bio {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

.property-user-socials {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.property-user-socials .btn {
    flex: 1;
    font-size: 13px;
}

.property-stats {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
}

.property-stats-item {
    text-align: center;
}

.property-stats-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
}

.property-stats-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Photo Gallery */
.property-gallery {
    padding: 20px 24px;
}

.property-gallery-slider-container {
    margin-top: 16px;
    position: relative;
}

.propertyGallerySwiper {
    width: 100%;
    padding-bottom: 40px;
}

.propertyGallerySwiper .swiper-slide {
    height: auto;
}

.property-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    background: #f5f5f5;
}

.property-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 156, 67, 0.3);
}

.property-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.property-gallery-item:hover img {
    filter: brightness(1.1);
}

/* Настройка навигационных стрелок */
.propertyGallerySwiper .swiper-button-next,
.propertyGallerySwiper .swiper-button-prev {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.propertyGallerySwiper .swiper-button-next:after,
.propertyGallerySwiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.propertyGallerySwiper .swiper-button-next:hover,
.propertyGallerySwiper .swiper-button-prev:hover {
    background: rgba(255, 156, 67, 0.95);
    color: #fff;
}

/* Настройка пагинации */
.propertyGallerySwiper .swiper-pagination {
    bottom: 0;
}

.propertyGallerySwiper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.propertyGallerySwiper .swiper-pagination-bullet-active {
    background: var(--accent);
}

/* Blog Posts */
.property-blog-posts {
    margin-top: 20px;
}

.blog-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.blog-post-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.blog-post-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.blog-post-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px 0;
    text-decoration: none;
}

.blog-post-title:hover {
    color: var(--accent);
}

.blog-post-date {
    font-size: 13px;
    color: #999;
}

.blog-post-actions {
    display: flex;
    gap: 8px;
}

.blog-post-content {
    padding: 0 24px 20px 24px;
}

.blog-post-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.blog-post-preview-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: 6px;
}

.blog-post-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-post-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.blog-post-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-stat i {
    color: var(--accent);
}

.blog-post-read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-post-read-more:hover {
    color: var(--accent-dark);
}

/* Flexslider Override */
.property-flexslider {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.property-flexslider .slides img {
    border-radius: 0;
}

/* Responsive */
@media (max-width: 767px) {
    .property-user-card {
        position: relative;
        top: 0;
    }

    .property-title {
        font-size: 22px;
    }

    .blog-post-title {
        font-size: 18px;
    }

    .blog-post-stats {
        gap: 10px;
        font-size: 13px;
    }

    .blog-post-footer {
        padding: 12px 16px;
    }

    /* На мобильных устройствах скрываем стрелки навигации */
    .propertyGallerySwiper .swiper-button-next,
    .propertyGallerySwiper .swiper-button-prev {
        display: none;
    }

    /* Увеличиваем пагинацию на мобильных */
    .propertyGallerySwiper .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* Footer */
footer {
    background: #fff;
    border-top: 2px solid #f0f0f0;
}

footer .text-body-secondary {
    color: #999 !important;
}

.footer-links {
    font-size: 13px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent);
}

/* Home Page Styles */

/* Hero Section */
.home-hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 12px;
    padding: 60px 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 156, 67, 0.2);
}

.home-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.home-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.home-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
}

/* Categories Grid */
.home-categories {
    margin-bottom: 60px;
}

.home-category-card {
    position: relative;
    display: block;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.home-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.home-category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-category-card:hover .home-category-bg {
    transform: scale(1.1);
}

.home-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: opacity 0.3s ease;
}

.home-category-card:hover .home-category-overlay {
    opacity: 0.9;
}

.home-category-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px;
    text-align: center;
}

.home-category-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 156, 67, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.home-category-card:hover .home-category-icon {
    background: var(--accent);
    transform: scale(1.1);
}

.home-category-icon i {
    font-size: 32px;
    color: #fff;
}

.home-category-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    transition: all 0.3s ease;
}

.home-category-card:hover .home-category-title {
    transform: translateY(-4px);
}

.home-category-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.home-category-card:hover .home-category-description {
    opacity: 1;
}

.home-category-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.home-category-card:hover .home-category-arrow {
    opacity: 1;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.3);
}

.home-category-arrow i {
    font-size: 16px;
    color: #fff;
}

/* CTA Section */
.home-cta-section {
    margin-bottom: 60px;
}

.home-cta-card {
    background: #fff;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.home-cta-content {
    padding-right: 20px;
}

.home-cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.home-cta-text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 30px 0;
}

.home-cta-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-cta-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #444;
}

.home-cta-feature i {
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.home-cta-action {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.home-cta-action-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.home-cta-action-subtitle {
    font-size: 14px;
    color: #777;
    margin: 0 0 24px 0;
}

.home-cta-or {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.home-cta-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.home-cta-or span {
    position: relative;
    background: #f8f9fa;
    padding: 0 16px;
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 767px) {
    .home-hero {
        padding: 40px 24px;
        margin-bottom: 24px;
    }

    .home-hero-title {
        font-size: 28px;
    }

    .home-hero-subtitle {
        font-size: 16px;
    }

    .home-categories {
        margin-bottom: 40px;
    }

    .home-category-card {
        height: 280px;
    }

    .home-category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .home-category-icon i {
        font-size: 28px;
    }

    .home-category-title {
        font-size: 26px;
    }

    .home-category-description {
        font-size: 14px;
    }

    .home-cta-card {
        padding: 30px 20px;
    }

    .home-cta-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .home-cta-title {
        font-size: 26px;
    }

    .home-cta-action {
        padding: 30px 20px;
    }
}

/* Items Page (Property Listing) */
.items-page-container {
    padding-bottom: 40px;
}

/* Page Header */
.items-page-header {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.items-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.items-header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.items-header-icon i {
    font-size: 32px;
    color: #fff;
}

.items-header-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.items-header-subtitle {
    font-size: 15px;
    color: #777;
    margin: 0;
}

/* Search */
.items-header-search {
    max-width: 500px;
}

.items-search-form {
    width: 100%;
}

.items-search-input-group {
    position: relative;
}

.items-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.items-search-input {
    padding-left: 46px;
    height: 48px;
    border-radius: 24px;
    border: 2px solid #e5e5e5;
    font-size: 15px;
    transition: all 0.2s;
}

.items-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 156, 67, 0.15);
}

/* Property Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.items-property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.items-above-link {
    position: relative;
    z-index: 2;
}

.items-property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.items-property-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 65%;
    overflow: hidden;
    background: #f5f5f5;
}

.items-property-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.items-property-card:hover .items-property-image {
    transform: scale(1.08);
}

.items-property-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.items-property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 156, 67, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.items-property-card:hover .items-property-overlay {
    opacity: 1;
}

.items-property-overlay i {
    font-size: 32px;
    color: #fff;
    transform: translateX(-10px);
    transition: transform 0.3s ease;
}

.items-property-card:hover .items-property-overlay i {
    transform: translateX(0);
}

.items-property-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.items-property-title a.stretched-link {
    color: inherit;
}

.items-property-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color 0.2s;
}

.items-property-card:hover .items-property-title {
    color: var(--accent);
}

.items-property-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.items-property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.items-property-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.items-property-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
}

.items-property-meta-item i {
    color: var(--accent);
    font-size: 12px;
}

.items-property-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.items-property-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.items-property-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* Empty State */
.items-empty-state {
    background: #fff;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.items-empty-icon {
    width: 100px;
    height: 100px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.items-empty-icon i {
    font-size: 48px;
    color: #ddd;
}

.items-empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
}

.items-empty-text {
    font-size: 16px;
    color: #777;
    margin: 0 0 32px 0;
}

/* Responsive */
@media (max-width: 767px) {
    .items-page-header {
        padding: 20px;
    }

    .items-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .items-header-icon {
        width: 60px;
        height: 60px;
    }

    .items-header-icon i {
        font-size: 28px;
    }

    .items-header-title {
        font-size: 26px;
    }

    .items-header-search {
        max-width: 100%;
        width: 100%;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .items-property-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .items-property-author {
        align-self: flex-start;
    }

    .items-empty-state {
        padding: 60px 24px;
    }

    .items-empty-icon {
        width: 80px;
        height: 80px;
    }

    .items-empty-icon i {
        font-size: 40px;
    }
}

/* ===== User Profile Page ===== */

.user-profile-header {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-profile-avatar-wrap {
    flex-shrink: 0;
}

.user-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    display: block;
}

.user-profile-info {
    flex: 1;
    min-width: 0;
}

.user-profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.user-profile-bio {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
}

.user-profile-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-profile-stat {
    font-size: 14px;
    color: #999;
}

.user-profile-stat strong {
    color: #222;
    font-weight: 600;
}

.user-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.user-property-edit-btn {
    padding: 2px 8px;
    font-size: 12px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .user-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }

    .user-profile-meta {
        justify-content: center;
    }

    .user-profile-actions {
        flex-direction: column;
        width: 100%;
    }

    .user-profile-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Cabinet Edit Page */
.cabinet-edit-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Page Header */
.cabinet-edit-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cabinet-edit-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cabinet-edit-header-icon i {
    font-size: 28px;
    color: #fff;
}

.cabinet-edit-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.cabinet-edit-subtitle {
    font-size: 15px;
    color: #777;
    margin: 0;
}

/* Edit Card */
.cabinet-edit-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Sections */
.cabinet-edit-section {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.cabinet-edit-section:last-child {
    border-bottom: none;
}

.cabinet-edit-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cabinet-edit-section-title i {
    color: var(--accent);
    font-size: 16px;
}

/* Avatar Upload */
.cabinet-avatar-upload {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cabinet-avatar-preview {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.cabinet-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
}

.cabinet-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 156, 67, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.cabinet-avatar-preview:hover .cabinet-avatar-overlay {
    opacity: 1;
}

.cabinet-avatar-overlay i {
    font-size: 28px;
    color: #fff;
}

.cabinet-avatar-controls {
    flex: 1;
}

.cabinet-avatar-controls .btn {
    margin-bottom: 12px;
}

.cabinet-avatar-hint {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Form Groups */
.cabinet-form-group {
    margin-bottom: 24px;
}

.cabinet-form-group:last-child {
    margin-bottom: 0;
}

.cabinet-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    display: block;
}

.cabinet-form-label i {
    margin-right: 6px;
}

.cabinet-form-input,
.cabinet-form-textarea {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s;
}

.cabinet-form-input:focus,
.cabinet-form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 156, 67, 0.15);
}

.cabinet-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.cabinet-input-prefix {
    background: #f8f9fa;
    border: 2px solid #e5e5e5;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #999;
}

.input-group .cabinet-form-input {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.cabinet-form-hint {
    font-size: 13px;
    color: #999;
    margin: 8px 0 0 0;
}

/* Action Buttons */
.cabinet-edit-actions {
    padding: 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cabinet-edit-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 767px) {
    .cabinet-edit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cabinet-edit-header-icon {
        width: 50px;
        height: 50px;
    }

    .cabinet-edit-header-icon i {
        font-size: 24px;
    }

    .cabinet-edit-title {
        font-size: 26px;
    }

    .cabinet-edit-section {
        padding: 20px;
    }

    .cabinet-avatar-upload {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .cabinet-avatar-preview {
        width: 100px;
        height: 100px;
    }

    .cabinet-avatar-controls {
        width: 100%;
    }

    .cabinet-avatar-controls .btn {
        width: 100%;
    }

    .cabinet-edit-actions {
        padding: 20px;
        justify-content: flex-end;
        align-items: center;
    }

    .cabinet-edit-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ===== Property Create / Edit Upload Zone ===== */

.pc-upload-zone {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 44px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
    user-select: none;
}

.pc-upload-zone:hover,
.pc-upload-zone--drag {
    border-color: var(--accent);
    background: #fff8f0;
}

.pc-upload-zone--drag .pc-upload-zone-icon i {
    color: var(--accent);
}

.pc-upload-zone-icon {
    margin-bottom: 12px;
}

.pc-upload-zone-icon i {
    font-size: 38px;
    color: #ccc;
    transition: color 0.2s;
}

.pc-upload-zone:hover .pc-upload-zone-icon i {
    color: var(--accent);
}

.pc-upload-zone-text {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.pc-upload-zone-hint {
    font-size: 13px;
    color: #aaa;
}

.pc-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.pc-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: transform 0.15s, box-shadow 0.15s;
}

.pc-preview-item:active {
    cursor: grabbing;
}

.pc-preview-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.pc-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

.pc-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    z-index: 2;
    padding: 0;
}

.pc-preview-remove:hover {
    background: rgba(200,50,50,0.85);
}

.pc-preview-item:hover .pc-preview-remove {
    opacity: 1;
}

.pc-preview-num {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    line-height: 18px;
    pointer-events: none;
}

.pc-preview-item:first-child .pc-preview-main-badge {
    display: block;
}

.pc-preview-main-badge {
    display: none;
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    line-height: 18px;
    pointer-events: none;
}

.pc-preview-item--ghost {
    opacity: 0.35;
}

.pc-preview-drag-hint {
    font-size: 12px;
    color: #bbb;
    margin-top: 8px;
    display: none;
}

.pc-preview-drag-hint.visible {
    display: block;
}

@media (max-width: 767px) {
    .pc-preview-remove {
        opacity: 1;
    }

    .pc-upload-zone {
        padding: 32px 16px;
    }

    .pc-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

/* ===== Профиль Точки (Redesign 2.0 — Instagram-ряд, Direction B, см. CLAUDE.md) ===== */
/* Карточка целиком ограничена по ширине и центрирована (было замечено ещё до
   редизайна: белая карточка растягивалась на всю ширину .container и внутри
   неё оставалась голая пустая полоса) — сохраняем этот потолок и в новой версии. */
.point-profile {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 920px;
    margin: 0 auto 20px;
}

/* Высота обложки уменьшена (320 → 200): при более крупном аватаре (140px,
   глубже нахлёстывает обложку) старая высота смотрелась слишком массивной
   оранжевой "простынёй" перед плоским Instagram-рядом ниже. Открытый пункт
   в CLAUDE.md — если на реальных фото будет казаться мало, увеличить обратно. */
.point-profile-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    background-size: cover;
    background-position: center;
}

.point-profile-body {
    padding: 0 24px 20px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.point-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid #fff;
    outline: 3px solid var(--accent);
    object-fit: cover;
    margin-top: -70px;
    flex-shrink: 0;
    background: #fff;
}

.point-profile-info {
    flex: 1;
    min-width: 0;
    padding-top: 14px;
}

/* Заголовок + кнопки действий в один ряд — как в шапках профиля GitHub/X */
.point-profile-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.point-profile-heading-text {
    min-width: 0;
}

.point-profile-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 3px;
    line-height: 1.25;
}

.point-profile-owner {
    font-size: 14px;
    color: #777;
}
.point-profile-owner a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
}
.point-profile-owner a:hover {
    text-decoration: underline;
}
.point-profile-type {
    background: #fff8f0;
    color: var(--accent-dark);
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 12px;
    margin-left: 6px;
}

/* Статистика + соцсети — один ряд на всю ширину, обрамлённый линиями сверху/снизу
   (Instagram-ряд). Раньше соцсети были в отдельном блоке внизу колонки вместе с
   датой — здесь делят строку со статистикой через space-between. */
.point-profile-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 14px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}
.point-profile-stats {
    display: flex;
    gap: 4px;
    margin: 0 -10px;
}
/* Статистика (посты/лайки/подписчики) — все три просто div, некликабельны:
   лайкать Точку целиком больше нельзя, лайки — только на уровне постов блога
   (см. Property::getTotalLikes()) */
.point-stat {
    margin: 0;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.point-profile-socials {
    display: flex;
    gap: 8px;
}

.point-profile-bio {
    font-size: 14px;
    color: #555;
    line-height: 1.55;
    margin: 0 0 10px;
    max-width: 640px;
    white-space: pre-line;
    /* Длинное описание не должно раздувать высоту шапки — обрезаем визуально по 3 строкам,
       пока не развёрнуто кнопкой ниже (.point-profile-bio-toggle, добавляется через JS
       только если текст реально обрезался — см. feed.js) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.point-profile-bio.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}
.point-profile-bio-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0;
    margin: -6px 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
    cursor: pointer;
}
.point-profile-bio-toggle:hover {
    text-decoration: underline;
}

.point-profile-meta {
    font-size: 12.5px;
    color: #999;
    display: flex;
    gap: 16px;
}
.point-profile-meta i {
    color: var(--accent);
    margin-right: 4px;
}

.point-profile-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Кнопки-иконки владельца ("Редактировать точку"/"Добавить запись") — раньше
   были текстовыми и при длинном заголовке точки не помещались рядом с ним,
   переносясь на свою строку вкривь (см. CLAUDE.md "Редизайн 2.0"). Квадратная
   форма фиксированного размера держится всегда, независимо от текста внутри
   (в этих кнопках его больше нет — только иконка + title-подсказка). */
.btn-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .point-profile-cover {
        height: 110px;
    }
    .point-profile-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 16px 20px;
    }
    .point-profile-avatar {
        width: 100px;
        height: 100px;
        margin-top: -50px;
    }
    .point-profile-info {
        padding-top: 10px;
        width: 100%;
    }
    .point-profile-heading {
        flex-direction: column;
        align-items: center;
    }
    /* Иконки-кнопки владельца компактные (34px) — умещаются рядом с заголовком
       даже на мобиле, не нужно переносить их отдельной строкой вниз, как
       текстовую кнопку "Подписаться" у гостя (та остаётся в столбик ниже) */
    .point-profile-heading:has(.btn-icon-only) {
        flex-direction: row;
        align-items: flex-start;
    }
    .point-profile-heading:has(.btn-icon-only) .point-profile-heading-text {
        text-align: left;
    }
    .point-profile-row2 {
        justify-content: center;
    }
    .point-profile-actions {
        justify-content: center;
    }
}

/* Сетка постов профиля — заголовок "Посты" над ней убран (это единственный
   контент под шапкой на этой странице, подписывать нечего, см. property.html.twig).
   max-width/margin повторяют .point-profile (см. выше) — раньше сетка была на
   всю ширину .property-page-container, а карточка профиля над ней уже была
   ограничена 920px, и на странице получались два разных блока разной ширины
   друг под другом. margin-top держит отступ от шапки, который раньше был
   побочным эффектом заголовка (его margin-bottom). */
.point-post-grid {
    max-width: 920px;
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.point-post-cell {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}
.point-post-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.point-post-cell:hover img {
    transform: scale(1.06);
}
.point-post-cell-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 28px;
}
.point-post-cell-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.point-post-cell-actions {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}
.point-post-cell:hover .point-post-cell-actions {
    opacity: 1;
}
.point-post-cell-actions a {
    color: #fff;
    font-size: 16px;
}
.point-post-cell-actions a:hover {
    color: var(--accent);
}

@media (max-width: 767px) {
    .point-post-grid {
        gap: 2px;
    }
    .point-post-cell-actions {
        opacity: 1;
        background: rgba(0,0,0,0.25);
        align-items: flex-end;
        justify-content: flex-end;
        padding: 6px;
        gap: 10px;
    }
}

/* ===== Feed (главная, Instagram-стиль) ===== */
.feed-page-header {
    text-align: center;
    padding: 24px 0 4px;
}
.feed-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}
.feed-page-subtitle {
    color: #999;
    font-size: 15px;
    margin: 0;
}

.feed {
    max-width: 470px;
    margin: 0 auto;
    padding: 16px 0 40px;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feed-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}
.feed-post-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    display: block;
}
.feed-post-header-text {
    min-width: 0;
    flex: 1;
}
.feed-post-nick {
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-post-nick a {
    color: inherit;
    text-decoration: none;
}
.feed-post-nick a:hover {
    color: var(--accent);
}
.feed-post-sep {
    color: #ccc;
    margin: 0 4px;
}
.feed-post-point {
    color: var(--accent-dark) !important;
    font-weight: 500;
}
.feed-post-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1px;
}
.feed-post-tag {
    background: #fff8f0;
    color: var(--accent-dark);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px;
}

.feed-post-media {
    display: block;
    position: relative;
    background: #f5f5f5;
}
.feed-post-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}
.feed-post-media-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.feed-post-media-scroll::-webkit-scrollbar {
    display: none;
}
/* Слайд карусели — либо голый img (лента, feed_post_card.html.twig), либо img,
   обёрнутый в <a class="glightbox"> (страница поста, для полноэкранного просмотра) —
   flex-элементом скролл-контейнера в обоих случаях должен быть именно ПРЯМОЙ потомок,
   иначе scroll-snap не режет ленту на слайды по одному, а все фото просто вылезают в ряд */
.feed-post-media-scroll > img,
.feed-post-media-scroll > a {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}
.feed-post-media-scroll > a {
    display: block;
}
.feed-post-media-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Стрелки-навигация карусели поста (post-single-media) — только для мыши/трекпада,
   на тач-устройствах фото листаются свайпом по .feed-post-media-scroll */
.post-media-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: background 0.15s;
}
.post-media-arrow:hover {
    background: rgba(0,0,0,0.65);
}
.post-media-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}
.post-media-arrow-prev {
    left: 10px;
}
.post-media-arrow-next {
    right: 10px;
}
@media (hover: hover) and (pointer: fine) {
    .post-single-media:hover .post-media-arrow {
        display: flex;
    }
}

/* Точки-пагинация карусели поста — как в Instagram, показывают текущее фото */
.post-media-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}
.post-media-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    transition: background 0.15s, transform 0.15s;
}
.post-media-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Краткое описание поверх фото — вместо (не вместе с) дублирующим текстом под экшенами */
.feed-post-media-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
    pointer-events: none;
}
.feed-post-media-caption p {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 10px 0;
}
.feed-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: #555;
    transition: background 0.15s;
}
.feed-like-btn:hover {
    background: #fff0e6;
}
.feed-like-btn i {
    font-size: 19px;
    color: #ccc;
    transition: color 0.18s ease, transform 0.15s ease;
}
.feed-like-btn:hover i {
    color: var(--accent);
    transform: scale(1.1);
}
.feed-like-btn.liked i {
    color: var(--accent);
}
.feed-like-btn:active i {
    transform: scale(1.25);
}
.feed-like-count {
    font-variant-numeric: tabular-nums;
}

.feed-comment-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    /* .feed-like-btn (button) явно переопределяет font-size: 13px, потому что
       у кнопок свой UA-шрифт. .feed-comment-btn — <a>, шрифт наследует сама,
       но без явного font-size её счётчик наследовал размер текста страницы
       и выглядел крупнее соседней цифры лайков — задаём тот же размер. */
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.feed-comment-btn:hover {
    background: #fff0e6;
    color: var(--accent);
}
.feed-comment-btn i {
    font-size: 19px;
}

/* "Поделиться" — третья иконка экшен-роу (Redesign 2.0). Закладка (bookmark) из
   макета сознательно не реализована — требует нового бэкенда ("сохранённые посты"),
   это отдельная фича, не часть HTML-редизайна (см. CLAUDE.md "Редизайн 2.0"). */
.action-share-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 6px 8px;
    border-radius: 8px;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.action-share-btn:hover {
    background: #fff0e6;
    color: var(--accent);
}
.action-share-btn i {
    font-size: 18px;
}
.action-share-btn.copied {
    color: var(--accent);
}

.feed-post-caption {
    padding: 4px 14px 2px;
}
.feed-post-caption-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
}
.feed-post-caption-text:hover {
    color: #333;
}
.feed-post-caption-nick {
    font-weight: 600;
    color: #222;
    margin-right: 5px;
}

.feed-post-comments-link {
    display: block;
    padding: 2px 14px 14px;
    font-size: 12.5px;
    color: #999;
    text-decoration: none;
}
.feed-post-comments-link:hover {
    color: var(--accent);
}

.feed-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.feed-empty i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 14px;
    display: block;
}

.feed-load-more {
    display: block;
    margin: 8px auto 0;
}

@media (max-width: 767px) {
    .feed-page-header {
        padding: 16px 0 4px;
    }
    .feed-page-title {
        font-size: 22px;
    }
    .feed {
        max-width: 100%;
        padding: 10px 0 32px;
    }
    .feed-post-card {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 8px solid #f5f5f5;
    }
}

/* ===== Страница поста (Redesign 2.0 — Variant A "split-модалка", см. CLAUDE.md) =====
   Мини-шапка поста (аватар+никнейм) здесь не дублируется — эту роль выполняет
   point_profile_header сверху страницы, общий с /property/{id}. Переиспользует
   словарь .feed-* (медиа-карусель, лайк-кнопка, экшен-роу). */
.post-single-column {
    /* Раньше здесь была узкая одноколоночная лента (640px) — под split-раскладку
       (медиа + панель комментариев рядом) карточке нужна вся ширина .point-profile
       (см. выше), иначе панели будет тесно. */
    max-width: 920px;
    margin: 0 auto;
}

.post-split {
    display: flex;
    align-items: stretch;
}

.post-split-media {
    flex: 0 0 58%;
    min-width: 0;
}

.feed-post-edit-link {
    color: #999;
    font-size: 15px;
    padding: 6px;
    flex-shrink: 0;
}
.feed-post-edit-link:hover {
    color: var(--accent);
}

.post-single-media img,
.post-single-media .feed-post-media-scroll img {
    aspect-ratio: 1 / 1;
}

/* Панель справа: заголовок+описание+комментарии скроллятся одним списком
   (flex:1 + min-height:0 + overflow-y:auto), лайк/лайки/дата/форма — фиксированным
   "подвалом" снизу панели, всегда видны, как форма ответа в Instagram-permalink. */
.post-split-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
/* Разделитель только когда есть медиа слева — у постов без фото .post-split-side
   единственный ребёнок .post-split, голая линия слева была бы не к месту */
.post-split-media + .post-split-side {
    border-left: 1px solid #eee;
}
.post-split-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Лайк/комментарий/поделиться слева, просмотры — отдельной группой справа:
   просто иконка+число, некликабельно (это не button/a, а span) */
.post-split-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 10px;
    border-top: 1px solid #eee;
}
.post-split-actions-left {
    display: flex;
    align-items: center;
    gap: 4px;
}
.post-split-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #999;
}
.post-split-views i {
    color: var(--accent);
}
.post-split-likes {
    padding: 0 20px 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
}
.post-split-form {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    margin-bottom: 0;
}

.post-single-caption {
    padding: 16px 20px 4px;
}
.post-single-caption-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.post-single-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.3;
}
/* Дата создания поста — под заголовком, перед описанием (было в общей
   мета-строке внизу панели вместе с просмотрами — просмотры переехали в
   экшен-роу, дата встала рядом с заголовком/текстом, к которым относится) */
.post-single-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.post-single-descr {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 10px;
    white-space: pre-line;
}

@media (max-width: 767px) {
    /* Split невозможен по ширине экрана — вертикальный стек в естественном
       порядке документа, панель больше не скроллится сама по себе (страница
       скроллится целиком), форма внизу больше не "подвал", а обычный блок. */
    .post-split {
        flex-direction: column;
    }
    .post-split-media {
        flex: none;
        width: 100%;
    }
    .post-split-media + .post-split-side {
        border-left: none;
        border-top: 1px solid #eee;
    }
    .post-split-side {
        border-top: 1px solid #eee;
    }
    .post-split-scroll {
        flex: none;
        min-height: 0;
        overflow-y: visible;
    }
    .post-single-caption {
        padding-left: 16px;
        padding-right: 16px;
    }
    .post-split-actions,
    .post-split-likes,
    .post-split-form {
        padding-left: 16px;
        padding-right: 16px;
    }
    .post-single-title {
        font-size: 17px;
    }
}

/* ===== Переключатель "Избранное"/"Все посты" (мобиль/планшет — на десктопе это feed-rail-link) ===== */
.scope-toggle {
    display: flex;
    gap: 6px;
    background: #f0f0f0;
    border-radius: 100px;
    padding: 4px;
    margin-bottom: 14px;
}
.scope-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 100px;
    transition: all 0.15s;
}
.scope-toggle-btn:hover {
    color: var(--accent-dark);
    text-decoration: none;
}
.scope-toggle-btn.active {
    background: #fff;
    color: var(--accent-dark);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* ===== Категории-фильтр над лентой ===== */
.chip-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-margin-top: 90px;
}
.chip-rail::-webkit-scrollbar {
    display: none;
}
.chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid #e5e5e5;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}
.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}
.chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* ===== Десктопная 3-колоночная раскладка ленты ===== */
.feed-main .feed {
    padding-top: 0;
}

@media (min-width: 992px) {
    .feed-layout {
        display: grid;
        grid-template-columns: 220px 1fr 260px;
        gap: 28px;
        align-items: start;
        max-width: 1180px;
        margin: 0 auto;
    }
    .feed-rail {
        position: sticky;
        top: 90px;
    }
    .feed-main .feed {
        max-width: none;
        margin: 0;
    }
    .feed-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.feed-rail-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    margin: 0 0 8px;
}
.feed-rail-title-sub {
    margin-top: 18px;
}
.feed-rail-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #555;
    text-decoration: none;
    padding: 7px 8px;
    border-radius: 8px;
    margin-bottom: 2px;
}
.feed-rail-link:hover {
    background: #fff8f0;
    color: var(--accent);
    text-decoration: none;
}
.feed-rail-link.active {
    background: #fff0e6;
    color: var(--accent-dark);
    font-weight: 600;
}
.feed-rail-follow-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}
.feed-rail-follow-item:hover {
    background: #fff8f0;
    color: var(--accent);
    text-decoration: none;
}
.feed-rail-follow-item img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
    flex-shrink: 0;
}
.feed-rail-follow-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-rail-guest {
    background: #fff8f0;
    border-radius: 10px;
    padding: 16px;
}
.feed-rail-guest p {
    font-size: 13px;
    color: #777;
    margin: 0 0 10px;
    line-height: 1.5;
}

.suggest-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 16px;
}
.suggest-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}
.suggest-row:first-of-type {
    border-top: none;
}
.suggest-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
    flex-shrink: 0;
}
.suggest-row-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.suggest-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggest-name:hover {
    color: var(--accent);
}
.suggest-sub {
    font-size: 11px;
    color: #999;
}
.suggest-follow {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.15s;
}
.suggest-follow:hover {
    background: var(--accent);
    color: #fff;
}
.suggest-follow.following {
    border-color: #ccc;
    color: #999;
}

/* ===== Нижний таб-бар (мобиль) ===== */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #999;
    text-decoration: none;
    font-size: 10.5px;
    padding: 4px 8px;
    border-radius: 8px;
    flex: 1;
    max-width: 90px;
}
.bottom-nav-link i {
    font-size: 19px;
}
.bottom-nav-link:hover,
.bottom-nav-link.active {
    color: var(--accent);
    text-decoration: none;
}
.bottom-nav-link-add i {
    color: var(--accent);
}

@media (max-width: 991px) {
    body {
        padding-bottom: 60px;
    }
}

/* ===== Иконка в обычном стат-элементе ===== */
.property-stats-icon {
    display: block;
    font-size: 20px;
    color: #ccc;
    margin-bottom: 2px;
}

/* === Унифицированные заголовки === */

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 15px;
    color: #777;
    margin: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--accent);
    font-size: 16px;
}

.block-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
}

.block-title i {
    color: var(--accent);
    margin-right: 6px;
}

@media (max-width: 767px) {
    .page-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 16px;
    }
}

/* === Комментарии к записи блога (Redesign 2.0 — плоский стиль вместо "пузыря",
   см. CLAUDE.md "Редизайн 2.0") ===
   Заголовок "Комментарии (N)" убран — счётчик теперь живёт рядом с иконкой в
   экшен-роу (.feed-comment-btn), как счётчик лайков; .blog-comments скроллится
   одним списком вместе с подписью поста внутри .post-split-scroll. */

.blog-comments {
    padding: 8px 20px 4px;
}

/* Форма */
.comment-form {
    margin-bottom: 0;
}

.comment-form-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment-form-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    flex-shrink: 0;
}

.comment-form-field {
    flex: 1;
    min-width: 0;
}

.comment-textarea {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    resize: vertical;
    min-height: 40px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #555;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.comment-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 156, 67, 0.12);
    outline: none;
}

.comment-form-actions {
    margin-top: 8px;
    text-align: right;
}

/* Подсказка для входа */
.comments-login-prompt {
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 14px 18px;
    color: #555;
    font-size: 13.5px;
    margin: 0;
}

.comments-login-prompt i {
    color: var(--accent);
    margin-right: 6px;
}

.comments-login-prompt a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.comments-login-prompt a:hover {
    text-decoration: underline;
}

/* Список комментариев — плоский стиль: аватар + жирный ник и текст одной
   обтекаемой строкой (как подпись поста в ленте), без фона-"пузыря" на теле
   комментария. Дата/удаление — мелким серым под текстом. */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
}

/* flex-shrink на .comment-avatar (сам <a>, а не только на img внутри) — иначе
   это единственный ребёнок без явной ширины в ряду рядом с flex:1 .comment-body,
   и до/во время загрузки картинки колонка аватара могла "гулять" */
.comment-avatar {
    flex-shrink: 0;
    display: block;
}
.comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.comment-avatar:hover img {
    opacity: 0.85;
}

.comment-body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* Ник — отдельной строкой над текстом (не в одну строку с текстом, как подпись
   поста в ленте) — так яснее читаются короткие реплики */
.comment-author {
    display: block;
    color: #222;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.comment-text {
    color: #333;
    font-size: 13.5px;
    line-height: 1.45;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-author:hover {
    color: var(--accent);
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 3px;
}

.comment-date {
    color: #999;
    font-size: 11.5px;
}

.comment-delete {
    color: #999;
    font-size: 11.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-delete:hover {
    color: #e74c3c;
}

.comments-empty {
    color: #aaa;
    font-style: italic;
    font-size: 13.5px;
    margin: 0;
}