/* v1-5-0: Trips / tours parent page from v12 tours.html.
   Media remains optional and Media-Library-governed; this file supplies safe layout and placeholder behavior. */

.ms-tours-template .ms-hero--tours::before {
  background-image:
    linear-gradient(
      to bottom,
      rgba(26, 39, 48, 0.16) 10%,
      rgba(26, 39, 48, 0.40) 55%,
      rgba(26, 39, 48, 0.70) 88%
    ),
    radial-gradient(circle at 28% 18%, rgba(213, 75, 15, 0.22), transparent 32%),
    linear-gradient(135deg, var(--ms-color-primary), var(--ms-color-primary-dark));
  background-size: cover;
  background-position: 50% 25%;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .ms-tours-template .ms-hero--tours::before {
    background-position: 50% 50%;
  }
}

.ms-tours-template .ms-trip-card {
  position: relative;
  text-align: left;
  padding: 0;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.ms-tours-template .ms-card-overlay {
  position: absolute;
  inset: 0;
  border-radius: 1.1rem;
  z-index: 1;
}

.ms-tours-template .ms-trip-media {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: rgba(71, 91, 102, 0.08);
}

.ms-tours-template .ms-trip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ms-tours-template .ms-trip-media-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background:
    radial-gradient(circle at 25% 20%, rgba(213, 75, 15, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(71, 91, 102, 0.16), rgba(50, 66, 75, 0.25));
  color: var(--ms-color-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.ms-tours-template .ms-trip-body {
  padding: 1.1rem 1.5rem 1.6rem;
}

.ms-tours-template .ms-trip-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  position: relative;
  z-index: 3;
}

.ms-tours-template .ms-readmore-pill {
  margin-bottom: 0;
}

.ms-tours-template .ms-readmore-link,
.ms-tours-template .ms-readmore-link:hover,
.ms-tours-template .ms-readmore-link:focus,
.ms-tours-template .ms-readmore-link:focus-visible {
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .ms-tours-template .ms-card-overlay {
    display: block;
  }

  .ms-tours-template .ms-readmore-link {
    pointer-events: auto;
  }

  .ms-tours-template .ms-trip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.10);
  }

  .ms-tours-template .ms-trip-card:hover .ms-readmore-pill {
    background: var(--ms-color-primary);
    color: #ffffff;
    border-color: rgba(71, 91, 102, 0.35);
  }
}

@media (hover: none) and (pointer: coarse) {
  .ms-tours-template .ms-card-overlay {
    display: none;
  }

  .ms-tours-template .ms-readmore-link {
    pointer-events: auto;
  }
}

.ms-tours-template .ms-trips-included .ms-services-title {
  text-align: center;
}

.ms-tours-template .ms-trips-included .ms-services-title::after {
  content: "";
  display: block;
  width: 70%;
  max-width: 220px;
  height: 1px;
  margin: 0.85rem auto 0.8rem;
  background: var(--ms-color-border-soft);
}

.ms-tours-template .ms-trip-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.ms-tours-template .ms-trip-list li {
  margin-bottom: 0.35rem;
}

/* v1-11-9: Centered Trips rows with one-click desktop end-to-end navigation. */
.ms-trips-discovery .ms-container { overflow: visible; }
.ms-trips-row {
  position: relative;
  padding: 0;
  border: 0;
  scroll-margin-top: 6rem;
}
.ms-trips-row + .ms-trips-row { margin-top: 4rem; }
.ms-trips-row-header {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.35rem;
}
.ms-trips-row-header > div {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}
.ms-trips-row .ms-section-heading { text-align: center; margin-bottom: .35rem; }
.ms-trips-row .ms-section-subheading { text-align: center; margin: 0; }
.ms-trips-carousel-shell { position: relative; }
.ms-trips-row-nav { display: none; }
.ms-trips-carousel {
  display: flex;
  gap: var(--ms-spacing-md);
  overflow-x: auto;
  padding-bottom: .35rem;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}
