/* Dashboard layout — inspired by BO-B2C, vanilla CSS only. */

.dashboard-shell {
  position: relative;
}

.dashboard {
  position: relative;
  margin-top: -72px;
  margin-bottom: 48px;
}

.desktop-hero {
  position: relative;
}

.hero-banner {
  position: relative;
  z-index: 1;
  height: 560px;
  background: #e9ecef;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}

.dashboard-search {
  position: relative;
  z-index: 3;
  margin-top: -13%;
}

.dbs-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dbs-tabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 110px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.dbs-tabs .tab .icon {
  font-size: 16px;
}

.dbs-tabs .tab.is-active {
  background: var(--color-gradient);
  color: var(--color-white);
}

.dbs-panel {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.search-panel .field-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  background: var(--color-white);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border-right: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
}

.search-field:last-of-type {
  border-right: 0;
}

.search-field > div {
  min-width: 0;
  width: 100%;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-value {
  display: block;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-sub {
  display: none;
}

.trip-field {
  flex: 0 0 10%;
  max-width: 10%;
  padding: 0 8px;
}

.origin-field,
.dest-field {
  flex: 1;
}

.origin-field > div,
.dest-field > div {
  padding-right: 26px;
}

.date-field {
  flex: 0 0 12.5%;
  max-width: 12.5%;
}

.hotel-search .date-field {
  flex: 0 0 14.5%;
  max-width: 14.5%;
}

.traveller-field {
  flex: 0 0 16%;
  min-width: 0;
}

.swap-btn {
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6c757d;
  border-radius: 50%;
  background: var(--color-white);
  color: #484848;
  transform: translateY(-50%);
}

.swap-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.return-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--color-white);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  color: var(--color-primary);
}

.search-panel.is-oneway .return-overlay {
  display: flex;
}

.search-action {
  flex: 0 0 auto;
  padding: 0 0 0 10px;
}

.search-action .btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.trip-menu {
  min-width: 225px;
  padding: 18px 16px 16px;
}

.trip-menu::before {
  content: "Trip Type";
  display: block;
  margin-bottom: 14px;
  color: #000;
  font-size: 16px;
  font-weight: 500;
}

.trip-menu button {
  position: relative;
  display: block;
  width: 100%;
  padding: 7px 0 7px 26px;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 16px;
  text-align: left;
}

.trip-menu button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1px solid #9a9a9a;
  border-radius: 50%;
  transform: translateY(-50%);
}

.trip-menu button.is-active::before {
  border-color: var(--color-secondary);
}

.trip-menu button.is-active::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
  transform: translateY(-50%);
}

.mobile-home,
.mobile-services {
  display: none;
}

.mobile-trip .tab {
  min-width: auto;
  padding: 8px 12px;
  box-shadow: none;
  font-size: 13px;
}

.packages-panel {
  padding: 28px 8px;
  text-align: center;
  color: var(--color-primary);
}

.packages-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.packages-panel p {
  margin: 0;
  color: var(--color-muted);
}

/* Recent searches */
.recent-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 8px 0 24px;
}

.recent-searches.is-empty {
  display: none;
}

.recent-card {
  position: relative;
  border: 1px solid #4306d2;
  border-radius: 4px;
  background: var(--color-white);
  color: #3d3636;
  padding: 6px 18px 6px 8px;
  text-align: left;
  font-size: 12px;
}

.recent-card:hover {
  background: #f2ecff;
}

.recent-card strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.recent-card .icon {
  color: #4306d2;
  font-size: 16px;
}

.recent-card small {
  color: #999;
  font-size: 10px;
}

.recent-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 3px;
  background: #fa7e7e;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

/* Offers */
.best-offers {
  position: relative;
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
}

.best-offers .bg-text {
  margin: 0;
  color: #e9ecef;
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 700;
  letter-spacing: 10px;
}

.best-offers .top-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.best-offers .top-text span {
  font-size: 17px;
  font-weight: 500;
}

