/* =========================================================================
   Ticket Finderz — Beta UI Enhancements
   Custom overlay loaded AFTER theme.css to modernise the look & feel.
   Brand primary: #297cbb
   ========================================================================= */

:root {
  --tf-primary: #1f7ac0;
  --tf-primary-dark: #155a92;
  --tf-primary-light: #3fa0e0;
  --tf-accent: #ff8a2b;
  --tf-accent-dark: #f56f08;
  --tf-ink: #1b2733;
  --tf-muted: #6b7a89;
  --tf-ring: rgba(31, 122, 192, 0.25);
  --tf-radius: 14px;
  --tf-shadow-sm: 0 4px 14px rgba(16, 42, 67, 0.08);
  --tf-shadow-md: 0 14px 40px rgba(16, 42, 67, 0.14);
  --tf-shadow-lg: 0 24px 60px rgba(16, 42, 67, 0.22);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----------------------------------------------------------------------- */
/*  HEADER / NAVBAR                                                         */
/* ----------------------------------------------------------------------- */

/* Sticky / scrolled state: clean white glass bar with shadow */
#header.js-header-fix-moment .u-header__section,
#header.u-scrolled .u-header__section {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--tf-shadow-sm);
}

/* Topbar links */
.u-header__topbar .u-header__navbar-link {
  font-size: 14px;
  letter-spacing: .01em;
  opacity: .95;
  transition: opacity .2s ease, color .2s ease;
}
.u-header__topbar .u-header__navbar-link:hover {
  opacity: 1;
  text-decoration: none;
}

/* Nav links — animated underline */
.u-header__navbar-nav .u-header__nav-link {
  position: relative;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  padding-top: .35rem;
  padding-bottom: .35rem;
  transition: color .2s ease;
}
.u-header__navbar-nav .u-header__nav-item > .u-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: currentColor;
  border-radius: 2px;
  transition: width .25s ease;
}
@media (min-width: 1200px) {
  .u-header__navbar-nav .u-header__nav-item:hover > .u-header__nav-link::after {
    width: 100%;
  }
}

/* Logo sizing — keep it crisp and consistent */
.u-header__navbar-brand img {
  max-height: 46px;
  width: auto;
  transition: max-height .25s ease;
}
#header.js-header-fix-moment .u-header__navbar-brand img {
  max-height: 42px;
}

/* Header primary button ("Find Cheap Deals") */
.u-header__last-item-btn .btn {
  background: var(--tf-accent) !important;
  background-image: linear-gradient(135deg, var(--tf-accent) 0%, var(--tf-accent-dark) 100%) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .01em;
  padding: .72rem 1.6rem;
  border-radius: 50rem !important;
  box-shadow: 0 8px 20px rgba(245, 111, 8, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.u-header__last-item-btn .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 12px 26px rgba(245, 111, 8, 0.45);
  color: #fff !important;
}

/* Mobile hamburger spacing */
.u-hamburger { border-radius: 10px; }

/* Mobile collapsed menu panel */
@media (max-width: 1199.98px) {
  #navBar {
    background: #fff;
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-md);
    padding: .75rem 1rem !important;
    margin-top: .5rem;
  }
  #navBar .u-header__nav-link,
  #navBar .u-header__sub-menu-nav-link { color: var(--tf-ink) !important; }
}

/* ----------------------------------------------------------------------- */
/*  HERO                                                                    */
/* ----------------------------------------------------------------------- */

.hero-v1.gradient-overlay-half-black-gradient::before {
  background-image: linear-gradient(180deg, rgba(11, 28, 45, .35) 0%, rgba(11, 28, 45, .72) 100%) !important;
}

.hero-v1 h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem) !important;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
  margin-bottom: .5rem;
}
/* The decorative <hr> inside the H1 becomes a short accent bar */
.hero-v1 h1 hr {
  width: 84px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: var(--tf-accent);
  margin: 1rem auto 0;
  opacity: 1;
}
.hero-v1 h2 {
  font-size: clamp(1.4rem, 3.4vw, 2.4rem) !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}
.hero-v1 p {
  opacity: .95;
}

