/* =============================================
   Flightor5 — app.css
   ============================================= */

/* 1. Custom Properties
   ------------------------------------------ */
:root {
  --c-primary:       #F73B28;
  --c-primary-dk:    #D42B18;
  --c-primary-lt:    #FEF0EE;
  --c-bg:            #F4F5F7;
  --c-card:          #FFFFFF;
  --c-border:        #E2E4E9;
  --c-text:          #1A1A2E;
  --c-muted:         #6B7280;
  --c-faint:         #9CA3AF;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --tr: 160ms ease;
  --header-h: 58px;
  --content-w: 880px;
}

/* 2. Reset & Base
   ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.55;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* 3. Header
   ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}
.site-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  gap: 2px;
  flex: 1;
}
.site-nav a {
  padding: 6px 11px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: background var(--tr), color var(--tr);
}
.site-nav a:hover { background: var(--c-primary-lt); color: var(--c-primary); }
.site-controls { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: var(--r-sm);
  color: var(--c-muted);
  transition: color var(--tr), background var(--tr);
}
.notif-bell:hover { background: var(--c-primary-lt); color: var(--c-primary); }
.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--c-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 99px;
  min-width: 16px;
  text-align: center;
}
.notif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color var(--tr);
}
.notif-item:hover { border-color: var(--c-primary); }
.notif-item--unread { border-left: 3px solid var(--c-primary); }
.notif-route { flex: 1; font-size: .9rem; min-width: 0; }
.notif-src { color: var(--c-muted); font-size: .85rem; }
.notif-meta { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 2px; }
.notif-price { font-weight: 700; color: var(--c-primary); font-size: .95rem; }
.notif-date { font-size: .75rem; color: var(--c-faint); }

/* 4. Dropdowns (navDropdown compat)
   ------------------------------------------ */
.navDropdown { position: relative; }
.navDropdown-title {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--c-border);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: border-color var(--tr);
  line-height: 1.4;
  color: var(--c-text);
}
/* h2 inside navDropdown-title is presentational */
.navDropdown-title h2 { font-size: inherit; font-weight: inherit; display: contents; }
.navDropdown-title:hover { border-color: var(--c-primary); }
/* init.js shows/hides the ul directly */
.navDropdown ul {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  min-width: 155px;
  padding: 5px;
  z-index: 300;
  list-style: none;
}
.navDropdown ul a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  color: var(--c-text);
  transition: background var(--tr);
}
.navDropdown ul a:hover { background: var(--c-bg); }

/* 5. Hero
   ------------------------------------------ */
.page-hero {
  background-color: #1C1C3A;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  text-align: center;
  padding: 52px 20px 56px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 30, 0.55);
}
.page-hero h1,
.page-hero p { position: relative; }
.page-hero h1 { font-size: 1.95rem; font-weight: 700; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1rem; }