.best-offers h1 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 35px);
  font-weight: 700;
}

.offer-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 20px 0 60px;
}

.offer-aside {
  position: relative;
  overflow: hidden;
  flex: 0 0 28%;
  max-width: 280px;
  min-height: 180px;
  border-radius: 16px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.offer-aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-aside-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
  background: linear-gradient(to top, rgba(11, 38, 67, 0.85), transparent);
}

.offer-aside strong {
  display: block;
  font-size: 22px;
}

.offer-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.offer-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  border-radius: 12px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.offer-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-card-copy {
  position: relative;
  z-index: 1;
  padding: 28px 18px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.offer-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

/* Deals */
.deals-section {
  margin: 10px 0 50px;
}

.deals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.deals-head h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: 22px;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.deal-card {
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.deal-visual {
  height: 140px;
  overflow: hidden;
}

.deal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-body {
  padding: 16px;
}

.deal-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--color-primary);
}

.deal-body p {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 13px;
}

.deal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deal-foot small {
  color: #888;
}

.deal-foot span {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 13px;
}

/* Content + FAQ */
.db-content {
  padding: 10px 0 20px;
}

.section-title {
  position: relative;
  display: inline-block;
  margin: 0 0 16px;
  padding-bottom: 14px;
  color: #31424d;
  font-size: clamp(24px, 3vw, 36px);
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80%;
  height: 6px;
  background: var(--color-accent);
}

.content-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}

.content-figure {
  min-height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #e9ecef;
}

.content-figure img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.content-copy p {
  margin: 0 0 14px;
  color: #445;
}

.faq-section {
  padding: 30px 0 10px;
}

.faq-section h3 {
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
  padding-bottom: 14px;
  color: var(--color-primary);
  font-size: 24px;
}

.faq-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80%;
  height: 6px;
  background: var(--color-accent);
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-item h4 {
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px dotted rgba(3, 60, 93, 0.32);
  color: var(--color-primary);
  font-size: 14px;
}

.faq-item p {
  margin: 0;
  font-size: 13px;
}

/* Routes */
.flight-routes {
  margin: 24px 0 40px;
  padding: 32px 0;
  background: #f6f7fa;
}

.route-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.route-tab {
  padding: 10px 24px;
  border: 1px solid #dcedff;
  border-radius: 8px;
  background: #f0f2fa;
  color: #1a2033;
  font-size: 16px;
  font-weight: 500;
}

.route-tab.is-active {
  background: var(--color-primary);
  color: var(--color-white);
}

.route-list {
  column-count: 3;
  column-gap: 15px;
}

.route-card {
  break-inside: avoid;
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  padding: 12px;
  background: var(--color-white);
  border: 1px solid #e0e7ed;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.route-card .icon {
  color: var(--color-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.route-card strong {
  display: block;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 400;
}

.route-card span {
  color: #6c757d;
  font-size: 14px;
}

/* Hotel marketing */
.why-choose {
  padding: 40px 0;
  background: #fafafa;
  border-top: 1px solid #e0efff;
  border-bottom: 1px solid #e0efff;
}

.why-choose h2 {
  position: relative;
  margin: 0 0 40px;
  padding-bottom: 12px;
  color: var(--color-primary);
  font-size: 30px;
}

.why-choose h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 6px;
  background: var(--color-accent);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.why-card {
  position: relative;
  overflow: hidden;
  padding: 30px 25px 40px;
  background: var(--color-white);
  border: 1px solid #e8f3ff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.why-card img.icon-img {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.why-card h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
}

.why-card p {
  margin: 0;
  color: #556;
}

.why-card .bg-art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
}

.explore-hotels {
  padding: 30px 0 40px;
  background: #f9fbfe;
  border-bottom: 1px solid #d9d9d9;
}

.explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.explore-copy {
  position: relative;
  text-align: center;
}

.explore-copy h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(26px, 3vw, 42px);
}