/* Tab pills (Return / Oneway) */
.tab-nav-rounded .nav-link {
  border-radius: 50rem;
  padding: .55rem 1.4rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
/* Centre the Return/Oneway tabs above the destination-page search panel
   (they were left-aligned, making the whole panel look off-centre). */
.bg-img-hero-bottom .tab-nav-rounded {
  justify-content: center;
}

/* Kill the full-page spinner overlay. The page is fully server-rendered, so the
   overlay only delayed first paint (it waited for window.load + 800ms, i.e. all
   banner/carousel images + fonts). Showing content immediately is faster. */
#jsPreloader,
.page-preloader {
  display: none !important;
}
.tab-nav-rounded .nav-link .tabtext { letter-spacing: .01em; }
.tab-nav-rounded .nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}
.tab-nav-rounded .nav-link:not(.active):hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ----------------------------------------------------------------------- */
/*  SEARCH CARD + FORM CONTROLS                                             */
/* ----------------------------------------------------------------------- */

.hero-tab-pane .card,
.tab-shadow {
  border-radius: 18px !important;
  box-shadow: var(--tf-shadow-lg) !important;
  overflow: hidden;
}
.hero-tab-pane .card .card-body {
  padding: 1.75rem 1.5rem;
}

/* Field labels */
.card-body .nav-select span.d-block {
  font-size: 12.5px;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--tf-muted) !important;
  margin-bottom: .35rem !important;
}