/* Offer type tags */
.offer-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; position: relative; }
.offer-tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; border-radius: 100px;
  color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  padding: 0 10px 0 8px; white-space: nowrap;
}
.offer-tag svg { flex-shrink: 0; fill: #fff; }
.offer-tag--flight { background: #5ebce0; }
.offer-tag--hotel  { background: #5E9E15; }
.offer-tag--food   { background: #eb8060; }
.offer-col--type-icons { display: flex; align-items: center; gap: 5px; }

/* 6. Page content
   ------------------------------------------ */
.page-content {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 16px 80px;
}

/* 7. Filter bar
   ------------------------------------------ */
.filter-bar {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin: -32px 0 28px;
  position: relative;
}
.filter-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filter-field {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.filter-field--narrow { max-width: 150px; }
.filter-field label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.filter-input {
  height: 42px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0 12px;
  font-size: .9rem;
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}
.filter-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(247,59,40,.10);
  background: white;
}
.filter-input::placeholder { color: var(--c-faint); }
.filter-input-wrap { position: relative; }
.filter-input-wrap .filter-input { width: 100%; }
.filter-input-wrap.has-value .filter-input { padding-right: 30px; }
.filter-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--c-faint);
  font-size: 1.1rem; line-height: 1;
  padding: 4px; cursor: pointer;
  display: none;
}
.filter-clear:hover { color: var(--c-muted); }
.filter-input-wrap.has-value .filter-clear { display: block; }
.filter-btn {
  height: 42px;
  padding: 0 22px;
  background: var(--c-primary);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--tr);
}
.filter-btn:hover { background: var(--c-primary-dk); }
.filter-types-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.filter-types {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-type {
  padding: 4px 14px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 500;
  border: 1.5px solid var(--c-border);
  color: var(--c-muted);
  background: white;
  cursor: pointer;
  transition: all var(--tr);
}
.filter-type:hover,
.filter-type.is-active {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-lt);
}
.filter-lang-check { display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.filter-lang-check input { display: none; }
.filter-check-icon {
  flex-shrink: 0;
  width: 12px; height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: relative;
}
.filter-lang-check.is-active .filter-check-icon::after {
  content: '';
  display: block;
  width: 7px; height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  position: absolute;
  top: 1px; left: 1px;
}

/* 8. Offer list
   ------------------------------------------ */
#groups { display: flex; flex-direction: column; gap: 6px; }

/* itemFlight compat */
.itemFlight {
  background: white;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.itemFlight[data-id] { cursor: default; }
.itemFlight[data-id] .offer-row { cursor: pointer; }
.itemFlight[data-id] .offer-row:hover { border-color: var(--c-primary); }
.itemFlight[data-id]:hover { border-color: var(--c-primary); }
.itemFlight.is-active {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(247,59,40,.08);
}
.offer-row {
  display: grid;
  grid-template-columns: 170px 170px 170px 1fr auto;
  column-gap: 10px;
  align-items: center;
  padding: 14px 18px;
}
.offer-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.offer-col {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.offer-col--source { color: var(--c-muted); font-size: .85rem; }
.offer-col--target { font-weight: 600; font-size: .95rem; }
.offer-col--return { color: var(--c-muted); font-size: .85rem; }
.offer-col--dates {
  color: var(--c-faint);
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.offer-col--price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-primary);
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
}
.offer-place {
  overflow: hidden;
  text-overflow: ellipsis;
}
.offer-flag {
  display: inline-block;
  height: 13px;
  width: auto;
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
}
.offer-icon {
  flex-shrink: 0;
  font-style: normal;
  font-size: .85rem;
}
.offer-chevron {
  color: var(--c-faint);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--tr);
  line-height: 1;
}
.itemFlight.is-active .offer-chevron { transform: rotate(180deg); }

.offer-separator {
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-faint);
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 20px 2px 8px;
}
.offer-tag--expired { background: var(--c-faint); }
.itemFlight.is-expired { opacity: .55; }
.itemFlight.is-expired .offer-col--price { color: var(--c-muted); }

/* 9. Offer detail
   ------------------------------------------ */
.offer-detail {
  border-top: 1px solid var(--c-border);
  padding: 20px 18px;
  background: #FAFAFA;
}
.offer-detail img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}
.offer-detail .record-source-icon {
  width: 20px; height: 20px;
  max-height: none; margin-bottom: 0;
  object-fit: contain; border-radius: 0;
  flex-shrink: 0;
}
.offer-detail h4 { font-size: .95rem; font-weight: 600; margin-bottom: 5px; }
.offer-text {
  font-size: .875rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.offer-text p { margin-bottom: 6px; }
.offer-text a { color: var(--c-primary); }
.offer-dates {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: .875rem;
}
.offer-dates th {
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0 10px 8px 0;
}
.offer-dates td {
  padding: 7px 10px 7px 0;
  border-top: 1px solid var(--c-border);
  vertical-align: middle;
}
.offer-dates td:last-child { text-align: right; padding-right: 0; }
.offer-dates strong { color: var(--c-primary); }
.offer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.offer-meta-left { display: flex; flex-direction: column; gap: 3px; }
.offer-carrier { font-size: .82rem; color: var(--c-text); font-weight: 500; }
.offer-source  { font-size: .75rem; color: var(--c-faint); }
.offer-loading { padding: 20px; text-align: center; color: var(--c-faint); font-size: .875rem; }

/* 10. Buttons
   ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--tr);
  text-decoration: none;
}
.btn-primary { background: var(--c-primary); color: white; }
.btn-primary:hover { background: var(--c-primary-dk); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--c-border);
  color: var(--c-text);
}
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-ghost { background: transparent; color: var(--c-muted); padding: 7px 4px; }
.btn-ghost:hover { color: var(--c-primary); }
.btn-sm { padding: 4px 12px; font-size: .8rem; }

/* Legacy compat for other templates */
.link.type-button,
a.link.type-button { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: var(--r-sm); font-size: .85rem; font-weight: 600; background: var(--c-primary); color: white; cursor: pointer; transition: background var(--tr); border: none; }
.link.type-button:hover { background: var(--c-primary-dk); }
.link.type-button.skinBg-grey { background: var(--c-border); color: var(--c-text); }
.link.type-button.skinBg-grey:hover { background: #D1D5DB; }
.link.type-button.skinBg-darkorange { background: var(--c-primary); color: white; }
.link.type-button.skinBg-transparent { background: transparent; color: var(--c-primary); padding: 7px 4px; }
.link.type-button.size-small, .link.type-button.size-tiny { padding: 4px 12px; font-size: .8rem; }

/* 11. Watchdog section
   ------------------------------------------ */
.watchdog-section {
  background: white;
  border-radius: var(--r-lg);
  padding: 32px;
  margin-top: 44px;
  border: 1.5px solid var(--c-border);
}
.watchdog-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 5px; }
.watchdog-section > p { color: var(--c-muted); font-size: .875rem; margin-bottom: 24px; }
.watchdog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 110px auto;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 0;
}
.watchdog-field { display: flex; flex-direction: column; gap: 5px; }
.watchdog-field label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.watchdog-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0 12px;
  font-size: .9rem;
  color: var(--c-text);
  transition: border-color var(--tr), box-shadow var(--tr);
  box-sizing: border-box;
}
.watchdog-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(247,59,40,.10);
}
.watchdog-input::placeholder { color: var(--c-faint); }
.watchdog-submit {
  height: 42px;
  padding: 0 20px;
  background: var(--c-primary);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--tr);
  width: 100%;
}
.watchdog-submit:hover { background: var(--c-primary-dk); }
.watchdog-note { font-size: .75rem; color: var(--c-faint); margin-top: 10px; }

