:root {
      --bg-deep: #061021;
      --bg-panel: #0c1b33;
      --border-soft: rgba(148, 163, 184, 0.2);
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
    }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background: radial-gradient(circle at top right, #122c54 0%, var(--bg-deep) 60%);
      color: var(--text-main);
      min-height: 100vh;
      overflow-x: hidden;
    }

    .panel {
      background: linear-gradient(150deg, rgba(15, 31, 58, 0.94), rgba(8, 18, 35, 0.96));
      border: 1px solid var(--border-soft);
      backdrop-filter: blur(12px);
    }

    .active-pill {
      background: linear-gradient(135deg, #2563eb, #0284c7);
      color: #ffffff;
      border-color: rgba(125, 211, 252, 0.55);
      box-shadow: 0 8px 20px -8px rgba(14, 165, 233, 0.65);
    }

    .result-card {
      background: linear-gradient(180deg, rgba(17, 36, 66, 0.92) 0%, rgba(10, 22, 42, 0.97) 100%);
      border: 1px solid var(--border-soft);
      border-radius: 1.25rem;
      transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .result-card:hover {
      transform: translateY(-2px);
      border-color: rgba(56, 189, 248, 0.45);
    }

    :focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

    .hotel-row-thumb {
      background: linear-gradient(135deg, #0d2447 0%, #123566 55%, #091830 100%);
      border: 1px solid rgba(125, 211, 252, 0.25);
    }

html { filter: var(--a11y-filter, none); }
html.a11y-links a, html.a11y-links button { text-decoration: underline !important; }
html.a11y-font body, html.a11y-font * { font-family: Arial, Verdana, Tahoma, sans-serif !important; letter-spacing: 0.02em; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-contrast body { background: #000 !important; }
html.a11y-contrast .panel, html.a11y-contrast .result-card { background: #000 !important; border-color: #fff !important; }
html.a11y-contrast .text-slate-400, html.a11y-contrast .text-slate-300, html.a11y-contrast .text-\[var\(--text-muted\)\] { color: #fff !important; }

/* comfort-score hover bubble */
.tc-tip{position:relative;display:inline-block;cursor:help}
.tc-tipbox{display:none;position:absolute;z-index:40;bottom:calc(100% + 6px);inset-inline-start:0;min-width:15rem;max-width:18rem;background:#0b1b33;color:#e2e8f0;border:1px solid #38bdf8;border-radius:.75rem;padding:.6rem .75rem;font-size:11px;line-height:1.4;box-shadow:0 10px 30px rgba(0,0,0,.5);white-space:normal}
.tc-tip:hover .tc-tipbox,.tc-tip:focus .tc-tipbox,.tc-tip:focus-within .tc-tipbox{display:block}

/* mobile: comfortable tap targets, no horizontal scroll, bubble stays on screen */
html,body{max-width:100%;overflow-x:hidden}
@media (max-width:640px){
  .result-card button,.result-card a,#tcQuick button{min-height:40px}
  .result-card .text-lg{font-size:1.25rem}
  .tc-tipbox{position:fixed;inset-inline:12px;bottom:12px;min-width:0;max-width:none;z-index:90}
  #tcRes>div{padding:12px}
  #tcRes button{min-height:44px}
  input,select,textarea{font-size:16px !important} /* stops iOS zoom-on-focus */
  #tcQuick{gap:.4rem}
  #tcTop10{width:100%;margin-inline-start:0}
}

/* ---------- Advanced search panel (mobile.js) ---------- */
#tcAdvRow{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:12px}
#tcAdvBtn{background:rgba(15,23,42,.85);color:#e2e8f0;border:1px solid #334155;border-radius:.9rem;padding:.4rem .8rem;font-weight:800}
#tcAdvBtn[aria-expanded="true"]{border-color:#38bdf8;color:#7dd3fc}
#tcAdv{display:none}
#tcAdv.open{display:block}
@media (min-width:768px){
  #tcAdvBtn{display:none}
  #tcAdv{display:block !important}
}

/* ---------- Compact phone layout ---------- */
@media (max-width:767px){
  body{padding:.5rem !important}
  #tcPage > * + *{margin-top:.75rem !important}
  #demoBanner{font-size:11px !important;line-height:1.35;padding:.4rem .65rem !important;border-radius:.9rem !important}
  #demoBanner [data-i18n="affiliate"]{font-weight:500;opacity:.85}

  header.panel{padding:.75rem !important;border-radius:1.25rem !important}
  header .tc-desc,header .tc-preview{display:none !important}
  header > div:first-child{gap:.6rem !important}
  header .w-12.h-12{width:2.4rem !important;height:2.4rem !important;font-size:.95rem !important;border-radius:.8rem !important}
  header h1{font-size:1.05rem !important}
  #tcBeta{font-size:10px !important;padding:0 .45rem !important}
  #tcTopCtl{flex-wrap:nowrap !important;gap:.35rem !important}
  #tcTopCtl > *{flex:0 0 auto}
  #langSelect{max-width:7.5rem;padding:.35rem .45rem !important;font-size:11px !important}
  #tcTopCtl button{padding:.35rem .55rem !important;font-size:11px !important}
  #tcTopCtl [data-i18n="favorites"]{display:none}

  #tcCatRow{margin-top:.75rem !important;padding-top:.75rem !important;gap:.5rem !important}
  #tcTabs{display:grid !important;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:.3rem !important;width:100%}
  #tcTabs > button,#tcTabs > a{min-width:0;display:flex !important;align-items:center;justify-content:center;text-align:center;white-space:normal;line-height:1.2;padding:.35rem .25rem !important;border-radius:.8rem !important;font-size:11px !important}
  #tripTypeBox button{padding:.25rem .65rem !important}

  header form{margin-top:.75rem !important}
  header form > * + *{margin-top:.6rem !important}
  #tcFormGrid{grid-template-columns:1fr 1fr !important;gap:.5rem !important}
  #tcFormGrid > *{grid-column:1 / -1}
  #tcFormGrid > #startDateBox,#tcFormGrid > #endDateBox{grid-column:auto !important}
  #tcFormGrid:has(> #endDateBox.hidden) > #startDateBox{grid-column:1 / -1 !important}
  #tcFormGrid label{margin-bottom:.15rem !important;font-size:11px !important}
  #tcFormGrid input,#tcFormGrid select{padding-top:.5rem !important;padding-bottom:.5rem !important}

  #tcAdv{padding-top:.25rem}
  #tcAdv button{padding:.25rem .55rem !important;font-size:11px !important;border-radius:.75rem !important}
  #tcAdv #flightFiltersBar,#tcAdv #extraFilters{padding-top:.6rem !important}
  #tcDiscover{padding-top:.5rem !important}

  #cookieBar{padding:.45rem .75rem !important;gap:.6rem !important;font-size:11px !important;flex-wrap:nowrap !important;justify-content:space-between !important}
  #cookieBar span{line-height:1.3}
  #cookieBar button{flex:0 0 auto;padding:.35rem .8rem !important}
}
