/* ═══════════════════════════════════════════════
   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;
    }
}

/* Marketplace footer reset */
.sk-market-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 40px 0 18px;
}

.sk-market-footer a {
    color: inherit;
    text-decoration: none;
}

.sk-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(150px, 1fr));
    gap: 26px;
}

.sk-footer-brand > a {
    display: inline-flex;
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    margin-bottom: 10px;
}

.sk-footer-brand p {
    max-width: 420px;
    color: #94a3b8;
    margin: 0 0 14px;
}

.sk-footer-contact {
    display: grid;
    gap: 8px;
}

.sk-footer-contact a,
.sk-footer-links a,
.sk-footer-blog-strip a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 750;
}

.sk-footer-contact a:hover,
.sk-footer-links a:hover,
.sk-footer-blog-strip a:hover {
    color: #34d399;
}

.sk-market-footer h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sk-footer-links {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sk-footer-blog-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 28px;
    padding-top: 16px;
}

.sk-footer-blog-strip span {
    color: #34d399;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sk-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #94a3b8;
    font-size: 13px;
    margin-top: 18px;
    padding-top: 16px;
}

@media (max-width: 900px) {
    .sk-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .sk-footer-grid {
        grid-template-columns: 1fr;
    }

    .sk-footer-bottom {
        flex-direction: column;
    }
}

/* Public marketplace footer refresh */
.sk-market-footer {
    position: relative;
    overflow: hidden;
    margin-top: 44px;
    background:
        radial-gradient(circle at 12% 0%, rgba(16, 185, 129, .16), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #cbd5e1;
    padding: 50px 0 24px;
}

.sk-market-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 78%);
}

.sk-market-footer .container-xl {
    position: relative;
    z-index: 1;
}

.sk-footer-grid {
    gap: 18px;
}

.sk-footer-brand {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    padding: 18px;
}

.sk-footer-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    text-decoration: none;
}

.sk-footer-brand-mark:hover {
    color: #fff;
}

.sk-footer-brand-mark img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
    padding: 5px;
}

.sk-footer-brand p {
    max-width: 320px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.65;
    margin: 12px 0 0;
}

.sk-footer-contact {
    gap: 8px;
    margin-top: 14px;
}

.sk-footer-contact a {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    color: #d1fae5;
    padding: 8px 10px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.sk-footer-contact a:hover {
    background: rgba(16, 185, 129, .13);
    transform: translateY(-1px);
}

.sk-market-footer h4 {
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.sk-footer-links {
    gap: 4px;
}

.sk-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    padding: 6px 8px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.sk-footer-links a i {
    color: #34d399;
    font-size: 13px;
    text-align: center;
    width: 15px;
}

.sk-footer-links a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    transform: translateX(2px);
}

.sk-footer-blog-strip {
    border-top-color: rgba(255, 255, 255, .09);
    margin-top: 22px;
    padding-top: 15px;
}

.sk-footer-blog-strip a {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    padding: 7px 11px;
}

.sk-footer-bottom {
    align-items: center;
    border-top-color: rgba(255, 255, 255, .09);
}

@media (max-width: 620px) {
    .sk-market-footer {
        margin-top: 30px;
        padding: 34px 0 94px;
    }

    .sk-footer-grid {
        gap: 16px;
    }

    .sk-footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sk-footer-links a {
        width: 100%;
    }

    .sk-footer-blog-strip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sk-footer-contact a,
    .sk-footer-links a {
        transition: none;
    }
}

/* Marketplace footer corrective pass */
#footer.sk-market-footer {
    margin-top: 36px;
    background: #0b1220 !important;
    background-image: none !important;
    background-attachment: initial;
    color: #cbd5e1;
    padding: 42px 0 20px;
}

#footer.sk-market-footer::before {
    display: none;
}

#footer.sk-market-footer .sk-footer-grid {
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(130px, 1fr));
    gap: 34px;
}

#footer.sk-market-footer .sk-footer-brand {
    border: 0;
    background: transparent;
    padding: 0;
}

#footer.sk-market-footer .sk-footer-brand-mark {
    margin-bottom: 10px;
}

#footer.sk-market-footer .sk-footer-brand-mark img {
    width: 42px;
    height: 42px;
}

#footer.sk-market-footer .sk-footer-brand p {
    margin: 0 0 16px;
    color: #94a3b8;
}

#footer.sk-market-footer .sk-footer-contact {
    display: flex;
    flex-wrap: wrap;
}

#footer.sk-market-footer .sk-footer-contact a {
    min-height: 36px;
    max-width: 100%;
    overflow: hidden;
    border-color: #243044;
    background: #111b2d;
    color: #e2e8f0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#footer.sk-market-footer h4 {
    color: #f8fafc;
    margin: 4px 0 10px;
}

#footer.sk-market-footer .sk-footer-links a {
    color: #aebbd0;
}

#footer.sk-market-footer .sk-footer-links a i {
    color: #34d399;
}

#footer.sk-market-footer .sk-footer-links a:hover {
    background: #111b2d;
    color: #fff;
}

#footer.sk-market-footer .sk-footer-bottom {
    border-top: 1px solid #243044;
    color: #8492a8;
    margin-top: 26px;
    padding-top: 16px;
}

@media (max-width: 900px) {
    #footer.sk-market-footer .sk-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (max-width: 620px) {
    #footer.sk-market-footer {
        margin-top: 26px;
        padding: 32px 0 94px;
    }

    #footer.sk-market-footer .sk-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #footer.sk-market-footer .sk-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
    }

    #footer.sk-market-footer .sk-footer-contact a {
        width: 100%;
    }
}
