/* ═══════════════════════════════════════════════
   footer.css — Premium Footer Module
   Standalone. Uses only color-palette.css variables.
   ═══════════════════════════════════════════════ */

/* ══════════════════════════════════
   NEWSLETTER SECTION
   ══════════════════════════════════ */
.ft-newsletter {
    position: relative;
    z-index: 5;
    margin-bottom: -40px;
    padding: 0 15px;
}

.ft-newsletter-box {
    background: var(--gradient-brand);
    border-radius: var(--radius);
    padding: 35px 40px;
    color: #fff;
    box-shadow: var(--shadow-hover);
}

.ft-newsletter-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.ft-newsletter-text {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
    font-size: 14px;
}

.ft-newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.ft-newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 0 15px;
    height: 46px;
    outline: none;
    font-size: 14px;
}

.ft-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ft-newsletter-btn {
    background: var(--surface);
    color: var(--dark);
    border: none;
    padding: 0 24px;
    height: 46px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.ft-newsletter-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* ══════════════════════════════════
   FOOTER MAIN CONTAINER
   ══════════════════════════════════ */
#footer {
    background-image: url('../img/40.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.7;
}

.ft-overlay {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.88) 0%, rgba(var(--dark-rgb), 0.95) 100%);
    transition: background 0.3s ease;
}

/* ── Dark Mode: Footer blends into deep slate ── */
:root.dark-mode #footer {
    background-image: none;
    background-color: var(--bg);
}

:root.dark-mode .ft-overlay {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, var(--surface) 100%);
}

.ft-main {
    padding: 80px 0 40px;
}

/* ══════════════════════════════════
   BRAND & INTRO
   ══════════════════════════════════ */
.ft-brand {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.ft-brand:hover {
    color: var(--primary-light);
}

.ft-intro {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ══════════════════════════════════
   CONTACT INFO
   ══════════════════════════════════ */
.ft-contact {
    margin-bottom: 20px;
}

.ft-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ft-contact-icon {
    color: var(--primary-light);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.ft-contact-row a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

.ft-contact-row a:hover {
    color: #fff;
    padding-left: 3px;
}

/* ══════════════════════════════════
   SOCIAL ICONS
   ══════════════════════════════════ */
.ft-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ft-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ft-social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

/* ══════════════════════════════════
   SECTION HEADINGS
   ══════════════════════════════════ */
.ft-heading {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    position: relative;
}

.ft-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ══════════════════════════════════
   QUICK LINKS
   ══════════════════════════════════ */
.ft-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ft-links li {
    margin-bottom: 8px;
}

.ft-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    padding: 3px 0;
}

.ft-links a:hover {
    color: #fff;
    padding-left: 6px;
}

.ft-links a::before {
    content: '\f105';
    font-family: 'FontAwesome';
    color: var(--primary-light);
    margin-right: 10px;
    font-size: 12px;
    transition: var(--transition);
}

.ft-links a:hover::before {
    color: var(--accent);
    margin-right: 12px;
}

/* ══════════════════════════════════
   RECENT PROPERTIES
   ══════════════════════════════════ */
.ft-prop-card {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    text-decoration: none;
}

.ft-prop-card:last-child {
    border-bottom: none;
}

.ft-prop-card:hover {
    padding-left: 4px;
}

.ft-prop-thumb {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-prop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ft-prop-card:hover .ft-prop-thumb img {
    transform: scale(1.08);
}

.ft-prop-placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: 24px;
}

.ft-prop-info h6 {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    line-height: 1.4;
}

.ft-prop-card:hover .ft-prop-info h6 {
    color: #fff;
}

.ft-prop-price {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 2px;
}

.ft-prop-info small {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
}

/* ══════════════════════════════════
   AD CARD
   ══════════════════════════════════ */
.ft-ad-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    margin-bottom: 5px;
}

.ft-ad-card img {
    width: 100%;
    display: block;
    transition: var(--transition);
    opacity: 0.85;
}

.ft-ad-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.2);
}

.ft-ad-card:hover img {
    opacity: 1;
    transform: scale(1.02);
}

.ft-ad-placeholder {
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
}

.ft-ad-placeholder i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.ft-ad-placeholder span {
    font-size: 12px;
}

/* ══════════════════════════════════
   BLOG LINKS
   ══════════════════════════════════ */
.ft-blog-links a {
    flex-wrap: wrap;
}

.ft-blog-links a::before {
    content: none;
}

.ft-blog-date {
    display: block;
    width: 100%;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    margin-top: 2px;
}

/* ══════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════ */
.ft-empty {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    font-style: italic;
}

/* ══════════════════════════════════
   FOOTER BOTTOM BAR
   ══════════════════════════════════ */
.ft-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
}

.ft-bottom p {
    margin-bottom: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.ft-bottom strong {
    color: rgba(255, 255, 255, 0.8);
}

.ft-bottom a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.ft-designer {
    color: var(--primary-light) !important;
    font-weight: 600;
}

.ft-designer:hover {
    color: #fff !important;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 991px) {
    .ft-main {
        padding-top: 70px;
    }

    .ft-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .ft-newsletter-box {
        padding: 25px 20px;
        text-align: center;
    }

    .ft-newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .ft-newsletter-input {
        text-align: center;
    }

    .ft-main {
        padding-top: 60px;
        text-align: center;
    }

    .ft-brand {
        font-size: 20px;
    }

    .ft-contact-row {
        justify-content: center;
    }

    .ft-social {
        justify-content: center;
    }

    .ft-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .ft-links a {
        justify-content: center;
    }

    .ft-prop-card {
        justify-content: center;
        text-align: left;
    }

    .ft-bottom {
        text-align: center;
    }

    .ft-bottom .text-md-end {
        margin-top: 5px;
    }
}