/* Inputs & selects */
.card-body .form-control,
.hero-tab-pane .form-control {
  height: calc(2.9rem + 2px);
  border: 1.5px solid #e3e8ef;
  border-radius: 12px;
  background-color: #f7f9fc;
  font-size: 15px;
  color: var(--tf-ink);
  padding: .6rem .9rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.card-body .form-control:focus,
.hero-tab-pane .form-control:focus {
  border-color: var(--tf-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px var(--tf-ring);
}
.card-body select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7a89' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2rem;
}

/* Divider inside the form */
.hero-tab-pane .card-body hr {
  border-color: #eef1f6;
  margin: 1rem 0 1.25rem;
}

/* Search submit button */
.hero-tab-pane .btn-primary,
.card-body .btn-primary {
  background: linear-gradient(135deg, var(--tf-primary-light) 0%, var(--tf-primary) 55%, var(--tf-primary-dark) 100%) !important;
  border: 0 !important;
  height: calc(2.9rem + 2px);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(31, 122, 192, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.hero-tab-pane .btn-primary:hover,
.card-body .btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgba(31, 122, 192, 0.45);
}

/* ----------------------------------------------------------------------- */
/*  GLOBAL BUTTONS & LINKS                                                  */
/* ----------------------------------------------------------------------- */

.btn { font-weight: 600; }

a { transition: color .2s ease; }

/* ----------------------------------------------------------------------- */
/*  FOOTER                                                                  */
/* ----------------------------------------------------------------------- */

.footer {
  background: #0f1b29;
  color: #c4cedb;
}
.footer h4 { color: #fff !important; }
.footer .text-gray-1 { color: #9fb0c2 !important; }
.footer .text-primary,
.footer .text-primary * { color: #6cc0ff !important; }
.footer .list-group-item {
  background: transparent;
  color: #c4cedb;
  padding-top: .3rem;
  padding-bottom: .3rem;
  border: 0;
  transition: color .2s ease, padding-left .2s ease;
}
.footer .list-group-item:hover {
  color: #fff;
  padding-left: 6px;
  text-decoration: none;
}
.footer .fa { color: var(--tf-primary-light); }
.footer hr { border-color: rgba(255, 255, 255, 0.08); }
.footer a { color: #c4cedb; }
.footer a:hover { color: #fff; }

/* Footer contact email can overflow — keep it tidy */
.footer small span { word-break: break-word; }

/* Newsletter input in footer */
.footer .form-control {
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
}
.footer .form-control::placeholder { color: #8295a8; }
.footer .form-control:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--tf-primary-light);
  box-shadow: 0 0 0 4px rgba(63,160,224,.18);
  color: #fff;
}
.footer .btn-primary {
  background: linear-gradient(135deg, var(--tf-primary-light), var(--tf-primary-dark)) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 700;
}

/* ----------------------------------------------------------------------- */
/*  SMALL SCREENS                                                           */
/* ----------------------------------------------------------------------- */

@media (max-width: 767.98px) {
  .hero-v1 .space-2 { padding-top: 5rem; }
  .card-body .col-md-4,
  .card-body .col-md-2 { margin-bottom: .85rem; }
  .hero-tab-pane .btn-primary { margin-top: .5rem; }
}

/* =========================================================================
   INNER PAGES (about, contact, destinations, terms, privacy, quote, etc.)
   ========================================================================= */

/* ----- Page hero banner ----- */
.bg-img-hero {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.bg-img-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 28, 45, .55) 0%, rgba(11, 28, 45, .78) 100%);
  z-index: 0;
}
.bg-img-hero > .container {
  position: relative;
  z-index: 1;
  padding-top: 8.5rem;
  padding-bottom: 3.5rem;
}
.bg-img-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
  margin-bottom: .6rem !important;
}

/* ----- Breadcrumb ----- */
.breadcrumb {
  background: transparent;
  display: inline-flex;
  padding: .35rem .9rem;
  border-radius: 50rem;
  background-color: rgba(255, 255, 255, .12);
  backdrop-filter: blur(4px);
}
.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a { color: #fff !important; font-weight: 500; }
.breadcrumb .breadcrumb-item a:hover { color: var(--tf-accent) !important; text-decoration: none; }
.breadcrumb .breadcrumb-item.active { opacity: .85; }
.breadcrumb-no-gutter .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ----- Section titles ----- */
.section-title {
  position: relative;
  padding-bottom: .9rem;
  margin-bottom: 1.25rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--tf-accent);
}
/* Left-aligned section titles (rare) keep accent left */
.text-left > .section-title::after,
.text-md-left .section-title::after { left: 0; transform: none; }

/* ----- Content typography ----- */
main#content h2:not(.section-title):not(.h6):not(.h5),
.slider h2 {
  font-weight: 700;
  color: var(--tf-ink);
  margin-bottom: .85rem;
}
.slider h3 { font-weight: 700; color: var(--tf-ink); margin-top: 1.5rem; }
.slider p,
section p.text-gray-1,
main#content p { line-height: 1.75; }
/* stray inline <hr> inside headings on some pages */
h3 > hr, h1 > hr.d-none { display: none; }

/* Registered company callout */
.slider h4 {
  background: #f4f8fc;
  border-left: 4px solid var(--tf-primary);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  font-size: 1.05rem !important;
  font-weight: 600;
  color: var(--tf-ink);
  font-style: italic;
}

/* About-us slider images get a nicer frame */
.slider .js-slide.rounded-xs { border-radius: 16px !important; box-shadow: var(--tf-shadow-md); }

/* ----- Feature / icon cards ----- */
.tf-feature-grid { margin-top: .5rem; }
.tf-feature-grid > [class*="col-"] {
  margin-bottom: 1.75rem;
}
.tf-feature-grid > [class*="col-"] > .tf-feature {
  height: 100%;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 2rem 1.4rem;
  box-shadow: var(--tf-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tf-feature-grid > [class*="col-"] > .tf-feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--tf-shadow-md);
  border-color: transparent;
}
.tf-feature [class^="flaticon-"],
.tf-feature [class*=" flaticon-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  font-size: 34px !important;
  color: var(--tf-primary) !important;
  background: linear-gradient(135deg, rgba(63,160,224,.16), rgba(31,122,192,.16));
  margin-bottom: 1.1rem !important;
}
.tf-feature h5 { color: var(--tf-ink) !important; }
.tf-feature h5 a { color: inherit; pointer-events: none; }

/* ----- Contact info cards ----- */
.tf-contact-card {
  height: 100%;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  box-shadow: var(--tf-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tf-contact-card:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow-md); }
.tf-contact-card .fa {
  color: var(--tf-primary);
  background: linear-gradient(135deg, rgba(63,160,224,.16), rgba(31,122,192,.16));
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.tf-contact-card .fa-3x { font-size: 1.6em; }

/* ----- Forms on inner pages (contact / quote) ----- */
.comment-section .form-control,
form .form-control {
  border: 1.5px solid #e3e8ef;
  border-radius: 12px;
  background-color: #f7f9fc;
  min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.comment-section textarea.form-control { min-height: 130px; }
.comment-section .form-control:focus,
form .form-control:focus {
  border-color: var(--tf-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--tf-ring);
}

/* Map iframe rounding */
iframe[src*="google.com/maps"] { border-radius: 16px; box-shadow: var(--tf-shadow-sm); }

/* ----- Destination cards & sidebar (continent / city pages) ----- */
.continent-loop .card,
.u-slick__tab .card,
main#content .card.shadow,
main#content .card.u-shadow-v11 {
  border: 1px solid #eef1f6 !important;
  border-radius: 16px !important;
  box-shadow: var(--tf-shadow-sm) !important;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.continent-loop .card:hover,
.u-slick__tab .card:hover { transform: translateY(-5px); box-shadow: var(--tf-shadow-md) !important; }

/* Go-to-top button */
.u-go-to-modern {
  background-color: var(--tf-primary) !important;
  box-shadow: 0 8px 20px rgba(31,122,192,.4);
}

/* Generic horizontal rules a touch softer */
main#content hr { border-color: #eef1f6; }

/* ----- Sidebar "Instant Quote" booking box ----- */
.sidebar-booking-box {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  box-shadow: var(--tf-shadow-md);
  padding: 1.5rem 1.4rem;
}
.sidebar-booking-box > h3 {
  position: relative;
  padding-bottom: .85rem;
  margin-bottom: 1.1rem !important;
  color: var(--tf-ink);
}
.sidebar-booking-box > h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 52px; height: 4px;
  border-radius: 4px;
  background: var(--tf-accent);
}
.sidebar-booking-box .control-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tf-muted) !important;
  margin-bottom: .25rem;
}
.sidebar-booking-box .form-group { margin-bottom: .85rem; }
.sidebar-booking-box .btn { white-space: normal; padding-left: .75rem; padding-right: .75rem; }

/* ----- Consistent primary buttons site-wide ----- */
.btn-primary,
input[type="submit"].btn-primary {
  background: linear-gradient(135deg, var(--tf-primary-light) 0%, var(--tf-primary) 55%, var(--tf-primary-dark) 100%) !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 8px 20px rgba(31, 122, 192, 0.32);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover,
input[type="submit"].btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(31, 122, 192, 0.42);
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .bg-img-hero > .container { padding-top: 7rem; padding-bottom: 2.5rem; }
  .tf-contact-card { margin-bottom: 1rem; }
}

/* =========================================================================
   DESTINATION PAGE — flight deal cards (destination-loop.php)
   ========================================================================= */

/* The theme hides .gds-only (banner, deal list, "you may also like") globally
   via an inline rule in header3.php and nothing ever re-enables them, so the
   destination pages render almost empty. Re-enable that content ONLY inside the
   page body (header nav / footer "gds-only" menu items stay hidden). */
main#content .gds-only { display: block !important; }
main#content img.gds-only { display: block !important; max-width: 100%; height: auto; }

.tf-deal-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--tf-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tf-deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tf-shadow-md);
  border-color: transparent;
}

