/*
 Theme Name: Kadence Child
 Theme URI: http://example.com/
 Description: Child theme for Kadence customizations
 Author: Your Name
 Template: kadence
 Version: 1.0.0
*/
/* =========================
   TRIP HERO (EVEREST STYLE)
========================= */
/* Title above slider */
body.single-trip .trip-hero-inner.title-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 32px auto;
  text-align: center;
}

/* Trip Title */
body.single-trip .trip-title {
  font-family: "Lexend Tera", sans-serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 1; /* 100% line height */
  letter-spacing: -0.15em; /* -15% tracking */
  text-align: center;
  text-transform: uppercase;
  color: #333;
  margin: 0;
}

@media (max-width: 768px) {
  body.single-trip .trip-title {
    font-size: 42px;
    letter-spacing: -0.05em;
  }
}

@media (max-width: 480px) {
  body.single-trip .trip-title {
    font-size: 32px;
    letter-spacing: -0.03em;
  }
}

body.single-trip .trip-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(238, 228, 218, 0.65); /* ðŸ‘ˆ adjust opacity here */
  z-index: 0;
}

body.single-trip .trip-hero > * {
  position: relative;
  z-index: 1;
}

body.single-trip .trip-hero {
  position: relative;
  min-height: 75vh;
  background-color: #eee4da;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  overflow: hidden; /* IMPORTANT */
  background-image: url("/wp-content/themes/kadence-child/assets/images/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 20px;
  border-radius: 12px;
}

body.single-trip .trip-hero-slider {
  position: relative;
  width: 90%;
  max-width: 1600px;
  height: 700px; /* âœ… fixed height for card-style slider */
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto; /* center horizontally */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

body.single-trip .trip-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

body.single-trip .trip-hero-slide.active {
  opacity: 1;
}

body.single-trip .trip-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  background: transparent;
  pointer-events: none;
}

body.single-trip .trip-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 50px;
  cursor: pointer;
  z-index: 3;
  border-radius: 50%;
}

body.single-trip .trip-hero-nav.prev {
  left: 10px;
}
body.single-trip .trip-hero-nav.next {
  right: 10px;
}

body.single-trip .trip-hero-inner {
  width: 90%;
  max-width: 1000px;
  margin-top: 24px;
  padding: 24px;
  z-index: 2;
  color: #333;
}

/* Trip Overview title*/
body.single-trip .trip-overview-title {
  font-family: "Lexend Tera", serif;
  font-size: 28px;
  font-weight: 600;
  color: #333;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trip-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.trip-hero-meta li {
  display: flex;
  flex-direction: column; /* ðŸ‘ˆ vertical stack */
  align-items: center; /* ðŸ‘ˆ center everything */
  text-align: center;
  gap: 6px;
}

.trip-hero-meta i {
  font-size: 22px;
  color: #7a5c3e;
  margin-bottom: 6px;
}

.trip-meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.trip-meta-value {
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 480px) {
  body.single-trip .trip-hero-meta {
    display: flex !important; /* override grid */
    flex-wrap: wrap;
    justify-content: flex-start; /* evenly distribute items */
    gap: 12px;
    margin-top: 24px;
  }

  body.single-trip .trip-hero-meta li {
    flex: 0 0 48%; /* 2 per row */
    max-width: 48%;
    flex-direction: row; /* icon + label side by side */
    align-items: left;
    text-align: left; /* better for row layout */
    gap: 8px; /* spacing between icon and text */
    margin-bottom: 12px;
  }

  body.single-trip .trip-hero-meta li i {
    margin-bottom: 0; /* remove vertical margin for horizontal layout */
    font-size: 20px; /* optional adjust */
  }
}

@media (max-width: 768px) {
  body.single-trip .trip-hero-slider,
  body.single-trip .trip-hero-inner {
    width: 95%;
  }
}

.trip-header-row td {
  background: #f5f5f5;
  border-bottom: 1px solid #ccc;
  font-weight: bold;
}

/* =========================
   TRIP ITINERARY (CONTINUED BACKGROUND)
========================= */

body.single-trip .trip-itinerary {
  background-color: #eee4da; /* same as hero */
  padding: 20px 0 20px;
}

