body {
    background-color: #f0f4f8;
    font-family: 'Inter', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    min-height: 230px; /* Base minimum height for mobile */
}

@media (min-width: 640px) {
    .gradient-bg {
        min-height: 240px; /* Minimum height for small screens and up */
    }
}

@media (min-width: 1024px) {
    .gradient-bg {
        min-height: 240px; /* Minimum height for large screens and up */
    }
}

.card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #3b82f6;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#map {
    height: 300px;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    z-index: 1;
}

#takeoff-image, #landing-image {
    transition: transform 0.3s ease;
}

#takeoff-image:hover, #landing-image:hover {
    transform: scale(1.05);
}

#image-modal {
    transition: opacity 0.3s ease;
}

#modal-image {
    max-width: 100vw;
    max-height: 100vh;
}

#close-modal {
    cursor: pointer;
}

#takeoff-image-container, #landing-image-container {
    z-index: 2;
    position: relative;
}        

.airport-result {
    padding: 8px 12px;
    cursor: pointer;
}

.airport-result:hover {
    background-color: #f3f4f6;
}

.airport-code {
    font-weight: bold;
    margin-right: 8px;
}

.airport-name {
    color: #4b5563;
}

.airport-location {
    font-size: 0.875em;
    color: #6b7280;
}

.airport-select-container {
    position: relative;
    z-index: 10;
}

.airport-select-container:focus-within {
    z-index: 20;
}

#departure-results,
#arrival-results {
    position: absolute;
    width: 100%;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    max-height: 15rem;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 30;
}

.airport-result.active {
    background-color: #e5e7eb;
}

.clear-input {
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.clear-input:hover {
    color: #4a5568;
}