/* Airline */
.tf-deal-airline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  flex: 0 0 118px;
  width: 118px;
  text-align: center;
}
.tf-deal-logo { max-width: 92px; max-height: 46px; object-fit: contain; }
.tf-deal-airline-name { font-size: 12.5px; font-weight: 600; color: var(--tf-muted); line-height: 1.2; }

/* Route */
.tf-deal-route {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tf-deal-point { display: flex; flex-direction: column; min-width: 92px; }
.tf-deal-point-end { text-align: right; align-items: flex-end; }
.tf-deal-code { font-size: 1.5rem; font-weight: 800; color: var(--tf-ink); line-height: 1; }
.tf-deal-air { font-size: 12.5px; color: var(--tf-muted); margin-top: .25rem; }

.tf-deal-path {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 .5rem;
}
.tf-deal-dur { font-size: 12.5px; font-weight: 600; color: var(--tf-ink); }
.tf-deal-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #d8e2ec 0%, var(--tf-primary-light) 50%, #d8e2ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: .45rem 0;
}
.tf-deal-line::before,
.tf-deal-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tf-primary);
  transform: translateY(-50%);
}
.tf-deal-line::before { left: 0; }
.tf-deal-line::after { right: 0; }
.tf-deal-line .flaticon-aeroplane {
  background: #fff;
  color: var(--tf-primary);
  font-size: 18px;
  padding: 0 .35rem;
  transform: rotate(90deg);
  position: relative;
  z-index: 1;
}
.tf-deal-trip { font-size: 11px; color: var(--tf-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Price + CTA */
.tf-deal-cta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .55rem;
  min-width: 150px;
  padding-left: 1.25rem;
  border-left: 1px solid #eef1f6;
}
.tf-deal-price { text-align: center; line-height: 1.1; }
.tf-deal-from { display: block; font-size: 11.5px; color: var(--tf-muted); }
.tf-deal-amount { font-size: 1.6rem; font-weight: 800; color: var(--tf-primary-dark); }
.tf-deal-pp { display: block; font-size: 11px; color: var(--tf-muted); }
.tf-deal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tf-accent) 0%, var(--tf-accent-dark) 100%);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 50rem;
  padding: .6rem 1.2rem;
  min-height: 46px;
  box-shadow: 0 8px 18px rgba(245, 111, 8, .32);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.tf-deal-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 12px 24px rgba(245, 111, 8, .42);
  color: #fff !important;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .tf-deal-card { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem; }
  .tf-deal-airline { width: auto; flex: none; flex-direction: row; justify-content: center; gap: .6rem; }
  .tf-deal-logo { max-height: 40px; }
  .tf-deal-cta { border-left: 0; border-top: 1px solid #eef1f6; padding-left: 0; padding-top: 1rem; flex-direction: row; align-items: center; justify-content: space-between; }
  .tf-deal-price { text-align: left; }
  .tf-deal-btn { flex: 0 0 auto; padding-left: 1.6rem; padding-right: 1.6rem; }
}

