    /* ===== ОСНОВНЫЕ СТИЛИ ===== */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    ::selection {
        background-color: rgba(108, 117, 125, 0.2);
        color: inherit;
    }

    html, body {
        height: 100%;
        margin: 0;
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    /* ===== НАВИГАЦИЯ ===== */
    .navbar {
        background: linear-gradient(135deg, #6c757d 0%, #8e9aa5 100%);
        padding: 15px 50px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        height: 80px;
    }

    /* style.css - добавить в начало или заменить существующие стили логотипа */

    /* Убираем мигание логотипа */
    .nav-logo {
        display: flex;
        align-items: center;
        gap: 5px;
        height: 50px;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .logo-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        background: transparent;
        border-radius: 0;
        border: none;
        overflow: hidden;
    }

    .logo-avatar img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: transparent;
    }

    .logo-title {
        font-size: 28px;
        font-weight: 800;
        color: white;
        letter-spacing: 0.5px;
        cursor: pointer;
    }

    /* Мобильная версия логотипа */
    @media (max-width: 768px) {
        .logo-avatar {
            width: 28px;
            height: 28px;
        }
        
        .logo-title {
            font-size: 20px;
        }
        
        .nav-logo {
            gap: 8px;
        }
    }

    /* Предотвращаем мерцание при загрузке */
    body:not(.loaded) .nav-logo {
        opacity: 1;
    }

    .nav-links {
        display: flex;
        gap: 30px;
        align-items: center;
        margin-left: -20px;
    }

    .nav-link {
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 16px;
        transition: all 0.3s ease;
        padding: 8px 0;
        position: relative;
    }

    .nav-link:hover {
        opacity: 0.9;
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: #ff9800;
        border-radius: 2px;
        animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
        from { width: 0; }
        to { width: 100%; }
    }

    .auth-container {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .user-info {
        display: none;
        align-items: center;
        gap: 12px;
        background: rgba(255, 255, 255, 0.1);
        padding: 8px 16px;
        border-radius: 50px;
        color: white;
    }

    .user-role {
        background: linear-gradient(135deg, #ff9800, #ffb300);
        color: white;
        padding: 4px 12px;
        border-radius: 15px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }

    .btn-nav {
        padding: 10px 24px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        gap: 8px;
    }

    .btn-login {
        background: #ff9800;
        color: white;
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    }

    .btn-add {
        background: #ff9800;
        color: white;
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
        display: none;
    }
    body:not(.loaded) .nav-logo {
        opacity: 1;
    }
    .btn-logout {
        background: transparent;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 6px 12px;
        font-size: 13px;
    }

    /* ===== ОСНОВНОЙ КОНТЕНТ ===== */
    .main-content {
        max-width: 1200px;
        margin: 120px auto 30px;
        padding: 0 20px;
        flex: 1 0 auto;
    }
    /* style.css - добавить в начало файла */

    body, html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Ограничиваем ширину контента */
    .main-content {
        overflow-x: hidden;
        width: 100%;
        max-width: 1200px;
        margin: 120px auto 30px;
        padding: 0 20px;
    }

    /* Для мобилок убираем скролл на главной */
    @media (max-width: 768px) {
        body, html {
            overflow-x: hidden;
            position: fixed;
            width: 100%;
        }
        
        .main-content {
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }
    }

    /* ===== ГЕРОЙ-СЕКЦИЯ ===== */
    .hero-section {
        background: linear-gradient(135deg, #6c757d 0%, #8e9aa5 100%);
        border-radius: 20px;
        padding: 40px;
        color: white;
        margin-bottom: 40px;
        box-shadow: 0 10px 30px rgba(108, 117, 125, 0.2);
    }

    .hero-title {
        font-size: 36px;
        font-weight: 800;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 18px;
        opacity: 0.9;
        max-width: 600px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .hero-actions {
        display: flex;
        gap: 20px;
        margin-top: 20px;
    }

    .btn-hero {
        padding: 12px 28px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: none;
        cursor: pointer;
    }

    .btn-primary {
        background: #ff9800;
        color: white !important;
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    }

    .btn-primary:hover {
        background: #e68900;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    }

    .btn-secondary {
        background: white;
        color: #6c757d;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }

    .btn-secondary:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
    }

    /* ===== СЕКЦИИ ===== */
    .section {
        background: white;
        border-radius: 16px;
        padding: 35px;
        margin-bottom: 30px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .section-title {
        font-size: 22px;
        font-weight: 700;
        color: #6c757d;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .section-title::before {
        content: '';
        width: 6px;
        height: 24px;
        background: #ff9800;
        border-radius: 3px;
    }

    /* ===== СЛАЙДЕР ===== */
    .slider-wrapper {
        position: relative;
        overflow: hidden;
        padding: 0 50px;
    }

    .slider-track-enhanced {
        display: flex;
        gap: 25px;
        transition: transform 0.5s ease-in-out;
        padding: 10px 0;
    }

    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(108, 117, 125, 0.9);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        opacity: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        pointer-events: none;
    }

    .slider-btn.visible {
        opacity: 0.9;
        pointer-events: auto;
    }

    .slider-btn.visible:hover {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

    .slider-btn-left { left: 0; }
    .slider-btn-right { right: 0; }

    .slider-btn-hidden {
        display: none !important;
    }

    /* ===== КАРТОЧКИ НЕДВИЖИМОСТИ ===== */
    .properties-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 20px;
    }

    .property-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        position: relative;
        cursor: pointer;
        width: 100%;
        flex-shrink: 0;
    }

    .slider-track-enhanced .property-card {
        flex: 0 0 320px;
        min-width: 320px;
        max-width: 320px;
        width: 320px;
        min-height: 420px;
    }

    .property-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .property-image {
        height: 180px;
        background: linear-gradient(135deg, #6c757d, #8e9aa5);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 14px;
        position: relative;
        overflow: hidden;
    }

    .property-image-slider {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .property-image-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .property-image-slider img.active { opacity: 1; }

    .property-slider-buttons {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .property-card:hover .property-slider-buttons {
        opacity: 1;
    }

    .property-slider-btn {
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
        z-index: 2;
    }

    .property-slider-btn:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: scale(1.1);
    }

    .property-slider-counter {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 3px 8px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 600;
        z-index: 2;
    }

    .property-info {
        padding: 15px;
    }

    .property-address {
        font-size: 14px;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .property-details {
        display: flex;
        justify-content: space-between;
        margin-bottom: 12px;
        color: #4a5568;
        font-size: 12px;
    }

    .price-container {
        display: flex;
        flex-direction: column;
        margin: 15px 0;
    }

    .price-with-discount {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        margin-bottom: 5px;
        justify-content: space-between;
    }

    .original-price {
        font-size: 16px;
        color: #718096;
        text-decoration: line-through;
        font-weight: 500;
        white-space: nowrap;
    }

    .discount-price {
        font-size: 20px;
        font-weight: 700;
        color: #ff9800;
        white-space: nowrap;
    }

    .discount-price .ruble-symbol {
        margin-left: 2px;
        font-weight: 600;
    }

    .discount-percent {
        background: #ff9800;
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }

    .property-price {
        font-size: 20px;
        font-weight: 700;
        color: #ff9800;
        margin: 15px 0;
        white-space: nowrap;
    }

    .property-price .ruble-symbol {
        margin-left: 2px;
        font-weight: 600;
    }

    .property-actions {
        display: flex;
        gap: 8px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
        align-items: center;
        min-height: 40px;
    }

    .btn-view {
        flex: 1;
        background: #6c757d;
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        text-decoration: none;
        height: 35px;
        min-width: 80px;
    }

    .btn-view:hover {
        background: #8e9aa5;
        transform: translateY(-2px);
    }

    .btn-delete {
        flex: 1;
        background: #dc3545;
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        height: 35px;
        min-width: 80px;
    }

    .btn-delete:hover {
        background: #c82333;
        transform: translateY(-2px);
    }

    /* ===== ПАНЕЛЬ РИЭЛТОРА ===== */
    .realtor-panel {
        background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
        border: 2px solid #ffb300;
        display: none;
    }

    .panel-header {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 25px;
    }

    .panel-icon {
        width: 50px;
        height: 50px;
        background: #ff9800;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
    }

    .panel-title {
        font-size: 22px;
        font-weight: 700;
        color: #1a202c;
    }

    /* ===== СТРАНИЦА ПОИСКА НЕДВИЖИМОСТИ ===== */
    .search-page {
        margin: 100px auto 50px;
        padding: 0 20px;
        max-width: 1400px;
    }

    /* ===== ФИЛЬТРЫ СВЕРХУ ===== */
    .search-filters-container {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border-radius: 24px;
        padding: 30px;
        margin-bottom: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid #e2e8f0;
        position: relative;
        overflow: hidden;
    }

    .search-filters-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #ff9800, #ffb74d, #ff9800);
    }

    .search-filters-title {
        font-size: 24px;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .search-filters-title i {
        color: #ff9800;
        font-size: 28px;
        background: rgba(255, 152, 0, 0.1);
        padding: 10px;
        border-radius: 12px;
    }

    .search-filters-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        margin-bottom: 25px;
    }

    .search-filter-item {
        background: white;
        padding: 5px 0;
    }

    .search-filter-label {
        display: block;
        margin-bottom: 10px;
        font-weight: 600;
        color: #2d3748;
        font-size: 15px;
        letter-spacing: 0.3px;
    }

    .search-filter-label i {
        color: #ff9800;
        margin-right: 8px;
        width: 20px;
    }

    .search-filter-select {
        width: 100%;
        padding: 14px 18px;
        border: 2px solid #e2e8f0;
        border-radius: 14px;
        font-size: 15px;
        background: white;
        color: #1a202c;
        transition: all 0.3s ease;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 18px;
    }

    .search-filter-select:hover {
        border-color: #ff9800;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1);
    }

    .search-filter-select:focus {
        border-color: #ff9800;
        outline: none;
        box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.15);
    }

    .search-filter-input {
        width: 100%;
        padding: 14px 18px;
        border: 2px solid #e2e8f0;
        border-radius: 14px;
        font-size: 15px;
        transition: all 0.3s ease;
        background: white;
    }

    .search-filter-input:focus {
        border-color: #ff9800;
        outline: none;
        box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.15);
    }

    .search-filter-input::placeholder {
        color: #a0aec0;
        font-style: italic;
    }

    .search-filter-range {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .search-filter-range .search-filter-input {
        text-align: center;
    }

    .search-filter-buttons {
        display: flex;
        gap: 15px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px dashed #e2e8f0;
    }

    .search-filter-btn {
        flex: 1;
        padding: 16px 24px;
        border-radius: 14px;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .search-filter-btn-primary {
        background: linear-gradient(135deg, #ff9800, #ffb74d);
        color: white;
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    }

    .search-filter-btn-primary:hover {
        background: linear-gradient(135deg, #f57c00, #ff9800);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    }

    .search-filter-btn-secondary {
        background: white;
        color: #4a5568;
        border: 2px solid #e2e8f0;
    }

    .search-filter-btn-secondary:hover {
        background: #f8fafc;
        border-color: #ff9800;
        color: #ff9800;
        transform: translateY(-2px);
    }

    .search-active-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 20px 0 10px;
        padding: 15px 0 0;
    }

    .active-filter-tag {
        background: #fff8e1;
        border: 1px solid #ffb74d;
        color: #f57c00;
        padding: 8px 16px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .active-filter-tag i {
        cursor: pointer;
        font-size: 12px;
        width: 18px;
        height: 18px;
        background: #ff9800;
        color: white;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .active-filter-tag i:hover {
        background: #f57c00;
    }

    .search-stats {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 20px 0 25px;
        padding: 15px 20px;
        background: #f8fafc;
        border-radius: 16px;
        color: #4a5568;
    }

    .search-stats-count {
        font-weight: 700;
        color: #ff9800;
        font-size: 18px;
    }

    .search-stats-sort {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-stats-sort select {
        padding: 8px 30px 8px 15px;
        border: 1px solid #e2e8f0;
        border-radius: 30px;
        font-size: 14px;
        background: white;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
    }

    .search-results {
        margin-top: 30px;
    }

    .search-results-title {
        font-size: 20px;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-results-title span {
        color: #ff9800;
        background: rgba(255, 152, 0, 0.1);
        padding: 5px 12px;
        border-radius: 30px;
        font-size: 16px;
    }

    .search-results-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-bottom: 40px;
    }

    .search-result-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        cursor: pointer;
        border: 1px solid #e2e8f0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .search-result-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        border-color: #ff9800;
    }

    .search-result-image {
        height: 200px;
        background: linear-gradient(135deg, #6c757d, #8e9aa5);
        position: relative;
        overflow: hidden;
    }

    .search-result-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .search-result-card:hover .search-result-image img {
        transform: scale(1.1);
    }

    .search-result-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255, 152, 0, 0.9);
        color: white;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        backdrop-filter: blur(5px);
    }

    .search-result-content {
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .search-result-address {
        font-size: 16px;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .search-result-details {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
        color: #718096;
        font-size: 14px;
    }

    .search-result-details span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .search-result-details i {
        color: #ff9800;
        width: 16px;
    }

    .search-result-price {
        margin-top: auto;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
    }

    .search-result-price-current {
        font-size: 24px;
        font-weight: 800;
        color: #ff9800;
    }

    .search-result-price-old {
        font-size: 16px;
        color: #a0aec0;
        text-decoration: line-through;
        margin-left: 10px;
    }

    .search-result-discount {
        display: inline-block;
        background: #ff9800;
        color: white;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 700;
        margin-left: 10px;
    }

    .search-pagination {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .search-pagination-btn {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        background: white;
        border: 2px solid #e2e8f0;
        color: #4a5568;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-pagination-btn:hover {
        border-color: #ff9800;
        color: #ff9800;
        transform: translateY(-2px);
    }

    .search-pagination-btn.active {
        background: #ff9800;
        border-color: #ff9800;
        color: white;
    }

    .search-pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    .search-no-results {
        text-align: center;
        padding: 60px 20px;
        background: #f8fafc;
        border-radius: 24px;
        margin: 30px 0;
    }

    .search-no-results i {
        font-size: 60px;
        color: #cbd5e0;
        margin-bottom: 20px;
    }

    .search-no-results h3 {
        font-size: 24px;
        color: #1a202c;
        margin-bottom: 10px;
    }

    .search-no-results p {
        color: #718096;
        font-size: 16px;
    }

    /* ===== МОДАЛЬНЫЕ ОКНА ===== */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 1001;
    }

    .modal-content {
        background: white;
        border-radius: 20px;
        width: 90%;
        max-width: 800px;
        max-height: 90vh;
        overflow: hidden;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }

    .modal-header {
        background: linear-gradient(135deg, #6c757d 0%, #8e9aa5 100%);
        color: white;
        padding: 20px 25px;
        font-size: 18px;
        font-weight: 700;
    }

    .modal-body {
        padding: 25px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .edit-modal-body {
        max-height: 70vh;
        overflow-y: auto;
        padding: 30px;
    }

    /* Типы недвижимости */
    .property-types {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 20px;
    }

    .property-type-btn {
        padding: 15px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        background: white;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 14px;
        color: #4a5568;
        position: relative;
        min-height: 120px;
    }

    .property-type-btn.active {
        border: 2px solid #000;
        background-color: #f8f9fa;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .type-icon {
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #6c757d;
    }

    .type-png-icon {
        position: absolute;
        bottom: 5px;
        right: 5px;
        width: 80px;
        height: 80px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: right bottom;
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    .property-type-btn:hover .type-png-icon {
        opacity: 1;
        transform: scale(1.05);
    }

    /* Поля ввода */
    .input-group {
        margin-bottom: 15px;
    }

    .input-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #1a202c;
        font-size: 13px;
    }

    .input-field {
        width: 100%;
        padding: 10px 12px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 13px;
        transition: all 0.3s ease;
    }

    .input-field:focus {
        border-color: #6c757d;
        outline: none;
        box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
    }

    .area-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 25px 0;
    }

    .area-input-group {
        position: relative;
    }

    .area-input {
        width: 100%;
        padding: 16px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 16px;
        transition: all 0.3s ease;
        -moz-appearance: textfield;
    }

    .area-input::-webkit-outer-spin-button,
    .area-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .area-input:focus {
        border-color: #6c757d;
        outline: none;
        box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
    }

    .area-label {
        position: absolute;
        top: -10px;
        left: 12px;
        background: white;
        padding: 0 8px;
        font-size: 12px;
        color: #718096;
        font-weight: 600;
    }

    .price-input-group {
        position: relative;
        margin: 25px 0;
    }

    .price-input {
        width: 100%;
        padding: 16px;
        padding-right: 60px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 20px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .price-input:focus {
        border-color: #6c757d;
        outline: none;
        box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
    }

    .price-suffix {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #718096;
        font-size: 16px;
    }

    .price-error {
        color: #dc3545;
        font-size: 14px;
        margin-top: 5px;
        font-weight: 600;
        display: none;
    }

    /* Фотографии */
    .photos-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
        margin: 25px 0;
    }

    .photo-upload-btn {
        aspect-ratio: 1;
        border: 2px dashed #e2e8f0;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #fafbfc;
        color: #718096;
    }

    .photo-upload-btn:hover {
        border-color: #6c757d;
        background: #f8f9fa;
    }

    .photo-item {
        position: relative;
        aspect-ratio: 1;
        border-radius: 12px;
        overflow: hidden;
        background: #f7fafc;
    }

    .delete-photo {
        position: absolute;
        top: 5px;
        right: 5px;
        background: rgba(0,0,0,0.7);
        color: white;
        border: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 12px;
    }

    /* Кадастровый номер */
    .cadastral-input {
        background: #f8f9fa;
        border: 2px dashed #e2e8f0;
    }

    .cadastral-hint {
        font-size: 11px;
        color: #a0aec0;
        margin-top: 4px;
        font-style: italic;
    }

    /* Выпадающие списки */
    .custom-dropdown-container {
        position: relative;
        margin-bottom: 20px;
    }

    .custom-dropdown-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #6c757d;
        font-size: 14px;
    }

    .custom-dropdown-select {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-size: 14px;
        background: white;
        color: #1a202c;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .custom-dropdown-select:hover {
        border-color: #6c757d;
        background-color: #f8f9fa;
    }

    .custom-dropdown-select.open {
        border-color: #6c757d;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom: none;
    }

    .custom-dropdown-arrow {
        transition: transform 0.3s;
        color: #718096;
    }

    .custom-dropdown-select.open .custom-dropdown-arrow {
        transform: rotate(180deg);
        color: #6c757d;
    }

    .custom-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 2px solid #6c757d;
        border-top: none;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        display: none;
        overflow: hidden;
        max-height: 300px;
        overflow-y: auto;
    }

    .custom-dropdown-menu.open {
        display: block;
    }

    .custom-dropdown-option {
        padding: 14px 16px;
        cursor: pointer;
        transition: all 0.2s ease;
        border-bottom: 1px solid #f7fafc;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .custom-dropdown-option:last-child {
        border-bottom: none;
    }

    .custom-dropdown-option:hover {
        background-color: #f5f7fa;
    }

    .custom-dropdown-option.selected {
        background-color: #fff8e1;
        font-weight: 600;
    }

    /* Телефон */
    .phone-input-group {
        position: relative;
        margin-bottom: 20px;
    }

    .phone-input {
        width: 100%;
        padding: 16px 20px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 16px;
        transition: all 0.3s ease;
        text-align: center;
    }

    .phone-input:focus {
        border-color: #6c757d;
        outline: none;
        box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
    }

    .phone-prefix {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        color: #4a5568;
    }

    /* Описание */
    .description-group {
        margin: 25px 0;
    }

    .description-textarea {
        width: 100%;
        min-height: 100px;
        padding: 12px;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-size: 13px;
        font-family: 'Inter', sans-serif;
        line-height: 1.5;
        transition: all 0.3s ease;
        resize: vertical;
    }

    .description-textarea:focus {
        border-color: #6c757d;
        outline: none;
        box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
    }

    .description-hint {
        font-size: 12px;
        color: #a0aec0;
        margin-top: 8px;
        font-style: italic;
    }

    /* Кнопки в модалках */
    .modal-buttons {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }

    .btn-modal-primary,
    .btn-modal-secondary {
        flex: 1;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
    }

    .btn-modal-primary {
        background: #6c757d;
        color: white;
    }

    .btn-modal-primary:hover {
        background: #8e9aa5;
    }

    .btn-modal-secondary {
        background: #e2e8f0;
        color: #4a5568;
    }

    .btn-modal-secondary:hover {
        background: #d0d7e0;
    }

    /* ===== ДЕТАЛЬНАЯ СТРАНИЦА ОБЪЯВЛЕНИЯ ===== */
    .property-detail-page {
        margin: 100px auto 50px;
        padding: 0 20px;
        max-width: 2000px; /* Увеличиваем максимальную ширину */
    }

    .property-detail-split {
        display: flex;
        gap: 70px; /* Увеличиваем отступ между колонками */
        margin-top: 20px;
        position: relative;
        align-items: flex-start;
    }

    .property-detail-left {
        flex: 3; /* Увеличиваем (было 1.5) */
        min-width: 0;
        background: white;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .property-detail-right {
        width: 450px;
        position: sticky;
        top: 100px;
        align-self: flex-start;
        background: white;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border: 2px solid #e2e8f0;
        transition: all 0.3s ease;
    }

    .property-detail-right.sticky-shadow {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border-color: #ff9800;
    }

    /* Для широких экранов */
    @media (min-width: 1600px) {
        .property-detail-left {
            flex: 4; /* Еще шире левая колонка */
        }
        
        .detail-slider-container {
            height: 550px; /* Можно чуть увеличить высоту для пропорций */
        }
    }

    .detail-slider-container {
                position: relative;
                height: 400px;
                width: 100%;
                overflow: hidden;
                background: #000;
                border-radius: 12px;
                margin-bottom: 30px;
            }

    .detail-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center; /* Центрируем изображение */
    }

    .detail-slider {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .detail-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .detail-slide.active {
        opacity: 1;
    }

    .detail-slider-nav {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 2;
    }

    .detail-slider-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .detail-slider-dot.active {
        background: #ff9800;
        transform: scale(1.2);
    }

    .detail-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 2;
        outline: none !important;
    }

    .detail-slider-btn:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: translateY(-50%) scale(1.1);
    }

    .detail-slider-prev { left: 20px; }
    .detail-slider-next { right: 20px; }

    .detail-slider-count {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 12px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        z-index: 2;
    }

    .property-detail-header {
        margin-bottom: 30px;
    }

    .property-detail-address {
        font-size: 28px;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        border-bottom: 2px solid transparent;
    }

    .property-detail-address:hover {
        color: #ff9800;
        border-bottom-color: #ff9800;
    }

    .property-detail-type-badge {
        display: inline-block;
        background: #f8f9fa;
        padding: 8px 16px;
        border-radius: 30px;
        font-size: 14px;
        color: #6c757d;
        font-weight: 600;
        margin-bottom: 20px;
    }

    /* Характеристики */
    .property-characteristics {
        margin: 40px 0; /* Увеличиваем отступы */
        padding: 40px; /* Увеличиваем внутренние отступы */
        background: #f8f9fa;
        border-radius: 20px;
        border-left: 4px solid #ff9800;
    }

    .section-subtitle {
        font-size: 32px; /* Увеличиваем размер (было 26px) */
        font-weight: 700;
        color: #6c757d;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .characteristics-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Увеличиваем минимальную ширину (было 350px) */
        gap: 25px; /* Увеличиваем отступы */
        margin-top: 25px;
    }

    .characteristic-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 25px; /* Увеличиваем отступы (было 15px 20px) */
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        transition: all 0.2s ease;
    }

    .characteristic-label {
        font-weight: 600;
        color: #4a5568;
        font-size: 18px; /* Увеличиваем размер (было 17px) */
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .characteristic-value {
        font-weight: 600;
        color: #1a202c;
        font-size: 18px; /* Увеличиваем размер (было 17px) */
        text-align: right;
    }

    .description-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: pre-wrap;
        line-height: 1.8;
        max-width: 100%;
        font-size: 18px; /* Увеличиваем размер (было 17px) */
        color: #4a5568;
    }

    .property-description {
        margin: 40px 0; /* Увеличиваем отступы */
        padding: 40px; /* Увеличиваем внутренние отступы */
        background: white;
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        border: 1px solid #e2e8f0;
    }

    .description-content {
        line-height: 1.8;
        color: #4a5568;
        font-size: 17px;
    }

    .description-text.collapsed {
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(1.8em * 6);
    }

    .read-more-btn {
        background: none;
        border: none;
        color: #ff9800;
        font-weight: 600;
        cursor: pointer;
        padding: 8px 0;
        margin-top: 10px;
        font-size: 15px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s ease;
        outline: none !important;
    }

    .read-more-btn:hover {
        color: #e68900;
        gap: 12px;
    }

    /* Сайдбар с ценой */
    .price-card {
        text-align: center;
        padding: 20px 0;
    }

    .price-label {
        font-size: 18px;
        color: #718096;
        margin-bottom: 15px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .price-current {
        font-size: 56px;
        font-weight: 800;
        color: #ff9800;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .price-old {
        font-size: 28px;
        color: #a0aec0;
        text-decoration: line-through;
        margin-bottom: 10px;
        font-weight: 500;
    }

    .price-discount-badge {
        display: inline-block;
        background: #ff9800;
        color: white;
        padding: 8px 20px;
        border-radius: 30px;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 25px;
    }

    .price-per-meter {
        margin-top: 25px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .price-per-meter span {
        font-size: 18px;
        color: #718096;
        font-weight: 500;
    }

    .price-per-meter strong {
        font-size: 28px;
        font-weight: 700;
        color: #ff9800;
    }

    /* Мета информация */
    .property-meta {
        margin: 25px 0;
        padding: 20px 0;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        color: #718096;
        font-size: 16px;
    }

    .meta-item i {
        color: #ff9800;
        width: 20px;
        font-size: 18px;
    }

    /* Секции в сайдбаре */
    .sidebar-section {
        margin: 25px 0;
        padding: 25px;
        background: #f8f9fa;
        border-radius: 16px;
        text-align: left;
    }

    .sidebar-section-title {
        font-size: 18px;
        font-weight: 600;
        color: #6c757d;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sidebar-section-title i { color: #ff9800; }

    .sidebar-section-content {
        font-size: 16px;
        color: #4a5568;
        line-height: 1.6;
    }

    .sidebar-section-content a {
        color: #ff9800;
        text-decoration: none;
        word-break: break-all;
    }

    .sidebar-section-content a:hover {
        text-decoration: underline;
    }

    /* Контакт заказчика */
    .realtor-contact {
        margin-top: 30px;
        padding: 30px;
        background: #fff8e1;
        border-radius: 20px;
        border: 2px solid #ffb300;
    }

    .realtor-contact-title {
        font-size: 22px;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .realtor-contact-title i { color: #ff9800; }

    .realtor-phone {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 15px;
    }

    .realtor-phone i {
        font-size: 32px;
        color: #ff9800;
    }

    .realtor-phone a {
        font-size: 32px;
        font-weight: 700;
        color: #1a202c;
        text-decoration: none;
        letter-spacing: 1px;
    }

    .realtor-phone a:hover { color: #ff9800; }

    .realtor-note {
        font-size: 16px;
        color: #718096;
        font-style: italic;
        padding-top: 10px;
        border-top: 1px dashed #ffb300;
    }

    /* Кнопка редактирования */
    .edit-property-btn {
        width: 100%;
        background: #ff9800;
        color: white;
        border: none;
        padding: 16px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 30px;
        outline: none !important;
    }

    .edit-property-btn:hover {
        background: #e68900;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
    }

    /* Кнопка на карту */
    .map-buttons {
        display: flex;
        gap: 15px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .map-button {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 20px;
        background: #ff9800;
        color: white;
        text-decoration: none;
        border-radius: 40px;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
        flex: 1;
        justify-content: center;
    }

    .map-button:hover {
        background: #e68900;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
    }

    .map-button.google-maps {
        background: #4285F4;
    }

    .map-button.google-maps:hover {
        background: #3367D6;
    }

    .coordinates-display {
        background: #f1f3f5;
        padding: 15px;
        border-radius: 12px;
        font-family: monospace;
        font-size: 16px;
        border-left: 3px solid #ff9800;
    }

    /* Кнопка назад */
    .back-button {
        background: #6c757d;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 30px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        outline: none !important;
    }

    .back-button:hover {
        background: #8e9aa5;
        transform: translateY(-2px);
    }

    /* ===== ЧЕРНОВИКИ ===== */
    .drafts-interface {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 20px;
    }

    .draft-card-grid {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(255, 179, 0, 0.1);
        transition: all 0.3s ease;
        position: relative;
        border: 2px solid #e2e8f0;
    }

    .draft-card-grid:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .draft-image {
        height: 180px;
        background: linear-gradient(135deg, #6c757d, #8e9aa5);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 14px;
        position: relative;
    }

    .draft-content {
        padding: 15px;
    }

    .draft-address {
        font-size: 14px;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .draft-details {
        display: flex;
        justify-content: space-between;
        margin-bottom: 12px;
        color: #4a5568;
        font-size: 12px;
    }

    .draft-price {
        font-size: 20px;
        font-weight: 700;
        color: #ff9800;
        margin: 15px 0;
        white-space: nowrap;
    }

    .draft-actions-grid {
        display: flex;
        gap: 8px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
        align-items: center;
        min-height: 40px;
    }

    .btn-draft-edit,
    .btn-draft-publish,
    .btn-draft-delete {
        flex: 1;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        height: 35px;
        min-width: 80px;
        border: none;
        color: white;
    }

    .btn-draft-edit { background: #ff9800; }
    .btn-draft-edit:hover { background: #e68900; transform: translateY(-2px); }
    .btn-draft-publish { background: #28a745; }
    .btn-draft-publish:hover { background: #218838; transform: translateY(-2px); }
    .btn-draft-delete { background: #dc3545; }
    .btn-draft-delete:hover { background: #c82333; transform: translateY(-2px); }

    /* ===== ПОЛЕ ВВОДА КООРДИНАТ ===== */
    .coordinates-tab {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        margin: 20px 0;
        border: 2px dashed #e2e8f0;
        transition: all 0.3s ease;
    }

    .coordinates-tab:hover {
        border-color: #ff9800;
        background: #fff8e1;
    }

    .coordinates-tab .coordinate-label {
        font-weight: 600;
        color: #6c757d;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .coordinate-input-group {
        position: relative;
        margin-top: 10px;
    }

    .coordinate-input {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-size: 14px;
        transition: all 0.3s ease;
        background: white;
        font-family: 'Inter', monospace;
    }

    .coordinate-input:focus {
        border-color: #ff9800;
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
    }

    .coordinate-input::placeholder {
        color: #a0aec0;
        font-style: italic;
    }

    .coordinate-hint {
        font-size: 12px;
        color: #718096;
        margin-top: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .coordinate-hint i {
        color: #ff9800;
    }

    /* ===== АДМИН ПАНЕЛЬ ===== */
    #adminPanel {
        background: linear-gradient(135deg, #1a2634 0%, #2c3e50 100%);
        border: 2px solid #ff9800;
        color: white;
        margin-top: 30px;
    }

    #adminPanel .panel-header {
        border-bottom: 2px solid #ff9800;
        padding-bottom: 20px;
        margin-bottom: 25px;
    }

    #adminPanel .panel-icon {
        background: #ff9800;
        color: #1a2634;
    }

    #adminPanel .panel-title {
        color: white;
        font-size: 24px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    #adminPanel h3 {
        color: #ff9800;
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    #adminCreateRealtorForm {
        background: rgba(255,255,255,0.1);
        padding: 25px;
        border-radius: 12px;
        margin-bottom: 30px;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255,255,255,0.2);
    }

    #adminCreateRealtorForm input {
        background: white !important;
        color: #1a202c !important;
        border: 2px solid #e2e8f0 !important;
        padding: 12px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
    }

    #adminCreateRealtorForm input:focus {
        border-color: #ff9800 !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(255,152,0,0.2) !important;
    }

    #adminCreateRealtorForm button {
        background: #ff9800;
        color: white;
        border: none;
        padding: 14px 28px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        grid-column: span 2;
    }

    #adminCreateRealtorForm button:hover {
        background: #ffb74d;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255,152,0,0.4);
    }

    .admin-table {
        width: 100%;
        border-collapse: collapse;
        background: rgba(255,255,255,0.05);
        border-radius: 12px;
        overflow: hidden;
        margin: 20px 0;
        backdrop-filter: blur(5px);
    }

    .admin-table th {
        background: rgba(255,152,0,0.3);
        color: white;
        font-weight: 700;
        font-size: 15px;
        padding: 16px 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #ff9800;
    }

    .admin-table td {
        padding: 14px 12px;
        color: rgba(255,255,255,0.9);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 14px;
    }

    .admin-table tr:hover td {
        background: rgba(255,152,0,0.1);
    }

    .admin-table .btn-delete {
        background: rgba(220, 53, 69, 0.8);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255,255,255,0.2);
    }

    .admin-table .btn-delete:hover {
        background: #dc3545;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220,53,69,0.4);
    }

    .admin-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .admin-stat-card {
        background: rgba(255,255,255,0.1);
        padding: 25px;
        border-radius: 12px;
        text-align: center;
        border: 1px solid rgba(255,152,0,0.3);
        backdrop-filter: blur(5px);
    }

    .admin-stat-number {
        font-size: 42px;
        font-weight: 800;
        color: #ff9800;
        margin-bottom: 8px;
        text-shadow: 0 2px 10px rgba(255,152,0,0.5);
    }

    .admin-stat-label {
        color: rgba(255,255,255,0.8);
        font-size: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    #realtorsTableContainer,
    #adminPropertiesList {
        max-height: 400px;
        overflow-y: auto;
        border-radius: 12px;
        background: rgba(0,0,0,0.2);
        padding: 5px;
    }

    #realtorsTableContainer::-webkit-scrollbar,
    #adminPropertiesList::-webkit-scrollbar {
        width: 8px;
    }

    #realtorsTableContainer::-webkit-scrollbar-track,
    #adminPropertiesList::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
        border-radius: 4px;
    }

    #realtorsTableContainer::-webkit-scrollbar-thumb,
    #adminPropertiesList::-webkit-scrollbar-thumb {
        background: #ff9800;
        border-radius: 4px;
    }

    #realtorsTableContainer::-webkit-scrollbar-thumb:hover,
    #adminPropertiesList::-webkit-scrollbar-thumb:hover {
        background: #ffb74d;
    }

    /* ===== ФУТЕР ===== */
    .footer {
        background: #1a202c;
        color: white;
        padding: 40px 20px;
        margin-top: 60px;
        flex-shrink: 0;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 20px;
        color: white;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .footer-links {
        list-style: none;
    }

    .footer-links li {
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .footer-links a {
        color: #a0aec0;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
    }

    .footer-links a:hover {
        color: white;
    }

    .copyright {
        text-align: center;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #2d3748;
        color: #a0aec0;
        font-size: 13px;
    }

    .inline-social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        text-decoration: none;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .inline-social-icon:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: #ff9800;
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
    }

    .inline-social-icon img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        filter: brightness(0.9);
        transition: filter 0.3s ease;
    }

    .inline-social-icon:hover img {
        filter: brightness(1.3);
    }

    @keyframes glow {
        0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7); }
        100% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
    }

    .inline-social-icon:hover {
        animation: glow 1.5s infinite;
    }

    /* ===== АДАПТИВНОСТЬ ===== */
    @media (max-width: 1400px) {
        .property-detail-left {
            flex: 1.2;
        }
        
        .property-detail-right {
            width: 400px;
        }
        
        .price-current {
            font-size: 48px;
        }
        
        .realtor-phone a {
            font-size: 28px;
        }
    }

    @media (max-width: 1200px) {
        .search-results-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .properties-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .drafts-interface {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 1024px) {
        .navbar { padding: 15px 25px; }
        .nav-links { gap: 20px; }
        .hero-title { font-size: 30px; }
        .property-detail-split { flex-direction: column; }
        .property-detail-right { width: 100%; position: static; margin-top: 30px; }
    }

    @media (max-width: 768px) {
        .navbar {
            flex-direction: column;
            gap: 15px;
            padding: 15px;
            height: auto;
            min-height: 80px;
        }
        
        .nav-links {
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
        }
        
        .auth-container {
            width: 100%;
            justify-content: center;
            gap: 15px;
        }
        
        .main-content { margin-top: 160px; }
        .hero-section { padding: 25px; }
        .hero-title { font-size: 24px; }
        .hero-subtitle { font-size: 16px; }
        .hero-actions { flex-direction: column; }
        .section { padding: 20px; }
        
        .search-filters-container { padding: 20px; }
        .search-filters-grid { grid-template-columns: 1fr; gap: 15px; }
        .search-filter-buttons { flex-direction: column; }
        .search-results-grid { grid-template-columns: 1fr; }
        .search-stats { flex-direction: column; gap: 10px; align-items: flex-start; }
        .search-result-image { height: 180px; }
        
        .properties-grid,
        .drafts-interface { grid-template-columns: 1fr; }
        
        .property-card { max-width: 400px; margin: 0 auto; }
        .modal-content { width: 95%; margin: 10px; }
        .slider-wrapper { padding: 0 10px; }
        .slider-btn { display: none; }
        .slider-track-enhanced .property-card { flex: 0 0 280px; min-width: 280px; max-width: 280px; width: 280px; }
        .price-with-discount { flex-wrap: wrap; gap: 5px; }
        
        .property-detail-left,
        .property-detail-right { padding: 25px; }
        .detail-slider-container { height: 300px; }
        .price-current { font-size: 42px; }
        .realtor-phone a { font-size: 24px; }
        .price-per-meter strong { font-size: 24px; }
        .characteristics-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 480px) {
        .search-filters-title { font-size: 20px; }
        .search-filter-range { grid-template-columns: 1fr; }
        .search-result-price-current { font-size: 20px; }
        
        .property-detail-left,
        .property-detail-right { padding: 20px; }
        .detail-slider-container { height: 250px; }
        .price-current { font-size: 36px; }
    }

    /* Отключение автозаполнения */
    input::-webkit-credentials-auto-fill-button,
    input::-webkit-caps-lock-indicator,
    input::-webkit-strong-password-auto-fill-button,
    input::-webkit-contacts-auto-fill-button,
    input::-webkit-textfield-decoration-container,
    input::-webkit-autofill,
    input::-webkit-autofill:hover,
    input::-webkit-autofill:focus,
    input::-webkit-autofill:active {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    input {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-color: white !important;
        background-image: none !important;
        filter: none !important;
    }

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
        display: none !important;
    }

    input[type="number"] {
        -moz-appearance: textfield !important;
        appearance: textfield !important;
    }

    input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px white inset !important;
        box-shadow: 0 0 0 1000px white inset !important;
        background-color: white !important;
        background-image: none !important;
        color: #1a202c !important;
        -webkit-text-fill-color: #1a202c !important;
    }

    input:-webkit-autofill::first-line {
        color: #1a202c !important;
        font-family: 'Inter', sans-serif !important;
    }

    /* ===== ПОЛНОЦЕННАЯ СТРАНИЦА ПОИСКА ===== */
    .search-page-full {
        max-width: 1400px;
        margin: 100px auto 50px;
        padding: 0 30px;
    }

    /* ФИЛЬТРЫ НА ВЕСЬ ЭКРАН */
    .search-filters-full {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border-radius: 24px;
        padding: 35px 40px;
        margin-bottom: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid #e2e8f0;
        width: 100%;
    }

    .filters-container {
        width: 100%;
    }

    .filters-title {
        font-size: 28px;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .filters-title i {
        color: #ff9800;
        font-size: 32px;
        background: rgba(255, 152, 0, 0.1);
        padding: 12px;
        border-radius: 16px;
    }

    .filters-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        margin-bottom: 30px;
    }

    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filter-label {
        font-weight: 700;
        color: #2d3748;
        font-size: 15px;
        letter-spacing: 0.3px;
    }

    .filter-label i {
        color: #ff9800;
        margin-right: 8px;
        width: 20px;
    }

    .filter-select,
    .filter-input {
        width: 100%;
        padding: 14px 18px;
        border: 2px solid #e2e8f0;
        border-radius: 14px;
        font-size: 15px;
        transition: all 0.3s ease;
        background: white;
    }

    .filter-select:focus,
    .filter-input:focus {
        border-color: #ff9800;
        outline: none;
        box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.15);
    }

    .price-range {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .price-range .filter-input {
        flex: 1;
    }

    .range-separator {
        color: #a0aec0;
        font-weight: 600;
    }

    .filters-actions {
        display: flex;
        gap: 15px;
        padding-top: 20px;
        border-top: 2px solid #e2e8f0;
    }

    .filter-btn {
        flex: 1;
        padding: 16px 24px;
        border-radius: 14px;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .filter-btn-primary {
        background: linear-gradient(135deg, #ff9800, #ffb74d);
        color: white;
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    }

    .filter-btn-primary:hover {
        background: linear-gradient(135deg, #f57c00, #ff9800);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    }

    .filter-btn-secondary {
        background: white;
        color: #4a5568;
        border: 2px solid #e2e8f0;
    }

    .filter-btn-secondary:hover {
        background: #f8fafc;
        border-color: #ff9800;
        color: #ff9800;
        transform: translateY(-2px);
    }

    /* РЕЗУЛЬТАТЫ ПОИСКА */
    .search-results-full {
        margin-top: 30px;
    }

    .results-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding: 20px 0;
        border-bottom: 2px solid #e2e8f0;
    }

    .results-count {
        font-size: 18px;
        font-weight: 600;
        color: #1a202c;
    }

    .results-count span {
        color: #ff9800;
        font-size: 24px;
        font-weight: 800;
    }

    .results-sort {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .results-sort span {
        color: #718096;
        font-size: 14px;
    }

    .results-sort select {
        padding: 10px 30px 10px 15px;
        border: 2px solid #e2e8f0;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 500;
        background: white;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
    }

    .results-sort select:focus {
        border-color: #ff9800;
        outline: none;
    }

    /* СЕТКА ОБЪЯВЛЕНИЙ - НОРМАЛЬНЫЙ РАЗМЕР */
    .properties-grid-full {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 50px;
    }

    .properties-grid-full .property-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        cursor: pointer;
        width: 100%;
    }

    .properties-grid-full .property-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

    .properties-grid-full .property-image {
        height: 220px;
        background: linear-gradient(135deg, #6c757d, #8e9aa5);
    }

    .properties-grid-full .property-info {
        padding: 20px;
    }

    .properties-grid-full .property-address {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .properties-grid-full .property-details {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .properties-grid-full .property-price,
    .properties-grid-full .discount-price {
        font-size: 24px;
        font-weight: 800;
    }

    .properties-grid-full .original-price {
        font-size: 16px;
    }

    .properties-grid-full .btn-view {
        padding: 10px 16px;
        font-size: 14px;
    }

    .back-button-full {
        background: #6c757d;
        color: white;
        border: none;
        padding: 14px 28px;
        border-radius: 40px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }

    .back-button-full:hover {
        background: #8e9aa5;
        transform: translateY(-2px);
    }

    /* АДАПТИВНОСТЬ */
    @media (max-width: 1200px) {
        .properties-grid-full {
            grid-template-columns: repeat(2, 1fr);
        }
        .filters-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .search-page-full {
            padding: 0 15px;
            margin-top: 80px;
        }
        .search-filters-full {
            padding: 25px;
        }
        .filters-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        .properties-grid-full {
            grid-template-columns: 1fr;
        }
        .results-header {
            flex-direction: column;
            gap: 15px;
            align-items: flex-start;
        }
        .filters-actions {
            flex-direction: column;
        }
        .price-range {
            flex-direction: column;
        }
        .price-range .filter-input {
            width: 100%;
        }
        .range-separator {
            display: none;
        }
    }

    /* ===== НОВАЯ КНОПКА НА ГЛАВНУЮ СО СТРЕЛКОЙ ===== */
    .back-button-search {
        background: #6c757d;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 40px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 25px;
        outline: none !important;
    }

    .back-button-search:hover {
        background: #8e9aa5;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    /* ===== УЛУЧШЕННЫЙ СЛАЙДЕР НА СТРАНИЦЕ ПОДРОБНЕЕ ===== */
    .detail-slider-container-large {
        position: relative;
        height: 550px;
        width: 100%;
        overflow: hidden;
        background: #000;
        border-radius: 20px;
        margin-bottom: 30px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    .detail-slider-large {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .detail-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .detail-slide.active {
        opacity: 1;
    }

    .detail-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .detail-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        outline: none !important;
    }

    .detail-slider-btn:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-50%) scale(1.1);
    }

    .detail-slider-prev {
        left: 20px;
    }

    .detail-slider-next {
        right: 20px;
    }

    .detail-slider-nav {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 10;
    }

    .detail-slider-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .detail-slider-dot.active {
        background: #ff9800;
        transform: scale(1.2);
    }

    .detail-slider-count {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 12px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        z-index: 10;
    }

    /* Адаптив для слайдера */
    @media (max-width: 768px) {
        .detail-slider-container-large {
            height: 350px;
        }
        .detail-slider-btn {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
    }
    /* УВЕЛИЧЕННЫЙ СЛАЙДЕР (основной) */
    .detail-slider-container-large {
        position: relative;
        height: 550px;  /* Высота слайдера - можно изменить */
        width: 100%;
        overflow: hidden;
        background: #000;
        border-radius: 20px;
        margin-bottom: 30px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    /* Левая колонка - ширина */
    .property-detail-left {
        flex: 4;  /* Увеличьте до 4 для более широких фото */
        min-width: 0;
        background: white;
        border-radius: 30px;
        padding: 40px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    /* Правая колонка - фиксированная ширина */
    .property-detail-right {
        width: 450px;  /* Ширина правой панели */
        position: sticky;
        top: 100px;
        align-self: flex-start;
        background: white;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border: 2px solid #e2e8f0;
    }
    /* ===== КОНТЕЙНЕР ДЛЯ ДВУХ КОЛОНОК ===== */
    .property-detail-split {
        display: flex;
        gap: 50px;
        margin-top: 20px;
        position: relative;
        align-items: flex-start;
        justify-content: space-between;
    }

    /* ===== ЛЕВАЯ КОЛОНКА - ШИРОКАЯ ===== */
    .property-detail-left {
        flex: 3;
        min-width: 0;
        background: white;
        border-radius: 20px;
        padding: 35px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    /* ===== ПРАВАЯ КОЛОНКА - УВЕЛИЧЕННАЯ ШИРИНА ===== */
    .property-detail-right {
        width: 420px;
        position: sticky;
        top: 100px;
        align-self: flex-start;
        background: white;
        border-radius: 20px;
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border: 2px solid #e2e8f0;
        flex-shrink: 0;
    }

    /* ===== УЛУЧШЕННЫЙ СЛАЙДЕР НА СТРАНИЦЕ ПОДРОБНЕЕ ===== */
    .detail-slider-container-large {
        position: relative;
        height: 500px;
        width: 100%;
        overflow: hidden;
        background: #000;
        border-radius: 20px;
        margin-bottom: 30px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    .detail-slider-large {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .detail-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .detail-slide.active {
        opacity: 1;
    }

    .detail-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .detail-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
        outline: none !important;
    }

    .detail-slider-btn:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-50%) scale(1.1);
    }

    .detail-slider-prev {
        left: 20px;
    }

    .detail-slider-next {
        right: 20px;
    }

    .detail-slider-nav {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 10;
    }

    .detail-slider-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .detail-slider-dot.active {
        background: #ff9800;
        transform: scale(1.2);
    }

    .detail-slider-count {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 12px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        z-index: 10;
    }

    /* ===== ХАРАКТЕРИСТИКИ - КАК В ЭТАЛОНЕ ===== */
    .property-characteristics {
        margin: 40px 0 30px;
        padding: 30px;
        background: #f8f9fa;
        border-radius: 16px;
        border-left: 4px solid #ff9800;
    }

    .section-subtitle {
        font-size: 22px;
        font-weight: 700;
        color: #6c757d;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .characteristics-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 0;
    }

    .characteristic-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .characteristic-item:last-child {
        border-bottom: none;
    }

    .characteristic-label {
        font-weight: 600;
        color: #4a5568;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .characteristic-label i {
        color: #ff9800;
        width: 20px;
        font-size: 14px;
    }

    .characteristic-value {
        font-weight: 600;
        color: #1a202c;
        font-size: 15px;
        text-align: right;
    }

    /* ===== ОПИСАНИЕ ===== */
    .property-description {
        margin: 30px 0;
        padding: 30px;
        background: #f8f9fa;
        border-radius: 16px;
        line-height: 1.6;
        color: #4a5568;
        font-size: 16px;
    }

    .description-title {
        font-size: 22px;
        font-weight: 700;
        color: #6c757d;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #ff9800;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .description-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: pre-wrap;
        line-height: 1.6;
        max-width: 100%;
        font-size: 16px;
        color: #4a5568;
    }

    .description-text.collapsed {
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(1.6em * 6);
    }

    .read-more-btn {
        background: none;
        border: none;
        color: #ff9800;
        font-weight: 600;
        cursor: pointer;
        padding: 8px 0;
        margin-top: 10px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s ease;
        outline: none !important;
    }

    .read-more-btn:hover {
        color: #e68900;
        gap: 12px;
    }

    /* ===== ПРАВАЯ КОЛОНКА - УЛУЧШЕННАЯ ===== */
    .price-sidebar {
        text-align: center;
    }

    .price-sidebar-title {
        font-size: 16px;
        color: #718096;
        margin-bottom: 15px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .price-sidebar-amount {
        font-size: 48px;
        font-weight: 800;
        color: #ff9800;
        margin-bottom: 20px;
    }

    .price-sidebar-discount {
        font-size: 24px;
        color: #a0aec0;
        text-decoration: line-through;
        margin-bottom: 8px;
    }

    .price-sidebar-percent {
        display: inline-block;
        background: #ff9800;
        color: white;
        padding: 6px 14px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .sidebar-section {
        margin: 25px 0;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 12px;
        text-align: left;
    }

    .sidebar-section-title {
        font-size: 16px;
        font-weight: 600;
        color: #6c757d;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sidebar-section-title i {
        color: #ff9800;
        width: 20px;
    }

    .sidebar-section-content {
        font-size: 14px;
        color: #4a5568;
        line-height: 1.6;
        word-break: break-all;
    }

    .sidebar-section-content a {
        color: #ff9800;
        text-decoration: none;
    }

    .sidebar-section-content a:hover {
        text-decoration: underline;
    }

    /* ===== ЗАГОЛОВОК АДРЕСА ===== */
    .property-detail-header {
        margin-bottom: 25px;
    }

    .property-detail-address {
        font-size: 28px;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .property-detail-address:hover {
        color: #ff9800;
    }

    .map-button {
        display: inline-block;
        margin: 10px 0;
        padding: 6px 14px;
        background: #ff9800;
        color: white;
        text-decoration: none;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .map-button:hover {
        background: #e68900;
        transform: translateY(-2px);
    }

    .property-detail-type {
        display: inline-block;
        background: #f8f9fa;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 14px;
        color: #6c757d;
        font-weight: 600;
        margin-top: 10px;
    }

    /* ===== КНОПКА НАЗАД ===== */
    .back-button {
        background: #6c757d;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 20px;
    }

    .back-button:hover {
        background: #8e9aa5;
        transform: translateY(-2px);
    }

    /* ===== АДАПТИВНОСТЬ ===== */
    @media (max-width: 1200px) {
        .property-detail-left {
            flex: 2;
        }
        
        .property-detail-right {
            width: 380px;
        }
    }

    @media (max-width: 1024px) {
        .property-detail-split {
            flex-direction: column;
        }
        
        .property-detail-left {
            flex: auto;
            width: 100%;
        }
        
        .property-detail-right {
            width: 100%;
            position: static;
            margin-top: 30px;
        }
        
        .characteristics-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }
    }

    @media (max-width: 768px) {
        .detail-slider-container-large {
            height: 350px;
        }
        
        .detail-slider-btn {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
        
        .property-detail-left {
            padding: 20px;
        }
        
        .property-detail-right {
            padding: 20px;
        }
        
        .price-sidebar-amount {
            font-size: 36px;
        }
        
        .property-detail-address {
            font-size: 22px;
        }
        
        .section-subtitle {
            font-size: 20px;
        }
        
        .property-characteristics,
        .property-description {
            padding: 20px;
        }
    }
    /* Убираем синее выделение при нажатии */
    * {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    /* Но разрешаем выделение текста в полях ввода */
    input, textarea, [contenteditable] {
        -webkit-user-select: text !important;
        user-select: text !important;
    }
    /* style.css (Заменить предыдущий блок @media (max-width: 768px) для property-detail) */

    @media (max-width: 768px) {
        /* Прячем старую навигацию и футер на мобилках */
        .navbar, .footer {
            display: none !important;
        }

        /* Показываем мобильный хедер и строку поиска */
        .mobile-header {
            display: flex;
        }
        .mobile-search-container {
            display: block;
        }

        /* Корректируем отступ основного контента под мобильные элементы */
        .main-content {
            margin-top: 110px !important; /* Хедер (60px) + строка поиска (50px) */
        }

        /* ===== МОБИЛЬНАЯ ВЕРСИЯ СТРАНИЦЫ ПОДРОБНЕЕ ===== */
        .property-detail-page {
            margin-top: 0 !important;
            padding: 0 !important;
        }

        /* Убираем кнопку "Назад к объявлениям" на мобилках, так как у нас есть своя стрелка */
        .property-detail-page .back-button {
            display: none !important;
        }

        /* Расширяем контейнер слайдера на весь экран */
        .detail-slider-container-large {
            position: relative !important;
            height: 40vh !important;
            width: 100vw !important;
            margin-left: calc(-50vw + 50%) !important;
            margin-right: calc(-50vw + 50%) !important;
            border-radius: 0 !important;
            margin-bottom: 0 !important;
        }
        
        /* Убираем отступы у левой колонки */
        .property-detail-left {
            padding: 20px !important;
            border-radius: 0 !important;
        }

        /* Скрываем правую колонку ТОЛЬКО НА МОБИЛКАХ */
        .property-detail-right {
            display: none !important;
        }

        /* Стили для мобильного блока с ценой */
        .mobile-price-block {
            display: block !important;
            background: white;
            padding: 20px;
            margin: 0 0 20px 0;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .mobile-price {
            font-size: 32px;
            font-weight: 800;
            color: #ff9800;
            margin-bottom: 8px;
        }
        
        .mobile-price-old {
            font-size: 20px;
            color: #a0aec0;
            text-decoration: line-through;
            margin-left: 12px;
            font-weight: 500;
        }
        
        .mobile-price-per-meter {
            font-size: 16px;
            color: #718096;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #f0f0f0;
        }
        
        /* Характеристики и описание остаются без изменений */
        .property-characteristics,
        .property-description {
            margin: 20px 0;
        }
    }

    /* Элемент для мобильной цены (скрыт на ПК) */
    .mobile-price-block {
        display: none;
    }
    /* style.css - добавить в конец файла */

    /* На мобилках скрываем hero-section */
    @media (max-width: 768px) {
        .hero-section {
            display: none !important;
        }
        
        /* Убираем серое очертание у слайдера */
        .slider-wrapper {
            padding: 0 !important;
            margin: 0 !important;
        }
        
        .slider-track-enhanced {
            gap: 15px !important;
            padding: 0 !important;
        }
        
        /* Убираем ограничения для свежих объявлений */
        .section {
            padding: 20px 10px !important;
            margin: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
        }
        
        .section-title {
            font-size: 20px;
            padding-left: 10px;
            margin-bottom: 20px;
        }
        
        /* Убираем кнопки слайдера на мобилках */
        .slider-btn {
            display: none !important;
        }
        
        /* Обеспечиваем свободную прокрутку карусели */
        .slider-track-enhanced {
            overflow-x: auto !important;
            overflow-y: hidden !important;
            scroll-snap-type: x mandatory !important;
            -webkit-overflow-scrolling: touch !important;
            scrollbar-width: none !important;
            display: flex !important;
            flex-wrap: nowrap !important;
            width: 100% !important;
        }
        
        .slider-track-enhanced::-webkit-scrollbar {
            display: none !important;
        }
        
        .slider-track-enhanced .property-card {
            flex: 0 0 85% !important;
            scroll-snap-align: start !important;
            min-width: 280px !important;
            margin-right: 15px !important;
        }
    }

    /* Для ПК оставляем как есть */
    @media (min-width: 769px) {
        .hero-section {
            display: block !important;
        }
        
        .slider-btn {
            display: flex !important;
        }
        
        .slider-track-enhanced {
            overflow: visible !important;
            scroll-snap-type: none !important;
        }
    }
    /* style.css - добавить стили для мобильного поиска */

    .mobile-search-container {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 10px 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        z-index: 999;
        border-bottom: 1px solid #e2e8f0;
    }

    .mobile-search-wrapper {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .mobile-search-input {
        flex: 1;
        padding: 12px 15px;
        border: 2px solid #e2e8f0;
        border-radius: 30px;
        font-size: 16px;
        outline: none;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }

    .mobile-search-input:focus {
        border-color: #ff9800;
        background: white;
        box-shadow: 0 0 0 3px rgba(255,152,0,0.1);
    }

    .mobile-search-button {
        background: #ff9800;
        border: none;
        border-radius: 50%;
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: white;
        font-size: 18px;
    }

    .mobile-search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 1000;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .mobile-search-result-item {
        padding: 12px 15px;
        border-bottom: 1px solid #e2e8f0;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .mobile-search-result-item:hover {
        background: #fff8e1;
    }

    .mobile-search-result-address {
        font-weight: 600;
        color: #1a202c;
        font-size: 14px;
    }

    .mobile-search-result-price {
        font-size: 12px;
        color: #ff9800;
        font-weight: 600;
        margin-top: 4px;
    }
    /* style.css - замените блок .mobile-detail-nav */

    .mobile-detail-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent) !important;
        z-index: 1001 !important;
        padding: 15px 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        pointer-events: auto !important;
        backdrop-filter: none !important;
    }

    .mobile-detail-nav-btn {
        background: rgba(0, 0, 0, 0.5) !important;
        border: none !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: white !important;
        font-size: 20px !important;
        transition: all 0.3s ease !important;
        backdrop-filter: blur(5px) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }

    .mobile-detail-nav-btn:active {
        transform: scale(0.95) !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }

    /* Плавающая кнопка выхода (красная снизу справа) */
    .mobile-exit-button {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        background: #dc3545 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4) !important;
        z-index: 1002 !important;
        transition: all 0.3s ease !important;
        border: none !important;
        color: white !important;
        font-size: 20px !important;
    }

    .mobile-exit-button:active {
        transform: scale(0.95) !important;
        background: #c82333 !important;
    }

    /* На ПК кнопки не показываются */
    @media (min-width: 769px) {
        .mobile-detail-nav,
        .mobile-exit-button {
            display: none !important;
        }
    }
    /* style.css - замените блок .detail-slider-container-large */

    @media (max-width: 768px) {
        .detail-slider-container-large {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            height: 100vh !important;
            width: 100vw !important;
            margin: 0 !important;
            border-radius: 0 !important;
            z-index: 1000 !important;
        }
        
        .property-detail-left {
            position: relative !important;
            z-index: 1001 !important;
            margin-top: 70vh !important;
            background: white !important;
            border-radius: 20px 20px 0 0 !important;
            padding: 20px !important;
        }
        
        .mobile-price-block {
            margin-top: 10px !important;
        }
    }
    /* style.css - ДОБАВИТЬ В КОНЕЦ ФАЙЛА */

    /* ===== МОБИЛЬНЫЙ ХЕДЕР ===== */
    .mobile-header {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #6c757d 0%, #8e9aa5 100%);
        padding: 12px 15px;
        z-index: 1000;
        align-items: center;
        justify-content: flex-start;
    }

    .mobile-logo-area {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-logo-img {
        height: 32px;
        width: auto;
    }

    .mobile-logo-text {
        font-size: 18px;
        font-weight: 700;
        color: white;
    }

    /* ===== МОБИЛЬНАЯ СТРОКА ПОИСКА ===== */
    .mobile-search-container {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        background: white;
        padding: 8px 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        z-index: 999;
        border-bottom: 1px solid #e2e8f0;
    }

    .mobile-search-wrapper {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .mobile-search-input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #e2e8f0;
        border-radius: 30px;
        font-size: 14px;
        outline: none;
        background: #f8f9fa;
    }

    .mobile-search-input:focus {
        border-color: #ff9800;
        background: white;
    }

    .mobile-search-button {
        background: #ff9800;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: white;
        font-size: 16px;
    }

    /* ===== СТРАНИЦА МОБИЛЬНОГО ПОИСКА ===== */
    .mobile-search-page {
        margin-top: 0;
        min-height: 100vh;
        background: white;
    }

    .mobile-search-header {
        position: sticky;
        top: 0;
        background: white;
        padding: 15px;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        gap: 15px;
        z-index: 10;
    }

    .mobile-search-back {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #4a5568;
        padding: 5px;
    }

    .mobile-search-title {
        font-size: 18px;
        font-weight: 600;
        color: #1a202c;
    }

    .mobile-search-input-container {
        padding: 15px;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        gap: 10px;
    }

    .mobile-search-input-page {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #e2e8f0;
        border-radius: 30px;
        font-size: 16px;
        outline: none;
    }

    .mobile-search-input-page:focus {
        border-color: #ff9800;
    }

    .mobile-search-button-page {
        background: #ff9800;
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        cursor: pointer;
        color: white;
        font-size: 18px;
    }

    .mobile-search-results-page {
        padding: 15px;
    }

    .search-results-header {
        padding: 10px 0;
        font-size: 14px;
        color: #718096;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 15px;
    }

    .mobile-search-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-search-card {
        display: flex;
        gap: 12px;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-search-card:active {
        background: #f8f9fa;
        transform: scale(0.98);
    }

    .mobile-search-card-image {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #6c757d, #8e9aa5);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-search-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-search-card-image i {
        font-size: 30px;
        color: white;
    }

    .mobile-search-card-info {
        flex: 1;
        padding: 10px;
    }

    .mobile-search-card-address {
        font-size: 14px;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 5px;
        line-height: 1.3;
    }

    .mobile-search-card-price {
        font-size: 16px;
        font-weight: 700;
        color: #ff9800;
    }

    .mobile-search-card-price .old-price {
        font-size: 12px;
        color: #a0aec0;
        text-decoration: line-through;
        font-weight: normal;
        margin-right: 8px;
    }

    /* ===== МОБИЛЬНАЯ НАВИГАЦИЯ НА СТРАНИЦЕ ПОДРОБНЕЕ ===== */
    .mobile-detail-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
        z-index: 1001;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: auto;
    }

    .mobile-detail-nav-btn {
        background: rgba(0, 0, 0, 0.5);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: white;
        font-size: 18px;
        backdrop-filter: blur(5px);
    }

    .mobile-exit-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: #dc3545;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(220,53,69,0.4);
        z-index: 1002;
        border: none;
        color: white;
        font-size: 20px;
    }

    .mobile-price-block {
        display: none;
    }

    /* ===== МОДАЛЬНОЕ ОКНО ПОДЕЛИТЬСЯ ===== */
    .modal-share {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2000;
    }

    .modal-share-content {
        background: white;
        border-radius: 20px;
        width: 90%;
        max-width: 320px;
        overflow: hidden;
    }

    .modal-share-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #e2e8f0;
        font-weight: 600;
    }

    .modal-share-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #a0aec0;
    }

    .modal-share-body {
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .share-option {
        background: #f8f9fa;
        border: 1px solid #e2e8f0;
        padding: 12px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        font-size: 15px;
    }

    .share-option i {
        width: 24px;
        color: #ff9800;
    }

    /* ===== МОБИЛЬНЫЕ АДАПТАЦИИ ===== */
    @media (max-width: 768px) {
        /* Скрываем ПК навигацию и футер */
        .navbar, .footer {
            display: none !important;
        }
        
        /* Показываем мобильные элементы */
        .mobile-header {
            display: flex;
        }
        
        .mobile-search-container {
            display: block;
        }
        
        .main-content {
            margin-top: 108px !important;
            padding: 0 !important;
        }
        
        /* Свежие объявления - карусель со свайпом */
        .slider-wrapper {
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding: 0 !important;
        }
        
        .slider-wrapper::-webkit-scrollbar {
            display: none;
        }
        
        .slider-track-enhanced {
            display: inline-flex;
            flex-wrap: nowrap;
            gap: 15px;
            padding: 10px 15px;
            transform: none !important;
            transition: none !important;
        }
        
        .slider-track-enhanced .property-card {
            flex: 0 0 280px;
            min-width: 280px;
            width: 280px;
        }
        
        .slider-btn {
            display: none !important;
        }
        
        /* Страница подробнее */
        .property-detail-page {
            margin-top: 0 !important;
        }
        
        .property-detail-page .back-button {
            display: none !important;
        }
        
        .detail-slider-container-large {
            height: 300px !important;
            border-radius: 0 !important;
            margin-bottom: 0 !important;
        }
        
        .property-detail-left {
            padding: 15px !important;
        }
        
        .property-detail-right {
            display: none !important;
        }
        
        .mobile-price-block {
            display: block !important;
            background: white;
            padding: 15px;
            margin: 0 0 15px 0;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .mobile-price {
            font-size: 28px;
            font-weight: 800;
            color: #ff9800;
        }
        
        .mobile-price-old {
            font-size: 18px;
            color: #a0aec0;
            text-decoration: line-through;
            margin-left: 10px;
        }
        
        .mobile-price-per-meter {
            font-size: 14px;
            color: #718096;
            margin-top: 5px;
        }
    }

    /* Для ПК оставляем hero-section */
    @media (min-width: 769px) {
        .hero-section {
            display: block !important;
        }
        
        .slider-track-enhanced {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }
        
        .slider-btn {
            display: flex !important;
        }
    }
    /* style.css - заменить блок .mobile-logo-text */

    .mobile-logo-text {
        font-size: 20px;
        font-weight: 800;
        color: white;
        letter-spacing: 0.5px;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    /* Мобильная навигация на странице объявления */
    @media (max-width: 768px) {
        .mobile-detail-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
            z-index: 1001;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            pointer-events: auto;
        }
        
        .mobile-detail-nav-btn {
            background: rgba(0, 0, 0, 0.5);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            font-size: 20px;
            backdrop-filter: blur(5px);
            transition: all 0.2s ease;
        }
        
        .mobile-detail-nav-btn:active {
            transform: scale(0.95);
            background: rgba(0, 0, 0, 0.7);
        }
    }
    /* Уменьшаем логотип на мобилках */
    @media (max-width: 768px) {
        .mobile-logo-img {
            height: 28px; /* Было 32px */
            width: auto;
        }
        
        .mobile-logo-text {
            font-size: 18px; /* Было 20px */
        }
    }
    /* Модальное окно для шаринга */
    .modal-share-content {
        background: white;
        border-radius: 20px;
        width: 90%;
        max-width: 320px;
        overflow: hidden;
        box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
    }

    .modal-share-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
        border-bottom: 1px solid #e2e8f0;
        font-weight: 700;
        font-size: 18px;
        color: #1a202c;
    }

    .modal-share-close {
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #a0aec0;
        padding: 0;
        line-height: 1;
    }

    .modal-share-body {
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .share-option {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 14px 16px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 14px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .share-option:active {
        background: #fff8e1;
        transform: scale(0.98);
    }

    .share-option i {
        width: 24px;
        font-size: 20px;
        color: #ff9800;
    }
    /* style.css - добавить или заменить в конце файла */

    /* ===== МОБИЛЬНЫЕ ИСПРАВЛЕНИЯ ===== */
    @media (max-width: 768px) {
        /* Убираем фиксацию фотогалереи на странице подробнее */
        .detail-slider-container-large {
            position: relative !important;
            top: auto !important;
            left: auto !important;
            transform: none !important;
            height: 300px !important;
            width: 100% !important;
            margin: 0 !important;
            border-radius: 12px !important;
            margin-bottom: 10px !important;
        }
        
        /* Убираем лишние пробелы на странице подробнее */
        .property-detail-left {
            padding: 15px !important;
            margin-top: 0 !important;
            padding-top: 0 !important;
        }
        
        .mobile-price-block {
            padding: 10px 0 !important;
            margin: 0 !important;
        }
        
        .property-detail-page {
            padding: 0 !important;
            margin: 0 !important;
        }
        
        /* Убираем пробелы в модалках поиска */
        .mobile-search-page {
            margin-top: 0 !important;
            padding-top: 0 !important;
        }
        
        .mobile-search-header {
            position: sticky;
            top: 0;
            background: white;
            z-index: 10;
        }
    }
    /* style.css - заменить стили для слайдера на мобилках */

    @media (max-width: 768px) {
        /* Контейнер слайдера - для горизонтального скролла */
        .slider-wrapper {
            overflow-x: auto !important;
            overflow-y: hidden !important;
            -webkit-overflow-scrolling: touch !important;
            scroll-behavior: smooth !important;
            padding: 0 !important;
            margin: 0 !important;
            scrollbar-width: none !important;
            white-space: nowrap !important;
        }
        
        .slider-wrapper::-webkit-scrollbar {
            display: none !important;
        }
        
        /* Трек слайдера - карточки в строку */
        .slider-track-enhanced {
            display: inline-flex !important;
            flex-wrap: nowrap !important;
            gap: 15px !important;
            padding: 10px 15px !important;
            transform: none !important;
            transition: none !important;
            white-space: nowrap !important;
        }
        
        /* Карточки */
        .slider-track-enhanced .property-card {
            flex: 0 0 auto !important;
            width: 280px !important;
            display: inline-block !important;
            white-space: normal !important;
            vertical-align: top !important;
        }
        
        /* Скрываем кнопки навигации на мобилках */
        .slider-btn {
            display: none !important;
        }
    }
    /* style.css - добавить в конец */

    .mobile-search-results-page {
        padding: 0 !important;
    }

    .search-results-header {
        padding: 15px 15px !important;
        margin: 0 !important;
        background: #f8f9fa;
    }

    .mobile-search-grid {
        padding: 15px !important;
        gap: 12px !important;
    }

    .mobile-search-card {
        margin-bottom: 0 !important;
    }
    /* style.css - заменить блок для слайдера на мобилках */

    @media (max-width: 768px) {
        /* Контейнер слайдера - для горизонтального свайпа */
        .slider-wrapper {
            overflow-x: auto !important;
            overflow-y: hidden !important;
            -webkit-overflow-scrolling: touch !important;
            scroll-snap-type: x mandatory !important;
            padding: 0 !important;
            margin: 0 !important;
            scrollbar-width: none !important;
            cursor: default !important;
        }
        
        .slider-wrapper::-webkit-scrollbar {
            display: none !important;
        }
        
        /* Трек слайдера - карточки в строку */
        .slider-track-enhanced {
            display: inline-flex !important;
            flex-wrap: nowrap !important;
            gap: 15px !important;
            padding: 10px 15px !important;
            transform: none !important;
            transition: none !important;
        }
        
        /* Карточки */
        .slider-track-enhanced .property-card {
            flex: 0 0 auto !important;
            width: 280px !important;
            scroll-snap-align: start !important;
        }
        
        /* Скрываем кнопки навигации */
        .slider-btn {
            display: none !important;
        }
    }
    /* style.css - добавить или обновить */

    .mobile-search-page {
        margin-top: 0;
        min-height: 100vh;
        background: white;
    }

    .mobile-search-header {
        position: sticky;
        top: 0;
        background: white;
        padding: 15px;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        gap: 15px;
        z-index: 10;
    }

    .mobile-search-back {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #4a5568;
        padding: 5px;
    }

    .mobile-search-title {
        font-size: 18px;
        font-weight: 600;
        color: #1a202c;
    }

    .mobile-search-results-page {
        padding: 0 !important;
    }

    .search-results-header {
        padding: 15px 15px !important;
        margin: 0 !important;
        background: #f8f9fa;
        font-size: 14px;
        color: #718096;
        border-bottom: 1px solid #e2e8f0;
    }

    .mobile-search-grid {
        padding: 15px !important;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    /* style.css - обновить блок для страницы подробнее на мобилках */

    @media (max-width: 768px) {
        /* Страница подробнее */
        .property-detail-page {
            margin-top: 0 !important;
            padding: 0 !important;
        }
        
        .property-detail-page .back-button {
            display: none !important;
        }
        
        /* Фотогалерея вверху */
        .detail-slider-container-large {
            position: relative !important;
            height: 300px !important;
            width: 100% !important;
            margin: 0 !important;
            border-radius: 0 !important;
            margin-bottom: 0 !important;
        }
        
        /* Левая колонка */
        .property-detail-left {
            padding: 15px !important;
            margin-top: 0 !important;
            padding-top: 0 !important;
        }
        
        /* Блок с ценой под фотками */
        .mobile-price-block {
            display: block !important;
            padding: 15px !important;
            margin: 0 !important;
            background: white;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .mobile-price {
            font-size: 28px !important;
            font-weight: 800;
            color: #ff9800;
        }
        
        .mobile-price-old {
            font-size: 18px !important;
            color: #a0aec0;
            text-decoration: line-through;
            margin-left: 10px;
        }
        
        .mobile-price-per-meter {
            font-size: 14px !important;
            color: #718096;
            margin-top: 5px !important;
        }
        
        /* Характеристики */
        .property-characteristics {
            margin: 15px 0 !important;
            padding: 15px !important;
        }
        
        /* Описание */
        .property-description {
            margin: 15px 0 !important;
            padding: 15px !important;
        }
        
        /* Скрываем правую колонку */
        .property-detail-right {
            display: none !important;
        }
    }
    /* style.css - добавить в конец файла */

    /* ===== МОБИЛЬНАЯ СТРАНИЦА ПОДРОБНЕЕ ===== */
    @media (max-width: 768px) {
        /* Скрываем все лишнее при открытии объявления */
        .mobile-header,
        .mobile-search-container {
            display: none !important;
        }
        
        /* Основной контент без отступов */
        .main-content {
            margin-top: 0 !important;
            padding: 0 !important;
        }
        
        /* Страница подробнее */
        .property-detail-page {
            margin-top: 0 !important;
            padding: 0 !important;
            position: relative;
        }
        
        /* Скрываем стандартную кнопку назад */
        .property-detail-page .back-button {
            display: none !important;
        }
        
        /* Фотогалерея на весь экран вверху */
        .detail-slider-container-large {
            position: relative !important;
            height: 350px !important;
            width: 100% !important;
            margin: 0 !important;
            border-radius: 0 !important;
        }
        
        /* Контейнер для навигационных кнопок на фото */
        .mobile-detail-nav {
            position: absolute !important;
            top: 10px !important;
            left: 0 !important;
            right: 0 !important;
            background: transparent !important;
            z-index: 1001 !important;
            padding: 10px 15px !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            pointer-events: auto !important;
        }
        
        /* Кнопки навигации */
        .mobile-detail-nav-btn {
            background: rgba(0, 0, 0, 0.5) !important;
            border: none !important;
            width: 44px !important;
            height: 44px !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            color: white !important;
            font-size: 20px !important;
            backdrop-filter: blur(5px) !important;
            transition: all 0.2s ease !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
        }
        
        .mobile-detail-nav-btn:active {
            transform: scale(0.95) !important;
            background: rgba(0, 0, 0, 0.7) !important;
        }
        
        /* Левая колонка с контентом */
        .property-detail-left {
            padding: 15px !important;
            margin-top: 0 !important;
            padding-top: 0 !important;
        }
        
        /* Блок с ценой под фотками */
        .mobile-price-block {
            display: block !important;
            padding: 15px !important;
            margin: 0 !important;
            background: white;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .mobile-price {
            font-size: 28px !important;
            font-weight: 800;
            color: #ff9800;
        }
        
        .mobile-price-old {
            font-size: 18px !important;
            color: #a0aec0;
            text-decoration: line-through;
            margin-left: 10px;
        }
        
        .mobile-price-per-meter {
            font-size: 14px !important;
            color: #718096;
            margin-top: 5px !important;
        }
        
        /* Характеристики */
        .property-characteristics {
            margin: 15px 0 !important;
            padding: 15px !important;
        }
        
        /* Описание */
        .property-description {
            margin: 15px 0 !important;
            padding: 15px !important;
        }
        
        /* Скрываем правую колонку */
        .property-detail-right {
            display: none !important;
        }
    }
    /* Счетчик фотографий ВСЕГДА внизу слева */
.detail-slider-count {
    position: absolute !important;
    bottom: 15px !important;
    left: 15px !important;
    top: auto !important;
    right: auto !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    z-index: 15 !important;
    backdrop-filter: blur(4px) !important;
}
/* ===== СКРЫВАЕМ МОБИЛЬНЫЙ ПОИСК ТОЛЬКО НА ПК ===== */
@media (min-width: 769px) {
    .mobile-search-container {
        display: none !important;
    }
    
    .mobile-header {
        display: none !important;
    }
}
/* ===== ПОКАЗЫВАЕМ ПОИСК НА МОБИЛКАХ ===== */
@media (max-width: 768px) {
    .mobile-search-container {
        display: block !important;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 8px 15px;
        z-index: 999;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #6c757d 0%, #8e9aa5 100%);
        padding: 12px 15px;
        z-index: 1000;
    }
    
    .main-content {
        margin-top: 108px !important;
    }
}
/* ===== СКРЫВАЕМ КНОПКИ ЛИСТАНИЯ ФОТО НА МОБИЛКАХ ===== */
@media (max-width: 768px) {
    /* Скрываем кнопки навигации слайдера */
    .detail-slider-btn,
    .detail-slider-prev,
    .detail-slider-next {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Оставляем только свайп */
    .detail-slider-container-large {
        cursor: default !important;
    }
    
    /* Счетчик фотографий оставляем */
    .detail-slider-count {
        display: block !important;
    }
}
@media (max-width: 768px) {
    body:has(.property-detail-page) .mobile-search-container,
    body:has(.property-detail-page) .mobile-header {
        display: none !important;
    }
}
/* ===== СВАЙП ДЛЯ ФОТО НА МОБИЛКАХ ===== */
@media (max-width: 768px) {
    .detail-slider-container-large {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        white-space: nowrap !important;
        cursor: grab !important;
        scrollbar-width: none !important;
    }
    
    .detail-slider-container-large::-webkit-scrollbar {
        display: none !important;
    }
    
    .detail-slider-container-large:active {
        cursor: grabbing !important;
    }
    
    .detail-slider-large {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        height: 100% !important;
        gap: 0 !important;
    }
    
    .detail-slide {
        position: relative !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: 100% !important;
        scroll-snap-align: start !important;
        opacity: 1 !important;
        display: inline-block !important;
    }
    
    .detail-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        pointer-events: none !important;
    }
    
    /* Скрываем старые кнопки */
    .detail-slider-btn {
        display: none !important;
    }
    
    /* Счетчик внизу слева */
    .detail-slider-count {
        position: fixed !important;
        bottom: 20px !important;
        left: 20px !important;
        top: auto !important;
        right: auto !important;
        z-index: 100 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        color: white !important;
        padding: 6px 14px !important;
        border-radius: 30px !important;
        font-size: 14px !important;
        backdrop-filter: blur(5px) !important;
    }
}
/* ===== ИСПРАВЛЯЕМ СДВИГ ПРИ СКРЫТИИ ПОИСКА ===== */
@media (max-width: 768px) {
    /* Убираем фиксированное позиционирование у поиска на странице подробнее */
    body:has(.property-detail-page) .mobile-search-container,
    body:has(.property-detail-page) .mobile-header {
        display: none !important;
    }
    
    /* Убираем отступ у main-content на странице подробнее */
    body:has(.property-detail-page) .main-content {
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    /* Фотогалерея - занимает верхнюю часть экрана */
    .detail-slider-container-large {
        position: relative !important;
        height: 350px !important;
        width: 100% !important;
        margin: 0 !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    /* Контент идет сразу под фотками */
    .property-detail-left {
        padding: 15px !important;
        margin-top: 0 !important;
        position: relative !important;
        background: white !important;
    }
}
/* ===== МОБИЛЬНАЯ СТРАНИЦА ПОДРОБНЕЕ - СВАЙП И ФИКСАЦИЯ ===== */
@media (max-width: 768px) {
    /* Скрываем поиск и хедер */
    body:has(.property-detail-page) .mobile-search-container,
    body:has(.property-detail-page) .mobile-header {
        display: none !important;
    }
    
    /* Убираем отступы */
    body:has(.property-detail-page) .main-content {
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    /* Контейнер слайдера - для горизонтального свайпа */
    .detail-slider-container-large {
        position: relative !important;
        height: 350px !important;
        width: 100% !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        white-space: nowrap !important;
        cursor: grab !important;
        scrollbar-width: none !important;
        background: #000 !important;
        /* Замедляем свайп - добавляем инерцию */
        scroll-snap-stop: always !important;
    }
    
    .detail-slider-container-large::-webkit-scrollbar {
        display: none !important;
    }
    
    .detail-slider-container-large:active {
        cursor: grabbing !important;
    }
    
    /* Трек слайдера */
    .detail-slider-large {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        height: 100% !important;
        gap: 0 !important;
    }
    
    /* Каждый слайд */
    .detail-slide {
        position: relative !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: 100% !important;
        scroll-snap-align: start !important;
        opacity: 1 !important;
        display: inline-block !important;
    }
    
    .detail-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        pointer-events: none !important;
    }
    
    /* Скрываем старые кнопки */
    .detail-slider-btn {
        display: none !important;
    }
    
    /* Кнопки навигации (стрелка и поделиться) - фиксируются ТОЛЬКО при горизонтальном скролле */
    /* Они привязаны к контейнеру слайдера, а не к экрану */
    .mobile-detail-nav {
        position: absolute !important;
        top: 15px !important;
        left: 0 !important;
        right: 0 !important;
        background: transparent !important;
        z-index: 10 !important;
        padding: 10px 15px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        pointer-events: auto !important;
    }
    
    .mobile-detail-nav-btn {
        background: rgba(0, 0, 0, 0.5) !important;
        border: none !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: white !important;
        font-size: 20px !important;
        backdrop-filter: blur(5px) !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }
    
    .mobile-detail-nav-btn:active {
        transform: scale(0.95) !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }
    
    /* Счетчик фотографий - привязан к контейнеру слайдера (внизу листающихся фоток) */
    .detail-slider-count {
        position: absolute !important;
        bottom: 15px !important;
        left: 15px !important;
        top: auto !important;
        right: auto !important;
        z-index: 10 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        color: white !important;
        padding: 6px 14px !important;
        border-radius: 30px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        backdrop-filter: blur(5px) !important;
        font-family: 'Inter', sans-serif !important;
        pointer-events: none !important;
    }
    
    /* Контент под фотками */
    .property-detail-left {
        padding: 15px !important;
        margin-top: 0 !important;
        background: white !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Цена под фотками */
    .mobile-price-block {
        display: block !important;
        padding: 15px !important;
        margin: 0 !important;
        background: white;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .mobile-price {
        font-size: 28px !important;
        font-weight: 800;
        color: #ff9800;
    }
    
    .mobile-price-old {
        font-size: 18px !important;
        color: #a0aec0;
        text-decoration: line-through;
        margin-left: 10px;
    }
    
    .mobile-price-per-meter {
        font-size: 14px !important;
        color: #718096;
        margin-top: 5px !important;
    }
    
    /* Скрываем правую колонку */
    .property-detail-right {
        display: none !important;
    }
}
/* ===== МОБИЛЬНЫЙ СЛАЙДЕР ФОТОГАЛЕРЕИ ===== */
@media (max-width: 768px) {
    /* Скрываем кнопки влево/вправо */
    .detail-slider-btn,
    .detail-slider-prev,
    .detail-slider-next {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Контейнер слайдера */
    .detail-slider-container-large {
        position: relative !important;
        height: 350px !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        white-space: nowrap !important;
        cursor: grab !important;
        scrollbar-width: none !important;
        background: #000 !important;
    }
    
    .detail-slider-container-large::-webkit-scrollbar {
        display: none !important;
    }
    
    .detail-slider-container-large:active {
        cursor: grabbing !important;
    }
    
    /* Трек слайдера */
    .detail-slider-large {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        height: 100% !important;
        gap: 0 !important;
    }
    
    /* Каждый слайд */
    .detail-slide {
        position: relative !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: 100% !important;
        scroll-snap-align: start !important;
        opacity: 1 !important;
        display: inline-block !important;
    }
    
    .detail-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        pointer-events: none !important;
    }
    
    /* Кнопки навигации (стрелка назад и поделиться) - фиксированные */
    .mobile-detail-nav {
        position: fixed !important;
        top: 15px !important;
        left: 0 !important;
        right: 0 !important;
        background: transparent !important;
        z-index: 1001 !important;
        padding: 10px 15px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        pointer-events: auto !important;
    }
    
    .mobile-detail-nav-btn {
        background: rgba(0, 0, 0, 0.5) !important;
        border: none !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: white !important;
        font-size: 20px !important;
        backdrop-filter: blur(5px) !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }
    
    .mobile-detail-nav-btn:active {
        transform: scale(0.95) !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }
    
    /* Счетчик фотографий - внутри слайдера внизу слева */
    .detail-slider-count {
        position: absolute !important;
        bottom: 15px !important;
        left: 15px !important;
        top: auto !important;
        right: auto !important;
        z-index: 10 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        color: white !important;
        padding: 6px 14px !important;
        border-radius: 30px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        backdrop-filter: blur(5px) !important;
        font-family: 'Inter', sans-serif !important;
        pointer-events: none !important;
    }
}