/* AYAN AIR office panel, look v4 (AYAN_AGENCY_V4): the home (Book) page only — view filament/agency/v4/home.
   Linked after ayan-agency-v4.css on every office page when the switch is on; every rule is scoped to html.ay4 .ay4-home
   (the page's own box; <html> also has ay4-page-home).
   Picture: ayan-compact/home.html (look.css: .hero, .search, .row; the compact block at its end). */

html.ay4 .ay4-home { display: block; }

/* ---------- band: the small line, the serif greeting ---------- */
html.ay4 .ay4-home .ay4-hero { padding: 16px 26px 56px; }
html.ay4 .ay4-home .ay4-date { font-size: 12px; color: rgba(255,255,255,.72); letter-spacing: .02em; margin: 0 0 2px; }
html.ay4 .ay4-home .ay4-date b { font-weight: 500; color: #fff; }

/* ---------- search card over the band ---------- */
html.ay4 .ay4-home .ay4-search { position: relative; z-index: 2; margin: -42px 18px 0; background: var(--v4-surface); border-radius: 16px; padding: 10px 12px; box-shadow: var(--v4-pop); }
html.ay4 .ay4-home .ay4-s-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
html.ay4 .ay4-home .ay4-seg { display: inline-flex; background: var(--v4-fill); border: 1px solid var(--v4-line2); border-radius: 10px; padding: 3px; }
html.ay4 .ay4-home .ay4-seg > :is(button, a) { padding: 4px 12px; border-radius: 8px; font-size: 12.5px; color: var(--v4-muted); background: none; border: 0; cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.45; text-align: center; }
html.ay4 .ay4-home .ay4-seg > :is(button, a):hover { color: var(--v4-plum); }
html.ay4 .ay4-home .ay4-seg > .on { background: var(--v4-surface); color: var(--v4-plum); font-weight: 500; box-shadow: 0 1px 3px rgba(21,0,44,.12); }

html.ay4 .ay4-home .ay4-sel { display: flex; gap: 6px; align-items: center; }
html.ay4 .ay4-home .ay4-sel-btn { position: relative; display: flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 10px; color: var(--v4-text); font-size: 12.5px;
    background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
html.ay4 .ay4-home .ay4-sel-btn:hover { background: var(--v4-fill); }
html.ay4 .ay4-home .ay4-sel-btn .ay4-i { width: 16px; height: 16px; color: var(--v4-fog); }
html.ay4 .ay4-home .ay4-cabin select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; color: inherit; padding: 0 22px 0 0; margin-right: -22px; cursor: pointer; outline: 0; box-shadow: none; }
html.ay4 .ay4-home .ay4-cabin select:focus-visible { outline: 2px solid var(--v4-violet); outline-offset: 4px; border-radius: 4px; }
html.ay4 .ay4-home .ay4-cabin .dn { pointer-events: none; }
html.ay4 .ay4-home .ay4-pax { position: relative; }
html.ay4 .ay4-home .ay4-paxbox { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 290px; background: var(--v4-surface); border: 1px solid var(--v4-line); border-radius: var(--v4-r);
    box-shadow: var(--v4-pop); padding: 8px 16px 14px; }
html.ay4 .ay4-home .ay4-paxbox .row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--v4-line2); }
html.ay4 .ay4-home .ay4-paxbox .row b { display: block; font-weight: 500; font-size: 14px; color: var(--v4-plum); }
html.ay4 .ay4-home .ay4-paxbox .row small { color: var(--v4-fog); font-size: 12px; }
html.ay4 .ay4-home .ay4-paxbox .cnt { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; color: var(--v4-plum); }
html.ay4 .ay4-home .ay4-paxbox .cnt button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--v4-line); background: var(--v4-surface); color: var(--v4-plum); cursor: pointer; font-size: 15px; line-height: 1; }
html.ay4 .ay4-home .ay4-paxbox .cnt button:hover { border-color: var(--v4-violet); color: var(--v4-violet); }
html.ay4 .ay4-home .ay4-paxbox .done { margin-top: 12px; width: 100%; }

/* From | ⇄ | To | Depart | Return, then the big violet button */
html.ay4 .ay4-home .ay4-fields { display: flex; gap: 12px; align-items: stretch; }
html.ay4 .ay4-home .ay4-box { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 1px minmax(0, 2fr); align-items: center; background: var(--v4-fill);
    border: 1px solid var(--v4-line); border-radius: var(--v4-r); min-width: 0; }