/* =========================================================================
   DESTINATION PAGES — homepage-style navbar + hero (".tfm-")
   Replicates the homepage (hf) look using the classic Bootstrap 4 framework,
   so no Bootstrap 5 is needed and the existing search form keeps working.
   ========================================================================= */

:root {
  --tfm-navy: #172845;
  --tfm-navy-2: #0f1b2e;
  --tfm-blue: #5bb8ec;
  --tfm-blue-dark: #2f9fdd;
}

/* jQuery UI datepicker calendar + autosuggest must sit above the hero/search card */
.ui-datepicker { z-index: 3000 !important; box-shadow: var(--tf-shadow-md); border-radius: 10px; }
.ui-autocomplete { z-index: 3001 !important; }

/* ---- Top bar (logo + phone) ---- */
.tfm-topbar {
  background: #fff;
  border-bottom: 1px solid #eef1f6;
}
.tfm-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 0;
  gap: 1rem;
}
.tfm-topbar__logo img { height: 52px; width: auto; }
.tfm-topbar__contact { text-align: right; line-height: 1.2; }
.tfm-topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tfm-navy) !important;
  text-decoration: none;
}
.tfm-topbar__phone i { color: var(--tfm-blue-dark); }
.tfm-topbar__phone:hover { color: var(--tfm-blue-dark) !important; }
.tfm-topbar__hours {
  display: block;
  font-size: 12.5px;
  color: var(--tf-muted);
  margin-top: 2px;
}

/* ---- Main nav ---- */
.tfm-nav {
  background: var(--tfm-navy);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 6px 22px rgba(15, 27, 46, .18);
}
.tfm-nav__bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.tfm-nav__brand { display: none; }
.tfm-nav__brand img { height: 38px; width: auto; }
.tfm-nav__phone-m { display: none; }

