/**
 * PalmFlights Beta — Modern UI layer (beta only)
 * Loaded after legacy styles; does not replace PHP/AJAX behaviour.
 */
:root {
  --pf-primary: #5b2d8e;
  --pf-primary-dark: #3d1d61;
  --pf-accent: #e8a317;
  --pf-accent-hover: #cf8f0f;
  --pf-surface: #ffffff;
  --pf-bg: #f4f6f9;
  --pf-text: #1a1d26;
  --pf-muted: #5c6370;
  --pf-border: #e2e8f0;
  --pf-radius: 12px;
  --pf-radius-lg: 20px;
  --pf-shadow: 0 8px 30px rgba(26, 29, 38, 0.08);
  --pf-shadow-lg: 0 20px 50px rgba(26, 29, 38, 0.12);
  --pf-font: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --pf-header-h: 72px;
}

html { scroll-behavior: smooth; }

/* Native scroll — undo legacy niceScroll + height:100% traps */
html.pf-native-scroll,
html.pf-native-scroll body {
  overflow-y: auto !important;
  overflow-x: hidden;
  height: auto !important;
  min-height: 100%;
}

html.pf-native-scroll .global-wrap,
.pf-home-page .global-wrap,
.pf-page .global-wrap,
.global-wrap.pf-destination-page,
.global-wrap.pf-search-page {
  height: auto !important;
  min-height: 0;
  overflow: visible;
}

#ascrail2000-hr,
#ascrail2000-hvr,
.nicescroll-rails {
  display: none !important;
  pointer-events: none !important;
}

body {
  font-family: var(--pf-font) !important;
  color: var(--pf-text);
  background: var(--pf-bg);
}

/* ========== Legacy overrides (stop conflicts) ========== */
header#main-header.pf-header {
  border-bottom: none !important;
  background: #fff !important;
}

.slimmenu-menu-collapser,
.slimmenu-collapse-button {
  display: none !important;
}

.pf-header .container[style*="background"] {
  background: transparent !important;
}

/* ========== Top bar ========== */
.pf-topbar {
  background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dark) 100%);
  padding: 14px 0;
}

.pf-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pf-topbar__logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

.pf-topbar__contact {
  text-align: right;
  color: #fff;
}

.pf-topbar__label {
  display: block;
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 2px;
}

.pf-topbar__phone {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1.2;
}

.pf-topbar__hours {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ========== Nav bar ========== */
#main-header.pf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 var(--pf-border), 0 4px 20px rgba(0,0,0,0.06);
}

.pf-nav-bar {
  background: #fff;
  border-top: 1px solid var(--pf-border);
  position: relative;
  z-index: 1001;
}

.pf-nav-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 15px;
  position: relative;
}

.pf-nav-toggle {
  display: none;
  background: var(--pf-primary);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.pf-nav {
  flex: 1;
  min-width: 0;
}

.pf-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.pf-menu > li {
  position: relative;
}

.pf-menu > li > a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pf-text) !important;
  text-decoration: none !important;
  border-radius: 8px;
  white-space: nowrap;
}

.pf-menu > li > a:hover,
.pf-menu > li.active > a {
  background: rgba(91, 45, 142, 0.08);
  color: var(--pf-primary) !important;
}

.pf-menu__sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow-lg);
  z-index: 1100;
}

.pf-menu__has-sub:hover > .pf-menu__sub {
  display: block;
}

.pf-menu__sub .pf-menu__sub {
  left: 100%;
  top: 0;
}

.pf-menu__sub li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--pf-text) !important;
  text-decoration: none !important;
}

.pf-menu__sub li a:hover {
  background: rgba(91, 45, 142, 0.06);
  color: var(--pf-primary) !important;
}

.pf-btn-quote {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--pf-accent) !important;
  color: #1a1d26 !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
}

.pf-btn-quote:hover {
  background: var(--pf-accent-hover) !important;
  color: #fff !important;
}

/* ========== Hero (clean layout) ========== */
.pf-hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: 0;
  margin: 0;
}

.pf-hero--home {
  min-height: 520px;
}

.pf-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(1.06) contrast(1.08) saturate(1.1);
}

/* Homepage — 4 rotating background images */
.pf-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pf-hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease-in-out, visibility 0.9s;
  z-index: 0;
}

