/* ================= DESKTOP FOOTER (Centered & Clean) ================= */
.desktop-footer {
    background-color: #f4f1ea;
    /* Cream Background */
    color: var(--navy);
    padding: 60px 0 20px;
    margin-top: 50px;
    text-align: center;
    /* Center Text Alignment */
    border-top: 3px solid var(--gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    /* Center Columns */
    flex-wrap: wrap;
    gap: 40px;
    /* Space between columns */
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    color: var(--maroon);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.right-col a {
    color: var(--maroon);
    text-decoration: none;
    font-weight: bold;
    margin: 0 3px;
}

/* Center Divider Line */
.divider {
    height: 2px;
    width: 50px;
    background: var(--gold);
    margin: 0 auto 20px;
    /* Centered */
}

.center-divider {
    margin: 0 auto 20px;
}

/* Links (Left Column) */
.left-col ul {
    list-style: none;
    padding: 0;
}

.left-col ul li {
    margin-bottom: 12px;
}

.left-col ul a {
    text-decoration: none;
    color: #444;
    transition: 0.3s;
    font-size: 15px;
}

.left-col ul a:hover {
    color: var(--maroon);
}

/* Map & Logo (Center Column) */
.center-col {
    text-align: center;
}

.map-container iframe {
    width: 100%;
    height: 150px;
    border: 3px solid white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.footer-logo img {
    height: 60px;
    margin-top: 20px;
    opacity: 1;
}

/* Contact (Right Column) */
.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center Items */
    gap: 10px;
    margin-bottom: 15px;
    color: #444;
}

.contact-info i {
    color: var(--maroon);
    font-size: 18px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--maroon);
    transform: translateY(-3px);
}

/* Credits */
.footer-bottom {
    border-top: 1px solid #e0dcd3;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.credits a {
    color: var(--maroon);
    text-decoration: none;
    font-weight: bold;
}

/* ================= MOBILE STYLES (Cleaned Up) ================= */
.mobile-bottom-nav,
.bottom-dev-bar {
    display: none;
}

@media (max-width: 900px) {
    .desktop-footer {
        display: none;
    }

    /* 1. Developer Bar (Fixed at Bottom) */
    .bottom-dev-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 30px;
        /* Fixed Height */
        background-color: var(--maroon);
        color: white;
        font-size: 10px;
        z-index: 1002;
        letter-spacing: 0.5px;
    }

    .bottom-dev-bar a {
        color: var(--gold);
        text-decoration: none;
        font-weight: bold;
        margin: 0 3px;
    }

    /* 2. Mobile Nav Bar (Sits ABOVE Dev Bar) */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;

        /* 30px Bottom ensures it sits perfectly on top of Dev Bar */
        bottom: 30px;

        left: 0;
        width: 100%;
        height: 65px;
        background: white;

        /* Top Rounded Corners */
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;

        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.08);
        z-index: 1001;
        border-top: 1px solid #f0f0f0;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #999;
        font-size: 10px;
        font-weight: 600;
    }

    .nav-item.active {
        color: var(--maroon);
    }

    .nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    /* Floating Center Button */
    .center-fab .fab-circle {
        background: var(--maroon);
        width: 55px;
        height: 55px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -30px;
        color: white;
        border: 4px solid white;
        box-shadow: 0 5px 15px rgba(104, 24, 24, 0.4);
    }
}

/* ================= BOTTOM DEV BAR (NEW) ================= */
.bottom-dev-bar {
    display: none;
    /* Desktop માં નહીં દેખાય */
}

@media (max-width: 768px) {
    body {
        padding-bottom: 100px;
        /* Value = Nav Height (70px) + Extra Space (10px) */
    }

    /* If your bottom-dev-bar is separate, ensure it handles the spacing */
    .bottom-dev-bar {
        padding-bottom: 10px;
        /* Optional spacing */
        background-color: #f8f8f8;
        /* Match your theme */
        text-align: center;
    }
}

/* 3. Hide Mobile Elements on Desktop */
@media (min-width: 769px) {

    .mobile-bottom-nav,
    .bottom-dev-bar {
        display: none !important;
    }
}

