/* Vayara web app — extra pieces on top of the vayara.app design (style.css) */

/* Header */
.links a.on { color: var(--text); }
.userbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer; }
.userbtn svg { width: 18px; height: 18px; margin-left: 6px; }
.avatar { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
@media (max-width: 1080px) { .links { gap: 16px; margin-left: 8px; } .links a { font-size: 14px; } }
@media (max-width: 900px) { .uname { display: none; } .userbtn { padding: 0 6px; } .nav .right #gopro span { display: none; } }
@media (max-width: 760px) { .links a.on { color: var(--primary); } }

/* Pages */
.page { padding: 44px 0 64px; min-height: 60vh; }
.narrow { max-width: 820px; }
.sect { font-size: 20px; font-weight: 800; margin: 30px 0 12px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; color: var(--soft); margin-top: 10px; }
.hint { color: var(--muted); margin: 6px 0 12px; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 700; color: var(--muted); }
.link { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.link svg { width: 16px; height: 16px; }
.danger { color: var(--sos) !important; }
.btn.sm { padding: 8px 12px; font-size: 13.5px; border-radius: 11px; }
.btn.sm svg { width: 15px; height: 15px; }
.btn.big { padding: 15px 24px; font-size: 17px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.center .btnrow, .center .chips { justify-content: center; }
.card + .card { margin-top: 14px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 .ic { width: 34px; height: 34px; border-radius: 10px; }
.card h3 .ic svg { width: 17px; height: 17px; }
.link-card { display: block; color: var(--text); transition: transform .15s ease; }
.link-card:hover { transform: translateY(-2px); }
.ic.big { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 10px; }
.ic.big svg { width: 30px; height: 30px; }
.pro { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--accent); border-radius: 6px; padding: 2px 6px; vertical-align: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 .card + .card, .grid3 .card + .card { margin-top: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Forms */
.form { display: grid; gap: 12px; align-content: start; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--text); }
input, select, textarea { width: 100%; min-height: 48px; font-weight: 500; font-size: 15.5px; font-family: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
input[disabled] { opacity: .7; }
textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.inline { display: flex; gap: 10px; align-items: end; }
.inline label { flex: 1; }
.bookform { grid-template-columns: repeat(4, 1fr); align-items: end; }
.bookform .span2 { grid-column: span 2; }
.bookform .tiny { grid-column: 1 / -1; margin: 0; }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 17px; opacity: .7; }
.switch { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; font-weight: 600; }
.switch input { width: auto; }

/* Big search */
.bigsearch { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 7px 7px 7px 16px; box-shadow: var(--shadow); margin-top: 24px; max-width: 620px; }
.bigsearch > svg { width: 20px; height: 20px; color: var(--soft); flex: none; }
.bigsearch input { border: 0; background: transparent; padding: 10px 4px; font-size: 17px; box-shadow: none !important; }
.bigsearch .near { width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bigsearch .near svg { width: 20px; height: 20px; }
.bigsearch.slim { margin: 6px 0 4px; max-width: 760px; }
.app-hero { padding-top: 48px; }
.app-hero h1 { font-size: clamp(44px, 6.4vw, 80px); }

/* Chips & tabs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 30px; padding: 8px 14px; font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; font-weight: 800; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 18px 0 8px; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 13px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.tab svg { width: 17px; height: 17px; }
.tab.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* Home */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.qbtn { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text); box-shadow: var(--shadow); text-align: center; transition: transform .15s; }
.qbtn:hover { transform: translateY(-2px); }
.qbtn b { font-size: 14.5px; }
.qbtn.sos .ic { background: linear-gradient(135deg, #EB3B52, var(--sos)); }
.trip-banner { display: flex; align-items: center; gap: 14px; background: linear-gradient(155deg, var(--panel-a), var(--panel-b)); color: #fff; border-radius: 20px; padding: 16px 20px; margin-bottom: 16px; }
.trip-banner .ic { background: rgba(255,255,255,.18); }
.trip-banner b { display: block; }
.trip-banner span { opacity: .85; font-size: 14px; }
.go { margin-left: auto; font-weight: 800; }
.dest { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 26px; }
.destcard { height: 130px; border-radius: 20px; background: linear-gradient(155deg, var(--panel-a), var(--panel-b)); display: flex; align-items: flex-end; padding: 14px; color: #fff; font-weight: 800; font-size: 17px; position: relative; overflow: hidden; }
.destcard::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }

/* City & places */
.cityhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.cityhead h2 { margin: 0; }
.cityact { display: flex; gap: 8px; flex-wrap: wrap; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pimg { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--soft); }
.noimg svg { width: 36px; height: 36px; }
.heart-btn { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.92); color: #6B7280; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.heart-btn svg { width: 19px; height: 19px; }
.heart-btn.on { color: #EB3B52; }
.heart-btn.on svg { fill: currentColor; }
.spons { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; }
.pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pbody h4 { font-size: 16.5px; line-height: 1.25; }
.rate { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; color: var(--text); }
.rate svg { width: 15px; height: 15px; color: #F5A524; fill: #F5A524; }
.rate small { color: var(--soft); font-weight: 500; }
.ptype { font-size: 12.5px; color: var(--accent); font-weight: 700; }
.addr { font-size: 13.5px; color: var(--muted); }
.pact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }

/* Book */
.result h3 { margin-top: 0; }
.flist { display: grid; gap: 10px; margin-top: 14px; }
.linkrow { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; color: var(--text); }
.linkrow span { color: var(--muted); font-size: 14px; }
.linkrow em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--primary); }
#bk > .card, #bk > form { margin-top: 10px; }

/* Plan */
.tlist { display: grid; gap: 10px; }
.tcard { display: flex !important; align-items: center; gap: 14px; color: var(--text); padding: 16px 18px; margin-bottom: 12px; }
.tcard b { display: block; font-size: 16.5px; }
.tcard span:not(.ic):not(.go) { color: var(--muted); font-size: 14px; }
.mini { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.minicard { flex: none; width: 150px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); font-weight: 700; font-size: 13.5px; }
.minicard img { width: 100%; height: 96px; object-fit: cover; }
.minicard span { display: block; padding: 8px 10px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 18px 0; }
.days .card + .card { margin-top: 0; }
.dayhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.stops { padding-left: 20px; display: grid; gap: 8px; }
.stops li { display: flex; justify-content: space-between; gap: 8px; }
.stops li b { display: block; font-size: 15px; }
.stops li span { font-size: 13px; color: var(--muted); }
.sbtn { display: flex; gap: 2px; flex: none; }
.sbtn button { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; cursor: pointer; color: var(--muted); }
.addstop { display: flex; gap: 6px; margin-top: 10px; }
.addstop input { padding: 8px 10px; font-size: 14px; }
.code { font-size: 36px; font-weight: 800; letter-spacing: .2em; text-align: center; padding: 16px; background: var(--bg-soft); border-radius: 16px; margin-top: 10px; }

/* Chat */
.chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: min(68vh, 640px); margin-top: 18px; }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 82%; padding: 12px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.5; }
.bubble p + p, .bubble ul { margin-top: 6px; }
.bubble ul { padding-left: 18px; }
.bubble.me { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: var(--bg-soft); color: var(--text); border-bottom-left-radius: 6px; }
.bubble small { display: block; font-size: 11.5px; opacity: .7; margin-top: 4px; }
.bubble .who { margin: 0 0 3px; font-weight: 800; opacity: 1; color: var(--accent); }
.typing { display: flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.sugg { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 10px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer textarea { min-height: 46px; max-height: 140px; resize: none; }
.composer .btn { height: 46px; width: 50px; padding: 0; }
.iconbtn { width: 46px; height: 46px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--primary); display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn svg { width: 20px; height: 20px; }

/* Tools */
.bigres { font-size: 22px; padding: 6px 0; }
.tout { min-height: 60px; padding: 14px; background: var(--bg-soft); border-radius: 14px; font-size: 18px; white-space: pre-wrap; }
.tout:empty { display: none; }
.btn.rec { background: var(--sos); color: #fff; border-color: var(--sos); }
.dots { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.dots li { padding-left: 18px; position: relative; color: var(--muted); }
.dots li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.checks { list-style: none; display: grid; gap: 4px; margin: 8px 0 14px; }
.checks li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--primary); }
.bar { height: 12px; background: var(--bg-soft); border-radius: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ok); border-radius: 10px; }
.bar span.over { background: var(--sos); }
.mapbox { height: 62vh; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); margin-top: 16px; }
.ecard { background: linear-gradient(155deg, #94243F, #2A0A14); color: #fff; border-radius: 22px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.ecard small { display: block; opacity: .75; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* Halal */
.ptimes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.pt { background: var(--bg-soft); border-radius: 16px; padding: 14px 10px; text-align: center; }
.pt span { display: block; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.pt b { font-size: 22px; }
.pt small { display: block; font-size: 11px; font-weight: 800; }
.pt.next { background: linear-gradient(155deg, var(--panel-a), var(--panel-b)); color: #fff; }
.pt.next span { color: rgba(255,255,255,.8); }
.qibla { width: 220px; height: 220px; border-radius: 50%; margin: 10px auto 18px; background: radial-gradient(circle, var(--bg-soft) 60%, var(--card) 61%); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.needle { width: 90px; height: 90px; color: var(--primary); transition: transform .4s ease; }
.needle svg { width: 100%; height: 100%; }
.tablewrap { overflow-x: auto; margin-top: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--accent); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }

/* Safe */
.sosbox { background: linear-gradient(155deg, #94243F, #2A0A14); color: #fff; border-radius: 26px; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.sosbox p { color: rgba(255,255,255,.85); max-width: 520px; }
.sosbox .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.sosbox .btn-donate { background: #fff; color: #C2344D; }

/* Auth modal */
.modal .box { text-align: left; position: relative; max-height: 92vh; overflow-y: auto; }
.modal .box.wide { max-width: 640px; }
.modal .box .x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; color: var(--soft); cursor: pointer; line-height: 1; }
.modal .box h3 { margin-top: 4px; }
.modal .box .btn { margin-top: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: 13px; padding: 4px; margin: 10px 0 14px; }
.seg button { border: 0; background: none; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 14.5px; font-family: inherit; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.auth .link { margin: 6px auto 0; }

/* States */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; color: var(--muted); font-weight: 600; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 30px 18px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 18px; margin-top: 14px; }
#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(420px, 92vw); }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .4s, transform .4s; }
.toast.ok { background: var(--ok); color: #fff; }
.toast.err { background: var(--sos); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* Responsive */
@media (max-width: 980px) {
  .quick { grid-template-columns: repeat(5, 1fr); }
  .dest { grid-template-columns: repeat(3, 1fr); }
  .bookform { grid-template-columns: 1fr 1fr; }
  .ptimes { grid-template-columns: repeat(3, 1fr); }
  .grid3 { grid-template-columns: 1fr; }
  .app-hero .phones { display: none; }
}
@media (max-width: 760px) {
  .quick { grid-template-columns: repeat(3, 1fr); }
  .qbtn { padding: 12px 8px; }
  .qbtn b { font-size: 13px; }
  .dest { grid-template-columns: repeat(2, 1fr); }
  .grid2, .row2, .row3, .ecard { grid-template-columns: 1fr; }
  .bookform { grid-template-columns: 1fr; }
  .bookform .span2 { grid-column: auto; }
  .bigsearch .btn { padding: 12px 14px; }
  .bubble { max-width: 90%; }
  .page { padding-top: 28px; }
}

/* Print (trip PDF) */
@media print {
  header.top, footer, .noprint, #toasts { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* Partner listing */
.pcard.sponsored { border: 2px solid var(--accent); }
.spons { background: var(--accent) !important; }
#hsp .pgrid { margin: 14px 0; }

/* Form alignment (same height for every field) */
select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.bookform label, .grid2 .form label { align-self: end; }
.grid2 { align-items: start; }
.form h3 { margin: 0 0 4px; }

/* Results header */
.resbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 4px; padding: 14px 18px; background: var(--bg-soft); border-radius: 16px; }
.resbar .btnrow { margin: 0; }

/* Flight cards */
.fcard { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fmain { flex: 1; min-width: 0; }
.fair { font-weight: 800; font-size: 15.5px; }
.fair small { color: var(--soft); font-weight: 600; margin-left: 6px; }
.froute { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.froute > div:not(.fline) b { display: block; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; }
.froute > div:not(.fline) span { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.fline { flex: 1; max-width: 260px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.fline i { display: block; height: 2px; background: var(--line); position: relative; }
.fline i::after { content: ''; position: absolute; right: -2px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fline small { color: var(--soft); font-size: 12.5px; font-weight: 600; min-height: 16px; }
.fdate { font-size: 13px; margin-top: 6px; }
.fside { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.fprice { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--primary); }
.fside .btn { margin-top: 6px; }
@media (max-width: 640px) { .fcard { flex-direction: column; align-items: stretch; } .fside { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; } .fside .btn { margin: 0; } }

/* Cruise line cards */
.ccard { margin: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.ccard h4 { font-size: 18px; }
.cico { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; }
.cico svg { width: 22px; height: 22px; }
.ccard .btnrow { margin-top: auto; padding-top: 8px; }
.bookform .switch.flex { align-self: center; margin-top: 22px; }
.resbar .chips .chip { padding: 6px 12px; font-size: 13px; }
.fleg + .fleg { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ftag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

/* Flight card: one line per trip, both trips in one box */
.fcard .fmain { display: grid; gap: 0; }
.fleg { display: grid; grid-template-columns: 96px 104px minmax(90px, 1fr) 104px minmax(120px, 1.1fr); align-items: center; gap: 14px; padding: 10px 0; }
.fleg + .fleg { margin-top: 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.fwhen { display: flex; flex-direction: column; }
.fwhen small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ftag { margin: 0; }
.ft b { display: block; font-size: 19px; letter-spacing: -0.02em; line-height: 1.15; }
.ft span { color: var(--muted); font-weight: 700; font-size: 13px; }
.fleg .fline { max-width: none; }
.fleg .fair { font-size: 14.5px; }
.fleg .fair small { display: block; margin: 0; }
@media (max-width: 760px) {
  .fleg { grid-template-columns: 70px 64px 1fr 64px; gap: 8px; }
  .fleg .fair { grid-column: 2 / -1; font-size: 13px; }
  .ft b { font-size: 16px; }
}
.ft b { white-space: nowrap; }

/* ============ Date picker (big, DD/MM/YYYY) ============ */
.dpwrap { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--text); align-self: end; position: relative; }
.dpwrap.off { display: none; }
.dp { position: relative; }
.dp-btn { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font-family: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; text-align: left; letter-spacing: .01em; }
.dp-btn svg { width: 19px; height: 19px; color: var(--accent); flex: none; }
.dp-btn.empty span { color: var(--soft); font-weight: 500; }
.dp.open .dp-btn, .dp-btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); outline: none; }
.dp.need .dp-btn { border-color: var(--sos); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sos) 22%, transparent); }
.dp-pop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; width: 440px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px 20px 14px; box-shadow: 0 24px 60px rgba(7, 14, 38, .22), 0 2px 8px rgba(7, 14, 38, .06); animation: dpIn .16s ease; font-weight: 500; }
@keyframes dpIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dp-head b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-transform: capitalize; }
.dp-nav { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.dp-nav:hover:not([disabled]) { background: var(--bg-soft); }
.dp-nav[disabled] { opacity: .3; cursor: default; }
.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-week span { text-align: center; font-size: 12.5px; font-weight: 800; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0 8px; }
.dp-d { height: 52px; border: 0; border-radius: 14px; background: transparent; color: var(--text); font-family: inherit; font-size: 16.5px; font-weight: 600; cursor: pointer; position: relative; transition: background .12s; }
.dp-d.we { color: var(--accent); }
.dp-d:hover:not([disabled]):not(.sel) { background: var(--bg-soft); }
.dp-d.today::after { content: ''; position: absolute; left: 50%; bottom: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--sos); transform: translateX(-50%); }
.dp-d.range { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 0; }
.dp-d.start { background: color-mix(in srgb, var(--primary) 22%, transparent); }
.dp-d.sel { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.dp-d.sel.today::after { background: #fff; }
.dp-d[disabled] { color: var(--soft); opacity: .35; cursor: default; text-decoration: line-through; text-decoration-thickness: 1px; }
.dp-d.blank { pointer-events: none; }
.dp-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dp-m { height: 56px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-transform: capitalize; }
.dp-m:hover:not([disabled]):not(.sel) { background: var(--bg-soft); }
.dp-m.sel { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.dp-m[disabled] { opacity: .35; cursor: default; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.dp-link { border: 0; background: none; color: var(--primary); font-family: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; padding: 6px 4px; }
.dp-link[disabled] { opacity: .4; }
@media (max-width: 760px) {
  .dp-pop { position: fixed; left: 50%; top: auto; bottom: 12px; transform: translateX(-50%); width: min(440px, calc(100vw - 20px)); animation: none; }
  .dp-d { height: 46px; }
}

/* ============ One way / Round trip ============ */
.trip { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 14px; justify-self: start; }
.trip label { display: block; cursor: pointer; }
.trip input { position: absolute; opacity: 0; pointer-events: none; }
.trip span { display: block; padding: 9px 18px; border-radius: 11px; font-weight: 800; font-size: 14.5px; color: var(--muted); transition: background .15s, color .15s; }
.trip input:checked + span { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.trip input:focus-visible + span { outline: 2px solid var(--accent); }
.bookform .span4 { grid-column: 1 / -1; }

/* ============ Photo hero (Book) ============ */
.bookhero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 34px; min-height: 420px; display: flex; align-items: flex-end;
  background: linear-gradient(155deg, var(--panel-a), var(--panel-b)); }
.bh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.6s ease; }
.bh-img.in { opacity: 1; transform: none; }
.bh-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(7, 14, 38, .74) 0%, rgba(7, 14, 38, .42) 45%, rgba(7, 14, 38, .05) 100%),
  linear-gradient(0deg, rgba(7, 14, 38, .45) 0%, rgba(7, 14, 38, 0) 40%); }
.bh-in { position: relative; z-index: 1; width: min(1160px, 100% - 32px); }
.bookhero .kicker { color: #FFB3BD; }
.bookhero h2 { color: #fff; font-size: clamp(36px, 5vw, 60px); max-width: 760px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.bookhero h2 em { color: #FFB3BD; }
.bookhero .sub { color: rgba(255,255,255,.88); }
.tabs.glass { margin-top: 26px; }
.tabs.glass .tab { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tabs.glass .tab:hover { background: rgba(255,255,255,.24); }
.tabs.glass .tab.on { background: #fff; color: #1C1C1E; border-color: #fff; }
.bh-credit { position: absolute; right: 14px; bottom: 30px; z-index: 3; display: flex; align-items: center; gap: 6px; flex-direction: row-reverse; max-width: 80%; }
.bh-credit button { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.25); color: rgba(255,255,255,.85); font: italic 700 12px Georgia, serif; cursor: pointer; padding: 0; }
.bh-credit a { display: none; font-size: 11.5px; color: #fff; background: rgba(0,0,0,.55); padding: 4px 9px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-credit:hover a, .bh-credit.show a { display: block; }
.bookpage { padding-top: 0; }
.bookpage #bk { margin-top: -18px; position: relative; z-index: 2; }
@media (max-width: 760px) { .bookhero { min-height: 340px; padding: 40px 0 26px; } .bh-credit { max-width: 92%; } }

/* Photo picker (#/photos) */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ph-tile { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ph-tile.broken { opacity: .35; }
.ph-img { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-img b { position: absolute; left: 10px; top: 10px; background: var(--primary); color: #fff; font-size: 15px; padding: 4px 10px; border-radius: 9px; }
.ph-tile figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px; }

/* Home hero with illustration */
.homehero { position: relative; overflow: hidden; color: #fff; padding: 84px 0 64px; min-height: 560px; display: flex; align-items: center; background: #1B2148; }
.homehero .bh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 1; transform: none; }
.homehero .bh-shade { background: linear-gradient(90deg, rgba(7, 14, 38, .55) 0%, rgba(7, 14, 38, .25) 45%, rgba(7, 14, 38, 0) 70%); }
.homehero h1 { color: #fff; margin: 18px 0 8px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.homehero h1 .grad { background: linear-gradient(90deg, #FFB3BD, #FFE2A8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.homehero .pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.homehero .pill svg { color: #FFB3BD; }
.homehero .note { color: rgba(255,255,255,.85); }
.homehero .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.homehero .chip:hover { background: rgba(255,255,255,.26); }
.homehero .bigsearch { background: var(--card); }
@media (max-width: 760px) { .homehero { min-height: 480px; padding: 48px 0 40px; } .homehero .bh-img { object-position: 78% 50%; } }

/* Tools: white icons and white PRO (the generic ".tool span" rule made them grey) */
.tool .ic, .tool .ic svg { color: #fff; }
.tool .pro { color: #fff; font-size: 10px; }

/* Page heroes (Discover, Plan, Tools, Ask, Messages) */
.pagehero { min-height: 380px; }
.pagehero .bh-img { opacity: 1; transform: none; object-position: 72% 50%; }
.pagehero .bigsearch { margin-top: 20px; }
.pagehero .note { color: rgba(255,255,255,.85); }
.pagehero .btnrow { margin-top: 22px; }
.glassbtn { background: rgba(255,255,255,.14) !important; color: #fff !important; border-color: rgba(255,255,255,.3) !important; }
.heropage { padding-top: 28px; }
.heropage .chat { margin-top: 0; }
@media (max-width: 760px) { .pagehero { min-height: 300px; } .pagehero .bh-img { object-position: 80% 50%; } }

/* Plugs & voltage */
.pl-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.pl-head h3 { font-size: 24px; margin: 4px 0 0; }
.pl-volt { text-align: right; background: var(--bg-soft); border-radius: 16px; padding: 10px 16px; }
.pl-volt b { display: block; font-size: 26px; color: var(--primary); letter-spacing: -0.02em; }
.pl-volt span { color: var(--muted); font-weight: 700; }
.pl-ok, .pl-warn { display: flex; gap: 12px; align-items: center; border-radius: 16px; padding: 14px 18px; margin-top: 12px; font-size: 15px; }
.pl-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--text); }
.pl-ok svg { color: var(--ok); }
.pl-warn { background: color-mix(in srgb, var(--sos) 12%, transparent); color: var(--text); }
.pl-warn svg { color: var(--sos); }
.pl-ok svg, .pl-warn svg { width: 22px; height: 22px; flex: none; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.pl-card { display: flex; gap: 16px; align-items: center; margin: 0 !important; }
.pl-card b { font-size: 18px; }
.pl-card p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.pl-main { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 6px; padding: 2px 7px; vertical-align: 2px; }
.pl-pic { width: 96px; height: 96px; flex: none; border-radius: 20px; background: linear-gradient(135deg, var(--accent), var(--primary)); display: flex; align-items: center; justify-content: center; }
.plug-svg { width: 78px; height: 78px; }
.plug-body { fill: #fff; }
.plug-pins { fill: #1C1C1E; color: #1C1C1E; }

/* Language picker (top menu, after Messages) */
.langpick { position: relative; display: flex; align-items: center; }
.langbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-family: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.langbtn svg { width: 17px; height: 17px; color: var(--accent); }
.lang-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 80; width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(7,14,38,.22); padding: 12px; }
[dir="rtl"] .lang-menu { left: auto; right: 0; }
.lang-menu input { min-height: 44px; margin-bottom: 8px; }
.lang-menu ul { list-style: none; max-height: 340px; overflow-y: auto; display: grid; gap: 2px; }
.lang-menu li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.lang-menu li:hover { background: var(--bg-soft); }
.lang-menu li.on { background: var(--primary); color: var(--on-primary); }
.lang-menu li.on span { color: inherit; opacity: .8; }
.lang-menu li b { font-size: 15px; }
.lang-menu li span { font-size: 12.5px; color: var(--soft); }
.lang-menu li[hidden] { display: none; }
html.translating #app { transition: opacity .2s; }
@media (max-width: 760px) { .langpick { padding: 10px 0; } .lang-menu { position: static; width: 100%; margin-top: 8px; box-shadow: none; } }

.dp-sels { display: flex; gap: 6px; }
.dp-sel { min-height: 42px; width: auto; padding: 8px 32px 8px 12px; font-size: 16px; font-weight: 800; text-transform: capitalize; border-radius: 12px; background-color: var(--bg); }
@media (max-width: 420px) { .dp-sel { font-size: 14px; padding-right: 28px; } }
.stag { display: inline-block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--ok); border-radius: 6px; padding: 2px 7px; margin-bottom: 3px; }
.sbtn select { min-height: 26px; height: 26px; width: auto; padding: 0 22px 0 6px; font-size: 12px; border-radius: 8px; background-position: right 4px center; background-size: 12px; color: var(--muted); }

/* v10: calendar inside popups opens centered on screen (never cut off) */
.modal .dp-pop { position: fixed !important; left: 50% !important; right: auto !important; top: 50% !important; bottom: auto !important; transform: translate(-50%, -50%); z-index: 1000; animation: none; width: min(440px, calc(100vw - 20px)); max-height: calc(100vh - 24px); overflow-y: auto; }
.modal .box.wide.auth { max-width: 600px; }

/* v11: best route button */
.day .routebtn { margin: 4px 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.day .routebtn svg { width: 18px; height: 18px; }
.routelist { margin: 6px 0 16px; padding-left: 22px; line-height: 1.8; font-weight: 600; }
.routebtns { display: grid; gap: 10px; }
.routebtns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.routebtns .btn svg { width: 18px; height: 18px; }
.modal .box h3 svg { width: 22px; height: 22px; vertical-align: -4px; margin-right: 4px; }

/* Book: transfers, eSIM, tours, insurance */
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chiprow .muted { font-weight: 700; font-size: 13px; }
.fineprint { font-size: 13px; margin: 14px 0 0; line-height: 1.5; }
.bookpage h3.sect { margin: 26px 0 12px; }
.pgrid > .card.pcard { padding: 18px; gap: 6px; }
.pgrid > .card.pcard h3 { margin: 0; }
.pgrid > .card.pcard .btnrow { margin-top: auto; padding-top: 10px; }

/* Halal Day Autopilot */
.aplist { display: grid; gap: 8px; margin-top: 10px; }
.aprow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; background: var(--card); }
a.aprow:hover { border-color: var(--primary); }
.aprow.prayer { background: var(--soft, rgba(38,65,94,.08)); }
.aprow .apt { width: 54px; color: var(--primary); font-size: 16px; }
.aprow .api svg { width: 18px; height: 18px; color: var(--primary); }
.aprow .apx { display: flex; flex-direction: column; }
.aprow .apx small { color: var(--muted); }
.err { color: #D70015; font-weight: 700; }