.pf-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.pf-hero__slide-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.pf-hero__slide-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pf-hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.pf-hero__dot.is-active,
.pf-hero__dot:hover {
  background: #fff;
  transform: scale(1.15);
}

.pf-hero__dot:focus {
  outline: 2px solid var(--pf-accent, #e8b923);
  outline-offset: 2px;
}

.pf-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(25, 12, 45, 0.72) 0%,
    rgba(45, 22, 72, 0.5) 45%,
    rgba(25, 12, 45, 0.75) 100%
  );
}

.pf-hero--destination .pf-hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(25, 12, 45, 0.55) 0%,
    rgba(45, 22, 72, 0.4) 50%,
    rgba(25, 12, 45, 0.7) 100%
  );
}

.pf-hero__intro h1,
.pf-hero__intro p,
.pf-hero__eyebrow,
.pf-hero__pills {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.pf-hero__container {
  position: relative;
  z-index: 3;
  padding: 40px 15px 48px;
  max-width: 1200px;
}

.pf-hero__intro {
  color: #fff;
  max-width: 640px;
  margin-bottom: 28px;
}

.pf-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.9;
  margin-bottom: 10px;
}

.pf-hero__intro h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff !important;
}

.pf-hero__intro p {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 16px;
  opacity: 0.95;
  color: #fff;
}

.pf-hero__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
}

.pf-hero__pills i {
  color: var(--pf-accent);
  margin-right: 6px;
}

.pf-hero__search {
  width: 100%;
}

/* Search panel in hero */
.pf-search-panel {
  background: #fff;
  border-radius: var(--pf-radius-lg);
  box-shadow: var(--pf-shadow-lg);
  overflow: hidden;
  max-width: 100%;
}

.pf-search-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--pf-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pf-search-panel__body {
  padding: 24px;
}

.pf-search-panel .tab-pane#tab-2 {
  display: block !important;
  opacity: 1 !important;
}

.pf-search-panel .nav-pills > li > a {
  border-radius: 8px;
  font-weight: 600;
}

.pf-search-panel .nav-pills > li.active > a {
  background: var(--pf-primary) !important;
}

.pf-search-panel .form-control {
  border-radius: 10px !important;
  border: 1px solid var(--pf-border) !important;
  min-height: 46px;
}

.pf-search-panel .btn-primary {
  background: var(--pf-primary) !important;
  border-color: var(--pf-primary) !important;
  border-radius: 10px !important;
  font-weight: 600;
}

/* Legacy image masks — lighter on beta so photos read clearer */
.pf-home-page .bg-holder > .bg-mask,
.pf-home-page .bg-holder > .bg-mask-darken,
.pf-destination-page .bg-holder > .bg-mask,
.pf-destination-page .bg-holder > .bg-mask-darken {
  opacity: 0.35 !important;
}

/* Hide legacy hero wrappers if any remain */
.pf-hero .top-area,
.pf-hero .bg-holder,
.pf-hero .bg-front,
.pf-hero .search-tabs-abs,
.pf-hero .search-tabs-abs-bottom {
  position: static !important;
  height: auto !important;
  width: 100% !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
}

/* ========== Sections ========== */
.pf-section-head {
  text-align: center;
  margin-bottom: 32px;
}

.pf-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--pf-text);
  margin: 0 0 8px;
}

.pf-section-head p {
  color: var(--pf-muted);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.pf-section-head--compact {
  margin-bottom: 28px;
}

.pf-section-head--compact h2 {
  font-size: 1.5rem;
}

.pf-trust {
  padding: 48px 0;
  background: var(--pf-surface);
  border-top: 1px solid var(--pf-border);
  border-bottom: 1px solid var(--pf-border);
}

.pf-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pf-trust__item {
  text-align: center;
  padding: 20px 12px;
}

.pf-trust__icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  background: rgba(91, 45, 142, 0.1);
  color: var(--pf-primary);
  border-radius: 50%;
  font-size: 22px;
  margin-bottom: 12px;
}

.pf-trust__item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.pf-trust__item p {
  font-size: 14px;
  color: var(--pf-muted);
  margin: 0;
  line-height: 1.5;
}

.pf-testimonials {
  padding: 56px 0;
  background: var(--pf-bg);
}

