:root {
    --primary-color: #0078d4;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --border-color: #ddd;
    --error-color: #d9534f;
    --success-color: #5cb85c;
}
body, html { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text-color); }
#app { display: flex; height: 100vh; }
#sidebar { width: 350px; padding: 1rem 1.5rem; box-shadow: 2px 0 5px rgba(0,0,0,0.1); z-index: 1000; background: white; overflow-y: auto; flex-shrink: 0; }
#map { flex-grow: 1; height: 100%; background-color: var(--secondary-color); }
h1 { font-size: 1.5rem; color: var(--primary-color); margin-top: 0; }
p { font-size: 0.9rem; line-height: 1.4; }
.form-group { margin-bottom: 1rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: bold; font-size: 0.9rem; }
input[type="text"], select { width: 100%; padding: 0.6rem; border: 1px solid var(--border-color); border-radius: 4px; box-sizing: border-box; font-size: 16px; }
.input-with-btn { display: flex; gap: 0.5rem; }
.input-with-btn input { flex: 1; min-width: 0; }
.input-with-btn button { width: auto; padding: 0.5rem 0.75rem; font-size: 1.1rem; flex-shrink: 0; }
.hint { font-size: 0.75rem; color: #666; margin-top: 0.25rem; display: block; }
button { width: 100%; padding: 0.75rem; background-color: var(--primary-color); color: white; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; transition: background-color 0.2s; }
button:hover { background-color: #005a9e; }
button:disabled { background-color: #a0a0a0; cursor: not-allowed; }
#results { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
#results-summary { background-color: var(--secondary-color); padding: 0.75rem; border-radius: 4px; }
.parking-options { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.parking-option { display: flex; flex-direction: column; padding: 0.6rem; background: white; border: 2px solid var(--border-color); border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.parking-option:hover { border-color: var(--primary-color); background: #f0f7ff; }
.parking-option.selected { border-color: var(--primary-color); background: #e3f2fd; }
.parking-header { display: flex; align-items: center; gap: 0.4rem; }
.parking-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.parking-type { font-size: 0.7rem; text-transform: uppercase; color: #666; font-weight: bold; }
.parking-name { font-weight: 500; margin: 0.25rem 0; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.parking-distance { font-size: 0.85rem; color: var(--primary-color); font-weight: 600; }
.hidden { display: none; }
#spinner { border: 4px solid rgba(0, 0, 0, 0.1); width: 36px; height: 36px; border-radius: 50%; border-left-color: var(--primary-color); animation: spin 1s ease infinite; margin: 2rem auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Mobile responsive */
@media (max-width: 768px) {
    #app { flex-direction: column; height: auto; min-height: 100vh; }
    #sidebar { width: 100%; box-sizing: border-box; padding: 1rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1); order: 1; }
    #map { width: 100%; height: 50vh; min-height: 300px; order: 2; }
    h1 { font-size: 1.3rem; }
    p { font-size: 0.85rem; margin-bottom: 1rem; }
    .form-group { margin-bottom: 0.75rem; }
    #results { margin-top: 1rem; }
    #results-summary { padding: 0.5rem; }
    .parking-options { gap: 0.4rem; }
    .parking-option { padding: 0.5rem; }
}

/* Extra small screens */
@media (max-width: 400px) {
    #sidebar { padding: 0.75rem; }
    h1 { font-size: 1.2rem; }
    button { padding: 0.6rem; }
}

/* Feedback button */
#feedback-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #6366f1;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    z-index: 2000;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
#feedback-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}
@media (max-width: 768px) {
    #feedback-btn {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 1rem auto;
        order: 3;
    }
}