.tfm-nav__menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.tfm-nav__menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 1rem .95rem;
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .2s ease;
}
.tfm-nav__menu > li > a:hover { color: #fff; }
.tfm-nav__menu > li > a:not(.tfm-nav__cta)::after {
  content: "";
  position: absolute;
}
.tfm-nav__menu > li { position: relative; }
.tfm-nav__caret { font-size: 11px; transition: transform .2s ease; }
.tfm-nav__has-mega:hover .tfm-nav__caret { transform: rotate(180deg); }

/* CTA button */
.tfm-nav__cta {
  background: linear-gradient(135deg, var(--tfm-blue) 0%, var(--tfm-blue-dark) 100%);
  color: #fff !important;
  border-radius: 50rem;
  padding: .55rem 1.4rem !important;
  margin-left: .5rem;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(47, 159, 221, .35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.tfm-nav__cta:hover { transform: translateY(-2px); filter: brightness(1.04); color: #fff !important; }

/* Mega menu */
.tfm-nav__mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 3px solid var(--tfm-blue-dark);
  box-shadow: var(--tf-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  padding: 1.5rem 0 .5rem;
  z-index: 1040;
}
.tfm-nav__menu > li.tfm-nav__has-mega { position: static; }
.tfm-nav__has-mega:hover .tfm-nav__mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tfm-mega__col { margin-bottom: 1rem; }
.tfm-mega__head {
  display: block;
  font-weight: 800;
  color: var(--tfm-navy);
  text-decoration: none;
  margin-bottom: .5rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid #eef1f6;
}
.tfm-mega__head:hover { color: var(--tfm-blue-dark); }
.tfm-mega__col ul { list-style: none; margin: 0; padding: 0; }
.tfm-mega__col ul li a {
  display: block;
  padding: .25rem 0;
  color: var(--tf-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s ease, padding-left .15s ease;
}
.tfm-mega__col ul li a:hover { color: var(--tfm-blue-dark); padding-left: 5px; }

/* Mobile nav toggle (checkbox hack — no JS needed) */
.tfm-nav__toggle-cb { display: none; }
.tfm-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 0 auto;
  padding: 10px;
  cursor: pointer;
}
.tfm-nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 991.98px) {
  .tfm-topbar__hours { display: none; }
  .tfm-topbar__logo img { height: 44px; }
  .tfm-nav__bar { justify-content: space-between; }
  .tfm-nav__brand { display: inline-flex; }
  .tfm-nav__phone-m {
    display: inline-flex;
    margin-left: auto;
    color: #fff;
    font-size: 1.1rem;
    padding: 8px 10px;
  }
  .tfm-nav__toggle { display: flex; margin-left: 0; }
  .tfm-nav__menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .tfm-nav__toggle-cb:checked ~ .tfm-nav__menu { max-height: 90vh; overflow-y: auto; padding-bottom: .75rem; }
  .tfm-nav__menu > li > a { padding: .8rem .25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .tfm-nav__cta { display: inline-block; text-align: center; margin: .6rem 0 0; }
  .tfm-nav__mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    padding: .25rem 0 .5rem;
    background: rgba(255,255,255,.06);
    border-radius: 10px;
  }
  .tfm-mega__head, .tfm-mega__col ul li a { color: #fff; }
  .tfm-mega__head { border-bottom-color: rgba(255,255,255,.15); }
  .tfm-mega__col ul li a { color: rgba(255,255,255,.8); }
  .tfm-nav__caret { display: none; }
}

/* ---- Hero ---- */
.tfm-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tfm-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,27,46,.78) 0%, rgba(15,27,46,.5) 38%, rgba(15,27,46,.18) 70%, rgba(15,27,46,.06) 100%);
}
.tfm-hero__inner {
  position: relative;
  z-index: 1;
  padding: 3rem 15px 2.75rem;
}
.tfm-hero__head { color: #fff; max-width: 860px; margin: 0 auto 2rem; }
.tfm-hero__lead { max-width: 680px; }
.tfm-hero__intro { color: #fff; padding-right: 1.5rem; }
.tfm-hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tfm-blue);
  margin-bottom: .65rem;
}
.tfm-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.3);
}
.tfm-hero__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
  margin-bottom: 1.4rem;
}
.tfm-hero__call {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1.5rem;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 50rem;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.tfm-hero__call:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.tfm-hero__trust {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.5rem;
  justify-content: center;
  align-items: center;
}
.tfm-hero__trust li { font-size: 14px; color: rgba(255,255,255,.92); }
.tfm-hero__trust i { color: var(--tfm-blue); margin-right: .4rem; }

/* Search card inside the hero */
.tfm-search-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--tf-shadow-lg);
  overflow: hidden;
}
/* Full-width variant: wide form with larger inputs */
.tfm-search-card--wide { max-width: 1040px; margin: 0 auto; }
.tfm-search-card--wide .tfm-search-body .form-control {
  height: calc(3.25rem + 2px);
  font-size: 16px;
  border-radius: 12px;
}
.tfm-search-card--wide .tfm-search-body button[type="submit"],
.tfm-search-card--wide .tfm-search-body .btn-primary {
  height: calc(3.25rem + 2px);
  font-size: 17px;
}
.tfm-search-card--wide .tfm-trip-tabs { padding: 1.1rem 1.5rem 0; }
.tfm-search-card--wide .tfm-search-body { padding: 1.4rem 1.5rem 1rem; }
.tfm-trip-tabs {
  display: flex;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem 0;
}
.tfm-trip-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 50rem;
  padding: .5rem 1.25rem;
  font-weight: 700;
  font-size: 14px;
  color: var(--tf-muted);
  background: #f1f5fa;
  transition: background-color .2s ease, color .2s ease;
}
.tfm-trip-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--tfm-blue) 0%, var(--tfm-blue-dark) 100%);
  color: #fff;
}
.tfm-search-body { padding: 1.25rem 1.25rem .75rem; }
/* Give the two form rows breathing room and align fields */
.tfm-search-body .nav-select { margin-bottom: 0 !important; }
.tfm-search-body .nav-select > [class*="col-"] { margin-bottom: .9rem; }
/* Labels inside the search form (no .card-body wrapper anymore) */
.tfm-search-body .nav-select span.d-block {
  font-size: 11.5px;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--tf-muted) !important;
  margin-bottom: .3rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The tiny "real email deals / call only deals" sub-notes */
