/* Основные стили */
.property-complexes {
    padding: 20px 0;
    font-family: 'Arial', sans-serif;
}

.container {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.property-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

/* Стили карточки */
.property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    position: relative;
}

.property-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.property-card-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.property-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.property-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card-image img {
    transform: scale(1.03);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.property-badge.completed {
    background: #4caf50;
}

.property-card-body {
    padding: 15px;
}

.property-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.property-address {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.property-address::before {
    content: "📍";
    margin-right: 5px;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.property-features {
    margin-bottom: 12px;
}

.property-feature {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.property-feature span:first-child {
    color: #555;
}

.property-rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    margin-right: 8px;
}

.star {
    color: #ffc107;
    font-size: 16px;
    margin-right: 2px;
}

.rating-value {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.property-price {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.price-from {
    font-size: 14px;
    font-weight: normal;
    color: #777;
    margin-right: 5px;
}

.developer-info {
    display: flex;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.developer-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.developer-name {
    font-size: 13px;
    color: #555;
    flex-grow: 1;
}

.show-phone {
    background: #4a89dc;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.show-phone:hover {
    background: #3a70c2;
}

/* Попап форма */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 22px;
    cursor: pointer;
    color: #777;
}

.qr-container {
    margin: 15px 0;
}

.qr-container img {
    width: 150px;
    height: 150px;
}

.popup-text {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 15px;
}

.popup-phone {
    font-size: 18px;
    font-weight: bold;
    margin: 12px 0;
    color: #4a89dc;
}

.popup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.popup-button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chat-button {
    background: #4a89dc;
    color: white;
    border: none;
}

.close-button {
    background: #f1f1f1;
    color: #333;
    border: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .property-card-image {
        height: 180px;
    }

    .property-card-body {
        padding: 12px;
    }

    .popup-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .property-card-image {
        height: 160px;
    }

    .popup-actions {
        flex-direction: column;
    }

    .popup-button {
        width: 100%;
    }
}