.pf-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pf-testimonial-card {
  background: var(--pf-surface);
  border-radius: var(--pf-radius);
  padding: 28px;
  margin: 0;
  box-shadow: var(--pf-shadow);
  border-left: 4px solid var(--pf-accent);
}

.pf-testimonial-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--pf-text);
}

.pf-testimonial-card footer {
  font-size: 13px;
  color: var(--pf-muted);
}

.pf-destinations-strip {
  padding: 48px 0;
}

.pf-dest-card {
  background: var(--pf-surface);
  border-radius: var(--pf-radius);
  overflow: hidden;
  box-shadow: var(--pf-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.pf-dest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pf-shadow-lg);
}

.pf-dest-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.pf-dest-card__body {
  padding: 16px;
}

.pf-dest-card__body h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.pf-dest-card__body h3 a {
  color: var(--pf-text);
}

.pf-dest-card__price {
  color: var(--pf-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ========== Homepage content polish ========== */
.global-wrap .container h2 {
  font-weight: 700;
  color: var(--pf-text);
}

.global-wrap .thumb {
  border-radius: var(--pf-radius);
  overflow: hidden;
  box-shadow: var(--pf-shadow);
  background: var(--pf-surface);
}

.global-wrap .btn-primary {
  background: var(--pf-primary) !important;
  border-color: var(--pf-primary) !important;
  border-radius: 8px !important;
}

.global-wrap .btn-default.btn-ghost {
  border-radius: 8px !important;
  font-weight: 600;
}

.bg-darken {
  background: var(--pf-surface) !important;
  padding: 48px 0 !important;
}

/* ========== Search results ========== */
.pf-search-page .booking-list > li,
.pf-search-page .booking-list .booking-item {
  background: var(--pf-surface);
  border-radius: var(--pf-radius) !important;
  box-shadow: var(--pf-shadow) !important;
  margin-bottom: 16px !important;
  border: 1px solid var(--pf-border) !important;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.pf-search-page .booking-list > li:hover {
  box-shadow: var(--pf-shadow-lg) !important;
}

.pf-search-page .booking-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--pf-text);
}

.pf-search-page .btn-primary {
  border-radius: 8px !important;
  font-weight: 600;
}

.pf-search-page .booking-filters,
.pf-search-page .pf-search-sidebar {
  background: var(--pf-surface);
  border-radius: var(--pf-radius);
  padding: 20px;
  box-shadow: var(--pf-shadow);
  border: 1px solid var(--pf-border);
  color: var(--pf-text);
  width: auto;
  max-width: 100%;
}

.pf-search-sidebar__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pf-primary);
  margin: 0 0 12px;
  padding: 0;
}

