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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    gap: 0;
}

.map {
    flex: 1;
    min-height: 0;
    position: relative;
}

.floor-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.floor-btn {
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(44, 62, 80, 0.3);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.floor-btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(44, 62, 80, 0.6);
}

.floor-btn.active {
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    border-color: rgba(52, 152, 219, 0.8);
}

.route-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    max-width: 300px;
    backdrop-filter: blur(4px);
}

.selection-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eaf4fb;
    border: 1px solid #aed6f1;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #1a5276;
}

#selection-info {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selection-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.selection-actions button {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.selection-actions button:hover {
    background: #1a5276;
}

.route-panel h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 12px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.route-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.route-form input[type="text"],
.route-form button {
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.route-form input[type="text"] {
    background-color: white;
    color: #2c3e50;
    width: 100%;
}

.route-form input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
}

.search-wrapper {
    position: relative;
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #bdc3c7;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 200;
    max-height: 160px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.search-result-item {
    padding: 7px 12px;
    font-size: 12px;
    color: #2c3e50;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #ebf5fb;
}

.route-form #find-route-btn:disabled {
    background-color: #95a5a6;
    border-color: #95a5a6;
    cursor: not-allowed;
}

.route-form button {
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.route-form #find-route-btn {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.route-form #find-route-btn:hover {
    background-color: #2980b9;
}

.route-form #clear-route-btn {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.route-form #clear-route-btn:hover {
    background-color: #bdc3c7;
}

#route-info {
    margin-top: 8px;
    padding: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    font-size: 12px;
    color: #2c3e50;
    min-height: 30px;
}

/* OpenLayers customization */
.ol-attribution {
    background-color: rgba(255, 255, 255, 0.7);
}

.ol-control {
    background-color: rgba(255, 255, 255, 0.8);
}

.ol-zoom {
    top: 20px;
    left: 20px;
}