.tfm-search-body .nav-select span.d-block span {
  font-weight: 400 !important;
  text-transform: none;
  letter-spacing: 0;
  color: #9aa7b4 !important;
}
.tfm-search-body .nav-select span.d-block span a { color: var(--tfm-blue-dark) !important; }
/* Soft divider between the two rows */
.tfm-search-body hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #eef1f6;
  margin: .35rem 0 1rem !important;
}
/* Search button: full-width, aligned to the bottom of its row */
.tfm-search-body button[type="submit"],
.tfm-search-body .btn-primary {
  height: calc(2.9rem + 2px);
  width: 100%;
}
.tfm-hero__note {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  text-align: center;
  margin: 1rem 0 0;
}

@media (max-width: 991.98px) {
  .tfm-hero__intro { padding-right: 0; margin-bottom: 2rem; text-align: center; }
  .tfm-hero__trust { justify-content: center; }
}
@media (max-width: 767.98px) {
  .tfm-hero__inner { padding: 2.25rem 15px 2rem; }
}

/* ---- Inner-page hero (Get a Quote, etc.) ---- */
.tfm-hero--inner .tfm-hero__inner { padding: 3rem 15px 5rem; }
.tfm-hero--inner .tfm-hero__head { margin-bottom: 0; }
.tfm-hero__crumb {
  display: inline-flex;
  background: rgba(255, 255, 255, .14);
  padding: .4rem 1.1rem;
  border-radius: 50rem;
  margin-top: 1.1rem;
}
.tfm-hero__crumb .breadcrumb-item,
.tfm-hero__crumb .breadcrumb-item a { color: #fff !important; font-weight: 500; }
.tfm-hero__crumb .breadcrumb-item.active { color: rgba(255, 255, 255, .8) !important; }
.tfm-hero__crumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .6); }

