/* 9to9 Properties — full-width footer */
.nine-pm-footer {
    --pm-footer-navy: #09233c;
    --pm-footer-accent: var(--nine-pm-brand-btn, #fdb813);
    --pm-footer-accent-third: var(--nine-pm-brand-third, #f24e09);
    --pm-footer-text: #4a5563;
    --pm-footer-muted: #667085;
    --pm-footer-border: #dfe3ea;
    --nine-pm-content-max: 1280px;
    --nine-pm-content-gutter: 15px;
}

/* Match home section content width (1280px + 15px gutters) */
.nine-pm-footer > .container {
    max-width: var(--nine-pm-content-max) !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--nine-pm-content-gutter) !important;
    padding-right: var(--nine-pm-content-gutter) !important;
    box-sizing: border-box;
}

.nine-pm-footer.cs_footer.cs_style_1 .cs_footer_main {
    padding: 1.25rem 0 28px !important;
}

/* ----- Recently added properties ticker ----- */
.nine-pm-footer__ticker {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 28px;
    border: 1px solid var(--pm-footer-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.nine-pm-footer__ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--pm-footer-navy);
    background: var(--pm-footer-accent);
}

.nine-pm-footer__ticker-label i {
    font-size: 12px;
    color: var(--pm-footer-navy);
}

.nine-pm-footer__ticker-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.nine-pm-footer__ticker-viewport::before,
.nine-pm-footer__ticker-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 1;
    pointer-events: none;
}

.nine-pm-footer__ticker-viewport::before {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 0));
}

.nine-pm-footer__ticker-viewport::after {
    right: 0;
    background: linear-gradient(270deg, #fff 0%, rgb(255 255 255 / 0));
}

.nine-pm-footer__ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-height: 44px;
    animation: nine-pm-footer-ticker-scroll 45s linear infinite;
}

.nine-pm-footer__ticker-track:hover {
    animation-play-state: paused;
}

.nine-pm-footer__ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 6px 22px 6px 14px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--pm-footer-text);
    text-decoration: none;
    white-space: nowrap;
    border-right: 1px solid #edf0f4;
    transition: color 0.15s ease, background 0.15s ease;
}

.nine-pm-footer__ticker-thumb {
    display: block;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e8ebf0;
    background: #f3f4f6;
}

.nine-pm-footer__ticker-item strong {
    font-weight: 600;
    color: var(--pm-footer-navy);
}

.nine-pm-footer__ticker-item span {
    color: var(--pm-footer-muted);
}

.nine-pm-footer__ticker-item:hover {
    background: #f8fafc;
    color: var(--pm-footer-navy);
}

.nine-pm-footer__ticker-item:hover strong {
    color: var(--pm-footer-navy);
}

@keyframes nine-pm-footer-ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ----- Link columns ----- */
.nine-pm-footer__columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 14px;
}

.nine-pm-footer__column-title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pm-footer-navy);
    border-bottom: 2px solid var(--pm-footer-accent-third);
}

.nine-pm-footer__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nine-pm-footer__menu li:not(:last-child) {
    margin-bottom: 8px;
}

.nine-pm-footer__menu-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    padding: 0 !important;
    font-size: 13px;
    line-height: 1.35;
    color: var(--pm-footer-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nine-pm-footer__menu-link::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 9px;
    line-height: 1.6;
    color: var(--pm-footer-accent-third);
    flex-shrink: 0;
}

.nine-pm-footer__menu-link:hover {
    color: var(--pm-footer-navy);
}

.nine-pm-footer__divider {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--pm-footer-border);
}

/* ----- Bottom: favicon + copyright grouped, then social ----- */
.nine-pm-footer__bottom {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    padding: 18px 0 26px !important;
    text-align: center;
}

.nine-pm-footer__bottom-start {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.nine-pm-footer__copyright-line {
    margin: 0;
    flex: 0 1 auto;
    max-width: none;
    font-size: 13px;
    line-height: 1.45;
    color: var(--pm-footer-muted);
    white-space: nowrap;
    text-align: left;
}

.nine-pm-footer__bottom-brand {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 0;
}

.nine-pm-footer__copyright-line > span:first-child {
    color: var(--pm-footer-navy);
    font-weight: 600;
}

.nine-pm-footer__copyright-sep {
    margin: 0 8px;
    color: #98a2b3;
}

.nine-pm-footer__copyright-secondary {
    color: var(--pm-footer-muted);
    font-weight: 400;
}

.nine-pm-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}

.nine-pm-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: var(--pm-footer-navy) !important;
    font-size: 16px;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.nine-pm-footer__social-link i {
    color: inherit !important;
}

.nine-pm-footer__social-link--facebook:hover,
.nine-pm-footer__social-link--facebook:focus-visible {
    color: #1877f2 !important;
    background: rgb(24 119 242 / 10%);
}

.nine-pm-footer__social-link--instagram:hover,
.nine-pm-footer__social-link--instagram:focus-visible {
    color: #e4405f !important;
    background: rgb(228 64 95 / 10%);
}

.nine-pm-footer__social-link--youtube:hover,
.nine-pm-footer__social-link--youtube:focus-visible {
    color: #ff0000 !important;
    background: rgb(255 0 0 / 8%);
}

.nine-pm-footer__social-link--whatsapp:hover,
.nine-pm-footer__social-link--whatsapp:focus-visible {
    color: #25d366 !important;
    background: rgb(37 211 102 / 10%);
}

.nine-pm-footer__social-link:hover,
.nine-pm-footer__social-link:focus-visible {
    transform: translateY(-1px);
}

.nine-pm-footer.cs_footer.cs_style_1.cs_type_1 a.nine-pm-footer__menu-link:hover {
    color: var(--pm-footer-navy);
}

@media (prefers-reduced-motion: reduce) {
    .nine-pm-footer__ticker-track {
        animation: none;
    }
}

@media (max-width: 1199px) {
    .nine-pm-footer__columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .nine-pm-footer__copyright-line {
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .nine-pm-footer > .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .nine-pm-footer.cs_footer.cs_style_1 .cs_footer_main {
        padding: 1rem 0 22px !important;
    }

    .nine-pm-footer__ticker {
        flex-direction: column;
        margin-bottom: 22px;
    }

    .nine-pm-footer__ticker-label {
        justify-content: center;
        padding: 10px 14px;
    }

    .nine-pm-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .nine-pm-footer__bottom {
        padding: 16px 0 22px !important;
    }
}

@media (max-width: 479px) {
    .nine-pm-footer__columns {
        grid-template-columns: 1fr;
    }

    .nine-pm-footer__copyright-line {
        white-space: normal;
        font-size: 12px;
    }
}
