/*
Theme Name: КВвНВ Real Estate
Description: Тема WordPress для агентства недвижимости КВвНВ с интеграцией Intrumnet CRM
Version: 1.0
Author: КВвНВ Agency
Text Domain: kvvnv-theme
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Color Variables */
:root {
    --primary-color: #00a0e3;
    --secondary-color: #ff6b35;
    --accent-color: #28a745;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark-color);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-main {
    padding: 15px 0;
}

.header-logo img {
    max-height: 60px;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: var(--primary-color);
}

/* Search Form Styles */
.property-search {
    background: var(--primary-color);
    padding: 30px 0;
    color: #fff;
}

.search-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--text-color);
}

.search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.search-field {
    flex: 1;
    position: relative;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #e55a2b;
}

/* Property Grid */
.property-grid {
    padding: 40px 0;
}

.property-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.property-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 18px;
}

.property-info {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.property-location {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.property-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.feature-icon {
    color: var(--primary-color);
}

/* Map Styles */
.property-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
}

/* Property Details */
.property-details {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 30px 0;
}

.property-gallery {
    margin-bottom: 30px;
}

.fotorama {
    border-radius: 8px;
    overflow: hidden;
}

/* Mortgage Calculator */
.mortgage-calculator {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.calculator-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.calc-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.calc-field {
    flex: 1;
}

.calc-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.calc-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.calc-result {
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
}

/* Agent Info */
.agent-info {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin: 30px 0;
}

.agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.agent-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.agent-phone {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 30px 0;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-field {
    flex: 1;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #0088c7;
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-widget a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-row {
        flex-direction: column;
    }
    
    .calc-row {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .property-features {
        flex-wrap: wrap;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-30 {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #0088c7;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background: #e55a2b;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

