
.container{
    max-width: 1280px;border-block-color: #fff;
    background-color: #fff;
    padding: 8px 16px;
    /*box-shadow: 0 10px 5px -5px rgba(0, 0, 0, 0.3);*/
    padding-top: 3px;
    padding-bottom: 0px;
}
/******************************************/

.app-header,.app-header1 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto; min-height: 80px;
    z-index: 50;
    /*display: grid;*/
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    /* padding: 8px 16px;
    box-shadow: 0 0.5px 10px rgba(0.9, 0.9, 0.9, 0.4);
    border-bottom: 1px solid #311717;*/
}

@media (max-width: 640px) {
     .connect-mobile{
         display: block !important;
     }
}

@media (min-width: 641px) {
    .connect-mobile{
             display: none ;
         }
}
/**************************************/

.search-input, .search-input1 {
    background-color: #f0f2f5 !important;
    font-size: 1.05em !important;
    color: #424b5e;
    outline: none;
    width: 105%;
        padding: 10px 0px 11px 35px;
}

.search-input::placeholder, .search-input1::placeholder {
    color: rgba(75, 85, 99, var(--tw-text-opacity)) ;
    opacity: 1;
}

.search-input:focus,.search-input1:focus {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.5);
}

.search-container:hover .search-input, .search-container:hover .search-input1 {
    background-color: #e8eaf1 !important;
}

@media (max-width: 513px) {
    .search-input, .search-input1 {
        width:100%;
    }
}


/* ==================== SEARCH COMPONENT ==================== */
.search-container {
    position: relative;
    flex: 1;
    transition: width 0.3s ease;
}

.search-input, .search-input1 {
    width: 100%;
    padding: 10px 12px 11px 36px;
    border-radius: 16px !important;
    border: 1px solid #e5e7eb;
    background-color: #f0f2f5 !important;
    font-size: 1.05em !important;
    color: #424b5e !important;
    outline: none;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.3s ease;
}

.search-input:focus, .search-input1:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px #0f8f3e;
}

.search-container .fa-search {
    font-size: 0.875rem;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 12rem;
    overflow-y: auto;
    z-index: 100;
}

.search-suggestions1 {
        top: 100px !important;
        left: 8px !important;
        width: calc(100vw - 100px) !important;
}

/* Solution CSS pure - la plus simple */
@media (max-width: 640px) {
  .search-container {
    position: relative;
    width: 100%; /* Prend toute la largeur disponible */
    display: block; /* Important pour que le width: 100% fonctionne */
  }
  
  .search-suggestions1 {
    z-index: 9999 !important;
    position: fixed !important;
    top: 100px !important;
    left: 8px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #e5e7eb !important;
    margin-top: 10px !important;
  }
  
  /* Assure que l'input a la même largeur calculée */
  .search-input1 {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* Pour tous les écrans */
.search-suggestions1 {
  z-index: 10050;
  top: 100%;
  left: 0;
  width: 100%; /* Même largeur que le parent (.search-container) */
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  box-sizing: border-box;
  overflow-y: scroll !important;

}


/* ==================== BUTTONS ==================== */
.nav-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border: 0px solid #e5e7eb;
    border-radius: 12px;
    color: #333333;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-btn:hover {
    background: #0f8f3e;
    color: #ffffff;
}

.nav-btn:hover span {
  /*  color: #ffffff !important;*/
}

.nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0f8f3e;
}

#publish-btn {
    background: #0f8f3e;
    color: #ffffff;
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    min-width: 225px !important;
}

#publish-btn:hover {
    background: #0f8f3e;
    transform: scale(1.02);
}

#publish-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0f8f3e;
}

#publish-btn i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Style spécifique pour le bouton Publier */
#publish-btn {
    background: #0f8f3e;
    color: #ffffff;
    border-radius: 16px;
    padding: 0.85rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    min-width: 225px !important;
}

#publish-btn:hover {
    background: #0f8f3e;
    transform: scale(1.02);
}

#publish-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0f8f3e;
}

#publish-btn i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Styles des boutons de navigation */
.nav-btn {
    display: flex;
    align-items: center;
    padding: 0.2rem 0.75rem; 
    background: #ffffff;
    border: 0px solid #e5e7eb;
    border-radius: 12px;
    color: #333333;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
    gap: 0px !important;
}

.mt-1 {
     margin-top: 0rem !important;
}

.nav-btn:hover {
    background: #0f8f3e;
    color: #ffffff;
}

.nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0f8f3e;
}

