/* ===== Services cabin (assets/cabin.js): walk down the aisle, the passengers are the services ===== */
.cabin { position: relative; background: #0c0e13; border-top: 1px solid #1d2230; }
/* 100vh = the LARGE viewport on phones: it does not change when the browser toolbar hides */
.cabin-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; contain: layout paint; }
.cabin-shell { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cabin-seats { position: absolute; inset: 0; }
.seat-row { position: absolute; inset: 0; pointer-events: none; }

/* one seat + passenger; designed at 300 px wide, placed and scaled by cabin.js */
.seat {
  position: absolute; left: 0; top: 0; width: 300px; height: 560px; margin-top: -560px;
  transform-origin: 50% 100%; pointer-events: auto; color: inherit; text-decoration: none;
  display: block; outline: none;
}
.seat:hover, .seat:focus { text-decoration: none; }
.seat .seat-art { position: absolute; left: 0; bottom: 0; width: 300px; height: 480px; overflow: visible; }
.seat .shell { fill: #20242d; stroke: #151820; stroke-width: 2; }
.seat .piping { stroke: #c9a24b; stroke-width: 3; opacity: .85; }
.seat .cover { fill: #e6dfcf; }
.seat .cover-mark { stroke: #c9a24b; stroke-width: 3; stroke-linecap: round; }
.seat .arm { fill: #1a1d25; stroke: rgba(201,162,75,.45); stroke-width: 2; }
.seat .cushion { fill: #1c2029; stroke: rgba(201,162,75,.5); stroke-width: 2; }
.seat .tab .scr { fill: #0f1a2a; }
.seat .tab-icon { color: #e6c778; }
.seat .tab-icon .dim { stroke: #7b6a44; }
.seat .tab-icon .lit { stroke: #fff1c4; }
.seat .tab-icon .fill { fill: rgba(230,199,120,.18); }
.seat.empty .pax { display: none; }
.seat.k-soon .pax { opacity: .45; }
.seat.lit .tab .scr { fill: #1d2c46; }
.seat.lit .tab { filter: drop-shadow(0 0 10px rgba(230,199,120,.55)); }
.seat.lit .seat-art { filter: drop-shadow(0 -30px 40px rgba(255,214,140,.12)); }

/* nameplate above the headrest */
.seat .np {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: 292px;
  padding: 9px 14px 9px 10px; border-radius: 10px;
  background: rgba(10,12,17,.86); border: 1px solid rgba(201,162,75,.55);
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  opacity: var(--np, 1);
}
.seat .np .sn { font: 800 17px/1 var(--mono); color: #14100a; background: #c9a24b; padding: 6px 8px; border-radius: 6px; }
.seat .np b { font-size: 23px; line-height: 1.15; font-weight: 700; color: #eef1f7; letter-spacing: .01em; }
.seat .np .sn { flex: none; }
.seat.empty .np { opacity: calc(var(--np, 1) * .35); }
.seat.empty .np b { font-weight: 500; color: #9aa3b5; }
.seat.k-live .np { border-color: rgba(76,195,138,.6); }
.seat.k-soon .np b { color: #9aa3b5; }
.seat:focus-visible .np, .seat:hover .np { background: #c9a24b; }
.seat:focus-visible .np b, .seat:hover .np b { color: #14100a; }
.seat:focus-visible .np .sn, .seat:hover .np .sn { background: #14100a; color: #e6c778; }

/* the row sign hanging over the aisle */
.row-tag {
  position: absolute; left: 0; top: 0; transform-origin: 50% 0; white-space: nowrap; pointer-events: none;
  font: 700 22px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #e6c778;
  padding: 10px 18px; border-radius: 8px; background: rgba(10,12,17,.8); border: 1px solid rgba(201,162,75,.4);
  text-shadow: 0 0 12px rgba(230,199,120,.35);
}

/* welcome sign over the boarding door */
.cabin-intro {
  position: absolute; left: clamp(18px, 4vw, 64px); top: clamp(22px, 6vh, 64px); max-width: min(560px, 86vw);
  z-index: 2000; transition: opacity .5s ease, transform .5s ease;
}
.cabin-intro.gone { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.ci-kicker { display: block; font: 700 11px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: #c9a24b; margin-bottom: 12px; }
.ci-title { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.15; color: #f2f3f7; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.ci-sub { color: #b9c0cf; margin-top: 10px; font-size: 16px; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.ci-hint { display: inline-block; margin-top: 16px; font: 700 12px/1 var(--mono); letter-spacing: .14em; color: #e6c778;
  padding: 9px 13px; border: 1px solid rgba(201,162,75,.45); border-radius: 20px; background: rgba(10,12,17,.6); }

.cabin-rowsign {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 2000;
  font: 700 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: #e6c778;
  padding: 8px 14px; border-radius: 20px; background: rgba(10,12,17,.72); border: 1px solid rgba(201,162,75,.4);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.cabin-rowsign.on { opacity: 1; }

/* boarding passes for the row in front of you */
.cabin-passes {
  position: absolute; left: 50%; bottom: clamp(12px, 3vh, 30px); transform: translateX(-50%);
  width: min(1180px, 96vw); z-index: 2100; pointer-events: none;
}
.pass-row {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 12px; align-items: end; opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease;
}
.pass-row.on { opacity: 1; transform: none; }
.pass-row.on .pass { pointer-events: auto; }
.pass {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; height: var(--pass-h, 196px); overflow: hidden;
  padding: 12px 16px 14px; border-radius: 12px; color: #1b1e24; text-decoration: none;
  background:
    radial-gradient(circle at 0 62%, transparent 8px, #f4efe4 8.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 62%, transparent 8px, #f4efe4 8.5px) right / 51% 100% no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.pass:hover { text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 2px #c9a24b; }
.pass .p-top { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border-bottom: 1px dashed rgba(27,30,36,.3); padding-bottom: 7px; }
.pass .p-seat { font: 800 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #6f5519; }
.pass .p-top { flex: none; }
.pass .tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; }
.pass .tag.live { background: rgba(46,150,100,.16); color: #17603f; }
.pass .tag.desk { background: rgba(201,162,75,.2); color: #7a5c1c; }
.pass .tag.soon { background: rgba(80,86,100,.15); color: #555c6b; }
.pass .p-name { font-size: 16.5px; line-height: 1.25; color: #14161b;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; flex: none; }
.pass .p-desc { font-size: 13px; line-height: 1.45; color: #474c58;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--desc-lines, 3); line-clamp: var(--desc-lines, 3); overflow: hidden; }
.pass .p-cta { font-size: 13.5px; font-weight: 800; color: #6f5519; margin-top: auto; flex: none; }
.pass:focus-visible { outline: 3px solid #e6c778; outline-offset: 3px; }

/* seat map: where you are, and a shortcut to any row. Centred in the cabin above the boarding passes
   (not the whole screen), so a long cabin's map never reaches down into the passes */
.cabin-map {
  position: absolute; right: clamp(10px, 2vw, 26px); top: calc(50% - 115px); transform: translateY(-50%); z-index: 2200;
  display: flex; flex-direction: column; gap: 6px; padding: 16px 8px; border-radius: 26px 26px 18px 18px;
  background: rgba(10,12,17,.66); border: 1px solid rgba(201,162,75,.3);
}
.map-row { display: flex; gap: 3px; align-items: center; min-height: 24px; min-width: 24px; padding: 4px 6px; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.map-row i { width: 7px; height: 9px; border-radius: 2px 2px 1px 1px; background: #c9a24b; opacity: .55; }
.map-row i:nth-child(2):not(:last-child), .map-row i:first-child:nth-last-child(2) { margin-right: 5px; }
.map-row i.free { background: #4a5266; }
.map-row.k-live i:not(.free) { background: #4cc38a; }
.map-row.here { background: rgba(230,199,120,.18); }
.map-row.here i { opacity: 1; }
.map-row:hover { background: rgba(230,199,120,.28); }
.map-row:focus-visible { outline: 2px solid #e6c778; outline-offset: 2px; }
.cabin-skip:focus-visible { outline: 2px solid #e6c778; outline-offset: 2px; }

.cabin-skip {
  position: absolute; right: clamp(10px, 2vw, 26px); top: 14px; z-index: 2200;
  font: 700 12px/1 var(--mono); letter-spacing: .08em; color: #9aa3b5;
  padding: 8px 12px; border-radius: 7px; background: rgba(10,12,17,.6); border: 1px solid rgba(154,163,181,.25);
}
.cabin-skip:hover { color: #e6c778; text-decoration: none; }
.cabin.at-end .cabin-passes .pass-row { opacity: 0; }
.cabin.at-end .cabin-passes .pass { pointer-events: none; }

/* tablets and small laptops: four passes share a narrower row, so give each one more line */
@media (min-width: 700px) and (max-width: 1199px) { .cabin-passes .pass { --pass-h: 214px; } }
@media (max-width: 699px) {
  .cabin-passes { width: 94vw; }
  .pass-row { gap: 10px; }
  .cabin-passes .pass { --pass-h: 218px; --desc-lines: 4; padding: 10px 12px 12px; }
  .pass .p-desc { font-size: 12px; }
  .pass .p-name { font-size: 15px; }
  /* the seat map is a desktop shortcut; on a phone the scroll is the way down the aisle */
  .cabin-map { display: none; }
  .cabin-rowsign { display: none; }
  .cabin-intro { top: 52px; max-width: calc(100vw - 36px); }
  .ci-sub { font-size: 14.5px; }
  .cabin-skip { top: 12px; right: 10px; }
}
/* landscape phones: short screens keep the row in view above compact passes */
@media (max-height: 520px) {
  .cabin-passes .pass { --pass-h: 92px; padding: 8px 12px; gap: 3px; }
  .cabin-passes .pass .p-desc { display: none; }
  .cabin-passes .pass .p-name { -webkit-line-clamp: 1; line-clamp: 1; font-size: 14px; }
  .cabin-map, .cabin-rowsign { display: none; }
  .cabin-intro { top: 12px; }
  .ci-sub, .ci-hint { display: none; }
}

/* ===== reduced motion: a static seat map, every seat with its boarding pass ===== */
.cabin.static { padding: 56px 0 70px; background: radial-gradient(1200px 600px at 50% 0, #1b1f2a 0%, #0c0e13 70%); }
.cabin.static .cabin-stage { position: relative; height: auto; overflow: visible; contain: none; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.cabin.static .cabin-shell, .cabin.static .cabin-map, .cabin.static .cabin-rowsign, .cabin.static .cabin-skip { display: none; }
.cabin.static .cabin-intro { position: static; max-width: 70ch; margin-bottom: 30px; }
.cabin.static .cabin-seats { position: static; display: flex; flex-direction: column; gap: 26px;
  border: 1px solid rgba(201,162,75,.3); border-radius: 120px 120px 36px 36px; padding: 70px 22px 30px; background: #12151c; }
.cabin.static .seat-row { position: static; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; pointer-events: auto; }
.cabin.static .seat-row .row-tag { position: static; transform: none; grid-column: 1 / -1; justify-self: center; font-size: 11px; padding: 7px 12px; }
.cabin.static .seat { position: relative; width: 100%; height: auto; margin: 0; transform: none; aspect-ratio: 300 / 250; overflow: hidden; }
.cabin.static .seat .seat-art { width: 100%; height: auto; bottom: -66%; }   /* frame head to tablet under the nameplate */
.cabin.static .seat .np { top: 6px; transform: translateX(-50%) scale(.6); transform-origin: 50% 0; }
.cabin.static .pass-row { position: static; grid-column: 1 / -1; opacity: 1; transform: none; gap: 14px 18px; align-items: stretch; grid-template-columns: repeat(4, 1fr); }
.cabin.static .pass { pointer-events: auto; --pass-h: 214px; }   /* in the page flow, so it can take the taller size */
@media (max-width: 699px) {
  /* two seats side by side, their passes stacked full width (as in the closing list), so a long
     description is not squeezed into half a phone */
  .cabin.static .seat-row { grid-template-columns: repeat(2, 1fr); }
  .cabin.static .pass-row { grid-template-columns: 1fr; gap: 12px; }
  .cabin.static .pass { --pass-h: 178px; --desc-lines: 4; }
  .cabin.static .cabin-seats { border-radius: 60px 60px 24px 24px; padding: 44px 12px 20px; }
}

/* ===== the galley: aft bulkhead at the end of the aisle ===== */
section.galley {
  background: linear-gradient(180deg, #161a22 0%, #10131a 100%);
  border-top: 3px solid #c9a24b; text-align: center; padding: 70px 0 80px;
}
section.galley .galley-logo { display: block; width: min(320px, 70vw); height: auto; margin: 0 auto 28px; }
section.galley h2.sec { color: #f2f3f7; }
section.galley p.sub { margin: 8px auto 30px; max-width: 70ch; }
section.galley .grid { text-align: left; }
section.galley .card { background: #1a1e27; border: 1px solid rgba(201,162,75,.28); }
section.galley .card h3 { color: #e6c778; }
.galley-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ===== every boarding pass, together, when the walk ends ===== */
.cabin-tickets { background: linear-gradient(180deg, #0c0e13 0%, #11141b 100%); padding: 64px 0 76px; border-top: 1px solid rgba(201,162,75,.22); }
/* as wide as the passes in the aisle (min(1180px, 96vw)), so a ticket here is the same size as one there */
.cabin-tickets .wrap { max-width: 1224px; }
.cabin-tickets h2.sec { color: #f2f3f7; }
.cabin-tickets .ci-kicker { margin-bottom: 10px; }
.ticket-group { margin-top: 30px; }
.tg-title { font: 700 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #e6c778; margin-bottom: 14px; }
.ticket-group.k-live .tg-title { color: #4cc38a; }
.ticket-group.k-soon .tg-title { color: #9aa3b5; }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ticket-grid .pass { --pass-h: 196px; }
@media (max-width: 699px) { .ticket-grid .pass { --pass-h: 178px; } }