.pf-search-sidebar-form__intro {
  font-size: 13px;
  color: var(--pf-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.pf-search-sidebar .pf-deals-form__field label {
  color: var(--pf-text);
  font-size: 13px;
  font-weight: 600;
}

.pf-search-sidebar .form-control {
  border-radius: 8px;
  border: 1px solid var(--pf-border);
}

.pf-search-sidebar__or {
  text-align: center;
  font-size: 13px;
  color: var(--pf-muted);
  margin: 16px 0 10px;
}

.pf-search-sidebar__call {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
}

.pf-search-notice {
  border-radius: var(--pf-radius);
  border: 1px solid #f0d78c;
  background: #fffbeb;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.pf-search-notice__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #92400e;
  font-size: 15px;
}

.pf-search-notice__text {
  margin: 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.5;
}

.pf-search-notice__text a {
  color: var(--pf-primary);
  font-weight: 600;
}

.pf-search-fallback-card {
  border: 1px solid var(--pf-border) !important;
  border-radius: var(--pf-radius) !important;
  padding: 0 !important;
}

.pf-search-fallback-card__row {
  padding: 22px 18px;
  margin: 0;
}

.pf-search-fallback-card__badge {
  display: inline-block;
  background: var(--pf-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 8px;
}

.pf-search-fallback-card__date {
  font-size: 13px;
  color: var(--pf-muted);
}

.pf-search-fallback-card__route {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 12px 0 8px;
  color: var(--pf-text);
}

.pf-search-fallback-card__route .fa {
  margin: 0 10px;
  color: var(--pf-primary);
}

.pf-search-fallback-card__details,
.pf-search-fallback-card__note {
  font-size: 14px;
  color: var(--pf-muted);
  margin: 0 0 8px;
}

.pf-search-fallback-card__price-col {
  text-align: center;
  border-left: 1px solid var(--pf-border);
}

@media (max-width: 991px) {
  .pf-search-fallback-card__price-col {
    border-left: none;
    border-top: 1px solid var(--pf-border);
    margin-top: 16px;
    padding-top: 16px;
  }
}

.pf-search-page .booking-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 24px 0 20px;
  color: var(--pf-text);
}

.pf-search-page .booking-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.pf-search-page .booking-list > li {
  margin-bottom: 20px;
}

.pf-search-page .booking-item {
  border-radius: var(--pf-radius) !important;
  box-shadow: var(--pf-shadow) !important;
}

.pf-search-page .breadcrumb {
  background: transparent;
  padding: 16px 0;
}

/* ========== Destination pages ========== */
.pf-destination-page .breadcrumb {
  background: transparent;
  padding: 16px 0;
  font-size: 14px;
}

.pf-destination-page .booking-item-details {
  background: var(--pf-surface);
  border-radius: var(--pf-radius);
  padding: 24px;
  box-shadow: var(--pf-shadow);
}

.pf-destination-page .booking-list > li {
  border-radius: var(--pf-radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pf-dest-fallback-deal__card {
  padding: 20px;
  border: 1px solid #e8e8ec;
  border-radius: var(--pf-radius);
  background: #fff;
}

.pf-dest-fallback-deal__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b2d8e, #7b4bb8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto;
}

.pf-destination-cta {
  background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
  color: #fff;
  border-radius: var(--pf-radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin: 32px 0;
}

.pf-destination-cta h2 {
  color: #fff;
  margin: 0 0 12px;
}

.pf-destination-cta p {
  opacity: 0.95;
  margin-bottom: 20px;
}

.pf-destination-cta .btn {
  margin: 0 8px;
  border-radius: 999px;
  font-weight: 600;
  padding: 12px 28px;
}

.pf-related {
  padding: 40px 0;
  background: var(--pf-bg);
}

.pf-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.pf-related__grid a {
  display: block;
  padding: 12px 16px;
  background: var(--pf-surface);
  border-radius: 8px;
  color: var(--pf-primary);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--pf-border);
  text-align: center;
  transition: background 0.2s;
}

.pf-related__grid a:hover {
  background: rgba(91, 45, 142, 0.08);
}

/* ========== Contact ========== */
.pf-contact-page .page-title {
  font-weight: 700;
  margin-bottom: 24px;
}

.pf-contact-page iframe {
  border-radius: var(--pf-radius);
  margin-bottom: 24px;
}

.pf-contact-page .form-control {
  border-radius: 10px;
  min-height: 48px;
}

/* ========== Footer ========== */
#main-footer.pf-footer {
  background: var(--pf-primary-dark) !important;
  color: rgba(255,255,255,0.9);
  padding: 48px 0 24px;
}

.pf-footer h4 {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.pf-footer a {
  color: rgba(255,255,255,0.85) !important;
}

.pf-footer a:hover {
  color: var(--pf-accent) !important;
}

.pf-footer-cta-bar {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  text-align: center;
  margin-top: 24px;
}

.pf-footer-cta-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px;
  font-weight: 600;
}

/* ========== Mobile sticky CTA ========== */
.pf-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--pf-surface);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
}

.pf-mobile-cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 10px;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 600;
  color: #fff !important;
  gap: 4px;
}

.pf-mobile-cta__btn i { font-size: 18px; }

.pf-mobile-cta__btn--wa { background: #25d366; }
.pf-mobile-cta__btn--call { background: var(--pf-primary); }
.pf-mobile-cta__btn--quote { background: var(--pf-accent); color: #1a1d26 !important; }

/* ========== Form validation UX ========== */
.pf-field-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.pf-field-hint {
  font-size: 12px;
  color: var(--pf-muted);
  margin-top: 4px;
}

.pf-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.pf-loading-overlay.is-active { display: flex; }

.pf-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--pf-border);
  border-top-color: var(--pf-primary);
  border-radius: 50%;
  animation: pf-spin 0.8s linear infinite;
}