@media (max-width: 900px) {

    /* 1. The Bottom Line (Same style as Header Top Bar) */
    .bottom-dev-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 25px;
        /* પટ્ટીની હાઈટ */
        background-color: var(--maroon);
        /* Top Bar જેવો જ કલર */
        color: white;
        font-size: 9px;
        z-index: 1002;
        /* સૌથી ઉપર */
        letter-spacing: 0.5px;
        padding: 10px;
    }

    .bottom-dev-bar a {
        color: var(--gold);
        /* લિંકનો કલર ગોલ્ડ */
        text-decoration: none;
        font-weight: bold;
        margin: 0 3px;
    }

    /* 2. Adjust Mobile Nav Bar (Move it UP) */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;

        /* Nav Bar ને પેલી પટ્ટીની ઉપર રાખવા માટે */
        bottom: 50px;

        left: 0;
        width: 100%;
        height: 65px;
        background: white;

        /* નીચેની ગોળાઈ કાઢી નાખી કેમ કે હવે નીચે પટ્ટી છે */
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;

        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        border-top: 3px solid var(--gold);
    }

    .bottom-dev-bar {
        display: flex;
        flex-direction: column;
        /* બે લાઈન */
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        /* થોડી ઊંચી કરી */
        background-color: var(--maroon);
        color: white;
        font-size: 10px;
        z-index: 1002;
        padding: 5px 0;
    }

    .bottom-dev-bar .credits {
        font-size: 8px;
        /* થોડી નાની સાઈઝ */
        margin-top: 2px;
    }

    .bottom-dev-bar a {
        color: var(--gold);
        text-decoration: none;
        font-weight: bold;
    }
}

/* =========================================
   MOBILE FOOTER PROFILE RING (RESIZED)
   ========================================= */

/* The Outer Ring */
.mobile-nav-ring.profile-progress-box {
    width: 30px !important;
    /* Increased size to fit the old icon */
    height: 30px !important;
    margin-left: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative;
    background: conic-gradient(#28a745 var(--profile-pct, 0%),
            #e0e0e0 var(--profile-pct, 0%));
    border-radius: 50%;
}

/* The Inner White Circle (The Hole) */
.mobile-nav-ring.profile-progress-box::after {
    content: '';
    position: absolute;
    width: 24px !important;
    /* Larger hole for the old icon */
    height: 24px !important;
    background: white;
    /* Matches your nav background */
    border-radius: 50%;
    z-index: 1;
}

/* The Icon itself (Restoring Old Size) */
.mobile-nav-ring.profile-progress-box i {
    font-size: 16px !important;
    /* Restored to your original professional size */
    position: relative;
    z-index: 2;
    margin: 0 !important;
    color: #4a0404;
    /* Brand Maroon */
}

/* --- TOOLTIP POSITIONING --- */
.mobile-nav-ring .profile-tooltip {
    top: auto !important;
    bottom: 40px !important;
    /* Positioned above the larger ring */
    right: -3px !important;
    background-color: #4a0404;
    color: white;
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 4px;
    z-index: 1000;
}

.mobile-nav-ring .profile-tooltip::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 14px;
    /* Align with icon center */
    width: 8px;
    height: 8px;
    background-color: #4a0404;
    transform: rotate(45deg);
}

/* Stack icon and text on top of each other */
.fade-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.fade-icon,
.fade-pct {
    position: absolute;
    transition: opacity 0.8s ease-in-out;
}

/* Icon Animation */
.fade-icon {
    font-size: 14px !important;
    animation: crossFadeIcon 6s infinite;
}

/* Percentage Animation */
.fade-pct {
    font-size: px;
    font-weight: 800;
    color: #4a0404;
    /* B. Maganlal Maroon */
    opacity: 0;
    animation: crossFadePct 6s infinite;
}

@keyframes crossFadeIcon {

    0%,
    45% {
        opacity: 1;
        visibility: visible;
    }

    50%,
    95% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes crossFadePct {

    0%,
    45% {
        opacity: 0;
        visibility: hidden;
    }

    50%,
    95% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}