﻿/* Card Container with Interactivity Styles */
.flight-card {
/*    font-family: 'Inter', 'Segoe UI', sans-serif;*/
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 14px; /* Consistent padding step for multiple cards */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

    /* Hover Effect: Smooth Elevation Lift & Shadow Definition */
    .flight-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border-color: #cbd5e1;
    }

/* =========================
   Airline Row - Responsive 3 Columns
========================= */

.airline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* Common column style */
.airline-col {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Airline Name Column */
.airline-name-col {
    flex: 2;
}

/* Sector Column */
.sector-col {
    flex: 2;
    justify-content: center;
}

/* Days Column */
.days-col {
    flex: 1;
    justify-content: flex-end;
}

/* Icon */
.airplane-icon {
    color: #319795;
    font-size: 18px;
    flex-shrink: 0;
}

/* Text Styles */
.airline-name {
    font-weight: 800;
    font-size: 15px;
    color: #334155;
    letter-spacing: 0.3px;
}

.sector-text {
    font-size: 15px;
    font-weight: 650;
    color: #45a809;
    white-space: nowrap;
}
.days-text {
    font-size: 15px;
    font-weight: 650;
    color: #2072d5;
    white-space: nowrap;
}

.flightno-text {
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}


/* Grid Framework Splitting Columns */
.card-body-grid {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    align-items: start;
    gap: 32px;
}

/* Column Rules */
.route-column {
    display: flex;
    flex-direction: column;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.airport-codes {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.flight-date {
    font-size: 15px;
    font-weight: 700;
    color: #dd6b20;
}


.flight-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.departure-badge {
    background-color: #319795;
}

.return-badge {
    background-color: #b7791f;
}

/* Enhanced Text Container Windows */
.timeline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.time-block {
    display: flex;
    flex-direction: column;
}

    .time-block strong {
        font-size: 18px;
        color: #0f172a;
        line-height: 1.2;
    }

    .time-block span {
        font-size: 12px;
        color: #475569;
        font-weight: 700;
        margin-top: 2px;
    }

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

.dashed-line {
    flex-grow: 1;
    border-bottom: 2px dashed #cbd5e1;
    margin: 0 16px;
}

/* Middle Status Elements */
.center-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
}

.seats-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: #fffaf0;
    border: 2.5px solid #dd6b20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .seats-circle .count {
        font-size: 26px;
        font-weight: 900;
        color: #dd6b20;
        line-height: 1;
    }

    .seats-circle .label {
        font-size: 10px;
        font-weight: 800;
        color: #dd6b20;
        margin-top: 3px;
        letter-spacing: 0.5px;
    }

.price-display {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
}

/* Horizontal Line Breakdown Separator */
.action-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 16px 0 12px 0;
    width: 100%;
}

/* Form Action Input Block Alignment */
.booking-action-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .input-wrapper label {
        font-size: 13px;
        font-weight: 700;
        color: #475569;
    }

.seat-input {
    width: 54px;
    padding: 6px 4px 6px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    background-color: #ffffff;
}

    .seat-input:focus {
        border-color: #b7791f;
        box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.15);
    }

