/* Flyways World brand overrides */
:root {
  --fw-red: #cb0a05;
  --fw-black: #111111;
  --fw-cream: #faf7f2;
  --tp-theme-1: #cb0a05;
  --tp-common-yellow: #cb0a05;
  --tp-common-red: #cb0a05;
}

/* Always-visible header bar */
.tp-header-height {
  height: auto !important;
  min-height: 78px;
  position: relative;
  z-index: 1000;
  overflow: visible !important;
}

#header-sticky.tp-header-area,
.tp-header-5 {
  position: relative;
  z-index: 1000;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.08);
}

#header-sticky.header-sticky,
.tp-header-5.header-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

.tp-header-logo img,
.tp-offcanvas-logo img {
  max-height: 64px;
  width: auto !important;
  height: auto;
  max-width: 200px;
}

.tp-footer-logo img {
  max-height: 72px;
  width: auto !important;
  height: auto;
  max-width: 220px;
}

.tp-header-5 .tp-header-logo {
  margin-right: 24px;
}

.tp-header-5 .tp-header-left {
  align-items: center;
}

.tp-header-5 .tp-main-menu nav > ul > li > a {
  color: #111 !important;
}

.tp-header-5 .tp-main-menu nav > ul > li.active > a,
.tp-header-5 .tp-main-menu nav > ul > li:hover > a {
  color: var(--fw-red) !important;
}

/* Phone pill like design reference */
.tp-header-5 .tp-header-contact a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--fw-red);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  min-height: 40px;
}

.tp-header-5 .tp-header-contact a:hover {
  background: #a80804;
  color: #fff !important;
}

.tp-btn,
.back-to-top-btn:hover {
  background-color: var(--fw-red);
}

.tp-header-top-discount span {
  color: var(--fw-red);
}

.tp-header-logo a,
.tp-offcanvas-logo a,
.tp-footer-logo a {
  background: transparent !important;
  box-shadow: none !important;
}

.tp-header-logo img,
.tp-offcanvas-logo img,
.tp-footer-logo img {
  background: transparent !important;
  mix-blend-mode: normal;
}

/* Visibility helpers — driven by CSS, not Bootstrap xxl */
.fw-mobile-only {
  display: none !important;
}

.fw-desktop-only {
  display: block;
}

