﻿/* ==========================================
   NAVBAR
========================================== */
nav .container-fluid {
    width: 95%;
}

.navbar {
    background-color: #442371 !important;
    color: #ffff;
}

.location-box {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
 
    border-radius: 20px !important;
}

.nav-item a {
    color: #ffff;
}

.location-box i {
    font-size: 18px;
}

.location-box small {
    font-size: 12px;
    color: gray;
}

#map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

.search-box {
    position: relative;
}

.search-input {
    height: 48px;
    border-radius: 12px;
    padding-right: 15px;
    padding-left: 40px;
    transition: 0.3s;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #aaa;
    opacity: 0;
    transition: 0.3s;
}

.search-input:focus + .search-icon {
    opacity: 1;
    color: #210645;
}

.search-input:focus {
    box-shadow: 0 0 0 2px rgb(58, 12, 135, 0.20);
    border-color: #210645;
}

.login-btn i {
    font-size: 20px;
}

.dropdown-menu .dropdown-item {
    color: #808080 !important;
    font-weight: 500;
}

    .dropdown-menu .dropdown-item:hover {
        background-color: #808080;
        color: #fff !important;
    }

    .dropdown-menu .dropdown-item:active,
    .dropdown-menu .dropdown-item.active {
        background-color: #808080;
        color: #fff !important;
    }

    .dropdown-menu .dropdown-item:hover {
        border-radius: 0 !important;
    }

.dropdown-menu .logout-item {
    color: #dc3545 !important;
    font-weight: 500;
}

    .dropdown-menu .logout-item i {
        color: #dc3545;
    }

.navbar .navbar-collapse {
    align-items: center !important;
}

.left-nav {
    align-items: center !important;
}

nav {
    font-weight: 700;
}

.merchant-btn {
    background: #ffffff;
    color: #210645 !important;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .3s;
}

    .merchant-btn:hover {
        background: #eee;
/*        transform: translateY(-2px);*/
        color: #ffffff !important;
    }

@media (max-width: 768px) {
    .merchant-btn {
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .navbar-brand img {
        height: 55px;
    }

    .navbar-collapse {
        margin-top: 15px;
        border-radius: 15px;
        padding: 15px;
    }

    .left-nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        .left-nav .nav-item {
            width: 100%;
        }

    .search-box {
        width: 100%;
    }

    .merchant-btn {
        width: 100%;
        justify-content: center;
    }

    .login-btn {
        display: flex;
        justify-content: center;
        padding: 10px;
    }

    .location-box {
        width: 100%;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler {
        color: #fff;
    }
}

/* ==========================================
   PAGE STRUCTURE
========================================== */
body {
    font-family: sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.footer {
    width: 100%;
    line-height: 20px;
}

/* ==========================================
   FOOTER
========================================== */
.site-footer {
    background: #f8f9fb;
    color: #444;
    margin-top: 50px;
    padding: 35px 0 15px;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 15px rgba(0,0,0,.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 35px;
}

.footer-brand img {
    margin-bottom: 15px;
}

.footer-brand p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.footer-column h6 {
    color: #210645;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

    .footer-column a {
        color: #666;
        text-decoration: none;
        margin-bottom: 10px;
        transition: .3s;
        font-size: 14px;
    }

        .footer-column a:hover {
            color: #372967;
            transform: translateX(-4px);
        }

.social-icons {
    display: flex;
    gap: 10px;
}

    .social-icons a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #ececf5;
        color: #372967;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: .3s;
    }

        .social-icons a:hover {
            background: #372967;
            color: #fff;
            transform: translateY(-3px);
        }

.footer-bottom {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #777;
    font-size: 13px;
}

.download-app-btn {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #210645;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    transition: .3s;
}

    .download-app-btn:hover {
        background: #442371;
        transform: translateY(-2px);
        color: #fff !important;
    }

    .download-app-btn i {
        font-size: 20px;
    }

@media(max-width:991px) {
    .footer-top {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-top {
        display: flex;
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-brand,
    .footer-column {
        width: 100%;
        align-items: center;
    }

        .footer-brand img {
            margin: 0 auto 10px;
        }

        .footer-brand p {
            max-width: 280px;
            margin: auto;
        }

        .footer-column h6 {
            margin-bottom: 10px;
        }

        .footer-column a {
            margin-bottom: 8px;
        }

    .social-icons {
        justify-content: center;
        margin-top: 5px;
    }

    .site-footer {
        padding: 25px 0 15px;
    }
}

/* ==========================================
   WHATSAPP FLOAT BUTTON
========================================== */
.whatsapp-float i {
    font-size: 40px;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    z-index: 9999;
    transition: .3s;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        color: #fff;
        background: #20ba5a;
    }

.whatsapp-float {
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37,211,102,.5);
    }

    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 15px rgba(37,211,102,0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }
}