@keyframes pf-spin { to { transform: rotate(360deg); } }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .pf-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .pf-testimonials__grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
  .pf-topbar {
    padding: 10px 0;
  }

  .pf-topbar__row {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .pf-topbar__logo img {
    max-height: 40px;
  }

  .pf-topbar__contact {
    text-align: right;
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
  }

  .pf-topbar__phone {
    font-size: 19px;
  }

  .pf-topbar__label {
    font-size: 11px;
    margin-bottom: 0;
  }

  .pf-topbar__hours {
    margin-top: 4px;
    font-size: 10px;
    padding: 3px 8px;
  }

  /* Mobile nav toolbar: hamburger left, quote right, menu hidden until tap */
  .pf-nav-bar__inner {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    min-height: 48px;
    padding: 6px 12px;
  }

  .pf-nav-toggle {
    display: inline-flex;
    margin-right: auto;
  }

  .pf-btn-quote {
    font-size: 13px;
    padding: 8px 14px;
    flex-shrink: 0;
  }

  #main-header.pf-header .pf-nav {
    display: none !important;
    flex: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    margin: 0;
    background: #fff;
    border-top: 1px solid var(--pf-border);
    box-shadow: 0 14px 28px rgba(26, 29, 38, 0.12);
    padding: 8px 0 12px;
    max-height: min(72vh, calc(100dvh - 140px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #main-header.pf-header .pf-nav.is-open {
    display: block !important;
  }

  #main-header.pf-header .pf-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
  }

  #main-header.pf-header .pf-menu > li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  #main-header.pf-header .pf-menu > li:last-child {
    border-bottom: none;
  }

  #main-header.pf-header .pf-menu > li > a {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 0;
    white-space: normal;
  }

  #main-header.pf-header .pf-menu__sub {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 0;
    background: var(--pf-bg);
    min-width: 0;
  }

  #main-header.pf-header .pf-menu__has-sub.is-open > .pf-menu__sub {
    display: block;
  }

  #main-header.pf-header .pf-menu__has-sub:hover > .pf-menu__sub {
    display: none;
  }

  #main-header.pf-header .pf-menu__has-sub.is-open:hover > .pf-menu__sub {
    display: block;
  }

  #main-header.pf-header .pf-menu__sub .pf-menu__sub {
    position: static;
    padding-left: 12px;
  }

  #main-header.pf-header .pf-menu__sub li a {
    padding: 12px 16px 12px 24px;
  }

  body.pf-nav-open {
    overflow: hidden;
  }

  .pf-mobile-cta { display: grid; }
  body.pf-has-mobile-cta { padding-bottom: 72px; }

  .pf-hero__container { padding: 28px 15px 36px; }
  .pf-search-panel__body { padding: 16px; }
}

@media (max-width: 768px) {
  .pf-trust__grid { grid-template-columns: 1fr; }
  .pf-hero .search-tabs { padding: 16px !important; border-radius: var(--pf-radius) !important; }

  /* Compact mobile header — single-row top bar */
  .pf-topbar {
    padding: 8px 0;
  }

  .pf-topbar__row {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .pf-topbar__logo img {
    max-height: 34px;
    width: auto;
  }

  .pf-topbar__contact {
    text-align: right;
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
  }

  .pf-topbar__label {
    display: none;
  }

  .pf-topbar__phone {
    font-size: 17px;
    line-height: 1.15;
  }

  .pf-topbar__hours {
    display: none;
  }

  .pf-nav-bar__inner {
    min-height: 44px;
    padding: 6px 10px;
    gap: 8px;
  }

  .pf-nav-toggle {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 8px;
  }

  .pf-btn-quote {
    font-size: 12px;
    padding: 7px 12px;
    white-space: nowrap;
  }

  #main-header.pf-header .pf-menu > li > a {
    padding: 13px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pf-topbar {
    padding: 6px 0;
  }

  .pf-topbar__logo img {
    max-height: 30px;
  }

  .pf-topbar__phone {
    font-size: 15px;
  }

  .pf-nav-bar__inner {
    min-height: 42px;
    padding: 5px 10px;
  }

  .pf-nav-toggle {
    width: 38px;
    height: 38px;
  }

  .pf-btn-quote {
    font-size: 11px;
    padding: 6px 10px;
  }
}

@media (max-width: 375px) {
  .pf-mobile-cta__btn span { font-size: 10px; }

  .pf-btn-quote {
    padding: 6px 8px;
  }
}

@media (min-width: 993px) {
  .slimmenu-collapse-button,
  .slimmenu-menu-collapser { display: none !important; }

  .pf-nav-toggle {
    display: none !important;
  }

  .pf-nav-bar__inner {
    flex-wrap: nowrap;
  }

  #main-header.pf-header .pf-nav {
    display: block !important;
    position: static;
    flex: 1;
    min-width: 0;
    box-shadow: none;
    border-top: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }

  #main-header.pf-header .pf-btn-quote {
    order: 2;
    margin-left: 8px;
    flex-shrink: 0;
  }

  #main-header.pf-header .pf-nav {
    order: 1;
  }
}

