/* Flights and hotels through Nuitee LiteAPI (public/travel.js): results, checkout and confirmation. Colours are the shared
   tokens in internal.css; logical properties throughout so Arabic mirrors. Phones (≤760px) stack every column. */
.tv-view{max-width:1120px;padding-bottom:64px}
.tv-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:8px 0 16px}
.tv-head h1{font-size:clamp(1.4rem,2.6vw,1.9rem);margin:0 0 4px}
.tv-sub{margin:0;color:var(--ag-text-2)}
.tv-h2{font-size:1.2rem;margin:24px 0 12px}
.tv-hint{color:var(--ag-text-2);font-size:.88rem;margin:6px 0}
.tv-meta{color:var(--ag-text-2);font-size:.88rem;margin:8px 0 0}
.tv-test{display:inline-block;margin:0 0 14px;padding:6px 12px;border-radius:8px;background:#FFF6E0;color:#7A5300;font-size:.86rem;font-weight:600}
.tv-loading{display:flex;align-items:center;gap:12px;padding:32px 0;color:var(--ag-text-2)}
.tv-loading p{margin:0}
.tv-spin{width:22px;height:22px;border-radius:50%;border:3px solid var(--ag-border);border-top-color:var(--ag-primary);animation:tv-spin .8s linear infinite;flex:none}
@keyframes tv-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.tv-spin{animation-duration:2.4s}}
.tv-empty{padding:28px;border:1px dashed var(--ag-border);border-radius:12px;background:var(--ag-section);text-align:center}
.tv-empty p{margin:0 0 12px}
.tv-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.tv-count{margin:0;font-weight:600;flex:1 1 auto}
.tv-sort select{margin-inline-start:6px;padding:6px 10px;border:1px solid var(--ag-border);border-radius:8px;background:#fff}
.tv-check{display:inline-flex;align-items:center;gap:6px}
.tv-list{display:grid;gap:12px;margin-top:12px}

.tv-card{display:grid;grid-template-columns:minmax(0,1fr) 200px;border:1px solid var(--ag-border);border-radius:12px;background:var(--ag-surface);overflow:hidden}
.tv-card:hover{box-shadow:0 12px 28px -16px rgba(23,43,77,.35)}
.tv-card-main{padding:16px 18px;min-width:0}
.tv-card-price{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:4px;padding:16px 18px;border-inline-start:1px solid var(--ag-border);text-align:end}
.tv-card-price b{font-size:1.35rem;color:var(--ag-heading)}
.tv-card-price small{color:var(--ag-text-2);font-size:.8rem}
.tv-card-price .btn{margin-top:8px;min-width:120px;justify-content:center}
.tv-slice{display:grid;grid-template-columns:32px minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:12px;padding:6px 0}
.tv-slice+.tv-slice{border-top:1px solid var(--ag-border);margin-top:6px;padding-top:12px}
.tv-logo{width:28px;height:28px;border-radius:6px;object-fit:contain;background:var(--ag-section)}
.tv-times b{font-size:1.05rem}
.tv-times small,.tv-dur small{display:block;color:var(--ag-text-2);font-size:.82rem}
.tv-plus{color:#B42318;font-size:.7rem;margin-inline-start:2px}
.tv-dur{font-weight:600}

.tv-hotel{grid-template-columns:220px minmax(0,1fr) 200px}
.tv-pic{background:var(--ag-section);min-height:150px}
.tv-pic img{width:100%;height:100%;object-fit:cover;display:block}
.tv-hotel h2{font-size:1.1rem;margin:0}
.tv-stars{color:var(--ag-gold);font-size:.9rem;letter-spacing:1px;white-space:nowrap}
.tv-score b{display:inline-block;padding:2px 8px;border-radius:6px;background:var(--ag-primary);color:#fff}
.tv-score small{color:var(--ag-text-2)}

.tv-checkout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start;margin-top:12px}
.tv-col{display:grid;gap:16px;min-width:0}
.tv-box{border:1px solid var(--ag-border);border-radius:12px;padding:18px;background:var(--ag-surface)}
.tv-box h2{font-size:1.1rem;margin:0 0 10px}
.tv-box h2+h2,.tv-form h2:not(:first-child){margin-top:18px}
.tv-price{position:sticky;top:88px}
.tv-price dl{margin:0}
.tv-price dl div{display:flex;justify-content:space-between;gap:12px;padding:6px 0}
.tv-price dd{margin:0}
.tv-price dl div:first-child dd b{font-size:1.4rem}
.tv-fee{color:var(--ag-text-2);font-size:.9rem}
.tv-itin+.tv-itin{margin-top:12px;border-top:1px solid var(--ag-border);padding-top:12px}
.tv-segs{margin:6px 0 0;padding-inline-start:46px;display:grid;gap:6px}
.tv-segs small{color:var(--ag-text-2)}
.tv-pax{border:1px solid var(--ag-border);border-radius:10px;padding:12px 14px;margin:0 0 12px}
.tv-pax legend{font-weight:700;padding:0 6px}
.tv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px 12px}
.tv-grid+.tv-grid{margin-top:10px}
.tv-form label{display:grid;gap:4px;font-size:.85rem;font-weight:600;color:var(--ag-text-2)}
.tv-form input,.tv-form select,.tv-form textarea{font:inherit;font-weight:400;color:var(--ag-heading);padding:9px 10px;border:1px solid #D1D5DB;border-radius:8px;background:#fff;min-height:42px;width:100%;box-sizing:border-box}
.tv-wide{margin-top:12px}
.tv-err{color:#B42318;font-weight:600;min-height:1em;margin:12px 0 0}
.tv-err:empty{display:none}
.tv-pay-btn{margin-top:14px;min-width:220px;justify-content:center}
.tv-pay-amount{font-weight:700;margin:6px 0 12px}
.tv-gate{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.tv-gate p{margin:0}

.tv-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-auto-rows:150px;gap:6px;border-radius:12px;overflow:hidden;margin-bottom:14px}
.tv-gallery img{width:100%;height:100%;object-fit:cover;display:block}
.tv-gallery img:first-child{grid-row:span 2}
.tv-desc{max-width:72ch;color:var(--ag-text-2)}
.tv-room h3{margin:0 0 4px;font-size:1.05rem}
.tv-room+.tv-room{margin-top:12px}
.tv-rates{list-style:none;margin:10px 0 0;padding:0}
.tv-rates li{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 0;border-top:1px solid var(--ag-border)}
.tv-rates small{display:block;color:var(--ag-text-2)}
.tv-rate-price{display:flex;align-items:center;gap:12px;text-align:end}
.tv-rate-price b{font-size:1.15rem}

.tv-bookings{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.tv-bookings li{display:flex;justify-content:space-between;gap:16px;align-items:center}
.tv-bookings a{color:var(--ag-heading);text-decoration:none}
.tv-st{font-weight:600}
.tv-st-confirmed{color:#067647}
.tv-st-needs_attention,.tv-st-refunded{color:#B42318}
.tv-done{max-width:640px;margin:16px auto}
.tv-ref b{font-size:1.3rem;letter-spacing:.06em}

/* the place suggestions under the home page's From / To / Destination fields */
.sb-seg-text:has(> .tv-ac){position:relative}
.tv-ac{position:absolute;inset-inline-start:-12px;top:calc(100% + 10px);z-index:60;min-width:min(340px,86vw);max-height:320px;overflow:auto;margin:0;padding:6px;list-style:none;
  background:#fff;border:1px solid #E5E7EB;border-radius:12px;box-shadow:0 18px 40px -14px rgba(23,43,77,.35);color:#172B4D;text-align:start}
.tv-ac-opt{display:grid;gap:2px;padding:9px 10px;border-radius:8px;cursor:pointer}
.tv-ac-opt:hover,.tv-ac-opt.is-active{background:#E8F1F5}
.tv-ac-name{font-weight:600;font-size:.95rem}
.tv-ac-name b{color:#17658A;margin-inline-start:4px}
.tv-ac-opt small{color:#596579;font-size:.8rem}

@media (max-width:760px){
  .tv-head{flex-direction:column}
  .tv-card,.tv-hotel{grid-template-columns:1fr}
  .tv-card-price{border-inline-start:0;border-top:1px solid var(--ag-border);flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;text-align:start}
  .tv-card-price .btn{margin-top:0}
  .tv-pic{min-height:180px}
  .tv-slice{grid-template-columns:28px minmax(0,1fr) auto}
  .tv-checkout{grid-template-columns:1fr}
  .tv-price{position:static;order:-1}
  .tv-gallery{grid-template-columns:1fr 1fr;grid-auto-rows:110px}
  .tv-rates li{flex-direction:column;align-items:stretch}
  .tv-rate-price{justify-content:space-between}
}
.tv-gallery:has(> img:only-child){grid-template-columns:1fr;grid-auto-rows:300px}
.tv-gallery:has(> img:only-child) img{grid-row:auto}
.tv-passport{margin:10px 0 0;font-size:.9rem}
.tv-passport summary{cursor:pointer;color:var(--ag-text-2)}
.tv-passport[open] summary{margin-bottom:8px}