@media (max-width: 640px) {
    .py-3 {
        padding-top: 0px !important; 
    }
    
    .py-3 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
.pb-3 {
    padding-bottom: 0px !important;
}
    
    .px-4 {
        padding-left: 0px !important;
        padding-right: 0.3rem !important;
    }
    
    .app-header,.app-header1 {
        height: auto;
        min-height: 0px;
        padding: 8px;
        padding-top: 0px;
        padding-bottom: 2px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .brand1{
        margin-top: 0px;
    }
    
    .search-input, .search-input1 {
        padding: 6px 12px 6px 36px !important;
        font-size: 0.85rem !important;
    }
    
    .search-container .fa-search {
        font-size: 0.75rem !important;
        left: 10px;
    }
    
    #publish-btn {
        width: 97% !important;
        justify-content: center !important;
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        gap: 0.5rem !important; 
    }
    
    #publish-btn i {
        font-size: 0.875rem !important;
    }
    
    .nav-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
    
    .header-right {
        margin-top: 0px;
        justify-content: center;
        gap: 4px;
    }
    
    .nav-btn i {
        font-size: 1.1rem !important;
        margin-right: 0px !important;
        font-size: 1.1rem !important;
        margin-right: 0px !important;
        padding: 5px 0px !important;
    }
    
    .map-controls {
        gap: 0.75rem;
        bottom: 6rem;
    }
    
    .control-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .control-btn i {
        font-size: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 991px) {

    .header-left {
        flex: 1 1 100%;
        justify-content: space-between;
    }
    
    .search-container {
        min-width: 200px;
        flex: 1;
    }
    
    .header-right {
        margin-top: 8px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (min-width: 641px) and (max-width: 1025px) {
    .app-header,.app-header1  {
        flex-wrap: wrap;
        height: auto;
        min-height: 80px;
        padding: 8px 12px;
    }
    
    .header-left {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .search-container {
        max-width: 350px;
    }
    
    .header-right {
        gap: 8px;
        margin-top: 8px;
    }
}

@media (min-width: 640px) {
    .search-input, .search-input1 {
        border-radius: 16px;
    }
    
    .nav-btn {
        border-radius: 12px;
    }

    .header-left {
        width: auto;
    }
    
    .search-container {
        min-width: 250px;
        max-width: 500px;
    }
    
    .header-right {
     /*   margin-top: 0;*/
    }
}

@media (min-width: 1026px) {
    .app-header,.app-header1  {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .header-left {
        flex-wrap: nowrap;
    }
    
    .search-container {
        min-width: 300px;
        max-width: 500px;
    }
}

@media (min-width: 1391px) {
    .search-container {
        min-width: 300px;
        max-width: 500px;
    }
    
    .py-3\.5 {
    padding-top: .875rem;
    padding-bottom: .4rem !important;
}
    .search-input, .search-input1  {
       /* width: 410px !important;*/
    }
    
    .search-input:focus, .search-input1:focus {
     /*   width: auto !important;*/
    }
}

    .py-3\.5 {
    padding-bottom: .4rem !important;
    }

#search-submit, #search-submit1{
    background: #0f8f3e;
    color: #ffffff;
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    /* min-width: 225px; */
    top: 4px;
    right: 4px;   
}

 #search-submit1{
    height: 33px;
    padding: 1rem 1.3rem;
    top: 2px;
 }

#clear-search, #clear-search1{
    top: 5px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: #F7FAFC;
    border: none;
    border-radius: 12px;
    color: #E53E3E;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
}

.text-lg
 {
    line-height: 2.30rem !important;
}

.flex.items-center.gap-2.pb-3 {
    overflow: hidden;
    transition: 
        height 0.25s ease,
        margin 0.25s ease,
        padding 0.25s ease,
        opacity 0.2s ease;
}

.hide-bar {
    height: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
}

/* Force l'affichage des sous-catégories */
.category-dropdown-wrapper[style*="display: block"] .subcategories-grid {
    display: grid !important;
}

.category-dropdown-wrapper[style*="display: block"] .subcategory-link {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 640px) {
    .profile-panel{
       z-index: 555555 !important; 
    }
    #map-btn span {
        display: none;
    }
    .text-xl {
    font-size: 1.1rem !important;
    line-height: 1.3rem !important;
    }

}

/* Solution CSS pure - la plus simple */
@media (max-width: 460px) {
    .logo-text, .brand1 i{
        font-size: x-large !important;
    }
    .nav-btn i {
        margin-right: 0px !important;
        margin-right: 0px !important;
        padding: 5px 0px !important;
    }
    
    .nav-btn {
        /* padding: 6px 10px !important; */
        font-size: 0.8rem !important;
        /* padding-top: 0px !important; */
        padding: 4px !important;
        padding-top: 5px !important;
    }
}

/* Solution CSS pure - la plus simple */
@media (max-width: 402px) {
    
    .logo-text, .brand1 i{
        font-size: 21px !important;
    }
    .nav-btn i {
        margin-right: 0px !important;
        font-size: 1.1rem !important;
        margin-right: 0px !important;
        padding: 5px 0px !important;
        font-size: 1.05rem !important;        
    }
    
    .nav-btn {
        /* padding: 6px 10px !important; */
        font-size: 0.8rem !important;
        /* padding-top: 0px !important; */
        padding: 4px !important;
        padding-top: 5px !important;
    }
}

/* Dans votre fichier CSS */
.hidden.sm\\:flex.items-center.gap-2:hover .text-gray-500,
.hidden.sm\\:flex.items-center.gap-2:hover .text-gray-900,
.hidden.sm\\:flex.items-center.gap-2:hover .text-gray-600 {
    color: #ffffff !important;
}