/* ===== ОСНОВНЫЕ СТИЛИ ===== */

/* Навигация */
.navbar {
    background-color: #3c3b39 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

body {
    padding-top: 56px;
}

.navbar-brand {
    font-weight: bold;
    color: #ffa500 !important;
}

.navbar-nav .nav-link {
    color: #ecf0f1 !important;
}

.navbar-nav .nav-link:hover {
    color: #ffa500 !important;
}

/* Футер */
.footer {
    background-color: #3c3b39;
    color: #ecf0f1;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer h5 {
    color: #ecf0f1;
}

.footer a {
    color: #ecf0f1 !important;
}

.footer a:hover {
    color: #ffa500 !important;
}

.footer .copyright {
    color: #ffa500 !important;
}

/* Стили для футера - убираем белый фон */
.footer .list-unstyled li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    background: transparent !important;
}

.footer .list-unstyled li:hover {
    background: transparent !important;
    color: #ffa500 !important;
}

.footer .list-unstyled li a {
    color: #ecf0f1 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .list-unstyled li a:hover {
    color: #ffa500 !important;
    text-decoration: none;
}

/* Основной контент */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Блок призыва к действию */
.promo-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/static/images/index.jpg') center/cover no-repeat;
    position: relative;
    padding: 4rem 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .promo-section {
        padding: 3rem 0;
        min-height: 45vh;
    }
}

.promo-section h3, .promo-section h4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.promo-section .form-control {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.promo-section .btn {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* О нас */
.o-nas {
    text-align: justify;
    text-indent: 15px;
}

.info-1 {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
}

.info-1>div:first-child {
    font-size: 48px;
    font-weight: bold;
    color: #ffa500;
    margin-bottom: 15px;
}

.info-1 strong {
    display: block;
    margin-bottom: 10px;
    color: #3c3b39;
}

.page-header.center {
    text-align: center;
    margin-bottom: 40px;
}

.page-header.center h2 {
    color: #3c3b39;
    border-bottom: 3px solid #ffa500;
    padding-bottom: 10px;
    display: inline-block;
}

/* Объекты недвижимости */
.objects {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.objects:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price {
    background: #ffa500;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 15px;
}

.objects-h {
    font-size: 18px;
    margin: 15px 0;
    color: #3c3b39;
}

.num {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.tabl {
    width: 100%;
    margin-top: 15px;
}

.tabl td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.tabl tr:first-child {
    background: #f8f9fa;
    font-weight: bold;
}

.right {
    text-align: right;
    margin-top: 20px;
}

.right a {
    color: #ffa500;
    text-decoration: none;
    font-weight: bold;
}

.right a:hover {
    text-decoration: underline;
}

.img {
    max-width: 100%;
    height: auto;
}
.contact-info {
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .contact-info h5 {
        color: #495057;
        margin-bottom: 15px;
    }

    .contact-info ul li {
        margin-bottom: 8px;
    }

    .map-container {
        border-radius: 8px;
        overflow: hidden;
    }
	
/* Мобильные стили для карточек объектов */
@media (max-width: 768px) { 
	.property-gallery img {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }
    
	.property-gallery img.thumbnail {
        max-width: 23% !important;
        height: auto !important;
        width: 23% !important;
	}
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 576px) {
    .real-estate-card img,
    .property-image,
    .object-image {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .container-fluid,
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}


    .property-gallery {
        position: relative;
    }

    .main-image {
        width: 100%;
        height: 400px;
        object-fit: cover;
        border-radius: 8px;
    }

    .thumbnail {
        width: 80px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    .thumbnail:hover {
        opacity: 0.8;
    }

    .thumbnail.active {
        border: 2px solid #007bff;
    }

    .property-info {
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .property-price {
        font-size: 2rem;
        font-weight: bold;
        color: #28a745;
        margin-bottom: 15px;
    }

    .property-features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-bottom: 20px;
    }

    .feature-item {
        display: flex;
        align-items: center;
        padding: 10px;
        background-color: white;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        background-color: #e9ecef;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        color: #6c757d;
    }

    .agent-card {
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
    }

    .agent-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: #dee2e6;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
        font-size: 2rem;
        color: #6c757d;
    }

    .similar-properties {
        margin-top: 40px;
    }

    .similar-card {
        transition: transform 0.2s;
    }

    .similar-card:hover {
        transform: translateY(-3px);
    }