/* ---------- Tablet + phone UI ---------- */
@media (max-width: 1199.98px) {
  .fw-mobile-only {
    display: block !important;
  }

  .fw-desktop-only {
    display: none !important;
  }

  .fw-mobile-quick-dest.fw-mobile-only {
    display: flex !important;
  }

  .tp-header-height {
    min-height: 58px;
  }

  .tp-header-5 .tp-header-logo {
    margin-right: 8px;
  }

  .tp-header-logo img,
  .tp-offcanvas-logo img {
    max-height: 44px !important;
    max-width: 148px !important;
  }

  .tp-header-toogle {
    width: 42px;
    height: 42px;
    padding: 13px 9px;
    border-color: rgba(203, 10, 5, 0.22);
    background: #fff;
  }

  .tp-header-toogle span {
    background: var(--fw-red);
  }

  .tp-header-option {
    gap: 6px;
  }

  .tp-header-login {
    display: none !important;
  }

  .tp-header-lg-ptb,
  .tp-header-5 {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  body {
    overflow-x: hidden;
  }

  /* Full-bleed hero — kill beige card + huge padding */
  .tp-hero-area.tp-hero-5-spacing,
  .tp-hero-5-spacing {
    padding: 0 !important;
    margin: 0 !important;
  }

  .tp-hero-5-spacing > .container-1876,
  .tp-hero-5-spacing .container-1876 {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }

  .tp-hero-5-bg {
    background: #fff !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .tp-hero-5-content {
    padding: 0 0 20px !important;
    margin: 0 !important;
  }

  .tp-hero-5-content .wow {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .fw-hero-mobile-banner {
    position: relative;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
    height: min(54vh, 340px);
    background: #1a1a1a;
  }

  .fw-hero-mobile-banner > img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0 !important;
  }

  .fw-hero-mobile-banner__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(8, 8, 8, 0.82) 0%,
      rgba(8, 8, 8, 0.35) 42%,
      rgba(8, 8, 8, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
  }

  .fw-hero-mobile-banner__copy {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 36px;
    z-index: 2;
    color: #fff;
  }

  .fw-hero-mobile-banner__copy .tp-hero-5-subtitle {
    background: var(--fw-red) !important;
    color: #fff !important;
    transform: none !important;
    margin: 0 0 10px !important;
    margin-left: 0 !important;
    font-size: 11px !important;
    letter-spacing: 0.06em;
    padding: 6px 12px !important;
    border-radius: 999px !important;
  }

  .fw-hero-mobile-banner__copy .tp-hero-5-title {
    color: #fff !important;
    font-size: clamp(26px, 7.5vw, 36px) !important;
    line-height: 1.1 !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
  }

  .fw-hero-mobile-banner__dec {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
    max-width: 28ch;
  }

  /* Search card overlaps hero — removes dead space */
  .tp-hero-5-content .tp-booking-5-form {
    display: block !important;
    position: relative;
    z-index: 3;
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin: -28px 14px 12px !important;
    background: #fff !important;
    border-radius: 18px !important;
    padding: 10px !important;
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.14);
    border: 1px solid rgba(17, 17, 17, 0.06);
    box-sizing: border-box;
  }

  .tp-booking-5-form .tp-booking-form-one,
  .tp-booking-5-form .tp-booking-wrap,
  .tp-booking-5-form form {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tp-booking-5-form .tp-booking-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px;
  }

  .tp-booking-5-form .tp-booking-location,
  .tp-booking-5-form .tp-booking-date,
  .tp-booking-5-form .tp-booking-col-1,
  .tp-booking-5-form .tp-booking-col-2,
  .tp-booking-5-form .tp-booking-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .tp-booking-5-form .tp-booking-col-3 {
    display: none !important;
  }

  .tp-booking-5-form .tp-booking-location-input,
  .tp-booking-5-form .tp-booking-date-input {
    min-height: 44px;
    border-radius: 12px;
    background: #f6f4ef;
  }

  .tp-booking-5-form .tp-input {
    font-size: 14px;
  }

  .tp-booking-5-form .tp-booking-submit-btn button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px !important;
    background: var(--fw-red);
    color: #fff;
  }

  .fw-mobile-quick-dest {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    padding: 0 14px 4px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .fw-mobile-quick-dest::-webkit-scrollbar {
    display: none;
  }

  .fw-mobile-quick-dest a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f1ec;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(17, 17, 17, 0.06);
    white-space: nowrap;
  }

  .fw-mobile-quick-dest a:active {
    background: rgba(203, 10, 5, 0.1);
    color: var(--fw-red);
  }

  /* Hide tall desktop gallery on tablet/phone */
  .tp-hero-5-gallery,
  .tp-hero-5-shape,
  .tp-hero-5-shape-2,
  .tp-hero-5-shape-3,
  .tp-hero-5-shape-4 {
    display: none !important;
  }

  /* Page sections tighter */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tp-section-pt,
  .tp-tour-ptb,
  .tp-about-6-spacing,
  .pt-120,
  .pt-130,
  .pt-135 {
    padding-top: 48px !important;
  }

  .pb-100,
  .pb-110,
  .pb-120 {
    padding-bottom: 48px !important;
  }

  .tp-section-title {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  .tp-destinatin-6-title-wrap,
  .text-lg-end {
    text-align: left !important;
  }

  .tp-destination-6-item {
    width: 100%;
    padding: 8px 0;
  }

  .tp-destination-6-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
  }

  .tp-destination-6-title {
    font-size: 18px !important;
  }

  .tp-tour-item {
    margin-bottom: 16px;
  }

  .tp-tour-thumb img {
    width: 100%;
    border-radius: 14px;
  }

  .tp-tour-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }

  .tp-tour-info {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .tp-tour-footer {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center !important;
  }

  .tp-tour-btn .tp-btn-sm {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
  }

  .tp-offcanvas {
    width: min(100%, 320px) !important;
    padding: 18px 16px 32px !important;
  }

  .tp-offcanvas-close-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(203, 10, 5, 0.08);
    color: var(--fw-red);
  }

  .tp-offcanvas .tp-header-search .tp-input {
    min-height: 44px;
    border-radius: 12px;
    background: #f3f1ec;
  }

  .tp-offcanvas-menu ul li a {
    font-size: 16px;
    font-weight: 600;
    padding: 11px 0;
  }

  .tp-offcanvas-menu ul li.active > a,
  .tp-offcanvas-menu ul li a:hover {
    color: var(--fw-red);
  }

  .tp-offcanvas-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .tp-offcanvas-gallery a {
    margin: 0 !important;
  }

  .tp-offcanvas-gallery img {
    width: 100%;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
  }

  .tp-btn,
  .tp-btn-50,
  .tp-btn-solid {
    min-height: 44px;
  }

  .tp-offer-banner-title {
    font-size: 24px !important;
  }

  .tp-blog-5-title {
    font-size: 17px !important;
  }

  .tp-footer-logo img {
    max-height: 52px;
    max-width: 160px;
  }

  /* Don't force height:auto on hero banner (breaks cover fill) */
  .tp-tour-thumb img,
  .tp-destination-6-thumb img,
  .tp-blog-thumb img,
  .tp-offer-banner img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 575.98px) {
  .tp-header-contact {
    display: none !important;
  }

  .fw-hero-mobile-banner {
    height: min(50vh, 300px);
  }

  .fw-hero-mobile-banner__copy {
    bottom: 32px;
  }

  .tp-hero-5-content .tp-booking-5-form {
    margin-top: -24px !important;
  }

  .tp-section-title {
    font-size: 23px !important;
  }

  .tp-offcanvas-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-offcanvas-gallery img {
    height: 68px;
  }

  .back-to-top-wrapper {
    right: 12px;
    bottom: 12px;
  }
}

