:root {
    --primary-color: #4da6ff; /* A lighter, more vibrant blue for a dark theme */
    --secondary-color: #e0e0e0; /* Light gray for text */
    --accent-color: #ff6b6b; /* A brighter red for alerts and highlights */
    --background-color: #2c3e50; /* A deep, professional blue-gray for the background */
    --card-background: #34495e; /* A slightly lighter shade for content boxes */
    --border-color: #556a81;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header Styling */
.page-header {
    width: 100%;
    background-color: var(--card-background);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container {
    height: auto;
    margin-bottom: 5px;
}

.logo {
    height: auto;
    width: 200px;
}

.page-title {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

p {
    text-align: center;
    max-width: 800px;
    padding: 0 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

#map {
    height: 400px;
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    overflow: hidden;
}

.info-box {
    text-align: center;
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.info-box h4 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.search-container {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#search-input {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: 90%;
    max-width: 300px;
    margin-bottom: 10px;
    background-color: #465a71;
    color: var(--secondary-color);
}

#search-btn, #find-me-btn {
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 90%;
    max-width: 300px;
}

#search-btn {
    background-color: var(--primary-color);
}

#search-btn:hover {
    background-color: #3b88c4;
}

#find-me-btn {
    background-color: var(--accent-color);
    margin-top: 10px;
}

#find-me-btn:hover {
    background-color: #e55a5a;
}

.county-highlight {
    fill: var(--accent-color);
    fill-opacity: 0.7;
    stroke: #ff3333;
    stroke-width: 3;
}

/* New CSS for bordering county labels */
.bordering-county-label {
    background-color: var(--card-background);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.9rem; /* Increased font size */
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.bordering-county-label span {
    display: block;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .page-header {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px 40px;
    }

    .logo-container {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .page-title {
        text-align: left;
    }

    .search-container {
        flex-direction: row;
        justify-content: center;
    }
    
    #search-input {
        width: 60%;
        max-width: 400px;
        margin-right: 10px;
        margin-bottom: 0;
    }

    #search-btn, #find-me-btn {
        width: auto;
        max-width: none;
    }
}