.enhanced-flight-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.enhanced-flight-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #4D73FC;
    transform: translateY(-2px);
}

.flight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.airline-info img {
    border-radius: 8px;
    object-fit: contain;
}

.airline-details {
    display: flex;
    flex-direction: column;
}

.airline-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.airline-code {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.flight-price {
    text-align: right;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #4D73FC;
    margin-bottom: 4px;
}

.price-label {
    font-size: 12px;
    color: #6b7280;
}

.flight-route {
    margin-bottom: 20px;
}

.route-segment {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.time-code {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.code {
    font-size: 18px;
    font-weight: 600;
    color: #4D73FC;
}

.airport-name {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.route-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.duration-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.duration-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.route-line {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    height: 2px;
    background: #e5e7eb;
}

.line-dot {
    width: 8px;
    height: 8px;
    background: #4D73FC;
    border-radius: 50%;
    position: absolute;
}

.line-dot:first-child {
    left: 0;
}

.line-dot:last-child {
    right: 0;
}

.stop-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -12px;
    background: white;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.flight-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.meta-item svg {
    flex-shrink: 0;
}

.flight-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.details-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.details-toggle:hover {
    border-color: #4D73FC;
    color: #4D73FC;
}

.book-btn {
    padding: 12px 32px;
    background: #4D73FC;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.book-btn:hover {
    background: #3d5fd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 115, 252, 0.3);
    color: white;
}

.flight-details-collapse {
    margin-top: 20px;
}

.flight-details-content {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.details-section {
    margin-bottom: 24px;
}

.details-section:last-child {
    margin-bottom: 0;
}

.details-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.segment-detail {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.segment-number {
    font-size: 14px;
    font-weight: 600;
    color: #4D73FC;
}

.layover {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

.segment-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.segment-origin,
.segment-destination {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.segment-time {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.segment-code {
    font-size: 16px;
    font-weight: 600;
    color: #4D73FC;
}

.segment-airport {
    font-size: 12px;
    color: #6b7280;
}

.segment-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.segment-duration {
    font-size: 12px;
    color: #6b7280;
}

.segment-line {
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    position: relative;
}

.segment-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.info-label {
    font-weight: 500;
    color: #6b7280;
}

.info-value {
    font-weight: 600;
    color: #1a1a1a;
}

@media (max-width: 1024px) {
    .enhanced-flight-card {
        padding: 20px;
    }
    
    .flight-card-header {
        flex-wrap: wrap;
    }
    
    .route-segment {
        gap: 16px;
    }
    
    .time {
        font-size: 20px;
    }
    
    .code {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .enhanced-flight-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .flight-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    
    .airline-info {
        width: 100%;
        gap: 12px;
    }
    
    .airline-info img {
        width: 50px;
        height: 50px;
    }
    
    .airline-name {
        font-size: 16px;
    }
    
    .airline-code {
        font-size: 12px;
    }
    
    .flight-price {
        text-align: left;
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid #e5e7eb;
    }
    
    .price-amount {
        font-size: 24px;
    }
    
    .route-segment {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .time-code {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .time {
        font-size: 20px;
    }
    
    .code {
        font-size: 18px;
    }
    
    .route-connector {
        order: 2;
        width: 100%;
        padding: 0 12px;
    }
    
    .route-line {
        width: 100%;
    }
    
    .flight-meta {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .meta-item {
        font-size: 13px;
    }
    
    .flight-actions {
        flex-direction: column;
        gap: 12px;
        padding-top: 16px;
    }
    
    .book-btn,
    .details-toggle {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .segment-route {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .segment-detail {
        padding: 16px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .details-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .enhanced-flight-card {
        padding: 12px;
    }
    
    .time {
        font-size: 18px;
    }
    
    .code {
        font-size: 16px;
    }
    
    .price-amount {
        font-size: 22px;
    }
    
    .airline-name {
        font-size: 14px;
    }
}

/* Fixed layout issues */
.booking-section-wrapper {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    background-color: transparent;
    padding: 0 16px;
}

.flight-offers-container {
    margin-top: 32px;
    border-radius: 20px;
    padding: 0;
}

@media (min-width: 1024px) {
    .booking-section-wrapper {
        margin-top: -160px;
    }
}

@media (max-width: 768px) {
    .booking-section-wrapper {
        margin-top: -60px;
    }
    
    .flight-offers-container {
        margin-top: 24px;
        margin-bottom: 24px;
    }
}
