/* Стилове за футъра */
.main-footer {
    --footer-orange: #eb7a32;
    --footer-text: #1e1a18;
    --footer-text-soft: rgba(30, 26, 24, 0.88);
    --footer-cut: clamp(36px, 7vw, 72px);

    position: relative;
    padding: calc(28px + var(--footer-cut) * 0.35) 0 48px;
    color: var(--footer-text);

    background: linear-gradient(
        168deg,
        #ffffff 0%,
        #fff8f2 28%,
        #fde0cf 55%,
        var(--footer-orange) 100%
    );

    /* Диагонал отгоре: вляво „по-ниско“, вдясно „по-високо“ */
    clip-path: polygon(
        0 var(--footer-cut),
        100% 0,
        100% 100%,
        0 100%
    );
}

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

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

.footer-logo {
    flex: 0 0 200px;
    margin-right: 50px;
}

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

.footer-logo__img {
    height: auto;
    max-height: 118px;
    width: auto;
    max-width: min(220px, 48vw);
    margin-right: 6px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.12));
}

.footer-logo__placeholder-icon {
    font-size: 2.25rem;
    color: var(--footer-orange);
}

.footer-logo__text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--footer-text);
}

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

.footer-slogan {
    font-size: 1.05rem;
    margin-top: 10px;
    font-weight: 600;
    color: var(--footer-text-soft);
    max-width: 20rem;
    line-height: 1.45;
}

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

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

.footer-section--social .footer-heading {
    text-align: center;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--footer-text);
    text-align: left;
    letter-spacing: 0.04em;
}

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

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

.footer-links a {
    color: var(--footer-text-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.25s ease, opacity 0.25s ease;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--footer-orange);
    border-bottom-color: rgba(235, 122, 50, 0.45);
}

.footer-link {
    color: var(--footer-text-soft);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.25s ease, opacity 0.25s ease;
}

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

.social-icon {
    --si-size: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--si-size);
    height: var(--si-size);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease,
        filter 0.28s ease;
    box-shadow: 0 8px 22px rgba(20, 12, 8, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0) 48%,
        rgba(0, 0, 0, 0.08) 100%
    );
    pointer-events: none;
}

.social-icon i {
    position: relative;
    z-index: 1;
    line-height: 1;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 28px rgba(20, 12, 8, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    filter: brightness(1.05);
}

.social-icon:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.social-icon--facebook {
    background: linear-gradient(135deg, #2f80ed 0%, #1877f2 45%, #0d5fce 100%);
}

.social-icon--instagram {
    background: radial-gradient(
            circle at 30% 110%,
            #ffd600 0%,
            transparent 55%
        ),
        radial-gradient(circle at 0% 0%, #f58529 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, #dd2a7b 0%, transparent 45%),
        linear-gradient(200deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.social-icon--linkedin {
    background: linear-gradient(135deg, #3b9ae8 0%, #0a66c2 50%, #074d92 100%);
}

.social-icon--youtube {
    background: linear-gradient(135deg, #ff4b4b 0%, #e62117 45%, #b31217 100%);
}

.social-icon--twitter,
.social-icon--x {
    background: linear-gradient(135deg, #4a9eff 0%, #1da1f2 50%, #0d8bd9 100%);
}

.social-icon--whatsapp {
    background: linear-gradient(135deg, #34eb83 0%, #25d366 45%, #128c7e 100%);
}

.social-icon--tiktok {
    background: linear-gradient(135deg, #25f4ee 0%, #fe2c55 45%, #000 100%);
}

.social-icon--link,
.social-icon--default {
    background: linear-gradient(
        135deg,
        #6b7280 0%,
        #4b5563 50%,
        #374151 100%
    );
}

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

.footer-copyright p {
    margin: 5px 0;
    color: var(--footer-text-soft);
}

/* Медия заявки за мобилни устройства */
@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-basis: auto;
    }

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

    .footer-sections {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .footer-heading {
        text-align: center;
    }

    .footer-links li {
        text-align: center;
    }
}