.ms-trips-carousel::-webkit-scrollbar { height: 8px; }
.ms-trips-carousel::-webkit-scrollbar-track { background: rgba(148,163,184,.2); border-radius: 999px; }
.ms-trips-carousel::-webkit-scrollbar-thumb { background: rgba(15,23,42,.35); border-radius: 999px; }
.ms-trips-carousel-card { flex: 0 0 78%; max-width: 78%; min-height: 100%; }
.ms-trips-card-media img { height: 200px; object-fit: cover; object-position: center center; }
.ms-trips-card-media--center-top img { object-position: center top; }
.ms-trips-card-media--center-bottom img { object-position: center bottom; }
.ms-trips-card-media--left-center img { object-position: left center; }
.ms-trips-card-media--right-center img { object-position: right center; }
.ms-trips-card-media--center-center img { object-position: center center; }
.ms-trips-card-body { display: flex; flex-direction: column; gap: .45rem; min-height: 185px; padding: .9rem 1rem 1rem; }
.ms-trips-card-badge { align-self: flex-start; margin-bottom: .1rem; font-size: .7rem; letter-spacing: .05em; }
.ms-trips-card-title { margin: 0; font-size: 1.05rem; }
.ms-trips-card-body .ms-guides-card-subtitle { margin: 0; }
@media (min-width: 600px) {
  .ms-trips-carousel-card { flex-basis: 48%; max-width: 48%; }
}
@media (min-width: 900px) {
  .ms-trips-row-nav {
    position: absolute;
    top: 6.4rem;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
  }
  .ms-trips-row-btn {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
    transition: transform .18s ease, filter .18s ease;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.85)) drop-shadow(0 0 5px rgba(0,0,0,.5));
  }
  .ms-trips-row-btn span {
    width: 1rem;
    height: 1rem;
    display: block;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
  }
  .ms-trips-row-btn[data-direction="prev"] span { transform: rotate(-135deg); }
  .ms-trips-row-btn[data-direction="next"] span { transform: rotate(45deg); }
  .ms-trips-row-btn:hover,
  .ms-trips-row-btn:focus-visible {
    background: transparent;
    color: #fff;
    opacity: 1;
    transform: scale(1.14);
    filter: drop-shadow(0 3px 3px rgba(0,0,0,.92)) drop-shadow(0 0 7px rgba(0,0,0,.62));
  }
  .ms-trips-row-btn:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 2px; }
}
@media (min-width: 1100px) {
  .ms-trips-carousel-card { flex-basis: 30%; max-width: 30%; }
  .ms-trips-card-media img { height: 210px; }
  .ms-trips-row-nav { top: 6.7rem; }
}
@media (max-width: 768px) {
  .ms-trips-row + .ms-trips-row { margin-top: 3rem; }
  .ms-trips-row-header { margin-bottom: 1.1rem; }
}

/* v1-14-2: compact custom-combination editorial with one governed blended image. */
.ms-trip-combine-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: 0;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid rgba(71, 91, 102, 0.14);
  border-radius: var(--ms-radius-lg);
  background: var(--ms-color-soft-bg);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  scroll-margin-top: 6rem;
}

.ms-trip-combine-copy {
  align-self: center;
  padding: clamp(1.35rem, 3vw, 1.8rem);
}

.ms-trip-combine-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--ms-color-accent);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ms-trip-combine-copy h2 {
  margin: 0 0 0.65rem;
  text-align: left;
}

.ms-trip-combine-copy > p:not(.ms-trip-combine-eyebrow):not(.ms-trip-combine-response) {
  margin: 0;
  color: var(--ms-color-muted);
  line-height: 1.65;
}

.ms-trip-combine-copy .ms-btn {
  display: flex;
  width: fit-content;
  min-width: 0;
  margin: 1.85rem auto 0;
}

.ms-trip-combine-response {
  margin: 0.65rem 0 0;
  text-align: center;
}

.ms-trip-combine-visual {
  min-width: 0;
  min-height: 250px;
  background: #ffffff;
}

.ms-trip-combine-visual > img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: block;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 860px) {
  .ms-trip-combine-card {
    grid-template-columns: 1fr;
  }

  .ms-trip-combine-visual,
  .ms-trip-combine-visual > img {
    min-height: 210px;
  }
}

@media (max-width: 540px) {
  .ms-trip-combine-visual,
  .ms-trip-combine-visual > img {
    min-height: 170px;
  }
}

