/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f9fafb;
    width: 100%;
    height: 100vh;
}

.map-canvas-wrapper {
    position: relative;
}

.map-canvas-wrapper #map-tools.has-icon-menu {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    pointer-events: none;
    border: 1px solid #ccc;
}

.icon-menu-tab-content {
    width: 100%;
    display: none;
    justify-content: center;
    padding: 12px 12px 0 12px;
}

/* Container */
.container {
    width: 100%;
    height: 100%;
    background-color: #f9fafb;
}

.app-wrapper {
    max-width: 448px;
    margin: 0 auto;
    height: 100%;
    background-color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Map Area */
.map-area {
    flex: 1;
    position: relative;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    color: #9ca3af;
}

/* Icon Menu Container */
.icon-menu-container {
    background-color: transparent;
    border-top: none;
    padding: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

/* Icon Menu */
.icon-menu {
    background-color: rgba(255, 255, 255, 0.92);
    /* -webkit-backdrop-filter: blur(10px); */
    /* backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb; */
    padding: 8px;
    display: inline-flex;
    gap: 4px;
    pointer-events: auto;
}

.map-canvas-wrapper #map-tools.has-icon-menu .icon-menu {
    width: 100%;
    justify-content: space-between;
}

.map-canvas-wrapper #map-tools.has-icon-menu .tab-content {
    display: none;
}

.icon-menu-tab-content .tab-content {
    width: min(720px, 100%);
    margin: 0;
    border-bottom: 1px solid #ccc;
    padding:0 10px 10px 10px;
    display: none;
}

.icon-menu-tab-content .tab-content.visible {
    display: block;
}

.icon-menu-tab-content.visible {
    display: flex;
}

@media (max-width: 991px) {
    .map-canvas-wrapper #map-tools.has-icon-menu {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    }
}

/* Menu Item (Button) */
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 70px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: transparent;
    color: #022e22;
}

.menu-item:hover {
    background-color: #f9fafb;
}

.menu-item.active {
    background-color: #f9f8f8;
    border: 1px solid #c4b581;
    padding: 10px 15px;
}

/* .menu-item.active:hover {
    background-color: #00573F;
} */

.menu-item[aria-disabled="true"],
.menu-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Menu Icon */
.menu-icon {
    width: 24px;
    height: 24px;
    stroke: #022e22;
    color: #022e22;
}

/* Menu Label */
.menu-label {
    font-size: 12px;
    margin-top: 4px;
    line-height: 1;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .app-wrapper {
        max-width: 100%;
    }
    
    .menu-item {
        min-width: 52px;
        padding: 6px 8px;
    }
    
    .icon-menu {
        padding: 6px;
        gap: 2px;
    }
}

#parkingstats.tab-pane {
    text-align: center;
    padding-top: 0!important;
}

#parkingstats ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

#parkingstats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin: 0;
    padding: 0;
    float: none;
    white-space: nowrap;
}

#parkingstats .park-legend span {
    display: inline-block;
    height: 16px;
    width: 100%;
    max-width: 180px;
    min-width: 80px;
    border-radius: 3px;
    margin: 0;
}

#parkingstats .park-legend {
    width: 100%;
    flex: 1;
}

#parkingstats li:nth-child(1),
#parkingstats li:nth-child(5) {
    flex: 0 0 auto;
}

@media (max-width: 560px) {
    #parkingstats ul {
        gap: 8px;
    }

    #parkingstats li {
        font-size: 13px;
    }
}
