
a {
    text-decoration: none
}

:root {
    --purple: #9D7EF6;
    --light-purple: #F1ECFF;
}

body {
    background: #f5f5f5;
    color: #333;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.app {
    position: relative;
    max-width: 100%;
    height: 100vh;
    margin: 0 auto;
    background: white;
    overflow: hidden;
}

.header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 1rem;
    background: transparent;
    z-index: 1000;
    display: flex;
    align-items: top;
    gap: 1rem;
}

.menu-button,
.user-button {
    width: 40px;
    height: 42px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

}

.menu-button {
    font-size: 1.5rem;
    color: #666;

}



.user-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-bar {
    flex: 1;
    position: relative;
    box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 0px;
    border-radius: 5px;
    background-color: #fff;
    border-radius: 15px;
    width: calc(100% - 248px);
}

.search_input {
    width: calc(100% - 90px);
    padding: 8px;
    border: none;
    margin: 5px 0 5px 0;
    outline: none;
    font-size: 16px;
}

.grey {
    color: #666;
}

.icon_search {
    margin-bottom: -7px;
    margin-left: 10px;
}

.icon_locate {
    margin-bottom: -7px;
    margin-left: 10px;
    width: 20px;
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.map-container {
    height: 100vh;
}

#map {
    height: 100%;
}

.categories {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    z-index: 1000;
}

.category {
    padding: 0.5rem 1rem;
    background: white;
    border: none;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 0.9rem;
}

.category.active {
    background: var(--purple);
    color: white;
}

/* Overlay pour vue détaillée */
.shop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.shop-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Détails de la boutique */
.shop-details {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 420px;
    margin: 0 auto;
    background: white;
    border-radius: 10px 10px 0 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    height: 335.562px;
}

.shop-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.shop-close:hover {
    background: #eee;
}

.shop-details.active {
    transform: translateY(0);
}

.shop-header {
    /*display: flex;*/
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    min-height: 60px;
}


.shop-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}


.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    background: var(--light-purple);
    color: var(--purple);
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.shop-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.shop-gallery {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.shop-gallery img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.shop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.shop-info {
    display: flex;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.8rem;
}

.directions-button {
    padding: 0.5rem 1rem;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


#loading_info {
    text-align: center;
    padding: 150px 10px 150px 10px;
}

/* Overlays des menus latéraux */
.side-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1900;
    /*backdrop-filter: blur(1px);*/
}

#menuSidebar {
    width: 80%;
}

#profileSidebar {
    width: 80%;
}


.side-overlay.active {
    opacity: 1;
    visibility: visible;

}

/* Menu latéral gauche */
.sidebar-left {
    position: fixed;
    border-radius: 0px 10px 10px 0;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 310px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 2rem 1.5rem;
}

.sidebar-left.active {
    left: 0;
}

/* Menu latéral droit (profil) */
.sidebar-right {
    position: fixed;
    border-radius: 10px 0px 0px 10px;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 310px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
}

.sidebar-right.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.user-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.user-email {
    color: #666;
    margin-top: 0.5rem;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.logout {
    position: absolute;
    bottom: 2rem;
    left: 1.5rem;
    right: 1.5rem;
    padding: 1rem;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}


/* Ajout du style pour l'indicateur GPS */
.gps-signal {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gps-signal svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.gps-signal.high {
    color: #4CAF50;
}

.gps-signal.medium {
    color: #FFC107;
}

.gps-signal.low {
    color: #F44336;
}

.city {
    cursor: pointer;
    margin: 10px 10px 10px 35px;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* Styles for the GPS signal panel */
.gps-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    /*backdrop-filter: blur(1px);*/
}

.gps-overlay.active {
    opacity: 1;
    visibility: visible;
}


.gps-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    max-width: 420px;
    margin: 0 auto;
    background: white;
    border-radius: 10px 10px 0 0;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: 600px;

}

.gps-panel.active {
    transform: translateY(-100%);
}

.gps-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.gps-panel-title {
    font-size: 1.2rem;
    font-weight: 500;
}

.gps-panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.gps-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gps-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.gps-info-label {
    color: #666;
}

.gps-info-value {
    font-weight: 500;
}

.filters-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 1000;
}

.filter-input-container {
    display: none;
}

.filters-wrapper {
    max-width: 420px;
    margin: 0 auto;

}


.filter-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    font-size: 0.9rem;
    outline: none;
}

.filter-input:focus {
    border-color: var(--purple);
}

.filter-add-btn {
    padding: 0.5rem 1rem;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-add-btn:hover {
    background: #8b6ce5;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;

}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px;
    background: var(--light-purple);
    color: var(--purple);
    border-radius: 20px;
    font-size: 16px;
    text-align: center;
}

.filter-remove {
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s;
}

.filter-remove:hover {
    background: rgba(0, 0, 0, 0.1);
}