/* Orion Cruises v1.0.2 - neutral styles for normal WordPress/plugin pages.
   This file is loaded everywhere EXCEPT the landing front page and the Book page.
   It prevents the dark landing design from leaking into WP Travel Engine trips. */

:root {
  --orion-gold: #c9a84c;
  --orion-gold-dark: #a6852f;
  --orion-navy: #0a0f1a;
  --orion-text: #172033;
  --orion-muted: #64748b;
  --orion-border: #e5e7eb;
  --orion-bg: #ffffff;
  --orion-soft: #f7f8fb;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.orion-light-page {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--orion-text);
  background: var(--orion-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.orion-light-page img { max-width: 100%; height: auto; }
body.orion-light-page a { color: var(--orion-gold-dark); }
body.orion-light-page a:hover { color: var(--orion-navy); }

.orion-default-page {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 2.4rem;
  min-height: 70vh;
}
.orion-default-page-title {
  margin: 0 0 2rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.15;
  color: var(--orion-navy);
}
.orion-default-page-content {
  font-size: 1rem;
}
.orion-default-page-content > *:first-child { margin-top: 0; }
.orion-default-page-content > *:last-child { margin-bottom: 0; }

/* Conservative button defaults for regular WordPress/plugin content. */
body.orion-light-page .wp-block-button__link,
body.orion-light-page button,
body.orion-light-page input[type="submit"],
body.orion-light-page .button,
body.orion-light-page .wpte-book-now,
body.orion-light-page .wpte-bf-btn,
body.orion-light-page .trip-booking-button {
  border-radius: 6px;
}

/* WP Travel Engine compatibility: keep plugin pages light and readable. */
body.orion-light-page.single-trip,
body.orion-light-page.post-type-archive-trip,
body.orion-light-page.tax-destination,
body.orion-light-page.tax-activities,
body.orion-light-page.tax-trip_types,
body.orion-light-page.tax-trip_tags {
  background: #fff;
  color: var(--orion-text);
}
body.orion-light-page.single-trip .site,
body.orion-light-page.post-type-archive-trip .site,
body.orion-light-page.tax-destination .site,
body.orion-light-page.tax-activities .site,
body.orion-light-page.tax-trip_types .site,
body.orion-light-page.tax-trip_tags .site {
  background: #fff;
}

/* Avoid the landing .btn styles bleeding into plugin buttons if a cache/minifier still serves old CSS. */
body.orion-light-page .btn:not(.orion-keep-btn) {
  background: initial;
  color: inherit;
  border: initial;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}

/* Orion Cruises v1.0.4 - WP Travel Engine compatibility.
   Keep WP Travel Engine's own single-trip template intact, but hide the generic
   WordPress blog widgets that can appear under/after the plugin booking panel. */
body.orion-light-page.single-trip .widget_search,
body.orion-light-page.single-trip .widget_recent_entries,
body.orion-light-page.single-trip .widget_recent_comments,
body.orion-light-page.single-trip .widget_archive,
body.orion-light-page.single-trip .widget_categories,
body.orion-light-page.single-trip .widget_meta,
body.orion-light-page.single-trip .wp-block-search,
body.orion-light-page.single-trip .wp-block-latest-posts,
body.orion-light-page.single-trip .wp-block-latest-comments,
body.orion-light-page.single-trip .wp-block-archives,
body.orion-light-page.single-trip .wp-block-categories {
  display: none !important;
}

/* Block-widget wrappers: hide only wrappers that contain default blog/navigation widgets.
   This avoids touching WP Travel Engine price/booking/trip-info panels. */
@supports selector(:has(*)) {
  body.orion-light-page.single-trip .widget_block:has(.wp-block-search),
  body.orion-light-page.single-trip .widget_block:has(.wp-block-latest-posts),
  body.orion-light-page.single-trip .widget_block:has(.wp-block-latest-comments),
  body.orion-light-page.single-trip .widget_block:has(.wp-block-archives),
  body.orion-light-page.single-trip .widget_block:has(.wp-block-categories) {
    display: none !important;
  }
}

/* Extra fallback for common core sidebar wrappers on trip pages only. */
body.orion-light-page.single-trip aside.widget-area .widget_search,
body.orion-light-page.single-trip aside.widget-area .widget_recent_entries,
body.orion-light-page.single-trip aside.widget-area .widget_recent_comments,
body.orion-light-page.single-trip aside.widget-area .widget_archive,
body.orion-light-page.single-trip aside.widget-area .widget_categories,
body.orion-light-page.single-trip aside.secondary .widget_search,
body.orion-light-page.single-trip aside.secondary .widget_recent_entries,
body.orion-light-page.single-trip aside.secondary .widget_recent_comments,
body.orion-light-page.single-trip aside.secondary .widget_archive,
body.orion-light-page.single-trip aside.secondary .widget_categories {
  display: none !important;
}

/* Orion Cruises v1.0.5 - lightweight header for WP Travel Engine trips. */
body.orion-light-page .orion-light-header {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--orion-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 50;
}

body.orion-light-page .orion-light-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

body.orion-light-page .orion-light-logo {
  color: var(--orion-navy);
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

body.orion-light-page .orion-light-logo span {
  color: var(--orion-gold-dark);
  font-style: italic;
  font-weight: 400;
}

body.orion-light-page .orion-light-logo.has-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

body.orion-light-page .orion-light-logo .orion-light-logo-img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 54px;
  object-fit: contain;
}

body.orion-light-page .orion-light-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  flex: 1;
}

body.orion-light-page .orion-light-nav a {
  color: #334155;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
}

body.orion-light-page .orion-light-nav a:hover {
  color: var(--orion-gold-dark);
}

body.orion-light-page .orion-light-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  white-space: nowrap;
}

