/**
 * MAP.CSS - Main Stylesheet for Interactive Map Application
 * Optimized with comments and maintained functionality
 */

/* =============================================
   BASE STYLES & RESET
   ============================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow: hidden; /* Prevent scrollbars on body */
}
.h1, h1 {
    font-size: calc(.8rem + .3vw);
    font-weight: 600;
}
p {
    font-size: calc(.6rem + .2vw);
}
.bg-gray-100 {
    background-color: #ffffff !important;
}


/* =============================================
   MAP CONTAINER & CORE MAP STYLES
   ============================================= */
#map-container {
    position: relative;
    width: 100%;
    height: 100vh;
    border-top: 5px solid #006b56; /* Brand accent color */
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* =============================================
   TOP NAVIGATION BAR
   ============================================= */
#top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* Logo positioning */
.top-logo {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    height: 50px;
    width: 100px;
}

/* =============================================
   SEARCH FUNCTIONALITY STYLES
   ============================================= */
#search-container {
    position: absolute;
    top: 13px;
    left: 10px;
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    display: block;
    color: #555;
}

#search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 15px;
}

#search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 0px 30px;
}

#search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.search-icon {
    color: #555;
}

/* Search results dropdown */
#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1001 !important;
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 8px;
}

.search-result-item:hover,
.search-result-item.selected {
    background-color: #f5f5f5;
    transform: scale(1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.highlight {
    background-color: #d6eaff;
    font-weight: bold;
}

/* Search toggle and close buttons */
#search-toggle-button {
    position: absolute;
    top: 55px;
    left: 10px;
    z-index: 1000;
    display: none;
    background-color: white;
    border-radius: 6px;
    border: none;
    padding: 5px 9px;
}

#search-close-button {
    background: none;
    border: none;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    padding: 0 5px;
    margin-right: 5px;
}

.clear-button {
    background: none;
    border: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    margin-right: 5px;
    line-height: 1;
}

/* Hidden state utility */
#search-toggle-button.hidden-btn,
#search-close-button.hidden-btn {
    display: none !important;
}

/* =============================================
   SIDEBAR STYLES (Left Navigation & Property Details)
   ============================================= */

/* Left sidebar navigation */
#sidebar {
    position: absolute;
    left: -300px;
    top: 0px;
    bottom: 0;
    width: 300px;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

#sidebar.visible {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 15px;
}

/* Sidebar logo */
#sidebar-logo {
    width: 120px;
    height: auto;
    margin: 0px;
    display: block;
    float: left;
    clear: both;
}

/* Sidebar footer */
#sidebar-footer {
    padding: 15px;
    border-top: 5px solid #09a900;
    background-color: #00193f;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.footer-nav {
    margin-top: 15px;
    font-size: 0.7em;
    color: #adadad;
}

.footer-nav a {
    color: #adadad;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s ease-in-out;
}

.footer-nav a:hover {
    color: #0056b3;
}

/* Property sidebar (right side) */
.property-sidebar,
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.property-sidebar.open,
.sidebar.open {
    right: 0;
}

.sidebar-header,
.property-sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.sidebar-body,
.property-sidebar-body {
    padding: 15px;
}

/* Property image carousel */
#propertyImagesCarousel .carousel-item img {
    height: 550px;
    width: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    background-color: transparent !important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

/* Property detail sections */
.property-detail {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e3e6f0;
}

.property-detail:last-child {
    border-bottom: none;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h5 {
    color: #4e73df;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e3e6f0;
}

.icon {
    width: 20px;
    display: inline-block;
    text-align: center;
    margin-right: 8px;
    color: #4e73df;
}

/* =============================================
   MAP CONTROLS & BUTTONS
   ============================================= */
#map-buttons {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: none;
    padding: 0px;
    border-radius: 4px;
}

#map-buttons button {
    background-color: #fff !important;
    color: #333 !important;
    font-size: 0.85rem !important;
    border: 1px solid #afafafff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 4px 10px;
    font-weight: 600;
    transition: background 0.15s;
}

#map-buttons button:hover,
#map-buttons button.active {
    background: #e0dedeff !important;
    color: #222 !important;
}

/* Menu toggle buttons */
#menu-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #555;
    cursor: pointer;
    z-index: 1001;
    background: white;
    border: none;
    padding: 0px 8px !important;
    border-radius: 3px;
}

#menu-toggle-01 {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #555;
    cursor: pointer;
    z-index: 1001;
    background: white;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    display: none;
}

/* User controls */
#user-controls {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1002;
}

