:root {
    /* color tokens */
    --bs-link-color: #ff7300;
    --bs-link-hover-color: #ff7300;
    --dt-row-selected: 255, 115, 0;

    /* other tokens */
    --color-bg-light: #f5f5f5;
    --color-border-light: #eee;
    --color-border-lighter: #ddd;
    --color-white: #fff;
    --color-blue: #007bff;
    --color-secondary: #6c757d;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .1);
    --shadow-lg: 0 -4px 20px rgba(0, 0, 0, .25);
    --duration-fast: .2s;
    --duration-medium: .3s;
    --timing-ease: ease-in-out;
    --z-sheet: 2000;
    --z-always-visible: 2001;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
#map {
    height: 100%;
    width: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    background: var(--color-bg-light);
}

#map {
    position: absolute;
    top: calc(-1 * var(--safe-area-top));
    right: calc(-1 * var(--safe-area-right));
    bottom: calc(-1 * var(--safe-area-bottom));
    left: calc(-1 * var(--safe-area-left));
}

.sidebar-tabs>li.active,
.sidebar-tabs>ul>li.active,
.sidebar-header {
    background-color: var(--bs-link-color);
}

@media not (min-width: 768px) {
    .sidebar {
        font-size: small;
    }

    .sidebar.sidebar-top:not(.collapsed),
    .sidebar.sidebar-bottom:not(.collapsed) {
        height: 50%;
    }

    .sidebar-top:not(.collapsed)~.sidebar-map .leaflet-top {
        top: calc(50% - 20px);
    }
}


.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-tab {
    padding: 8px 16px;
    border: 2px solid var(--color-blue);
    border-radius: 20px;
    background: var(--color-white);
    color: var(--color-blue);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.filter-tab.active {
    background: var(--color-blue);
    color: var(--color-white);
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--duration-fast);
}

.location-item:hover {
    transform: translateY(-2px);
}

.location-item:nth-child(even) {
    background: #f8f9fa;
}

.location-info {
    flex: 1;
    margin-left: 15px;
}

.location-name {
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.location-address {
    color: #666;
    font-size: 14px;
}

.location-icon {
    width: 30px;
    height: 30px;
    background: var(--color-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
}

.info-screen {
    display: none;
    padding: 20px;
}

.info-screen.active {
    display: block;
}

.info-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.info-text {
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.info-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--duration-fast);
}

.action-btn.primary {
    background: var(--color-blue);
    color: var(--color-white);
}

.action-btn.secondary {
    background: var(--color-secondary);
    color: var(--color-white);
}

.back-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--color-blue);
    margin-bottom: 15px;
}

.always-visible {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: var(--z-always-visible);
    background: var(--color-white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