/* Keep width aligned with hero */
body.single-trip .trip-itinerary-inner {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

/* Itinerary Section Title */
body.single-trip .trip-itinerary-title {
  font-family: "Lexend Tera", serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 20px; /* space below title */
  margin-bottom: 20px; /* space before first card */
}

body.single-trip .itinerary-description {
  margin-top: -20px;
  line-height: 1.5;
}

/* Itinerary Card - Grid Layout */
/* Itinerary Card - Fixed Image Height */
body.single-trip .itinerary-item {
  display: grid;
  grid-template-columns: 280px 1fr; /* left: image, right: content */
  gap: 30px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  /* remove align-items: stretch so height is uniform */
}

body.single-trip .itinerary-image {
  width: 280px;
  height: 158px; /* fixed height for all images */
}

body.single-trip .itinerary-image img {
  width: 100%;
  height: 100%; /* fixed height */
  object-fit: cover; /* maintains aspect ratio, crops excess */
  border-radius: 12px;
  display: block;
}

/* Content column */
body.single-trip .itinerary-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

/* Last item adjustments */
body.single-trip .itinerary-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Mobile: switch to column layout */
/* Mobile: fixed height layout */
@media (max-width: 768px) {
  body.single-trip .itinerary-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px; /* spacing between image and content */
  }

  body.single-trip .itinerary-image {
    width: 100%; /* full width of container */
    height: 200px; /* fixed height */
    overflow: hidden; /* crop excess */
  }

  body.single-trip .itinerary-image img {
    width: 100%;
    height: 100%; /* fill the container height */
    object-fit: cover; /* maintain aspect ratio, crop excess */
    border-radius: 12px;
    display: block;
  }

  body.single-trip .itinerary-content {
    width: 100%; /* full width below image */
  }
}

.trip-includes-excludes {
  background: #eee4da;
  padding: 80px 0;
}

.trip-includes-excludes-inner {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 24px;
}

.trip-inclusions h2,
.trip-exclusions h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.trip-content ul {
  padding-left: 20px;
}

.trip-content li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .trip-includes-excludes-inner {
    grid-template-columns: 1fr;
  }
}
.trip-archive-container {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;

  align-items: flex-start;
}

.trip-archive-wrapper {
  background-color: #eee4da;
  padding: 40px 0;
  min-height: 100vh;
}

.trip-filters {
  background: #eee4da;
  padding: 20px;
  border-radius: 10px;
}

.filter-group {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}

.filter-toggle {
  all: unset;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;

  padding: 6px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.filter-toggle:active {
  background-color: rgba(0, 0, 0, 0.04);
}

.filter-toggle:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.filter-toggle:focus {
  outline: none;
}

.filter-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.filter-group.open .filter-icon {
  transform: rotate(45deg);
}

.filter-content {
  display: none;
  margin-top: 10px;
}

.filter-group.open .filter-content {
  display: block;
}

.filter-content label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  cursor: pointer;
}

.filter-submit {
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.trip-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.trip-card {
  position: relative; /* so we can position title on top */
  width: 100%;
  height: 450px; /* fixed height for poster look */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  background-color: #eee4da; /* in case image is smaller */
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.trip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* shows full image without cropping */
  display: block;
  transition: transform 0.5s ease;
}

.trip-card:hover img {
  transform: scale(1.02); /* subtle zoom on hover */
}

/* Trip title overlay */
.trip-card-title {
  position: absolute;
  bottom: 10px; /* adjust vertical placement */
  left: 10px; /* adjust horizontal placement */
  right: 20px;
  color: #fff; /* text color */
  font-family: "pinyon script", sans-serif;
  font-size: 24px; /* adjust as needed */
  font-weight: 600;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); /* makes text readable over image */
  z-index: 2;
}

.trip-pagination {
  clear: both;
  margin-top: 30px;
  text-align: center;
}

.trip-pagination a {
  padding: 8px 12px;
  margin: 0 4px;
  background: #eee4da;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
}

.trip-pagination a.current {
  background: #333;
  color: #fff;
}

/* Only target the Trips page header */
.trip-page-header h1 {
  font-family: "Great Vibes", cursive;
  font-size: 34px; /* Adjust size as needed */
  font-weight: 700; /* Optional: bold */
  color: #222; /* Optional: change color */
}

.trip-page-header p {
  font-family: "EB Garamond", serif; /* Subtitle font */
  font-size: 60px; /* Adjust as needed */
  font-weight: 400;
  color: #555;
  text-align: center; /* centers the text */
  margin-top: 10px;
  line-height: 1.2; /* adjusts spacing between lines */
}

@media (max-width: 900px) {
  .trip-archive-container {
    grid-template-columns: 1fr;
  }

  .trip-filters {
    order: 1;
  }

  .trip-grid {
    order: 2;
  }
}

@media (max-width: 600px) {
  .trip-card {
    width: 100%;
  }
}

/* Single Blog Page Styles */
.single-blog {
  background-color: #eee4da;
  padding: 0 0 40px;
}

.single-blog-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Title */
.single-blog .blog-title {
  font-family: "Lexend Tera", sans-serif;
  font-size: 48px;
  margin-bottom: 30px;
  text-align: center;
  padding: 20px 0 80px;
}

