body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #121212;
    color: #e0e0e0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header img {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 22px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    width: 100%;
}

input[type="text"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 16px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    outline: none;
    width: 100%;
}

input[type="text"]::placeholder {
    color: #888;
}

input[type="text"]:focus {
    border-color: #ff6900;
}

select {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff6900' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

select:focus {
    border-color: #ff6900;
}

button[type="submit"] {
    padding: 12px 24px;
    background-color: #ff6900;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

button[type="submit"]:hover {
    background-color: #e05e00;
}

h2 {
    color: #ff6900;
    font-size: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.result-count {
    font-size: 14px;
    color: #888;
    font-weight: normal;
}

.results-item {
    background-color: #252525;
    border: 1px solid #333;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.results-item:hover {
    border-color: #ff6900;
}

.results-item p {
    margin: 4px 0;
    font-size: 14px;
    color: #ccc;
}

.results-item p strong {
    color: #ff6900;
}

.result-name {
    font-size: 15px;
    font-weight: bold;
    color: #ffffff !important;
    margin-bottom: 6px !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.distance-badge {
    font-size: 11px;
    font-weight: normal;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #aaa;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.result-number {
    display: inline-block;
    background-color: #ff6900;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 6px;
}

.results-item a {
    color: #ff6900;
    text-decoration: none;
    word-break: break-all;
}

.results-item a:hover {
    text-decoration: underline;
}

.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 30px;
}

.error-message {
    color: #ff4444;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Google autocomplete dropdown dark styling */
.pac-container {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.pac-item {
    background-color: #2a2a2a;
    color: #ccc;
    border-top: 1px solid #333;
    padding: 8px 12px;
    cursor: pointer;
}

.pac-item:hover {
    background-color: #333;
}

.pac-item-query {
    color: #ffffff;
}

.pac-matched {
    color: #ff6900;
}
