/* Hangen rental search alignment fix */
.htr-search-box {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 20px 0 28px 0 !important;
    box-sizing: border-box !important;
}

.htr-search-form {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.htr-search-field input,
.htr-search-field select {
    min-width: 0 !important;
}

.htr-search-actions {
    justify-content: flex-start !important;
}

@media (max-width: 1024px) {
    .htr-search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .htr-search-form {
        grid-template-columns: 1fr !important;
    }
}

/* Hangen Rental Clean List */
.hangen-clean-list {
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.hangen-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.hangen-address {
    font-weight: 700;
    color: #111;
    text-decoration: none;
    min-width: 220px;
}

.hangen-address:hover {
    color: #b58b30;
}

.hangen-col {
    color: #555;
    font-size: 12.5px;
}

.hangen-availability {
    margin-left: auto;
    font-weight: 600;
    color: #b58b30;
}

/* Fix dark text inside the large dark footer section */
.footer-wrap,
.footer-section,
.footer-main-wrap,
.footer-top-wrap,
.footer-bottom-wrap,
.elementor-location-footer,
.hangen-footer-quick-links {
    color: #ffffff !important;
}

/* Footer headings */
.footer-wrap h1,
.footer-wrap h2,
.footer-wrap h3,
.footer-wrap h4,
.footer-wrap h5,
.footer-wrap h6,
.footer-section h1,
.footer-section h2,
.footer-section h3,
.footer-section h4,
.footer-section h5,
.footer-section h6,
.elementor-location-footer h1,
.elementor-location-footer h2,
.elementor-location-footer h3,
.elementor-location-footer h4,
.elementor-location-footer h5,
.elementor-location-footer h6,
.hangen-footer-quick-links h4 {
    color: #ffffff !important;
}

/* Footer paragraph and regular text */
.footer-wrap p,
.footer-wrap span,
.footer-wrap div,
.footer-wrap li,
.footer-section p,
.footer-section span,
.footer-section div,
.footer-section li,
.elementor-location-footer p,
.elementor-location-footer span,
.elementor-location-footer div,
.elementor-location-footer li {
    color: #ffffff !important;
}

/* Footer links */
.footer-wrap a,
.footer-section a,
.elementor-location-footer a,
.hangen-footer-quick-links a {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Footer link hover */
.footer-wrap a:hover,
.footer-section a:hover,
.elementor-location-footer a:hover,
.hangen-footer-quick-links a:hover {
    color: #f3c64f !important;
}

/* Footer icons / contact items */
.footer-wrap i,
.footer-section i,
.elementor-location-footer i,
.footer-wrap svg,
.footer-section svg,
.elementor-location-footer svg {
    color: #f3c64f !important;
    fill: #f3c64f !important;
}

/* Make the faint list items readable */
.footer-wrap ul li,
.footer-section ul li,
.elementor-location-footer ul li {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Make Dan contact line readable */
.footer-wrap .elementor-icon-list-text,
.footer-section .elementor-icon-list-text,
.elementor-location-footer .elementor-icon-list-text {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Strong footer text override for Elementor/Houzez dark footer */
body .footer-wrap,
body .footer-wrap *,
body .footer-section,
body .footer-section *,
body .footer-main-wrap,
body .footer-main-wrap *,
body .footer-top-wrap,
body .footer-top-wrap *,
body .footer-bottom-wrap,
body .footer-bottom-wrap *,
body .elementor-location-footer,
body .elementor-location-footer *,
body footer,
body footer * {
    color: #ffffff !important;
}

/* Elementor Icon List text in footer */
body .footer-wrap .elementor-icon-list-item,
body .footer-wrap .elementor-icon-list-item *,
body .footer-wrap .elementor-icon-list-text,
body .footer-section .elementor-icon-list-item,
body .footer-section .elementor-icon-list-item *,
body .footer-section .elementor-icon-list-text,
body .elementor-location-footer .elementor-icon-list-item,
body .elementor-location-footer .elementor-icon-list-item *,
body .elementor-location-footer .elementor-icon-list-text,
body footer .elementor-icon-list-item,
body footer .elementor-icon-list-item *,
body footer .elementor-icon-list-text {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Footer links */
body .footer-wrap a,
body .footer-section a,
body .footer-main-wrap a,
body .footer-top-wrap a,
body .footer-bottom-wrap a,
body .elementor-location-footer a,
body footer a {
    color: #ffffff !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

/* Footer links hover */
body .footer-wrap a:hover,
body .footer-section a:hover,
body .elementor-location-footer a:hover,
body footer a:hover {
    color: #f3c64f !important;
}

/* Footer icons */
body .footer-wrap i,
body .footer-section i,
body .elementor-location-footer i,
body footer i,
body .footer-wrap svg,
body .footer-section svg,
body .elementor-location-footer svg,
body footer svg {
    color: #f3c64f !important;
    fill: #f3c64f !important;
}

/* Specific fix for the leftover List Item text */
body .elementor-widget-icon-list .elementor-icon-list-text {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Keep the skinny custom bottom bar readable */
body .htr-global-bottom-header,
body .htr-global-bottom-header * {
    opacity: 1 !important;
}

/* Fix custom Hangen skinny bottom bar colors after footer override */
body .htr-global-bottom-header,
body .htr-global-bottom-header * {
    color: #1f2d33 !important;
    opacity: 1 !important;
}

body .htr-global-bottom-header a {
    color: #1f2d33 !important;
}

body .htr-global-bottom-header a:hover {
    color: #b58b30 !important;
}

body .htr-global-bottom-header__phone,
body .htr-global-bottom-header__phone *,
body .htr-global-bottom-header__contact a,
body .htr-global-bottom-header__contact a *,
body .htr-global-bottom-header__mobile span,
body .htr-global-bottom-header__mobile a:hover,
body .htr-global-bottom-header__mobile a:active {
    color: #b58b30 !important;
}

/* Make the bottom bar more readable on desktop */
body .htr-global-bottom-header {
    background: rgba(255, 255, 255, 0.92) !important;
    border-top: 1px solid rgba(181, 139, 48, 0.38) !important;
}

/* Hide Houzez green back-to-top / scroll button */
.back-to-top,
.back-to-top-wrap,
.scroll-top,
.scrolltop,
#scroll-top,
#back-to-top,
.houzez-scroll-to-top,
.hz-scroll-to-top,
.btn-back-to-top,
a[href="#top"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Mobile: hide crowded desktop bottom layout if old version is still showing */
@media (max-width: 850px) {
    body .htr-global-bottom-header__inner,
    body .htr-global-bottom-header__desktop {
        display: none !important;
    }

    body .htr-global-bottom-header__mobile {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        min-height: 72px !important;
        padding: 7px 6px calc(7px + env(safe-area-inset-bottom)) !important;
        gap: 4px !important;
        background: rgba(255, 255, 255, 0.985) !important;
    }

    body .htr-global-bottom-header__mobile a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        min-height: 56px !important;
        border-radius: 12px !important;
        color: #1f2d33 !important;
        text-decoration: none !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
    }

    body .htr-global-bottom-header__mobile span {
        color: #b58b30 !important;
        font-size: 21px !important;
        line-height: 1 !important;
    }

    body .htr-global-bottom-header__mobile strong {
        color: #1f2d33 !important;
        font-size: 10.5px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
}

/* HANGEN FIX - Hide bad Houzez header row only */
body:not(.wp-admin) #header-hz-elementor .elementor-element-186dc2be {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* HANGEN FIX - Hide bad Houzez footer bottom row only */
body:not(.wp-admin) footer .elementor-element-f7aecc6,
body:not(.wp-admin) .elementor-element-f7aecc6 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}