/* DubaiHome controlled footer: keep Houzez footer colors/typography, only organize columns. */
.dhhfe-footer-wrap .dhhfe-footer-grid {
    display: grid !important;
    width: 100%;
    column-gap: 34px;
    row-gap: 28px;
    align-items: start;
}

/* Five-column desktop footer uses balanced content widths, not Bootstrap columns.
   Projects/Developers/Areas need room for long links; Links can be narrower; Reaching Us needs readable contact width. */
.dhhfe-footer-wrap .dhhfe-footer-grid--count-5 {
    grid-template-columns: minmax(205px, 1.22fr) minmax(205px, 1.22fr) minmax(205px, 1.22fr) minmax(115px, 0.68fr) minmax(235px, 1.34fr);
}

.dhhfe-footer-wrap .dhhfe-footer-grid--count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dhhfe-footer-wrap .dhhfe-footer-grid--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dhhfe-footer-wrap .dhhfe-footer-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dhhfe-footer-wrap .dhhfe-footer-grid--count-1 {
    grid-template-columns: 1fr;
}

.dhhfe-footer-wrap .dhhfe-footer-col {
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    flex: initial !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.dhhfe-footer-wrap .dhhfe-footer-widget {
    width: 100%;
    height: 100%;
    box-shadow: none;
    margin: 0 !important;
    padding: 0 !important;
}

.dhhfe-footer-wrap .dhhfe-footer-widget .widget-title {
    overflow-wrap: anywhere;
}

.dhhfe-footer-wrap .dhhfe-footer-list,
.dhhfe-footer-wrap .dhhfe-footer-contact {
    margin: 0;
}

.dhhfe-footer-wrap .dhhfe-footer-list li,
.dhhfe-footer-wrap .dhhfe-footer-contact li {
    margin-bottom: 8px;
    line-height: 1.55;
}

.dhhfe-footer-wrap .dhhfe-footer-list li:last-child,
.dhhfe-footer-wrap .dhhfe-footer-contact li:last-child {
    margin-bottom: 0;
}

.dhhfe-footer-wrap .dhhfe-footer-list a {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    text-decoration: none;
    max-width: 100%;
}

.dhhfe-footer-wrap .dhhfe-footer-list a span,
.dhhfe-footer-wrap .dhhfe-footer-contact span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dhhfe-footer-wrap .dhhfe-footer-list .houzez-icon {
    flex: 0 0 auto;
    margin-top: 5px;
    font-size: 10px;
}

.dhhfe-footer-wrap .dhhfe-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.dhhfe-footer-wrap .dhhfe-footer-contact .houzez-icon {
    flex: 0 0 auto;
    margin-top: 4px;
}

.dhhfe-footer-wrap .dhhfe-footer-company {
    text-align: center;
    opacity: 0.92;
}

.dhhfe-footer-wrap .dhhfe-footer-bottom-inner {
    gap: 12px;
}

@media (max-width: 1199.98px) {
    .dhhfe-footer-wrap .dhhfe-footer-grid,
    .dhhfe-footer-wrap .dhhfe-footer-grid--count-5,
    .dhhfe-footer-wrap .dhhfe-footer-grid--count-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 30px;
    }
}

@media (max-width: 767.98px) {
    .dhhfe-footer-wrap .dhhfe-footer-grid,
    .dhhfe-footer-wrap .dhhfe-footer-grid--count-5,
    .dhhfe-footer-wrap .dhhfe-footer-grid--count-4,
    .dhhfe-footer-wrap .dhhfe-footer-grid--count-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 20px;
    }

    .dhhfe-footer-wrap .footer-nav {
        text-align: center;
    }

    .dhhfe-footer-wrap .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .dhhfe-footer-wrap .dhhfe-footer-grid,
    .dhhfe-footer-wrap .dhhfe-footer-grid--count-5,
    .dhhfe-footer-wrap .dhhfe-footer-grid--count-4,
    .dhhfe-footer-wrap .dhhfe-footer-grid--count-3,
    .dhhfe-footer-wrap .dhhfe-footer-grid--count-2 {
        grid-template-columns: 1fr;
        row-gap: 14px;
    }
}
