/* Основные переменные и сброс настроек */
:root {
    --bi-blue: #1a237e;
    --wa-green: #25d366;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-dark: #333;
    --text-gray: #777;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Секция AI Чата (Header) */
.ai-header {
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.chat-container {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    max-width: 900px;
    margin: 0 auto;
}

.chat-header {
    background: var(--bi-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-avatar {
    position: relative;
    font-size: 1.5rem;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #4caf50;
    border: 2px solid var(--bi-blue);
    border-radius: 50%;
}

.bot-title h1 {
    font-size: 1.1rem;
    margin: 0;
}

.bot-title p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.8;
}

.chat-window {
    height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message.ai {
    background: #eef2f7;
    border: 1px solid #e0e6ed;
    align-self: flex-start;
}

.message.user {
    background: var(--bi-blue);
    color: white;
    align-self: flex-end;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.chat-input button {
    background: var(--bi-blue);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.chat-input button:hover {
    background: #0d1440;
}

/* Каталог Объектов */
.catalog {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    color: var(--bi-blue);
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin: 0 0 10px 0;
    color: var(--bi-blue);
    font-size: 1.25rem;
}

.location {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.features span {
    background: #f0f4f8;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #444;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--bi-blue);
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-layout, .btn-buy, .btn-chat {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-layout {
    border: 2px solid var(--bi-blue);
    color: var(--bi-blue);
    background: white;
}

.btn-layout:hover {
    background: var(--bi-blue);
    color: white;
}

.btn-buy, .btn-chat {
    background: var(--wa-green);
    color: white;
    border: none;
}

.btn-buy:hover, .btn-chat:hover {
    background: #1eb956;
}

/* Бейджи (Акция) */
.badge-container {
    position: relative;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bi-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
}