body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    color: #444;
    border-top: 2px solid #ddd;
    text-align: center;
    padding-top: 30px;
    margin-bottom: 20px;
}

.input-section {
    margin-bottom: 30px;
    text-align: center;
}

.input-group {
    display: inline-block;
    margin: 0 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input,
select,
button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 10px;
}

button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    margin-left: 10px;
}

button:hover {
    background-color: #0056b3;
}

.results {
    display: none;
    margin-top: 30px;
}

.week-info {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.weather-section {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background-color: #f0f8ff;
}

.weather-section h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.weather-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.weather-item {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.weather-temp {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.weather-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.holiday-section {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.holiday-section h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.holiday-item {
    background-color: #f8f9fa;
    margin: 10px 0;
    padding: 12px;
    border-left: 4px solid #007bff;
    border-radius: 0 4px 4px 0;
}

.holiday-date {
    font-weight: bold;
    color: #dc3545;
}

.holiday-name {
    font-size: 16px;
    margin: 5px 0;
}

.holiday-scope {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.holiday-country {
    font-size: 14px;
    color: #007bff;
    font-weight: bold;
    margin: 5px 0;
}

.no-holidays {
    color: #28a745;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background-color: #d4edda;
    border-radius: 4px;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.loading {
    color: #007bff;
    text-align: center;
    padding: 10px;
    font-style: italic;
}

/* Add these styles to your existing CSS */

.nearest-regions-info {
    margin: 15px 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.regions-details {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.regions-details summary {
    padding: 12px 15px;
    background: #e9ecef;
    cursor: pointer;
    font-weight: bold;
    color: #495057;
    border-radius: 8px 8px 0 0;
    user-select: none;
}

.regions-details summary:hover {
    background: #dee2e6;
}

.regions-details[open] summary {
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #dee2e6;
}

.regions-list {
    padding: 15px;
    background: white;
}

.region-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    align-items: center;
}

.region-item:last-child {
    margin-bottom: 0;
}

.region-name {
    font-weight: bold;
    color: #333;
}

.region-code {
    font-family: monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    text-align: center;
}

.region-country {
    color: #6c757d;
    font-size: 0.9em;
    text-transform: capitalize;
}

.region-distance {
    color: #28a745;
    font-weight: bold;
    font-size: 0.85em;
    text-align: right;
}

.nearest-region-holiday {
    background: linear-gradient(135deg, #fff8e1, #f3e5f5);
    border: 2px solid #ff9800;
    position: relative;
    transform: scale(1.01);
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.2);
}

.nearest-region-badge {
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    margin-top: 8px;
    display: inline-block;
}

.holiday-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.holiday-distance {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: bold;
    white-space: nowrap;
}

.holiday-item {
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {
    .region-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5px;
    }
    
    .holiday-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}