/* ============================================================
   ARRIVALS PAGE - arrivals.css
   Place this file at: css/arrivals.css
   ============================================================ */

/* Last updated bar */
.arr-updated {
    font-size: 13px;
    color: #888;
    text-align: right;
    padding: 12px 0 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 14px;
}

/* Desktop column headers */
.arr-header {
    display: grid;
    grid-template-columns: 110px 1fr 140px 80px 150px;
    gap: 12px;
    padding: 0 14px 8px;
    margin-bottom: 4px;
}

.arr-header-cell {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    font-weight: 600;
}

.arr-center {
    text-align: center;
}

/* Flight list wrapper */
.arr-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.arrival-icon {
  display: inline-block;
  transform-origin: center;
  animation: landingRight 0.8s ease-out forwards;
}
.large-icon {
  font-size: 24px;
}

@keyframes landingRight {
  from {
    transform: rotate(0deg) translate(-4px, -6px);
    opacity: 0.8;
  }
  to {
    transform: rotate(25deg) translate(0, 2px);
    opacity: 1;
  }
}/* -------------------------------------------------------
   Flight card — desktop: 4-column grid
   col 1: .arr-top-row (logo + flight info)
   col 2: .arr-from    (via display:contents on .arr-mid-row)
   col 3: .arr-belt    (via display:contents on .arr-mid-row)
   col 4: .arr-status
   ------------------------------------------------------- */
.arr-card {
    display: grid;
    grid-template-columns: 1fr 140px 80px 150px;
    gap: 12px;
    /*align-items: center;*/
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 18px;
    padding: 14px;
    transition: box-shadow 0.2s ease;
}

.arr-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* Logo + flight side-by-side in column 1 */
.arr-top-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 30px;
    align-items: center;
}

/* display:contents lifts arr-from and arr-belt into the parent grid */
.arr-mid-row {
    display: contents;
}

/* Mobile scheduled duplicate — hidden on desktop */
.arr-sched-mob {
    display: none;
}

/* Airline logo */
.arr-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f4;
    border-radius: 8px;
    padding: 8px;
    height: 54px;
}

.arr-logo img {
    max-width: 140px;
    max-height: 50px;
    object-fit: contain;
}

/* Flight info */
.arr-flight {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.arr-flight-number {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.arr-cs {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    margin-left: 4px;
}

.arr-city {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #444;
}

.arr-dot {
    color: #e8a020;
    font-size: 10px;
    line-height: 1;
}

.arr-via {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}

.arr-sched {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.arr-clock-icon {
    width: 13px;
    height: 13px;
    color: #e8a020;
    flex-shrink: 0;
}

.arr-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #01b7f2;
    margin-bottom: 1px;
}

.arr-time {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* From airport */
.arr-from {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.arr-from-city {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.arr-pin-icon {
    width: 13px;
    height: 13px;
    color: #e8a020;
    flex-shrink: 0;
}

.arr-from-via {
    font-size: 10px;
    color: #aaa;
    font-style: italic;
    padding-left: 18px;
}

/* Belt */
.arr-belt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.arr-belt-num {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.1;
}

.arr-belt-empty {
    font-size: 18px;
    color: #ccc;
}

/* Status badge */
.arr-status {
    display: flex;
    align-items: center;
}

.arr-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.arr-badge-arrived  { background: #1d9e75; color: #e1f5ee; }
.arr-badge-expected { background: #876b5f; color: #e6f1fb; }
.arr-badge-cancelled{ background: #e24b4a; color: #fcebeb; }
.arr-badge-delayed  { background: #ef9f27; color: #412402; }
.arr-badge-default  { background: #3c3a39; color: #f7f0f0; border: 1px solid #e0e0e0; }

/* No data */
.arr-no-flights {
    text-align: center;
    color: #aaa;
    padding: 40px 0;
    font-size: 14px;
}

/* ============================================================
   TABLET  (641px – 900px)
   ============================================================ */
@media (max-width: 900px) {
    .arr-header { display: none; }

    .arr-card {
        grid-template-columns: 1fr 80px 20px 130px;
        gap: 10px;
        padding: 12px;
    }

    .arr-top-row {
        grid-template-columns: 120px 1fr;
    }

    .arr-badge { font-size: 11px; padding: 5px 8px; }
    .arr-belt-num { font-size: 18px; }
}
/* ============================================================
   Tablet (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
    .arr-top-row,
    .dep-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* ============================================================
   MOBILE  (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {
    .arr-header { display: none; }

    /* Stack card as flex column */
    .arr-card {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 12px;
    }

    /* Row 1: logo + flight info */
    .arr-top-row {
        display: grid;
        grid-template-columns: 58px 1fr;
        gap: 10px;
        align-items: start;
    }

    .arr-logo {
        height: 44px;
        padding: 6px;
    }

    .arr-logo img {
        max-width: 52px;
        max-height: 30px;
    }

    /* Hide desktop scheduled — shown in mid row instead */
    .arr-sched {
        display: none;
    }

    /* Row 2: Scheduled | From | Belt */
    .arr-mid-row {
        display: grid;
        grid-template-columns: 1fr 1fr 60px;
        gap: 8px;
        border-top: 1px solid #f0f0ee;
        margin-top: 10px;
        padding-top: 10px;
    }

    /* Now show mobile scheduled cell */
    .arr-sched-mob {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .arr-from {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .arr-from-city { font-size: 13px; }

    .arr-belt {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .arr-belt-num { font-size: 18px; }

    /* Row 3: full-width status */
    .arr-status {
        display: flex;
        border-top: 1px solid #f0f0ee;
        margin-top: 10px;
        padding-top: 10px;
    }

    .arr-badge {
        font-size: 12px;
        padding: 7px 12px;
        width: 100%;
        text-align: center;
    }

    .arr-updated {
        font-size: 11px;
        text-align: left;
    }
}
@media (max-width: 768px) {
    article {
        grid-template-columns: 70px 1fr !important;
        grid-template-rows: auto auto auto !important;
    }
    /* From + Belt row on mobile */
    article > div:nth-child(3),
    article > div:nth-child(4) {
        display: inline-flex;
    }
    article > div:last-child {
        grid-column: 1 / -1;
        border-top: 0.5px solid #e0e0e0;
        padding-top: 10px;
        margin-top: 4px;
    }
    /* From + Belt side by side */
    article > div:nth-child(3) {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        border-top: 0.5px solid #e0e0e0;
        padding-top: 10px;
    }
}

/* ============================================================
   EXTRA SMALL  (max-width: 380px)
   ============================================================ */
@media (max-width: 380px) {
    .arr-flight-number { font-size: 13px; }
    .arr-city          { font-size: 12px; }
    .arr-from-city     { font-size: 12px; }
    .arr-mid-row       { grid-template-columns: 1fr 1fr 52px; gap: 6px; }
}