/* ---- Get a Quote — form card ---- */
.tfm-quote-section { background: #f5f8fc; padding: 0 0 4rem; }
.tfm-quote-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 18px;
  box-shadow: var(--tf-shadow-md);
  overflow: hidden;
  max-width: 1040px;
  margin: -3.5rem auto 0;
  position: relative;
  z-index: 2;
}
.tfm-quote-card__head {
  background: linear-gradient(135deg, var(--tfm-navy) 0%, #21365c 100%);
  color: #fff;
  padding: 1.6rem 2rem;
  text-align: center;
}
.tfm-quote-card__head h2 { font-size: 1.45rem; font-weight: 800; margin: 0 0 .4rem; color: #fff; }
.tfm-quote-card__head p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
.tfm-quote-card__body { padding: 2rem 1.5rem .75rem; }
.tfm-quote-card__body .form-group { margin-bottom: 1.15rem; }
.tfm-quote-card__body label {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--tf-ink);
  margin-bottom: .4rem;
}
.tfm-quote-card__body .form-control,
.tfm-quote-card__body .form-select {
  height: calc(3rem + 2px);
  border: 1.5px solid #e3e8ef;
  border-radius: 12px;
  background-color: #f7f9fc;
  font-size: 15px;
}
.tfm-quote-card__body textarea.form-control { height: auto; min-height: 120px; }
.tfm-quote-card__body .form-control:focus,
.tfm-quote-card__body .form-select:focus {
  border-color: var(--tf-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--tf-ring);
}
.tfm-quote-card__body .radio-inline,
.tfm-quote-card__body .checkbox-inline,
.tfm-quote-card__body .form-check-label { font-weight: 500; color: var(--tf-ink); font-size: 14.5px; }
.tfm-quote-card__body .radio-inline { margin-right: 1.25rem; }
.tfm-quote-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tf-ink);
  margin-bottom: .6rem;
}
.tfm-quote-card__body .btn-primary {
  min-width: 220px;
  height: 52px;
  border-radius: 12px !important;
  font-size: 16px;
}
@media (max-width: 575.98px) {
  .tfm-quote-card__body { padding: 1.5rem 1rem .5rem; }
  .tfm-quote-card__head { padding: 1.3rem 1.25rem; }
}

/* ---- Destination sidebar — "Request a Call Back / Get My Quote" card ---- */
.tfm-cb {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 18px;
  box-shadow: var(--tf-shadow-md);
  overflow: hidden;
}
.tfm-cb__head {
  background: linear-gradient(135deg, #2F9FDD 0%, #1f7ac0 100%);
  color: #fff;
  padding: 1.4rem 1.5rem;
}
.tfm-cb__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .3rem .75rem;
  border-radius: 50rem;
  margin-bottom: .75rem;
}
.tfm-cb__title { font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0 0 .35rem; }
.tfm-cb__sub { font-size: 13px; color: rgba(255, 255, 255, .82); margin: 0; line-height: 1.55; }

.tfm-cb__body { padding: 1.5rem 1.35rem 1.4rem; }
.tfm-cb__body .mb-3 { margin-bottom: 1rem !important; }
.tfm-cb__body label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--tf-muted);
  margin-bottom: .35rem;
}
.tfm-cb__body .form-control {
  height: calc(2.9rem + 2px);
  width: 100%;
  border: 1.5px solid #e3e8ef;
  border-radius: 12px;
  background-color: #f7f9fc;
  font-size: 15px;
  padding: .5rem .9rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.tfm-cb__body .form-control::placeholder { color: #aab4c0; }
.tfm-cb__body .form-control:focus {
  border-color: var(--tf-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--tf-ring);
  outline: none;
}
/* Two-up date row: tidy gutter even though .g-2 is a BS5-only class */
.tfm-cb__body .row.g-2 { margin-left: -.4rem; margin-right: -.4rem; }
.tfm-cb__body .row.g-2 > [class*="col-"] { padding-left: .4rem; padding-right: .4rem; }

/* Submit button — restyled (hf-form-submit isn't themed on these BS4 pages) */
.tfm-cb__body .hf-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--tf-accent) 0%, var(--tf-accent-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  border-radius: 12px;
  padding: .85rem 1.25rem;
  margin-top: .25rem;
  box-shadow: 0 10px 22px rgba(245, 111, 8, .32);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.tfm-cb__body .hf-form-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(245, 111, 8, .42);
  color: #fff;
}
.tfm-cb__body .hf-form-submit:active { transform: translateY(0); }

@media (max-width: 991.98px) {
  .tfm-cb { position: static; margin-bottom: 2.5rem; }
}