/* ========== Homepage — FlightClicks-style sections ========== */
.pf-home-page {
  background: #f1f5f9;
}

.pf-home-page .global-wrap {
  background: transparent;
}

.pf-home-section {
  padding: 64px 0;
}

/* Section backgrounds defined in palmflights-home.css */

.pf-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pf-primary);
  margin-bottom: 8px;
}

.pf-section-head--light h2,
.pf-section-head--light p {
  color: inherit;
}

.pf-home-section__foot {
  text-align: center;
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
}

.pf-home-section__foot a {
  color: var(--pf-primary);
}

/* Buttons */
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: 2px solid transparent;
}

.pf-btn--primary {
  background: var(--pf-primary);
  color: #fff !important;
}

.pf-btn--primary:hover {
  background: var(--pf-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--pf-shadow);
}

.pf-btn--accent {
  background: var(--pf-accent);
  color: #1a1d26 !important;
}

.pf-btn--accent:hover {
  background: var(--pf-accent-hover);
  color: #fff !important;
}

.pf-btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff !important;
}

.pf-btn--outline:hover {
  background: rgba(255,255,255,0.1);
}

.pf-btn--wa {
  background: #25d366;
  color: #fff !important;
}

.pf-btn--lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Featured cards */
.pf-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pf-featured-card {
  background: var(--pf-surface);
  border-radius: var(--pf-radius-lg);
  overflow: hidden;
  box-shadow: var(--pf-shadow);
  border: 1px solid var(--pf-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pf-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pf-shadow-lg);
}

.pf-featured-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.pf-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  filter: contrast(1.06) saturate(1.1);
}

.pf-featured-card:hover .pf-featured-card__media img {
  transform: scale(1.05);
}

.pf-featured-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(91, 45, 142, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
}

.pf-featured-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pf-featured-card__body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.pf-featured-card__body h3 a {
  color: var(--pf-text);
}

