/* Basic styling for the climb recommendation app */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #2c3e50;
    font-size: 2.5em;
}

main {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 30px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.input-section {
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-help-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
    color: #7f8c8d;
    font-style: italic;
}

.filters-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.filters-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

select:focus {
    outline: none;
    border-color: #3498db;
}

@media (max-width: 600px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 2px solid #3498db;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #ebf5fb;
}

.autocomplete-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 1.05em;
}

.autocomplete-item-details {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.autocomplete-item-details span {
    white-space: nowrap;
}

button[type="submit"] {
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

button[type="submit"]:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.results-section {
    margin-top: 30px;
}

#loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.error-message {
    color: #e74c3c;
    background-color: #fadbd8;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
}

#recommendations-list {
    display: grid;
    gap: 15px;
}

.recommendation-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.recommendation-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommendation-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.recommendation-details {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    color: #7f8c8d;
}

.recommendation-score {
    font-weight: 600;
    color: #27ae60;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    main {
        padding: 20px;
    }
}