html.ay4 .ay4-home .ay4-f { padding: 6px 14px; text-align: left; display: grid; gap: 2px; min-width: 0; background: none; border: 0; font-family: inherit; color: inherit; cursor: pointer; border-radius: var(--v4-r); }
html.ay4 .ay4-home .ay4-f > small:first-child { font-size: 10.5px; color: var(--v4-fog); letter-spacing: .02em; }
html.ay4 .ay4-home .ay4-f .v { display: flex; align-items: baseline; gap: 5px; font-size: 15px; font-weight: 600; color: var(--v4-plum); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 22px; }
html.ay4 .ay4-home .ay4-f .v em { font-style: normal; font-weight: 400; color: var(--v4-text); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
html.ay4 .ay4-home .ay4-f .sub { font-size: 11px; color: var(--v4-fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 15px; }
html.ay4 .ay4-home .ay4-f input { border: 0; outline: 0; padding: 0; margin: 0; width: 2.5em; min-width: 2em; flex: none; font: inherit; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--v4-plum);
    background: transparent; box-shadow: none; }
html.ay4 .ay4-home .ay4-f input::placeholder { color: #C8C5D7; }
/* the airport list (datalist) adds the browser's own arrow inside the field: hidden, so the three letters keep their room */
html.ay4 .ay4-home .ay4-f input::-webkit-calendar-picker-indicator { display: none !important; }
@supports (field-sizing: content) { html.ay4 .ay4-home .ay4-f input { field-sizing: content; width: auto; } }
html.ay4 .ay4-home .ay4-f:focus-within, html.ay4 .ay4-home .ay4-f.on, html.ay4 .ay4-home button.ay4-f:hover { background: var(--v4-surface); box-shadow: inset 0 0 0 1px var(--v4-line); }
html.ay4 .ay4-home .ay4-f:focus-within { box-shadow: inset 0 0 0 1.5px var(--v4-violet); }
html.ay4 .ay4-home .ay4-f.off .v { color: var(--v4-fog); font-weight: 500; }
html.ay4 .ay4-home .ay4-swap { width: 28px; height: 28px; border-radius: 50%; background: var(--v4-surface); border: 1px solid var(--v4-line); display: grid; place-items: center; color: var(--v4-plum); cursor: pointer; padding: 0; }
html.ay4 .ay4-home .ay4-swap:hover { border-color: var(--v4-violet); color: var(--v4-violet); }
html.ay4 .ay4-home .ay4-swap .ay4-i { width: 16px; height: 16px; }
html.ay4 .ay4-home .ay4-vline { width: 1px; height: 28px; background: var(--v4-line); }
html.ay4 .ay4-home .ay4-dates { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; position: relative; border: 0 !important; box-shadow: none !important; background: transparent !important; }
html.ay4 .ay4-home .ay4-dates > .fz-tripdt-in { display: none !important; }   /* the shared calendar's own boxes: the two cells open it */
html.ay4 .ay4-home .ay4-dates .fz-cal { left: auto; right: -12px; top: calc(100% + 12px); border: 1px solid var(--v4-line); border-radius: 18px; box-shadow: var(--v4-pop); }
html.ay4 .ay4-home .ay4-go { flex: none; align-self: stretch; height: auto; min-height: 48px; padding: 0 7px 0 18px; font-size: 14.5px; gap: 12px; }
html.ay4 .ay4-home .ay4-go .arr { width: 34px; height: 34px; border-radius: 9px; }

/* the shared calendar in v4 colours */
html.ay4 .ay4-home .fz-cal-hint { color: var(--v4-plum); font-weight: 600; }
html.ay4 .ay4-home .fz-cal-load { color: var(--v4-violet); }
html.ay4 .ay4-home .fz-cal-nav { border-color: var(--v4-line); color: var(--v4-plum); }
html.ay4 .ay4-home .fz-cal-m .t { color: var(--v4-plum); font-weight: 600; }
html.ay4 .ay4-home .fz-cal-m .g.d button { color: var(--v4-ink); border-radius: 10px; }
html.ay4 .ay4-home .fz-cal-m .g.d button:hover:not(:disabled) { background: var(--v4-fill); }
html.ay4 .ay4-home .fz-cal-m .g.d button.in { background: var(--v4-violet-soft); border-radius: 0; }
html.ay4 .ay4-home .fz-cal-m .g.d button:is(.st, .en) { background: var(--v4-violet) !important; color: #fff; }
html.ay4 .ay4-home .fz-cal-m .g.d button small { color: var(--v4-ok); }
html.ay4 .ay4-home .fz-cal-m .g.d button:is(.st, .en) small { color: #fff; }
html.ay4 .ay4-home .fz-cal-m .g.d button.hf span { color: var(--v4-plum); }

/* recent searches and top routes */
html.ay4 .ay4-home .ay4-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 18px 0; }
html.ay4 .ay4-home .ay4-chips .lb { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--v4-fog); margin-inline: 6px 2px; }
html.ay4 .ay4-home .ay4-chips .lb:first-child { margin-inline-start: 0; }
html.ay4 .ay4-home .ay4-chips a { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--v4-surface); border: 1px solid var(--v4-line);
    text-decoration: none; color: var(--v4-plum); font-size: 12px; }
html.ay4 .ay4-home .ay4-chips a b { font-weight: 600; letter-spacing: .02em; }
html.ay4 .ay4-home .ay4-chips a small { font-size: 11px; color: var(--v4-muted); }
html.ay4 .ay4-home .ay4-chips a:hover { border-color: var(--v4-violet); }

/* ---------- the three figures (waiting to be ticketed, bookings and commission this month): one slim card ---------- */
html.ay4 .ay4-home .ay4-stats { margin-top: 12px; display: flex; overflow: hidden; }
html.ay4 .ay4-home .ay4-stats .s { flex: 1 1 0; display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-left: 1px solid var(--v4-line2); text-decoration: none; color: inherit; min-width: 0; }
html.ay4 .ay4-home .ay4-stats .s:first-child { border-left: 0; }
html.ay4 .ay4-home .ay4-stats a.s:hover { background: var(--v4-fill); }
html.ay4 .ay4-home .ay4-stats i { font: 400 24px/1 var(--v4-serif); font-style: normal; color: var(--v4-plum); white-space: nowrap; font-variant-numeric: tabular-nums; }
html.ay4 .ay4-home .ay4-stats .warn i { color: var(--v4-hold); }
html.ay4 .ay4-home .ay4-stats span { display: grid; min-width: 0; line-height: 1.25; }
html.ay4 .ay4-home .ay4-stats b { font-weight: 500; font-size: 13px; color: var(--v4-plum); }
html.ay4 .ay4-home .ay4-stats small { font-size: 11.5px; color: var(--v4-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ay4 .ay4-home .ay4-stats em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--v4-violet); white-space: nowrap; }

/* Offers & news between the strip and the list */
html.ay4 .ay4-home .fz-news { margin-top: 12px; }

/* ---------- recent bookings ---------- */
html.ay4 .ay4-home .ay4-sec-h { margin: 14px 4px 6px; }
html.ay4 .ay4-home .ay4-list { overflow: hidden; }
html.ay4 .ay4-home .ay4-list .row { display: grid; grid-template-columns: 120px 180px 180px minmax(0, 1fr) 150px 20px; align-items: center; gap: 12px;
    padding: 6px 16px; border-top: 1px solid var(--v4-line2); font-size: 13px; line-height: 1.25; color: var(--v4-text); text-decoration: none; }
html.ay4 .ay4-home .ay4-list .row:first-child { border-top: 0; }
html.ay4 .ay4-home .ay4-list .row.head { font-size: 10.5px; color: var(--v4-fog); letter-spacing: .06em; text-transform: uppercase; padding-block: 6px; background: var(--v4-fill); }
html.ay4 .ay4-home .ay4-list .ay4-tag { padding: 2px 8px; font-size: 11.5px; }
html.ay4 .ay4-home .ay4-list .row.head .amt { color: inherit; font-weight: 400; }
html.ay4 .ay4-home .ay4-list .pnr { font-weight: 600; color: var(--v4-plum); letter-spacing: .04em; }
html.ay4 .ay4-home .ay4-list .route { display: flex; align-items: center; gap: 6px; color: var(--v4-ink); white-space: nowrap; overflow: hidden; }
html.ay4 .ay4-home .ay4-list .route .ay4-i { width: 14px; height: 14px; color: var(--v4-fog); }
html.ay4 .ay4-home .ay4-list .date { white-space: nowrap; }
html.ay4 .ay4-home .ay4-list .pax { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ay4 .ay4-home .ay4-list .amt { text-align: right; color: var(--v4-plum); font-weight: 600; font-variant-numeric: tabular-nums; }
html.ay4 .ay4-home .ay4-list .amt small { display: block; font-weight: 400; font-size: 12px; color: var(--v4-fog); }
html.ay4 .ay4-home .ay4-list .amt .nil { font-style: normal; font-weight: 400; color: var(--v4-fog); }
html.ay4 .ay4-home .ay4-list .go { color: var(--v4-fog); }
html.ay4 .ay4-home .ay4-list a.row:hover { background: var(--v4-fill); }
html.ay4 .ay4-home .ay4-list .meta { display: none; }
html.ay4 .ay4-home .ay4-list .empty { padding: 14px 16px; color: var(--v4-muted); border-top: 1px solid var(--v4-line2); }

/* ---------- tablets ---------- */
@media (max-width: 1180px) {
    html.ay4 .ay4-home .ay4-list .row { grid-template-columns: 100px 140px 140px minmax(0, 1fr) 130px 20px; gap: 10px; }
}
@media (max-width: 1023px) {
    html.ay4 .ay4-home .ay4-fields { flex-direction: column; }
    html.ay4 .ay4-home .ay4-go { justify-content: space-between; height: 56px; min-height: 0; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
    html.ay4 .ay4-home .ay4-hero { border-radius: 16px; padding: 14px 18px 70px; }
    html.ay4 .ay4-home .ay4-date { font-size: 11.5px; margin-bottom: 4px; }
    html.ay4 .ay4-home .ay4-search { margin: -56px 6px 0; padding: 12px; border-radius: 16px; }
    html.ay4 .ay4-home .ay4-s-top { margin-bottom: 12px; }
    html.ay4 .ay4-home .ay4-seg { width: 100%; }
    html.ay4 .ay4-home .ay4-seg > :is(button, a) { flex: 1; padding: 7px 6px; }
    html.ay4 .ay4-home .ay4-sel { width: 100%; justify-content: space-between; }
    html.ay4 .ay4-home .ay4-paxbox { left: 0; right: auto; width: min(290px, calc(100vw - 60px)); }
    html.ay4 .ay4-home .ay4-box { grid-template-columns: 1fr 1fr; position: relative; }
    html.ay4 .ay4-home .ay4-box .ay4-f { padding: 10px 14px; }
    html.ay4 .ay4-home .ay4-box .from { grid-column: 1 / -1; border-bottom: 1px solid var(--v4-line); border-radius: var(--v4-r) var(--v4-r) 0 0; }
    html.ay4 .ay4-home .ay4-box .to { grid-column: 1 / -1; border-bottom: 1px solid var(--v4-line); border-radius: 0; }
    html.ay4 .ay4-home .ay4-box .ay4-swap { position: absolute; right: 14px; top: 44px; z-index: 1; }
    html.ay4 .ay4-home .ay4-box .ay4-vline { display: none; }
    html.ay4 .ay4-home .ay4-box .ay4-dates { grid-column: 1 / -1; position: static; }
    html.ay4 .ay4-home .ay4-box .ay4-dates .dep { border-radius: 0 0 0 var(--v4-r); }
    html.ay4 .ay4-home .ay4-box .ay4-dates .ret { border-left: 1px solid var(--v4-line); border-radius: 0 0 var(--v4-r) 0; }
    html.ay4 .ay4-home .ay4-go { width: 100%; height: 48px; justify-content: space-between; }
    html.ay4 .ay4-home .ay4-chips { margin: 12px -14px 0; padding: 0 14px 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    html.ay4 .ay4-home .ay4-chips::-webkit-scrollbar { display: none; }
    html.ay4 .ay4-home .ay4-chips > * { flex: none; }
    html.ay4 .ay4-home .ay4-stats { flex-direction: column; }
    html.ay4 .ay4-home .ay4-stats .s { border-left: 0; border-top: 1px solid var(--v4-line2); padding: 8px 14px; }
    html.ay4 .ay4-home .ay4-stats .s:first-child { border-top: 0; }
    html.ay4 .ay4-home .ay4-sec-h { margin: 14px 2px 6px; }
    html.ay4 .ay4-home .ay4-list .row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 14px; }
    html.ay4 .ay4-home .ay4-list .row.head { display: none; }
    html.ay4 .ay4-home .ay4-list .row :is(.route, .date) { display: none; }
    html.ay4 .ay4-home .ay4-list .row .meta { display: block; grid-column: 1; font-size: 12.5px; color: var(--v4-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    html.ay4 .ay4-home .ay4-list .row .pnr { grid-column: 1; grid-row: 1; }
    html.ay4 .ay4-home .ay4-list .row .ay4-tag { grid-column: 1; grid-row: 3; margin-top: 4px; }
    html.ay4 .ay4-home .ay4-list .row .amt { grid-column: 2; grid-row: 1 / 4; align-self: center; }
    html.ay4 .ay4-home .ay4-list .row .go { display: none; }
}
