html,
body
{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    overflow:hidden;
    font-family:Arial,sans-serif;
}


#map
{
    position:absolute;
    left:0;
    top:0;
    right:0;
    bottom:28px;
    height:100%;
}

#statusbar
{
    position:absolute;
    top:10px;
    left:50%;
    transform:translateX(-50%);
    z-index:30;
    padding:5px 10px;
    background:rgba(255,255,255,0.9);
    border-radius:4px;
    box-shadow:0 1px 4px rgba(0,0,0,0.25);
    white-space:nowrap;
}

.maplibregl-popup-content
{
    max-width:350px;
    font-size:14px;
}


.popup table
{
    border-collapse:collapse;
}


.popup td
{
    padding:3px 6px;
    vertical-align:top;
}


.language-selector-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: white;
    padding: 5px;
    border-radius: 4px;
}


.map-control-button
{
    position:absolute;
    z-index:30;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:5px;
    border:1px solid rgba(0,0,0,0.2);
    border-radius:4px;
    background:rgba(255,255,255,0.92);
    cursor:pointer;
    box-shadow:0 1px 4px rgba(0,0,0,0.25);
}


#layer-button
{
    position:absolute;
    box-sizing:border-box;
    top:10px;
    right:10px;
}


#language-button
{
    position:absolute;
    box-sizing:border-box;
    top:56px;
    right:10px;
}

#permalink-button
{
    position:absolute;
    box-sizing:border-box;
    top:102px;
    right:10px;
}

#info-button
{
    position:absolute;
    box-sizing:border-box;
    top:148px;
    right:10px;
}

.map-control-button img
{
    display:block;

    width:32px;
    height:32px;

    object-fit:contain;
}

.map-control-button:hover
{
    background:white;
}


.search-control
{
    float:left;
    clear:none;
    display:flex;
    margin:10px 0 0 10px;
    background:white;
    border-radius:4px;
    box-shadow:0 1px 4px rgba(0,0,0,0.25);
    overflow:hidden;
}


.search-control input
{
    width:220px;
    height:40px;
    box-sizing:border-box;
    padding:0 10px;
    border:0;
    outline:none;
    font-size:14px;
}


.search-control button
{
    width:40px;
    height:40px;
    padding:0;
    border:0;
    border-left:1px solid rgba(0,0,0,0.15);
    background:white;
    cursor:pointer;
    font-size:16px;
}


.search-control button:hover
{
    background:#f0f0f0;
}


.search-control button:disabled
{
    opacity:0.5;
    cursor:default;
}


#map-loading-indicator {
    position: absolute;
    left: 10px;
    width: 29px;
    height: 29px;
    pointer-events: none;
    display: none;
}

.map-loading-spinner {
    width: 18px;
    height: 18px;
    margin: 5px;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-top-color: #3388ff;
    border-radius: 50%;
    animation: map-loading-spin 0.8s linear infinite;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

@keyframes map-loading-spin {
    to {
        transform: rotate(360deg);
    }
}


#app-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    padding: 12px 18px;
    border-radius: 4px;
    background: rgba(40, 40, 40, 0.5);
    color: white;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#app-toast.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}