.pf-featured-card__body p {
  color: var(--pf-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

/* Deal tiles */
.pf-deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pf-deal-tile {
  display: block;
  background: var(--pf-surface);
  border-radius: var(--pf-radius-lg);
  overflow: hidden;
  text-decoration: none !important;
  border: 1px solid var(--pf-border);
  box-shadow: var(--pf-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pf-deal-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--pf-shadow-lg);
}

.pf-deal-tile__img {
  height: 140px;
  background-size: cover;
  background-position: center;
  filter: contrast(1.06) saturate(1.1);
}

.pf-deal-tile__body {
  padding: 18px;
}

.pf-deal-tile__body h3 {
  color: var(--pf-text);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.pf-deal-tile__meta {
  color: var(--pf-muted);
  font-size: 12px;
  margin: 0 0 10px;
}

.pf-deal-tile__price {
  color: var(--pf-text);
  font-size: 14px;
  margin: 0 0 12px;
}

.pf-deal-tile__price strong {
  font-size: 1.35rem;
  color: var(--pf-primary);
}

/* Match homepage "View fares" — pf-btn--primary purple */
.pf-deal-tile__btn,
.pf-deal-tile__cta {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  color: #fff !important;
  background: var(--pf-primary, #5b2d8e);
  border-radius: 999px;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(91, 45, 142, 0.2);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.pf-deal-tile:hover .pf-deal-tile__btn,
.pf-deal-tile:hover .pf-deal-tile__cta {
  background: var(--pf-primary-dark, #3d1d5c);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--pf-shadow, 0 4px 14px rgba(0, 0, 0, 0.12));
}

/* Popular grid */
.pf-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pf-popular-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--pf-radius-lg);
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: var(--pf-shadow);
  background: #fff;
  border: 1px solid var(--pf-border, #e2e8f0);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pf-popular-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pf-shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.1));
}

/* Photo — full width, no dark overlay */
.pf-popular-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8eaef;
}

.pf-popular-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
  filter: contrast(1.08) saturate(1.12) brightness(1.04);
}

.pf-popular-card:hover .pf-popular-card__media > img {
  transform: scale(1.05);
}

/* Legacy overlay (other pages) */
.pf-popular-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}

.pf-popular-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 20px;
  background: #fff;
}

.pf-popular-card__flag {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.pf-popular-card__body h3,
.pf-popular-card__overlay h3 {
  color: var(--pf-text, #1a1d26);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
  text-shadow: none;
}

.pf-popular-card__overlay h3 {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pf-popular-card__link {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

.pf-popular-card__btn {
  display: inline-block;
  margin-top: 0;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff !important;
  background: var(--pf-primary, #5b2d8e);
  border-radius: 999px;
  border: 2px solid transparent;
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(91, 45, 142, 0.25);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.pf-popular-card:hover .pf-popular-card__btn {
  background: var(--pf-primary-dark, #3d1d5c);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--pf-shadow, 0 4px 14px rgba(0, 0, 0, 0.12));
}

/* Continents */
.pf-continent-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.pf-continent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  text-decoration: none !important;
  color: var(--pf-text);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  box-shadow: var(--pf-shadow);
}

.pf-continent-card i {
  font-size: 28px;
  color: var(--pf-primary);
}

.pf-continent-card:hover {
  background: var(--pf-primary);
  color: #fff;
  border-color: var(--pf-primary);
  transform: translateY(-3px);
}

.pf-continent-card:hover i {
  color: #fff;
}

/* Why section */
.pf-home-why {
  background: linear-gradient(135deg, var(--pf-primary-dark) 0%, var(--pf-primary) 100%);
  color: #fff;
}

.pf-home-why .pf-section-label {
  color: var(--pf-accent);
}

.pf-home-why .pf-section-head h2,
.pf-home-why .pf-section-head p {
  color: #fff;
}

.pf-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pf-why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--pf-radius);
  padding: 32px 24px;
  text-align: center;
}

.pf-why-card i {
  font-size: 36px;
  color: var(--pf-accent);
  margin-bottom: 16px;
}

.pf-why-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.pf-why-card p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Quote CTA band */
.pf-home-quote-cta {
  padding: 0;
  background: transparent;
}

.pf-quote-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: var(--pf-radius-lg);
  padding: 48px 40px;
  margin: 0 auto;
  max-width: 1200px;
  box-shadow: var(--pf-shadow-lg);
}

.pf-quote-band__text h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 10px;
}

.pf-quote-band__text p {
  color: rgba(255,255,255,0.8);
  margin: 0;
  max-width: 480px;
}

.pf-quote-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Homepage hero */
.pf-home-page .pf-hero__container {
  padding-bottom: 56px;
}

.pf-home-page .pf-trust {
  margin-top: 0;
  padding: 40px 0;
}

.pf-hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 12px 0 20px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
}

.pf-hero-trust-row i {
  color: var(--pf-accent);
  margin-right: 6px;
}

.pf-home-page .footer-top,
.pf-home-page .container .gap {
  display: none;
}

/* Trust badges polish */
.pf-trust {
  background: #fff;
}

.pf-testimonials {
  background: #f8fafc;
}

@media (max-width: 1024px) {
  .pf-featured-grid { grid-template-columns: 1fr; }
  .pf-deals-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-popular-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-continent-grid { grid-template-columns: repeat(3, 1fr); }
  .pf-why-grid { grid-template-columns: 1fr; }
  .pf-quote-band { flex-direction: column; text-align: center; padding: 32px 24px; }
  .pf-quote-band__actions { justify-content: center; }
}

@media (max-width: 576px) {
  .pf-home-section { padding: 48px 0; }
  .pf-deals-grid,
  .pf-popular-grid { grid-template-columns: 1fr; }
  .pf-continent-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-quote-band__actions { flex-direction: column; width: 100%; }
  .pf-quote-band__actions .pf-btn { width: 100%; justify-content: center; }
}