/* Featured / Cover Image */
.single-blog .blog-cover-image {
  position: relative;
  max-width: 1200px;
  width: 100%;
  aspect-ratio: 16 / 9; /* keeps 16:9 shape */
  margin: 30px auto;
  border-radius: 20px;
  overflow: hidden;

  /* Background behind the featured image */
  background: url("assets/images/centered_mountain.png") center bottom no-repeat;
  background-size: cover;
}

.single-blog .blog-cover-image img {
  position: absolute; /* Sit on top of the background */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2; /* ensure it’s above the background */
}

.single-blog .blog-content {
  font-size: 20px;
  font-family: "EB Garamond", serif;
  max-width: 900px;
  line-height: 1.8;
  color: #333;
  margin: 0 auto; /* center content block */
}

/* Images inside blog content (smaller than featured) */
.single-blog .blog-content img {
  width: 700px;
  height: 395px; /* 16:9 */
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
  margin: 40px auto;
}

@media (max-width: 768px) {
  .single-blog .blog-cover-image img,
  .single-blog .blog-content img {
    max-width: 100%;
    height: auto;
  }

  .single-blog-inner {
    width: 95%;
  }
}

.mv-footer {
  position: relative;
  background: #f3eadf;
  padding: 50px 0 20px;
  overflow: hidden;
  font-family: serif;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

/* Mountain background */
.mv-footer-bg {
  position: absolute;
  inset: 0;
  background: url("assets/images/centered_mountain.png") center bottom no-repeat;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
}

.mv-footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  position: relative;
  z-index: 2;
}

.mv-footer-info h4 {
  font-style: italic;
  margin-top: 12px;
  margin-bottom: 2px;
}

.mv-footer-label {
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 4px;
}
.mv-footer-logo {
  margin-top: 20px;
  margin-bottom: 4px;
  padding-left: 200px;
}

.mv-footer-info a {
  color: inherit;
  text-decoration: none;
}

/* Company name */
.mv-footer-info h4 {
  font-style: italic;
  margin-bottom: 10px;
}

/* Labels (Phone / Email) */
.mv-footer-label {
  font-style: italic;
  margin-top: 12px;
  margin-bottom: 2px;
}

/* Email link – no padding */
.mv-footer-info a {
  color: inherit;
  text-decoration: none;
}

/* Center navigation */
.mv-footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mv-footer-nav li {
  margin-bottom: 10px;
}

.mv-footer-nav a {
  text-decoration: none;
  font-size: 22px;
  color: #000;
}
.mv-footer-info,
.mv-footer-nav {
  padding-top: 10px;
  padding-left: 200px;
}

/* Bottom section */
.mv-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.mv-footer-logo img {
  max-width: 260px;
}

/* Social icons */
.mv-footer-social {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 16px; /* space between buttons */
  align-items: center;
  justify-content: center; /* centers them horizontally */
}

.mv-footer-social a {
  position: relative;
  z-index: 11;
  pointer-events: auto;
  cursor: pointer;
}

.mv-footer-social .social {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d71920;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mv-footer-social .social svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

/* Responsive footer for mobile */
@media (max-width: 768px) {
  .mv-footer-inner {
    grid-template-columns: 1fr; /* stack the two main columns */
    gap: 20px; /* smaller gap for mobile */
    padding-left: 20px; /* reset large left padding */
    padding-right: 20px; /* optional: add right padding */
  }

  .mv-footer-info,
  .mv-footer-nav {
    padding-left: 0; /* remove desktop left padding */
    padding-top: 0; /* remove extra spacing */
  }

  .mv-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mv-footer-social {
    padding-right: 0; /* remove large desktop padding */
    justify-content: center; /* center social icons */
  }

  .mv-footer-logo {
    padding-left: 0; /* remove desktop padding */
    text-align: center; /* center logo */
  }
}

/* Remove extra bottom padding above footer */
.entry-content-wrap {
  padding-bottom: 0 !important;
}

/* Search results page background */
body.search {
  background-color: #eee4da;
}
/* Make search result cards taller */
body.search article {
  min-height: 420px; /* increase/decrease as you like */
  padding: 24px;
  box-sizing: border-box;
}

/* Mobile-specific footer tweaks */
@media (max-width: 768px) {
  /* Move social icons above logo */
  .mv-footer-bottom {
    display: flex;
    flex-direction: column; /* stack items vertically */
    align-items: center; /* center everything */
    gap: 16px; /* spacing between social and logo */
  }

  /* Center the logo */
  .mv-footer-logo {
    padding-left: 0;
    text-align: center;
    margin: 0; /* remove extra margin if needed */
  }

  /* Center the social icons */
  .mv-footer-social {
    order: -1; /* moves it above the logo in the flex column */
    justify-content: center;
    gap: 16px;
  }
}
