/* Стилове за футъра */
.main-footer {
    --footer-shine-a: rgba(255, 255, 255, 0.11);
    --footer-shade-a: rgba(0, 0, 0, 0.12);
    background-color: var(--blue);
    background-image:
        radial-gradient(ellipse 110% 90% at 8% -30%, var(--footer-shine-a), transparent 42%),
        radial-gradient(ellipse 100% 70% at 92% 110%, var(--footer-shade-a), transparent 55%),
        radial-gradient(ellipse 55% 50% at 65% 25%, rgba(255, 255, 255, 0.05), transparent 60%),
        linear-gradient(
            168deg,
            rgba(255, 255, 255, 0.07) 0%,
            transparent 38%,
            transparent 62%,
            rgba(0, 0, 0, 0.1) 100%
        );
    color: #fff;
    padding: 40px 0;
}

.footer-bg-decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.footer-bg-decor canvas.footer-bg-decor__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.42;
}

.footer-bg-decor__shape {
    display: block;
    position: absolute;
    pointer-events: none;
    opacity: 0.55;
    box-sizing: border-box;
}

.footer-bg-decor__ring-xl {
    top: -7rem;
    left: -6rem;
    width: min(52vw, 22rem);
    height: min(52vw, 22rem);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.footer-bg-decor__blob {
    top: 18%;
    right: -4rem;
    width: 11rem;
    height: 11rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 40%;
    transform: rotate(12deg);
}

.footer-bg-decor__rect-soft {
    bottom: 8%;
    left: 12%;
    width: 10rem;
    height: 7rem;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 1.5rem;
    transform: rotate(-6deg);
}

.footer-bg-decor__ring-bl {
    bottom: 0;
    right: 8%;
    width: 13rem;
    height: 13rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 50%;
    transform: translateY(33%);
}

.footer-brand-logo-img {
    height: 120px;
    width: auto;
    max-width: min(360px, 88vw);
    object-fit: contain;
    margin-right: 14px;
    display: block;
}

@media (max-width: 768px) {
    .footer-brand-logo-img {
        height: 92px;
        margin-right: 0;
        margin-left: auto;
        margin-right: auto;
    }
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-footer .container.footer-inner {
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    flex: 0 0 min(340px, 100%);
    max-width: 100%;
    margin-right: 50px;
}

@media (min-width: 769px) {
    .footer-logo {
        flex: 0 0 280px;
    }
}

.footer-logo-img {
    max-width: 100%;
    height: auto;
}

.footer-slogan {
    font-size: 18px;
    margin-top: 10px;
    font-weight: 600;
    color: #ffe330;
}

.footer-sections {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.footer-section {
    flex: 0 0 30%;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    text-align: left;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    text-align: left;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.3s;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #fff;
    color: var(--blue);
    border-radius: 3px;
    transition: all 0.3s;
}

.social-icon i {
    font-size: 16px;
}

.social-icon:hover {
    background-color: #e6f2ff;
}

.footer-copyright {
    font-size: 12px;
    margin-top: 20px;
}

.footer-brand-link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    text-decoration: none;
    color: inherit;
    margin: 20px 0;
}

@keyframes footer-shape-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer-bg-decor__shape--spin {
    animation: footer-shape-spin 48s linear infinite;
}

@keyframes footer-shape-pulse {
    0%, 100% { opacity: 0.42; }
    50% { opacity: 0.62; }
}

@keyframes footer-shape-pulse-slow {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.52; }
}

.footer-bg-decor__shape--pulse {
    animation: footer-shape-pulse 18s ease-in-out infinite;
}

.footer-bg-decor__shape--pulse-slow {
    animation: footer-shape-pulse-slow 26s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .footer-bg-decor__shape--spin,
    .footer-bg-decor__shape--pulse,
    .footer-bg-decor__shape--pulse-slow {
        animation: none !important;
    }
}

/* Медия заявки за мобилни устройства */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    .categories {
        margin-top: 15px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .property-card {
        flex: 0 0 calc(100% - 20px);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 30px;
        text-align: center;
        flex: 1 1 auto;
        max-width: 100%;
    }

    .footer-brand-link {
        justify-content: center;
    }

    .footer-sections {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
}
