/* ============================================================
   Staticket — Mubashir International Travel Agency
   Palette from logo: coral/salmon + sunset orange on warm white
   ============================================================ */
:root {
  --orange:      #e2571f;   /* sun — primary actions */
  --orange-dark: #c4451a;
  --coral:       #f4917c;   /* plane — accents */
  --coral-soft:  #fdeee9;
  --coral-line:  #f6d9d0;
  --ink:         #33231d;   /* warm dark text */
  --muted:       #8a7168;
  --bg:          #faf7f5;
  --card:        #ffffff;
  --line:        #eee2dc;
  --red:         #b3261e;
  --red-soft:    #fdecea;
  --ok:          #1a7f43;
  --ok-soft:     #e5f4ea;
  --warn-soft:   #fff6e0;
  --warn:        #8a6a1d;
  --wa:          #25d366;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 15px/1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--orange-dark); }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.3px; }
h2 { font-size: 17px; margin: 0; }
h3 { font-size: 15px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ta-right { text-align: right; }
.ta-center { text-align: center; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .3px; }
code { background: var(--coral-soft); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ---------- Top bar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-text { font-weight: 800; font-size: 19px; letter-spacing: .3px; line-height: 1.1; color: var(--orange); }
.brand-text small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 1.4px; color: var(--coral); text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.topnav a:hover { color: var(--orange); }

/* ---------- Layout ---------- */
.page { flex: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.container-narrow { max-width: 680px; }
.page-head { margin-bottom: 20px; }
.page-head p { margin: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section-title { margin: 34px 0 12px; font-size: 16px; }
.section-h { font-size: 21px; margin: 0 0 16px; letter-spacing: -0.2px; }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(244,145,124,.35), transparent 60%),
    linear-gradient(135deg, #e2571f 0%, #ee6f33 55%, #f4917c 100%);
  color: #fff;
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 54px 20px 46px; }
.hero h1 { font-size: 36px; line-height: 1.15; letter-spacing: -0.5px; }
.hero h1 span { color: #ffe3d6; }
.hero-sub { font-size: 16px; color: #ffe9df; margin: 10px 0 26px; }
.hero-search { box-shadow: 0 14px 40px rgba(120,40,10,.25); }

/* ---------- Cards / forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card-title { margin-bottom: 12px; }
.content-card p { margin: 0 0 14px; }
label { display: block; font-size: 13.5px; font-weight: 600; margin: 10px 0 2px; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=time], input[type=number], input[type=file], select, textarea {
  width: 100%; margin-top: 5px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange);
}
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-top: 12px; }
.check input { width: auto; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; cursor: pointer;
  border-radius: 9px; padding: 11px 20px; font: inherit; font-weight: 700;
  text-decoration: none; text-align: center; transition: background .15s, filter .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-book { background: var(--orange); color: #fff; }
.btn-book:hover { background: var(--orange-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--coral-soft); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 16px; }

/* ---------- Alerts / status ---------- */
.alert { padding: 11px 14px; border-radius: 9px; margin: 0 0 14px; font-size: 14px; }
.alert-error   { background: var(--red-soft); color: var(--red); }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-warn    { background: var(--warn-soft); color: var(--warn); margin-top: 14px; }
.status { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status-pending   { background: var(--warn-soft); color: var(--warn); }
.status-confirmed, .status-active { background: var(--ok-soft); color: var(--ok); }
.status-cancelled, .status-blocked { background: var(--red-soft); color: var(--red); }

/* ---------- Auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 50px 16px; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px; }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head h1 { font-size: 22px; }
.auth-head p { margin: 4px 0 0; }
.auth-logo { height: 72px; margin-bottom: 8px; }
.auth-alt { text-align: center; font-size: 14px; margin-top: 18px; }
.link-sm { font-size: 13px; }
.auth-card .row-between { margin-top: 10px; }

/* ---------- Search bar ---------- */
.searchbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 26px;
}
.searchbar-field { flex: 1; min-width: 150px; }
.searchbar-label { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 3px; }
.searchbar select, .searchbar input { margin-top: 0; }
.searchbar .btn { padding: 11px 22px; }
.hero-search { margin-bottom: 0; border: 0; }

/* ---------- Homepage sections ---------- */
.home-section { margin: 40px 0; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.deal-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; text-decoration: none; color: var(--ink); position: relative;
  display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s;
}
.deal-card:hover { border-color: var(--coral); box-shadow: 0 8px 24px rgba(226,87,31,.12); }
.deal-route { font-weight: 800; font-size: 16px; }
.deal-route .arrow { color: var(--orange); }
.deal-meta { font-size: 13px; color: var(--muted); }
.deal-bottom { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.deal-price { font-size: 19px; font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.deal-cta {
  margin-top: 10px; align-self: flex-start;
  background: var(--coral-soft); color: var(--orange-dark);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}
.deal-card:hover .deal-cta { background: var(--orange); color: #fff; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 10px;
}

.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.route-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 16px; text-decoration: none; color: var(--ink); font-size: 14px;
}
.route-card:hover { border-color: var(--coral); }
.route-name { font-weight: 700; }
.route-price { color: var(--muted); font-size: 13px; white-space: nowrap; }
.route-price b { color: var(--orange); }

.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.trust-item { background: var(--coral-soft); border-radius: 14px; padding: 20px; }
.trust-item p { margin: 0; font-size: 13.5px; }

/* ---------- Fare groups & tables ---------- */
.fare-group { margin-bottom: 30px; }
.fare-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fare-group-head h2 { font-size: 18px; }
.badge { background: var(--coral-soft); color: var(--orange-dark); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.fare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 740px; }
.fare-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); font-weight: 800;
  padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fdfaf8;
}
.fare-table th.ta-right { text-align: right; }
.fare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fare-table tbody tr:last-child td { border-bottom: 0; }
.fare-table tbody tr:hover { background: #fdf6f2; }
.td-date { font-weight: 700; white-space: nowrap; }
.td-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--orange); }
.td-price.big { font-size: 18px; }
.td-ref { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seats { font-weight: 700; color: var(--ok); white-space: nowrap; font-size: 13px; }
.seats-low { color: var(--red); }
.row-past td { opacity: .55; }

/* ---------- Booking / payment ---------- */
.fare-summary {
  background: linear-gradient(135deg, #e2571f, #ee6f33);
  color: #fff; border-radius: 14px; padding: 20px 22px; margin-bottom: 18px;
}
.fare-summary-route { font-size: 20px; font-weight: 800; }
.fare-summary-route .arrow { color: #ffd9c7; }
.fare-summary-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 10px; font-size: 13.5px; color: #ffe3d6; }
.fare-summary-meta .seats { color: #d7ffd9; }
.fare-summary-meta .seats-low { color: #ffd2c9; }
.fare-summary-price { font-size: 23px; font-weight: 900; }
.fare-summary-price small { font-size: 13px; font-weight: 500; color: #ffe3d6; }
.pax-row { display: grid; grid-template-columns: 28px 1fr 180px; gap: 8px; align-items: center; margin-top: 8px; }
.pax-row input { margin-top: 0; }
.pax-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral-soft); color: var(--orange-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800;
}
.total-row { border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 14px; font-size: 17px; }
.total-row strong { color: var(--orange); font-variant-numeric: tabular-nums; font-size: 20px; }

.pay-head { text-align: center; padding: 10px 0 22px; }
.pay-check {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--ok-soft); color: var(--ok);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
}
.booking-summary-card, .pay-card { margin-bottom: 16px; }
.kv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kv-table td { padding: 7px 0; vertical-align: top; }
.kv-table td:first-child { color: var(--muted); width: 140px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; text-decoration: none; color: var(--ink); text-align: center;
}
a.contact-card:hover { border-color: var(--coral); }
.contact-big { font-size: 18px; font-weight: 800; margin: 4px 0 12px; }

/* ---------- Empty state ---------- */
.empty {
  background: var(--card); border: 1px dashed var(--coral-line); border-radius: 14px;
  text-align: center; padding: 44px 20px; color: var(--muted);
}
.empty .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 30px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 34px 20px;
  display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 26px;
}
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.footer-col a, .footer-col span { display: block; font-size: 14px; margin: 6px 0; color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--orange); }
.footer-col p { font-size: 13.5px; margin: 8px 0 0; }
.footer-logo { height: 66px; }
.footer-bar { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; padding: 14px; }

/* ---------- Floating buttons ---------- */
.float-btn {
  position: fixed; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.22); text-decoration: none;
}
.float-wa   { right: 20px; background: var(--wa); }
.float-call { left: 20px; background: var(--orange); }

/* ---------- Admin ---------- */
.admin-nav {
  max-width: 1100px; margin: 0 auto; padding: 10px 20px 0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px;
}
.admin-nav a { text-decoration: none; color: var(--muted); font-weight: 700; padding: 6px 2px; border-bottom: 2px solid transparent; }
.admin-nav a.on, .admin-nav a:hover { color: var(--orange-dark); border-bottom-color: var(--orange); }
.admin-nav-spacer { flex: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.stat-num { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.stat-num.attn { color: var(--red); }
.stat-label { font-size: 12.5px; color: var(--muted); }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tabs a { text-decoration: none; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 13px; border-radius: 999px; }
.filter-tabs a.on { background: var(--orange); color: #fff; }
.admin-forms { align-items: start; margin-bottom: 8px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input[type=text] { margin-top: 0; width: auto; }

.booking-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.booking-card-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; background: #fdfaf8; border-bottom: 1px solid var(--line); font-size: 14px;
}
.booking-total { margin-left: auto; font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.booking-card-body { padding: 14px 16px; display: grid; gap: 10px; font-size: 14px; }
.pax-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pax-chip { background: var(--coral-soft); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .hero-inner { padding: 38px 20px 32px; }
  .topnav { gap: 12px; font-size: 13px; }
  .hide-sm { display: none; }
  .brand-text small { display: none; }
  .brand-logo { height: 40px; }
  .pax-row { grid-template-columns: 24px 1fr; }
  .pax-row input[name="pax_passport[]"] { grid-column: 2; }
  .auth-card { padding: 26px 20px; }
  .searchbar .btn { width: 100%; }
}
