/* Îñíîâíûå ñòèëè ñ íîâîé ïàëèòðîé */
:root {
    --primary-color: #006633;
    --primary-light: #228B22;
    --primary-lighter: #008055;
    --primary-dark: #004D26;
    --white: #FFFFFF;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
}

/* Áàçîâûå ñòèëè */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    height: 100%;
}

/* ===== ÂÑ¨ Â MAIN ===== */
main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.site-header {
    width: 100%;
}

.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    display: inline-block;
    margin: 0;
}

/* Ëîãîòèï ÁÅÇ àíèìàöèè */
.logo-img {
    display: block;
}

/* ===== ÎÑÍÎÂÍÎÉ ÊÎÍÒÅÍÒ ===== */
.page-content {
    flex: 1;
    width: 100%;
    position: relative;
}

/* ===== HERO ÑÅÊÖÈß ===== */
.hero {
    background: linear-gradient(rgba(0, 102, 51, 0.85), rgba(0, 77, 38, 0.9)), url('/images/hero-bg.jpg') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    padding: 80px 0;
    width: 100%;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* ===== ÔÈËÜÒÐÛ (ÏÎÂÅÐÕ HERO) ===== */
.search-section {
    position: relative;
    margin-top: -80px; /* ÂÎÑÑÒÀÍÎÂÈË: ïîäíèìàåì ôèëüòðû ââåðõ */
    z-index: 100;
    padding-bottom: 40px;
    width: 100%;
}

.search-filters {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    position: relative;
    z-index: 101;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-select,
.form-control {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

    .form-select:focus,
    .form-control:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 0.25rem rgba(0, 102, 51, 0.25);
    }

/* Accordion äëÿ äîïîëíèòåëüíûõ ôèëüòðîâ */
.accordion-button {
    background: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
    border: none;
    padding: 15px 20px;
    border-radius: 8px !important;
}

    .accordion-button:not(.collapsed) {
        background: var(--primary-color);
        color: white;
        box-shadow: none;
    }

    .accordion-button:focus {
        box-shadow: none;
        border: none;
    }

    .accordion-button::after {
        filter: brightness(0) invert(1);
    }

    .accordion-button.collapsed::after {
        filter: none;
    }

.accordion-body {
    padding: 25px 20px;
    background: var(--light-color);
    border-radius: 0 0 8px 8px;
}

/* ===== ÁÛÑÒÐÛÅ ÄÅÉÑÒÂÈß ===== */
.quick-actions {
    padding: 80px 0 60px;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2.5rem;
        color: var(--dark-color);
        margin-bottom: 15px;
        font-weight: 700;
    }

    .section-title p {
        color: var(--gray-color);
        font-size: 1.1rem;
    }

.quick-action-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: 1px solid #e9ecef;
}

    .quick-action-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.quick-action-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

    .quick-action-icon i {
        font-size: 35px;
        color: white;
    }

.quick-action-card h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.quick-action-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

/* ===== ÊÀÐÒÎ×ÊÈ ÎÁÚßÂËÅÍÈÉ ===== */
.featured-listings {
    padding: 60px 0;
    width: 100%;
}

.listing-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    margin-bottom: 30px;
    background: white;
    border: 1px solid #e9ecef;
}

    .listing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

.listing-image {
    height: 220px;
    background: #ddd;
    position: relative;
}

.listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.listing-details {
    padding: 25px;
}

.listing-price {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.listing-title {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.listing-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray-color);
}

    .listing-info span {
        display: flex;
        align-items: center;
        gap: 7px;
    }

/* ===== ÑÒÀÒÈÑÒÈÊÀ ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 80px 0;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* ===== ÊÎÌÏÀÊÒÍÛÉ ÔÓÒÅÐ ===== */
.compact-footer {
    background: transparent;
    margin-top: auto;
    width: 100%;
}

/* Ñîöñåòè â ôóòåðå - ñåðûå èêîíêè */
.social-icons-compact a {
    color: var(--gray-color) !important;
    transition: color 0.3s;
    text-decoration: none;
    font-size: 1.2rem;
}

    .social-icons-compact a:hover {
        color: var(--primary-color) !important;
    }

/* Hover ýôôåêò äëÿ ññûëêè GreenHome â êîïèðàéòå */
.hover-greenhome {
    transition: color 0.3s;
}

    .hover-greenhome:hover {
        color: var(--primary-color) !important;
    }

/* ===== ÀÄÀÏÒÈÂÍÎÑÒÜ ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .logo-img {
        height: 40px;
    }

    .btn-outline-success {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

        .btn-outline-success i {
            display: none;
        }

    .hero {
        min-height: 400px;
        padding: 60px 0 40px;
    }

        .hero h1 {
            font-size: 2.2rem;
        }

        .hero p {
            font-size: 1rem;
        }

    .search-section {
        margin-top: -40px; /* Ìåíüøåå ñìåùåíèå íà ìîáèëüíûõ */
    }

    .search-filters {
        padding: 20px;
    }

    .quick-actions {
        padding: 60px 0 40px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .quick-action-icon {
        width: 60px;
        height: 60px;
    }

        .quick-action-icon i {
            font-size: 25px;
        }

    .search-section {
        margin-top: -30px; /* Åùå ìåíüøå ñìåùåíèå íà ìàëåíüêèõ ýêðàíàõ */
    }
}



/* Profile/Edit */

.cursor-pointer {
    cursor: pointer;
}

.nav-link {
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

    .nav-link:hover {
        background-color: #f8f9fa;
        transform: translateX(5px);
    }

    .nav-link.active {
        background-color: #e8f5e9 !important;
        color: #006633 !important;
        font-weight: 600;
    }

.form-control:focus, .form-select:focus {
    border-color: #006633;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 51, 0.15);
}

#avatarPreview {
    transition: all 0.3s ease;
}

    #avatarPreview:hover {
        opacity: 0.9;
        transform: scale(1.05);
    }

.bg-opacity-10 {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