/* 12. jQuery UI Autocomplete
   ------------------------------------------ */
.ui-autocomplete {
  border: 1px solid var(--c-border) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: 'Rubik', sans-serif !important;
  font-size: .875rem !important;
  background: white !important;
  padding: 4px !important;
  z-index: 9999 !important;
  list-style: none !important;
  max-width: 320px !important;
  width: auto !important;
  box-sizing: border-box !important;
}
.ui-menu-item-wrapper {
  padding: 7px 10px !important;
  border-radius: 4px !important;
  cursor: pointer;
}
.ui-state-active,
.ui-widget-content .ui-state-active {
  background: var(--c-primary-lt) !important;
  color: var(--c-primary) !important;
  border: none !important;
}

/* 13. Footer
   ------------------------------------------ */
.site-footer {
  background: #1C1C3A;
  color: rgba(255,255,255,.55);
  padding: 32px 20px;
}
.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color var(--tr); }
.site-footer nav a:hover { color: white; }
.site-footer-social { display: flex; gap: 16px; }
.site-footer-social a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color var(--tr); }
.site-footer-social a:hover { color: white; }
.site-footer-copy { width: 100%; font-size: .78rem; }

/* 14. Toast messages
   ------------------------------------------ */
.messages {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  right: 20px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.message {
  padding: 12px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  min-width: 280px;
  max-width: 380px;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  pointer-events: all;
  line-height: 1.45;
}
.message-success { background: #16A34A; color: #fff; }
.message-error,
.message-danger   { background: #DC2626; color: #fff; }
.message-warning  { background: #D97706; color: #fff; }
.message-info,
.message-debug    { background: #2563EB; color: #fff; }

/* Legacy inline alerts (forms, detail pages) */
.alert { padding: 10px 14px; border-radius: var(--r-sm); font-size: .875rem; margin-bottom: 8px; }
.alert-info    { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.alert-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.alert-error   { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* 15. Static page helpers
   ------------------------------------------ */
.static-page { max-width: 760px; margin: 40px auto; padding: 0 16px 80px; }
.static-page h1 { font-size: 1.7rem; font-weight: 700; margin-bottom: 20px; }
.static-page h2 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 8px; }
.static-page p { color: var(--c-muted); line-height: 1.7; margin-bottom: 10px; }
.static-page ol, .static-page ul { color: var(--c-muted); line-height: 1.7; padding-left: 20px; margin-bottom: 10px; }
.static-page code { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 4px; padding: 1px 5px; font-size: .85em; }
.static-page pre { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 14px; overflow: auto; margin: 12px 0; font-size: .85rem; }
.static-page dt { font-weight: 600; margin-top: 12px; }
.static-page dd { color: var(--c-muted); padding-left: 16px; }

/* Profile / notice pages */
.inner-page { max-width: 680px; margin: 40px auto; padding: 0 16px 80px; }
.inner-page h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.card { background: white; border: 1.5px solid var(--c-border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
.card h2 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }

/* Gallery */
.gallery { position: relative; overflow: hidden; border-radius: var(--r-md); margin: 0 0 16px; }
.gallery-track { display: flex; transition: transform .35s ease; }
.gallery-slide { flex-shrink: 0; width: 100%; max-height: 300px; object-fit: cover; display: block; }
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.40); color: #fff; border: none;
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--tr);
}
.gallery-btn:hover { background: rgba(0,0,0,.65); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* Record items (no OfferBuy) */
.record-item { padding: 16px 0; border-bottom: 1.5px solid var(--c-border); }
.record-item:first-child { padding-top: 0; }
.record-item:last-child { border-bottom: none; padding-bottom: 0; }
.record-source-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.record-source-icon { width: 20px; height: 20px; object-fit: contain; }
.record-footer { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.record-price { font-size: 1.15rem; font-weight: 700; color: var(--c-primary); flex: 1; }

/* Source attribution */
.source-attr { font-size: .78rem; color: var(--c-faint); margin-top: 4px; padding-top: 12px; }

/* Tip items */
.tip-item { padding: 16px 0; border-bottom: 1.5px solid var(--c-border); }
.tip-item:first-child { padding-top: 0; }
.tip-item:last-child { border-bottom: none; padding-bottom: 0; }
.tip-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.tip-subtitle { font-size: .85rem; color: var(--c-muted); margin-bottom: 8px; }

/* Notice list table */
.notice-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.notice-table th { text-align: left; font-size: .72rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 8px 10px 0; border-bottom: 1px solid var(--c-border); }
.notice-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--c-border); vertical-align: middle; }

/* 16. Auth forms
   ------------------------------------------ */
.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.auth-card {
  background: white;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}
.auth-card .auth-subtitle {
  text-align: center;
  color: var(--c-muted);
  font-size: .875rem;
  margin-bottom: 28px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.auth-field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.auth-field input {
  height: 42px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0 12px;
  font-size: .9rem;
  color: var(--c-text);
  transition: border-color var(--tr), box-shadow var(--tr);
  width: 100%;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(247,59,40,.10);
}
.auth-field input.is-error { border-color: #B91C1C; }
.auth-field .field-error {
  font-size: .8rem;
  color: #B91C1C;
}
.auth-submit {
  width: 100%;
  height: 44px;
  background: var(--c-primary);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--tr);
}
.auth-submit:hover { background: var(--c-primary-dk); }
.auth-foot {
  text-align: center;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--c-muted);
}
.auth-foot a { color: var(--c-primary); font-weight: 500; }
.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--c-muted);
  margin-bottom: 14px;
  cursor: pointer;
}
.auth-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--c-primary); }
.auth-logo {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.auth-success {
  text-align: center;
  padding: 12px 0 20px;
}
.auth-success p { color: var(--c-muted); font-size: .9rem; margin-bottom: 20px; }

/* 18. Responsive
   ------------------------------------------ */
@media (max-width: 680px) {
  .site-nav { display: none; }
  .site-header-inner { padding: 0 16px; gap: 0; }
  .site-controls { margin-left: auto; }
  .page-hero { padding: 36px 16px 44px; }
  .page-hero h1 { font-size: 1.45rem; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-field { flex: none; }
  .filter-field--narrow { max-width: none; }
  .filter-btn { width: 100%; }
  .watchdog-grid { grid-template-columns: 1fr; }
  .offer-row {
    grid-template-columns: 1fr auto;
    row-gap: 3px;
    column-gap: 12px;
    align-items: start;
    padding: 12px 14px;
  }
  .offer-col--source { grid-column: 1; grid-row: 1; white-space: normal; overflow: visible; }
  .offer-col--target { grid-column: 1; grid-row: 2; white-space: normal; overflow: visible; }
  .offer-col--return { grid-column: 1; grid-row: 3; white-space: normal; overflow: visible; }
  .offer-col--return[aria-hidden="true"] { display: none; }
  .offer-col--dates  { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; white-space: nowrap; }
  .offer-price-row   { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-footer { padding: 32px 16px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 19. React autocomplete dropdown
   ------------------------------------------ */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-top: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  max-height: 260px;
  overflow-y: auto;
}
.autocomplete-list li {
  padding: 8px 14px;
  font-size: .875rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete-list li:hover,
.autocomplete-list li.is-highlighted {
  background: var(--c-surface-alt, #f5f5f5);
  color: var(--c-primary);
}