/* Tools toolbar */
#tools-toolbar {
    position: absolute;
    bottom: 85px;
    left: 10px;
    z-index: 500;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.tool-button {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.tool-button:last-child {
    border-bottom: none;
}

.tool-button:hover {
    background-color: #f8f9fa;
}

.tool-button.active {
    background-color: #e9ecef;
}

/* =============================================
   LEAFLET CUSTOM CONTROLS
   ============================================= */

/* Base map toggle control */
.leaflet-control-basemaptoggle.leaflet-bar {
    box-shadow: none !important;
}

.leaflet-control-basemaptoggle .basemap-toggle-button {
    background-color: #fff;
    width: 60px !important;
    height: 60px !important;
    border-radius: 10px !important;
    border: 3px solid #fff !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.leaflet-control-basemaptoggle img.basemap-icon {
    width: 55px;
    height: 55px;
    border-radius: 7px;
}

.leaflet-bottom.leaflet-left .leaflet-control-basemaptoggle {
    margin-left: 10px;
    margin-bottom: 10px;
    border-radius: 10px !important;
}

/* Custom control styling */
.leaflet-control-custom {
    background: white;
    border-radius: 4px;
    padding: 2px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.leaflet-control-custom a {
    display: block;
    text-align: center;
    padding: 0px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.leaflet-control-custom.active a {
    color: #4CAF50;
}

/* Opacity control */
.leaflet-control-opacity {
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    background-color: white;
    z-index: 999;
}

/* =============================================
   TOOLTIPS & POPUPS
   ============================================= */
.property-tooltip {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    font-weight: bold;
}

.property-tooltip::before {
    border-top-color: #ccc;
}

.leaflet-popup-content div {
    padding: 5px 0;
}

.leaflet-popup-content .text-primary a:hover {
    color: #a8a8a8ff !important;
}

.property-type {
    font-size: 1 !important;
    padding: 5px 0;
}

.leaflet-popup-content .social-links a {
    font-size: 1rem !important;
    color: #ffffffff !important;
}

.leaflet-popup-content .social-links a:hover {
    color: #a8a8a8ff !important;
}

/* City tooltips */
.leaflet-tooltip.city-tooltip,
.city-tooltip {
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 12px;
    color: #333;
    text-shadow: 0 0 2px white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.leaflet-tooltip-own {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #a5a4a4;
    border-radius: 4px;
    color: #333;
    font-size: 12px;
    padding: 2px 4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.leaflet-tooltip-own::before {
    border-top-color: #3388ff !important;
}

/* =============================================
   AUTHENTICATION PANEL STYLES - LIGHT MODE
   ============================================= */

.auth-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease-in-out;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid #e9ecef;
}

.auth-panel.open {
    right: 0;
}

/* Close button */
#auth-panel-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1101;
    transition: all 0.2s ease;
}

#auth-panel-close:hover {
    background: #e9ecef;
    color: #495057;
    transform: scale(1.1);
}

/* Auth panel content */
.auth-panel-content {
    flex: 1;
    padding: 40px 30px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}


/* Form styling within auth panel */
.auth-panel-content .min-h-screen {
    min-height: auto !important;
    padding: 0 !important;
    background: transparent !important;
}

.auth-panel-content .w-full.sm\:max-w-md {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Logo styling within auth panel - Centered */
.auth-panel-content .flex.justify-center {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.auth-panel-content .flex.justify-center svg,
.auth-panel-content .flex.justify-center img {
    width: 120px !important;
    height: 100px !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Center align the logo container horizontally */
.auth-panel-content > div:first-child {
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

/* Form elements styling */
.auth-panel-content .bg-white {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.auth-panel-content form {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* border: 1px solid #e9ecef; */
}


.auth-panel-content input[type="email"],
.auth-panel-content input[type="password"],
.auth-panel-content input[type="text"],
.auth-panel-content input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #495057;
}

.auth-panel-content input:focus {
    outline: none;
    border-color: #00193f;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 25, 63, 0.1);
}

/* Remember me styling */
.auth-panel-content .block {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.auth-panel-content input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

/* Links styling */
.auth-panel-content a {
    color: #00193f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-panel-content a:hover {
    color: #224abe;
    text-decoration: underline;
}

/* Buttons styling */
.auth-panel-content button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #006b56;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;    
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-panel-content button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 25, 63, 0.3);
}

.auth-panel-content button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Auth panel footer */
.auth-panel-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.auth-panel-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.auth-panel-footer a {
    color: #00193f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
}

.auth-panel-footer a:hover {
    color: #224abe;
    background: rgba(0, 25, 63, 0.05);
    text-decoration: none;
}


/* =============================================
   RESPONSIVE DESIGN FOR AUTH PANEL
   ============================================= */

/* Mobile devices (up to 768px) */
@media (max-width: 768px) {
    .auth-panel {
        width: 100%;
        right: -100%;
        background: #ffffff;
    }
    
    .auth-panel-content {
        padding: 50px 20px 20px;
    }
    
    .auth-panel-content form {
        padding: 25px 20px;
        background: white;
    }
    
    .auth-panel-footer {
        padding: 15px 20px;
        background: #f8f9fa;
    }
    
    #auth-panel-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
        background: #f8f9fa;
        color: #6c757d;
    }
    
    /* Ensure logo stays centered on mobile */
    .auth-panel-content .flex.justify-center {
        justify-content: center !important;
    }
}

/* Tablet devices (768px to 1024px) */
@media (max-width: 1024px) {
    .auth-panel {
        /* width: 400px; */
        background: #ffffff;
    }
}

/* Small mobile devices (up to 480px) */
@media (max-width: 480px) {
    .auth-panel-content {
        padding: 45px 15px 15px;
    }
    
    .auth-panel-content form {
        padding: 20px 15px;
        background: white;
    }
    
    .auth-panel-footer {
        padding: 15px;
        background: #f8f9fa;
    }
    
    .auth-panel-footer a {
        display: block;
        margin: 5px 0;
    }
    
}

/* Ensure all backgrounds stay white in light mode */
.auth-panel,
.auth-panel-content form,
.auth-panel-content input,
#auth-panel-close {
    background: #ffffff;
}

.auth-panel-content input {
    background: #ffffff;
}

.auth-panel-footer {
    background: #f8f9fa;
}

#auth-panel-close {
    background: #f8f9fa;
}

/* =============================================
   LOADER & ANIMATION STYLES
   ============================================= */

/* Map loader overlay */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    transition: opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.loader-overlay.show {
    opacity: 1;
    visibility: visible;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Animation slider */
.top-slider {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    overflow: hidden;
    z-index: 900;
    max-width: 300px;
}

#slider-content {
    display: flex;
    height: 100%;
    animation: slide 20s linear infinite;
}

.slider-image {
    min-width: 300px;
    height: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 5px;
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* =============================================
   MEASUREMENT TOOLS
   ============================================= */
#measurement-results {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    max-width: 90%;
    text-align: center;
}

#measurement-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    pointer-events: none;
}

/* =============================================
   MARKER CLUSTER STYLES
   ============================================= */
.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(240, 194, 12, 0.6);
}