.explore-copy img {
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: 90px;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 22px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1100px) {
  .hero-banner {
    height: 420px;
  }

  .trip-field,
  .date-field,
  .hotel-search .date-field,
  .traveller-field,
  .origin-field,
  .dest-field {
    flex: none;
    max-width: none;
    min-width: 0;
  }

  .search-panel .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    width: auto;
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hotel-search .dest-field {
    grid-column: 1 / -1;
  }

  .search-action {
    grid-column: 1 / -1;
    padding: 10px 0 0;
  }

  .search-action .btn {
    width: 100%;
  }

  .content-block,
  .explore-grid,
  .deal-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .route-list {
    column-count: 2;
  }
}

@media (max-width: 568px) {
  .dashboard {
    margin: 0;
  }

  .dashboard-shell {
    margin-top: -72px;
    padding-top: 80px;
    padding-bottom: 50px;
    background-image: linear-gradient(0deg, #215794, #0b2643, #033c5d);
  }

  .header.dashboardPage {
    background: transparent;
  }

  .site-menu-panel {
    display: none !important;
  }

  .desktop-hero {
    display: none;
  }

  .mobile-home {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 0 24px;
  }

  .welcome-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-white);
    padding: 0 4px 4px;
  }

  .welcome-text strong {
    font-size: 22px;
    font-weight: 700;
  }

  .welcome-text span {
    font-size: 14px;
    color: #dff3ff;
  }

  .search-trigger {
    width: 92%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 8px 8px 8px 20px;
    border: 0;
    border-radius: 40px;
    background: var(--color-white);
    box-shadow: 0 10px 24px rgba(3, 60, 93, 0.16);
    color: #9aa6b2;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
  }

  .search-trigger-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .mobile-services {
    display: block;
    margin: -28px 10px 0;
    padding: 18px 0;
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
  }

  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 4px 8px;
  }

  .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #334155;
    text-decoration: none;
  }

  .service-item em {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
  }

  .service-item.is-active em {
    color: var(--color-primary);
    font-weight: 700;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .service-icon.flights { background: #e8f2ff; color: #2f80ed; }
  .service-icon.hotels { background: #f3e8ff; color: #8b5cf6; }
  .service-icon.holidays { background: #fff4e5; color: #f59e0b; }

  .dashboard-search {
    display: none;
    margin: 0;
  }

  body.search-open .header {
    display: none;
  }

  .dashboard-search.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1050;
    margin: 0;
    background: var(--color-white);
    overflow: auto;
    padding: 0 0 70px;
  }

  .popup-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
  }

  .popup-head button {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 22px;
    color: var(--color-primary);
  }

  .popup-head strong {
    font-size: 16px;
    color: var(--color-primary);
  }

  .dashboard-search.is-open .dbs-tabs {
    gap: 8px;
    margin: 8px 0 12px;
    overflow-x: auto;
  }

  .dashboard-search.is-open .dbs-tabs .tab {
    min-width: auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 18px;
    box-shadow: none;
    background: #f3f6f9;
    font-size: 12px;
  }

  .dashboard-search.is-open .dbs-tabs .tab.is-active {
    background: var(--color-gradient);
    color: var(--color-white);
  }

  .dashboard-search.is-open .search-panel .field-row {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    grid-template-columns: none;
  }

  .dashboard-search.is-open .search-field {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .dashboard-search.is-open .trip-field {
    max-width: none;
  }

  .dashboard-search.is-open .mobile-trip {
    display: flex;
    gap: 16px;
  }

  .desktop-trip {
    display: none;
  }

  .offer-section,
  .content-block,
  .deal-grid,
  .why-grid,
  .explore-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .offer-aside {
    max-width: none;
  }

  .route-list {
    column-count: 1;
  }

  .best-offers .bg-text {
    letter-spacing: 2px;
    font-size: 36px;
  }

  .explore-copy img {
    display: none;
  }
}

@media (min-width: 569px) {
  .mobile-trip {
    display: none;
  }

  .search-popup-head {
    display: none;
  }
}
