/* AmarSofor search — full-weight AsTwo Dark (landing concept) */
:root {
  --primary: #ff5a00;
  --as-orange: #ff5a00;
  --as-orange-dark: #e04e00;
  --ink: #f7f7f5;
  --muted: #a8a8aa;
  --line: rgba(255, 255, 255, 0.11);
  --soft: #101010;
  --panel: #141414;
  --panel2: #1a1a1a;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  --as-font: "Instrument Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --as-max: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.as-search-page {
  margin: 0;
  font-family: var(--as-font);
  color: var(--ink);
  background: #0a0a0b;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

/* Landing header chrome */
.top {
  height: 34px;
  padding: 0 max(4vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #0a0a0b, #0a0a0b 56%, #17100d);
  color: #d0d0d0;
  font-size: 12px;
  font-weight: 750;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: height 0.22s ease, opacity 0.18s ease, padding 0.22s ease, border-width 0.22s ease;
}

/* Sticky search chrome — JustFly-style: header collapses on scroll, search stays */
.as-search-sticky {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #0a0a0b;
}

body.as-search-page .as-search-sticky > header {
  height: 82px;
  padding: 0 max(4vw, 24px);
  display: flex;
  align-items: center;
  gap: 34px;
  background: rgba(10, 10, 11, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: height 0.22s ease, opacity 0.18s ease, padding 0.22s ease, border-width 0.22s ease, box-shadow 0.22s ease;
}

body.as-search-page .as-search-sticky > header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

body.as-search-page .as-search-sticky > header .logo i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fb520c, #ea580c 55%, #c2410c);
  color: #fff;
  font: 800 21px Georgia, serif;
  font-style: normal;
  box-shadow: 0 10px 24px rgba(251, 82, 12, 0.3);
}

body.as-search-page .as-search-sticky > header .logo b {
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 800;
}

body.as-search-page .as-search-sticky > header .logo b span {
  color: var(--primary);
}

body.as-search-page .as-search-sticky > header nav {
  margin-right: auto;
}

body.as-search-page .as-search-sticky > header .exploreBtn,
body.as-search-page .as-search-sticky > header .headerActions .headerLink,
body.as-search-page .as-search-sticky > header .headerActions .listBtn,
body.as-search-page .as-search-sticky > header .headerActions .signup {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #d4d8e0;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

body.as-search-page .as-search-sticky > header .exploreBtn:hover,
body.as-search-page .as-search-sticky > header .headerActions .headerLink:hover,
body.as-search-page .as-search-sticky > header .headerActions .listBtn:hover,
body.as-search-page .as-search-sticky > header .headerActions .signup:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

body.as-search-page .as-search-sticky > header .headerActions {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.as-search-page .as-search-sticky > header .headerActions .signin {
  display: inline-flex;
  align-items: center;
  background: #ff5a00;
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255, 90, 0, 0.24);
}

body.as-search-page .as-search-sticky > header .headerActions .signin:hover {
  background: #ff6a1a;
  color: #fff;
}

body.as-search-page .as-search-sticky > header .headerActions [hidden] {
  display: none !important;
}

/* Search band — sticks with chrome; compacts when header hides */
.as-search-hero {
  position: relative;
  overflow: visible;
  padding: 28px max(4vw, 24px) 24px;
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(255, 90, 0, 0.12), transparent 55%),
    #0a0a0b;
  border-bottom: 1px solid var(--line);
  transition: padding 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body.as-search-scrolled .as-search-sticky .top {
  height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
  pointer-events: none;
}

body.as-search-scrolled .as-search-sticky > header {
  height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
  box-shadow: none;
  pointer-events: none;
}

body.as-search-scrolled .as-search-hero {
  padding: 10px max(4vw, 24px) 12px;
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.as-search-scrolled .landing-search-wrap .expSearch {
  padding: 8px 10px 10px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

body.as-search-scrolled .landing-search-wrap .expTabs {
  padding: 0 4px 8px;
  gap: 5px;
  justify-content: flex-start;
}

body.as-search-scrolled .landing-search-wrap .expTabs button {
  flex: 0 0 auto;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

body.as-search-scrolled .landing-search-wrap .expTabs button i {
  display: none;
}

body.as-search-scrolled .landing-search-wrap .expTabs button:not(.active) {
  opacity: 0.72;
}

body.as-search-scrolled .landing-search-wrap .expOptions {
  display: none;
}

body.as-search-scrolled .landing-search-wrap .expFields.dynamic .searchField {
  min-height: 54px;
  padding: 8px 12px;
}

body.as-search-scrolled .landing-search-wrap .dynamicSearchBtn {
  min-height: 54px;
}

.as-search-hero-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.landing-search-wrap {
  margin: 0 auto;
  width: 100%;
}

.landing-search-wrap .expSearch {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.landing-search-wrap .expTabs {
  justify-content: center;
}

/* Trust strip — full weight black */
.as-trust {
  width: 100%;
  padding: 1rem max(4vw, 24px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  background: #0a0a0b;
  border-bottom: 1px solid var(--line);
}

.as-trust div {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.35;
  padding: 0.35rem 0.25rem;
}

.as-trust strong {
  display: block;
  color: #fff;
  font-weight: 700;
}

.as-trust i {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 9px;
  background: rgba(255, 90, 0, 0.14);
  color: #ff8a3a;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 0.75rem;
}

/* Results workspace — full weight */
.as-search-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.75rem max(4vw, 24px) 4rem;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 90, 0, 0.06), transparent 32%),
    #0a0a0b;
}

.as-search-main-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.as-headrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.as-headrow h2 {
  margin: 0 0 0.25rem;
  font: 800 clamp(1.45rem, 2.5vw, 2rem) / 1.1 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.03em;
  color: #fff;
}

.as-headrow p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.as-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.as-sort select,
.as-filters input,
.as-filters select,
#strong-filters input,
#strong-filters select {
  min-height: 2.45rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
  color: var(--ink);
}

.as-browse {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.as-filters {
  position: sticky;
  top: 5.25rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.as-filters h3 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.as-filter-section {
  margin: 0.95rem 0 0.5rem;
  color: #fb7a42;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.as-filters label {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.as-filters label.as-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #b8c0cc;
  font-size: 0.85rem;
}

.as-filters label input,
.as-filters label select {
  display: block;
  width: 100%;
}

.as-filters label.as-check input {
  width: auto;
  min-height: 0;
}

#common-filters,
#strong-filters {
  margin-top: 0.35rem;
}

#strong-filters {
  padding-top: 0.35rem;
}

.as-filter-range {
  margin-top: 0.35rem;
  display: grid;
  gap: 0;
}

.as-apply-filters,
#apply-filters {
  width: 100%;
  min-height: 2.55rem;
  margin-top: 0.55rem;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 90, 0, 0.24);
}

#apply-filters:hover,
.as-apply-filters:hover {
  background: #ff6a1a;
}

.as-mobile-filters {
  display: none;
  width: 100%;
  margin-bottom: 0.85rem;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.as-results {
  display: grid;
  gap: 1rem;
}

.as-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 200px;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.as-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 0, 0.55);
}

.as-card-media {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(145deg, rgba(255, 90, 0, 0.22), rgba(10, 10, 10, 0.2)),
    #1a1a1a;
  background-size: cover;
  background-position: center;
}

.as-card-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.82);
  color: #ff8a3a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 90, 0, 0.35);
}

