:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --bg: #f4f7f6;
    --white: #ffffff;
    --gray: #ccc;
    --red: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 0;
}

header {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-section {
    margin-bottom: 2rem;
}

#searchInput {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.results-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
}

.result-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.result-item:hover { background: #f0f4f8; }

.map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.control-group span {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.control-group button {
    padding: 0.6rem 1rem;
    background: white;
    border: 1px solid var(--primary);
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.control-group button:hover {
    background: var(--accent);
    color: white;
}

.map-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.map-container {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 400px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.placeholder-msg {
    color: #888;
    padding-top: 150px;
}

.info-box {
    display: flex;
    justify-content: space-around;
    background: #f0f4f8;
    padding: 1rem;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-box p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.hidden { display: none; }

svg {
    width: 100%;
    height: 100%;
    max-height: 70vh; /* Neleidžiame žemėlapiui užimti viso ekrano aukščio mobiliajame */
}

/* Mobiliųjų įrenginių pritaikymas */
@media (max-width: 600px) {
    header {
        padding: 1.5rem 0.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main {
        margin: 1rem auto;
    }

    .map-controls {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .control-group {
        width: 100%;
        text-align: center;
    }

    .control-group button {
        padding: 0.8rem 1.2rem; /* Didesni mygtukai patogiam paspaudimui pirštu */
        margin: 2px;
    }

    .map-section {
        padding: 1rem 0.5rem;
    }

    .map-container {
        min-height: 300px;
    }

    .info-box {
        flex-direction: column;
        text-align: left;
    }
}

.highlight {
    fill: var(--red) !important;
    stroke: #c0392b !important;
    stroke-width: 2px;
}
