/* 
 * results.css - Search Results UI Components 
 * (Tasks 31-40)
 */

/* Task 31: Flight Result Card */
.result-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

/* Task 38: Hover elevation effects */
.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.flight-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.airline-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #eee; /* Placeholder for Task 34 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
}

/* Task 33: Price display dynamic sizing */
.price-display {
    text-align: right;
}
.price-display .currency {
    font-size: 1.2rem;
    font-weight: 500;
}
.price-display .amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Task 35: View Details accordion */
.details-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
}
.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0;
}
.details-content.open {
    max-height: 500px;
    padding-top: 1rem;
}

/* Task 36: Skeleton loaders */
.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, rgba(229,231,235,0.8) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite linear;
    border-radius: 4px;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

/* Task 37: Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}
.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Task 32: Hotel Result Card with Carousel */
.hotel-card {
    display: flex;
    overflow: hidden;
    padding: 0;
}
.hotel-images {
    width: 300px;
    background: #ccc;
    position: relative;
}
.hotel-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hotel-details {
    padding: 1.5rem;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .hotel-card {
        flex-direction: column;
    }
    .hotel-images {
        width: 100%;
        height: 200px;
    }
    .flight-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .price-display {
        text-align: left;
    }
}