.as-card-info {
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.as-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.as-card-meta .verified {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 700;
}

.as-card-meta .module {
  color: #ff8a3a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.as-card-info h3 {
  margin: 0;
  font: 800 1.35rem / 1.2 "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
}

.as-card-loc {
  margin: 0.4rem 0 0;
  color: #cfcfcf;
  font-size: 0.9rem;
}

.as-flight-detail {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 90, 0, 0.22);
  border-radius: 10px;
  background: rgba(255, 90, 0, 0.07);
}

.as-flight-detail strong {
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.as-flight-detail span {
  min-width: 0;
  overflow: hidden;
  color: #d2d2d0;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-flight-card .as-card-book .view::after {
  content: ' →';
  margin-left: 0.25rem;
}

.as-card-summary {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.as-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.as-card-tags span {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #d4d8e0;
  font-size: 0.72rem;
  font-weight: 600;
}

.as-card-book {
  border-left: 1px solid var(--line);
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.22);
}

.as-card-price {
  color: var(--muted);
  font-size: 0.8rem;
}

.as-card-price b {
  display: block;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.as-card-price .was {
  text-decoration: line-through;
  opacity: 0.65;
  margin-left: 0.25rem;
}

.as-card-book .view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 22px rgba(255, 90, 0, 0.28);
}

.as-card-book .view:hover {
  background: #ff6a1a;
}

.as-card-book .mode {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.as-empty,
.as-error,
.as-loading {
  padding: 2.5rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.as-error {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.as-loading {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.as-loading i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
  animation: as-pulse 1s infinite alternate;
}

.as-loading i:nth-child(2) {
  animation-delay: 0.15s;
}

.as-loading i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes as-pulse {
  to {
    opacity: 0.25;
    transform: translateY(-4px);
  }
}

.as-footer {
  border-top: 1px solid var(--line);
  background: #080808;
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem max(4vw, 24px) 1.25rem;
}

.as-footer-inner {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.as-footer h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.as-footer a {
  display: block;
  margin: 0.4rem 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.as-footer a:hover {
  color: #fff;
}

.as-footer-copy {
  max-width: none;
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .as-card {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .as-card-book {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .as-card-book .view {
    min-width: 9rem;
  }

  .as-trust {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .as-browse {
    grid-template-columns: 1fr;
  }

  .as-filters {
    display: none;
    position: relative;
    top: 0;
  }

  .as-filters.open {
    display: block;
    margin-bottom: 1rem;
  }

  .as-mobile-filters {
    display: block;
  }

  body.as-search-page .as-search-sticky > header {
    height: 66px;
    padding: 0 16px;
    gap: 12px;
  }

  body.as-search-page .as-search-sticky > header .logo b {
    font-size: 21px;
  }

  body.as-search-page .as-search-sticky > header .headerActions .headerLink:not(#headerMyTrips),
  body.as-search-page .as-search-sticky > header .headerActions .listBtn {
    display: none;
  }

  body.as-search-page .as-search-sticky > header .headerActions .signin {
    padding: 9px 14px;
  }

  body.as-search-scrolled .landing-search-wrap .expTabs button span {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .top {
    display: none;
  }

  .as-trust {
    grid-template-columns: 1fr;
  }

  .as-card {
    grid-template-columns: 1fr;
  }

  .as-card-media {
    min-height: 180px;
  }

  .as-card-book {
    flex-direction: column;
    align-items: stretch;
  }

  .as-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .as-headrow {
    flex-direction: column;
    align-items: stretch;
  }

  body.as-search-page .as-search-sticky > header .exploreBtn {
    display: none;
  }

  .as-search-hero {
    padding: 20px 16px 18px;
  }
}