.book-now-btn {
    background: transparent;
    border: 1.5px solid #b7791f;
    color: #b7791f;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

    .book-now-btn:hover {
        background-color: #b7791f;
        color: #ffffff;
    }

.search-row-round {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 20px;
    margin-top: 0;
    margin-bottom: 16px;
    box-sizing: border-box;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.row-heading {
    margin: 0;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.row-input-round {
    padding: 6px 16px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 50px;
    width: 50%;
    outline: none;
}



/* =========================
   TABLE STYLE
   ========================= */

.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #333;
    background: #fff;
}

    .table-modern thead {
        background: #2c3e50;
        color: #fff;
    }

        .table-modern thead th {
            padding: 8px;
            font-size: 12px;
            font-weight: 600;
            border: 1px solid #dcdcdc;
        }

    .table-modern tbody td {
        padding: 6px 8px;
        font-size: 12px;
        border: 1px solid #e5e5e5;
    }

    .table-modern tfoot td {
        padding: 6px 8px;
        font-size: 12px;
        border: 1px solid #e5e5e5;
        background: #2c3e50;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
    }

    .table-modern tbody tr:nth-child(even) {
        background: #f8f9fb;
    }

/* =========================
   INPUTS SAME SIZE AS TABLE
   ========================= */

.table-input {
    width: 100%;
    height: 20px !important;
    padding: 4px 6px;
    font-size: 8px;
    color: #333;
    border: 2px solid #cfd6dd;
    border-radius: 1px !important;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

    .p-table-input:focus {
        border-color: #4a90e2;
        box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
    }

/* Small compact select */
.table-select {
    width: 100%;
    height: 28px;
    padding: 4px 6px;
/*    font-family: "Segoe UI", Tahoma, sans-serif;*/
    font-size: 12px;
    border: 1px solid #cfd6dd;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

/* Small textarea */
.table-textarea {
    width: 100%;
    min-height: 60px;
    padding: 6px;
    /*font-family: "Segoe UI", Tahoma, sans-serif;*/
    font-size: 12px;
    border: 1px solid #cfd6dd;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}


/* Responsive Stack Adjustments for Tablets & Mobile views */
@media (max-width: 820px) {
    .card-body-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .center-status {
        padding: 16px 0;
        border-top: 1px dashed #e2e8f0;
        border-bottom: 1px dashed #e2e8f0;
    }

    .booking-action-form {
        justify-content: space-between;
    }

    .airline-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .airline-name-col,
    .sector-col,
    .days-col {
        width: 100%;
        justify-content: flex-start;
    }

    .days-col {
        padding-top: 2px;
        padding-bottom: 2px;
    }
}

/*
.package-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

.package-hotels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.package-hotel-card {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    transition: .2s;
}

.package-hotel-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

.package-hotel-thumb {
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.package-hotel-info {
    flex: 1;

}

.package-hotel-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.package-hotel-nights {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.package-hotel-city {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.package-prices {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.package-price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
}

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

    .package-price-item strong {
        color: #14532d;
    }

@media(max-width:820px) {

    .package-section {
        grid-template-columns: 1fr;
    }

    .package-hotels {
        grid-template-columns: 1fr;
    }
}*/

/* Master Layout Container */
.package-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns of exactly equal width */
    gap: 16px;
    align-items: stretch; /* Ensures all 3 boxes are exactly the same height */
}

/* Transparent pass-through so hotel cards align to the master grid */
.package-hotels {
    display: contents;
}

/* Enhanced Hotel Card */
.package-hotel-card {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden; /* Clips the image corners to match the card's border-radius */
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    height: 120px; /* Locked explicit height */
}

    .package-hotel-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    }

/* Full-scale Edge-to-Edge Thumbnail */
.package-hotel-thumb {
    width: 40%;
    min-width: 40%;
    height: 100%; /* Spans 100% of the parent card height */
    object-fit: cover; /* Keeps image aspect ratio without stretching */
    display: block;
}

/* Typography Layout Box */
.package-hotel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px; /* Internal spacing instead of card padding */
    min-width: 0;
}

/* Highly Prominent Bold City Label */
.package-hotel-city {
    font-size: 13px;
    font-weight: 700; /* Made Bold */
    color: #334155; /* Darker slate color for high visibility */
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Styled Bold Nights Counter etc with half-moon layout rules */
.package-hotel-narration {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700; /* Made Bold */
    color: #475569; /* Darker contrast color */
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Bold and Clean Title */
.package-hotel-title {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 800; /* Extra bold highlight */
    color: #0f172a;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Truncates long titles perfectly after 2 lines */
    -webkit-box-orient: vertical;
}

/* Optimized Pricing Block (Matches Hotel Card Height Exactly) */
.package-prices {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Formats the 4 items into a tidy 2x2 grid */
    box-sizing: border-box;
    height: 120px; /* Matched explicit height */
}

/* Individual Grid Price Box */
.package-price-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 14px;
    font-size: 13px;
    box-sizing: border-box;
}

    /* Internal grid dividing borders */
    .package-price-item:nth-child(odd) {
        border-right: 1px solid #f1f5f9;
    }

    .package-price-item:nth-child(1),
    .package-price-item:nth-child(2) {
        border-bottom: 1px solid #f1f5f9;
    }

    /* Room Category Label (Bolded) */
    .package-price-item span {
        font-size: 12px;
        font-weight: 700; /* Made bold for Sharing, Quad, Triple, Double */
        color: #475569;
        margin-bottom: 2px;
    }

    /* Price Bold Text */
    .package-price-item strong {
        color: #166534;
        font-size: 14px;
        font-weight: 700;
    }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .package-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .package-section {
        grid-template-columns: 1fr;
    }

    .package-hotel-card,
    .package-prices {
        height: 110px; /* Uniformly scales down height slightly for mobile layouts */
    }
}
