/* Footer Dropdown Styles */
.footer-nav ul li.has-dropdown {
    position: relative;
    display: inline-block;
}

.footer-nav ul li.has-dropdown .dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    /* Position above the parent link */
    left: 50%;
    transform: translateX(-50%);
    background-color: #121730;
    /* Match footer background */
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    margin-bottom: 10px;
}

/* Show dropdown on hover or focus */
.footer-nav ul li.has-dropdown:hover .dropdown,
.footer-nav ul li.has-dropdown:focus-within .dropdown {
    display: block;
}

/* ===== FOOTER SPACING FIXES ===== */

/* Remove dead space at top of footer */
footer#footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

footer#footer .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

footer#footer .container .inner {
    padding-top: 20px !important;
    padding-bottom: 15px !important;
}

/* Override .top section (title + CTA) excessive bottom padding from bundle.css */
footer#footer .container .inner .top,
#footer .inner .top {
    padding-bottom: 20px !important;
}

/* Footer Logo */
.footer-logo-wrapper {
    margin-bottom: 20px;
    margin-top: 0;
    padding-top: 0;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
}

/* Arrow indicator for the dropdown */
.footer-nav ul li.has-dropdown .dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #121730 transparent transparent transparent;
}

.footer-nav ul li.has-dropdown .dropdown li {
    display: block;
    margin: 0;
    padding: 0;
}

.footer-nav ul li.has-dropdown .dropdown li a {
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    /* Slightly smaller text for dropdown */
    text-align: center;
    white-space: nowrap;
}

.footer-nav ul li.has-dropdown .dropdown li a:hover {
    background-color: #e6af79;
    /* Hover color */
    color: #fff;
}

/* Fix for Pools & Spas Dropdown covering other menu items */
@media screen and (min-width: 1100px) {
    #header #nav ul.nav>li#nav-ps>ul {
        left: 0;
        transform: none;
    }
}

/* Footer Layout Updates for 4 Columns */
.footer-spacer {
    margin-top: 15px;
}

/* ===== BOTTOM SECTION (Social + Copyright) ===== */
footer#footer .container .inner .bottom,
footer#footer .container .inner div.bottom,
#footer .inner .bottom {
    padding-top: 20px !important;
    padding-bottom: 15px !important;
    margin-bottom: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px !important;
}

/* Social icons row */
footer#footer .container .inner .bottom ul.social {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}

/* Copyright/Legal row - keep items on one line */
footer#footer .container .inner .bottom>ul:last-child,
#footer .inner .bottom>ul:last-child {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 15px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

footer#footer .container .inner .bottom>ul:last-child>li,
#footer .inner .bottom>ul:last-child>li {
    display: inline-block !important;
    float: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
}

/* "Designed by BikoToday." - keep on single line */
footer#footer .container .inner .bottom .copyright,
#footer .inner .bottom .copyright,
.bottom .copyright {
    white-space: nowrap !important;
    display: inline !important;
    width: auto !important;
}

footer#footer .container .inner .bottom .copyright a,
#footer .inner .bottom .copyright a,
.bottom .copyright a {
    display: inline !important;
    white-space: nowrap !important;
}

/* ===== DESKTOP: 4 columns ===== */
@media screen and (min-width: 1001px) {
    footer#footer .container .inner .footer-nav {
        gap: 3vw;
        /* Reduce gap to fit 4 columns */
    }

    /* Reset specific widths/floats from bundle.css */
    footer#footer .container .inner .footer-nav>ul {
        width: auto !important;
        /* Force auto width */
        flex: 1;
        float: none !important;
        margin-bottom: 0 !important;
    }

    footer#footer .container .inner .footer-nav ul.top {
        display: none !important;
        /* Hide top nav items in footer mobile */
    }
}

/* Footer Orange Styling */
.footer-orange-heading {
    color: #e6af79 !important;
}

.footer-orange-link {
    color: #e6af79 !important;
    transition: all 0.3s ease-in-out;
}

.footer-orange-link:hover {
    color: #25D366 !important;
    /* WhatsApp Green */
    text-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
}

/* ===== TABLET (2 columns per row) ===== */
@media screen and (min-width: 601px) and (max-width: 1000px) {
    footer#footer .container .inner {
        padding-top: 30px !important;
        padding-bottom: 15px !important;
    }

    footer#footer .container .inner .footer-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    footer#footer .container .inner .footer-nav>ul {
        width: 50% !important;
        float: none !important;
        display: block !important;
        margin-bottom: 25px !important;
        box-sizing: border-box;
        padding-right: 20px;
    }

    footer#footer .container .inner .bottom>ul:last-child {
        justify-content: center;
    }

    footer#footer .container .inner .bottom ul.social {
        justify-content: center;
        display: flex;
    }
}

/* ===== MOBILE (1 column) ===== */
@media screen and (max-width: 600px) {
    footer#footer .container .inner {
        padding-top: 25px !important;
        padding-bottom: 10px !important;
    }

    footer#footer .container .inner .footer-nav {
        display: block;
    }

    footer#footer .container .inner .footer-nav>ul {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin-bottom: 20px !important;
    }

    /* Center the bottom section on mobile */
    footer#footer .container .inner .bottom {
        text-align: center;
    }

    footer#footer .container .inner .bottom ul.social {
        justify-content: center;
        display: flex;
    }

    footer#footer .container .inner .bottom>ul:last-child {
        justify-content: center;
    }

    /* Ensure "Designed by BikoToday." stays on one line even on mobile */
    footer#footer .container .inner .bottom .copyright {
        white-space: nowrap;
        font-size: 0.85rem;
    }
}

/* Designer Link Styling */
.footer-designer-link {
    transition: all 0.3s ease-in-out;
}

.footer-designer-link:hover {
    color: #b088f9 !important;
    /* Neon Pastel Purple */
    text-shadow: 0 0 10px rgba(176, 136, 249, 0.8), 0 0 20px rgba(176, 136, 249, 0.4);
}

/* Green labels for footer offices */
.footer-green-text {
    color: #25D366 !important;
}