/* LUXURY THEME RESPONSIVE OVERRIDES & UTILITIES */

/* Global Responsive Utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }

    body .d-none-mobile {
        display: none;
    }

    body .d-block-mobile {
        display: block;
    }

    body .text-center-mobile {
        text-align: center;
    }
}

/* Mobile Filter Modal (Bottom Sheet) */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    transition: all 0.3s;
}

.filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: 0.3s;
}

.filter-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.filter-modal.active {
    visibility: visible;
}

.filter-modal.active .filter-overlay {
    opacity: 1;
}

.filter-modal.active .filter-content {
    bottom: 0;
}

.filter-header-modal {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header-modal h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.close-filter {
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 5px;
    cursor: pointer;
}

.filter-body-modal {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.filter-footer-modal {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    background: #fff;
}

.filter-footer-modal .btn {
    flex: 1;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Adjustments for inputs on mobile to prevent zoom */
    body input[type="text"],
    body input[type="number"],
    body input[type="email"],
    body input[type="tel"],
    body input[type="password"],
    body select,
    body textarea {
        font-size: 16px;
    }

    body {
        padding-bottom: 70px; /* Space for the bottom nav */
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        z-index: 1050;
        justify-content: space-around;
        align-items: center;
        height: 65px;
        padding: 0 5px;
        border-top: 1px solid #f0f0f0;
    }

    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #666;
        text-decoration: none;
        flex: 1;
        height: 100%;
        transition: color 0.2s ease;
    }

    .mobile-bottom-nav-item:hover,
    .mobile-bottom-nav-item.active {
        color: var(--accent); /* Usually gold/primary color */
    }

    .mobile-bottom-nav-item .icon-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 3px;
    }

    .mobile-bottom-nav-item .icon-wrapper i {
        font-size: 1.2rem;
    }

    .mobile-bottom-nav-item span.nav-label {
        font-size: 0.6rem;
        font-weight: 500;
        white-space: nowrap;
    }

    .mobile-bottom-nav-item .badge-count {
        position: absolute;
        top: -8px;
        right: -14px;
        background-color: #e74c3c;
        color: #fff;
        font-size: 8px;
        font-weight: 700;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        border: 1.5px solid #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
        pointer-events: none;
    }
}