.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(241, 128, 23, 0.6);
}

/* =============================================
   LAYER CONTROLS & ACCORDION
   ============================================= */
.layer-control {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.accordion .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 5px;
    border-radius: 4px;
    overflow: hidden;
    font-size: .75rem;
}

.accordion .accordion-header {
    margin-bottom: 0;
    font-size: .8rem !important;
}

.accordion .accordion-button {
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
    width: 100%;
    text-align: left;
    
}

.accordion-button:not(.collapsed) {
    color: #007bff;
    border-bottom-color: transparent;
}

.accordion-button:hover {
    background-color: #e2e6ea;
}

.accordion-button:focus {
    box-shadow: none;
}

/* List group items */
.list-group-item {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border: none;
}

.list-group-item-action:hover {
    background-color: #f0f2f5;
    color: #007bff;
}

.list-group-item.ps-3 {
    padding-left: 1.5rem !important;
}

.list-group-item.ps-5 {
    padding-left: 2.5rem !important;
}

/* =============================================
   BUTTON & COMPONENT STYLES
   ============================================= */

/* Primary button gradient */
.btn-primary, .bg-primary {
    background: #006b56 !important;
    border: none;
}
.btn-active{
    background: #006b56 !important;
}
.btn-outline-primary, .btn-primary-outline{
    color: #006b56 !important;
    border-color: #006b56 !important;
}

.btn-default {
    background: linear-gradient(to right, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
}

.footer-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.75rem;
}

/* Avatar images */
.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.big-icon {
    font-size: 60px;
    color: #3498db;
}

/* Dropdown menus */
.dropdown-menu {
    min-width: 200px;
}

#user-menu .dropdown-menu,
#app-menu .dropdown-menu {
    right: 0;
    left: auto;
    margin-top: 10px;
    margin-right: -10px;
}

/* Utility classes */
.bg-gray-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.shadow-md {
    box-shadow: none !important;
}

.logo-size-lg {
    width: 120px;
    height: 120px;
}

/* =============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================= */

/* Mobile devices (up to 768px) */
@media (max-width: 768px) {
    /* Property sidebar full width on mobile */
    .property-sidebar,
    .sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* Sidebar logo adjustment */
    #sidebar-logo {
        width: 100px;
    }
    
    /* Search functionality mobile styles */
    #search-container {
        display: none;
        position: absolute;
        top: 90px;
        left: 50%;
        transform: translateX(-50%);
        width: 90% !important;
        max-width: 350px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-radius: 25px;
        background-color: #fff;
    }
    
    #search-container.active,
    #menu-toggle-01 {
        display: block;
    }
    
    #menu-toggle {
        display: none;
    }
    
    /* Search toggle button visibility */
    #search-toggle-button {
        display: block !important;
    }
    
    /* Search results mobile optimization */
    #search-results {
        max-height: 200px;
    }

    
    #top-nav {
        justify-content: flex-start;
    }
    
    /* Animation slider mobile width */
    #top-slider {
        width: 60%;
        max-width: 300px;
    }
}

/* Tablet devices (768px to 1024px) */
@media (max-width: 1024px) {
    #search-container {
        width: 90%;
        max-width: 300px;
    }
}


/* Slide down animation for mobile search */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}