body.orion-light-page .orion-light-back,
body.orion-light-page .orion-light-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1;
}

body.orion-light-page .orion-light-back {
  color: var(--orion-navy);
  background: var(--orion-soft);
  border: 1px solid var(--orion-border);
}

body.orion-light-page .orion-light-back:hover {
  color: var(--orion-navy);
  border-color: var(--orion-gold);
  background: #fff;
}

body.orion-light-page .orion-light-cta {
  color: var(--orion-navy);
  background: var(--orion-gold);
  border: 1px solid var(--orion-gold);
  box-shadow: 0 10px 24px rgba(201, 168, 76, .20);
}

body.orion-light-page .orion-light-cta:hover {
  color: var(--orion-navy);
  background: #d8bb63;
  border-color: #d8bb63;
}

@media (max-width: 900px) {
  body.orion-light-page .orion-light-header-inner {
    padding: .9rem 1.2rem;
    flex-wrap: wrap;
    gap: .8rem;
  }

  body.orion-light-page .orion-light-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: .15rem;
    gap: 1rem;
  }

  body.orion-light-page .orion-light-actions {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  body.orion-light-page .orion-light-logo {
    font-size: 1.15rem;
  }

  body.orion-light-page .orion-light-actions {
    width: 100%;
    justify-content: space-between;
  }

  body.orion-light-page .orion-light-back,
  body.orion-light-page .orion-light-cta {
    flex: 1;
    padding-left: .75rem;
    padding-right: .75rem;
    font-size: .8rem;
  }
}


@media (max-width: 760px) {
  body.orion-light-page .orion-light-logo .orion-light-logo-img {
    max-width: 190px;
    max-height: 48px;
  }
}


/* v1.1.2 fallback: WP Travel Engine checkout templates may not output the normal body_class().
   Keep the light header styled even on plugin-controlled checkout screens. */
.orion-light-header {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--orion-border, #e2e8f0);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 50;
}

.orion-light-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.orion-light-logo {
  color: var(--orion-navy, #071225);
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.orion-light-logo span {
  color: var(--orion-gold-dark, #b88a2e);
  font-style: italic;
  font-weight: 400;
}

.orion-light-logo.has-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.orion-light-logo .orion-light-logo-img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 54px;
  object-fit: contain;
}

.orion-light-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  flex: 1;
}

.orion-light-nav a {
  color: #334155;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
}

.orion-light-nav a:hover {
  color: var(--orion-gold-dark, #b88a2e);
}

.orion-light-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  white-space: nowrap;
}

.orion-light-back,
.orion-light-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1;
}

.orion-light-back {
  color: var(--orion-navy, #071225);
  background: var(--orion-soft, #f8fafc);
  border: 1px solid var(--orion-border, #e2e8f0);
}

.orion-light-cta {
  color: var(--orion-navy, #071225);
  background: var(--orion-gold, #c9a84c);
  border: 1px solid var(--orion-gold, #c9a84c);
  box-shadow: 0 10px 24px rgba(201, 168, 76, .20);
}

@media (max-width: 900px) {
  .orion-light-header-inner {
    padding: .9rem 1.2rem;
    flex-wrap: wrap;
    gap: .8rem;
  }
  .orion-light-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: .15rem;
    gap: 1rem;
  }
  .orion-light-actions {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .orion-light-logo {
    font-size: 1.15rem;
  }
  .orion-light-actions {
    width: 100%;
    justify-content: space-between;
  }
  .orion-light-back,
  .orion-light-cta {
    flex: 1;
    padding-left: .75rem;
    padding-right: .75rem;
    font-size: .8rem;
  }
}

@media (max-width: 760px) {
  .orion-light-logo .orion-light-logo-img {
    max-width: 190px;
    max-height: 48px;
  }
}

/* Orion Cruises v1.1.4 - phone prefix selector for WP Travel Engine checkout. */
.orion-phone-prefix-control {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
}

.orion-phone-prefix-control .orion-phone-prefix-select {
  flex: 0 0 132px;
  width: 132px;
  min-width: 112px;
  min-height: 50px;
  padding: 0 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font: inherit;
  line-height: 1.2;
  box-shadow: none;
}

.orion-phone-prefix-control input[data-orion-phone-prefix="1"] {
  flex: 1 1 auto;
  min-width: 0;
}

.orion-phone-prefix-control .orion-phone-prefix-select:focus,
.orion-phone-prefix-control input[data-orion-phone-prefix="1"]:focus {
  outline: none;
  border-color: var(--orion-gold-dark, #a6852f);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

@media (max-width: 560px) {
  .orion-phone-prefix-control {
    gap: 0.5rem;
  }

  .orion-phone-prefix-control .orion-phone-prefix-select {
    flex-basis: 104px;
    width: 104px;
    padding-left: 0.55rem;
    padding-right: 0.35rem;
  }
}
