/* ==========================================================================
   EXPLORE TRIPS - ELEMENTOR WIDGET STYLES
   ========================================================================== */

.tm-explore-trips {
  --et-blue: #0064C1;
  --et-deep: #003463;
  --et-orange: #F8753A;
  --et-orange-dark: #E4622A;
  --et-ink: #102337;
  --et-muted: #66778A;
  --et-line: #E5EAF0;
  --et-paper: #F7F9FC;
  --et-white: #FFFFFF;
  --et-display: "Fraunces", Georgia, serif;
  --et-body: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  font-family: var(--et-body);
  color: var(--et-ink);
  -webkit-font-smoothing: antialiased;
}

.tm-explore-trips * {
  box-sizing: border-box;
}

.tm-explore-trips a,
.tm-explore-trips button {
  font: inherit;
}

.tm-explore-trips img {
  max-width: 100%;
  display: block;
}

/* Ensure Elementor wrapper doesn't constrain or add margins */
.elementor-widget-explore-trips {
  width: 100%;
  margin: 0 !important;
}

.elementor-widget-explore-trips > .elementor-widget-container {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* --------------------------------------------------------------------------
   OUTER SECTION WRAPPER & FULLSCREEN BREAKOUT (NO LEFT/RIGHT SPACE)
   -------------------------------------------------------------------------- */
.tm-explore-trips .explore-trips-section {
  width: 100%;
  padding: clamp(30px, 5vw, 68px) 0;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

/* Fullscreen Edge-to-Edge Breakout for Desktop & Mobile (Zero Side Gap) */
.tm-explore-trips.et-mode-fullscreen,
.tm-explore-trips[data-full-width="yes"] {
  position: relative !important;
  width: 100vw !important;
  width: var(--tm-explore-vw, 100vw) !important;
  max-width: var(--tm-explore-vw, 100vw) !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-left: calc(-1 * var(--tm-explore-vw, 100vw) / 2) !important;
  margin-right: -50vw !important;
  margin-right: calc(-1 * var(--tm-explore-vw, 100vw) / 2) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.tm-explore-trips.et-mode-fullscreen .explore-trips-section,
.tm-explore-trips[data-full-width="yes"] .explore-trips-section {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Inner Container */
.tm-explore-trips .explore-wrap {
  width: min(1220px, 100%);
  margin: auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.tm-explore-trips.et-mode-fullscreen .explore-wrap,
.tm-explore-trips[data-full-width="yes"] .explore-wrap {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 clamp(16px, 4vw, 56px) !important;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.tm-explore-trips .explore-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}

.tm-explore-trips .explore-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--et-orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tm-explore-trips .explore-kicker::before,
.tm-explore-trips .explore-kicker::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--et-orange);
}

.tm-explore-trips .explore-title {
  margin-top: 11px;
  color: var(--et-deep);
  font-family: var(--et-display);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.045em;
}

.tm-explore-trips .explore-title em {
  color: var(--et-orange);
  font-style: italic;
}

.tm-explore-trips .explore-intro {
  max-width: 600px;
  margin: 14px auto 0;
  color: var(--et-muted);
  font-size: 11px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   CARDS GRID
   -------------------------------------------------------------------------- */
.tm-explore-trips .explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
}

.tm-explore-trips .trip-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 25px;
  isolation: isolate;
  background: var(--et-deep);
  box-shadow: 0 22px 55px rgba(14, 33, 54, .11);
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s cubic-bezier(.2, .7, .2, 1),
    transform .7s cubic-bezier(.2, .7, .2, 1),
    box-shadow .35s ease;
  text-decoration: none;
}

.tm-explore-trips .trip-card.visible,
.elementor-editor-active .tm-explore-trips .trip-card {
  opacity: 1 !important;
  transform: none !important;
}

.tm-explore-trips .trip-card:nth-child(1) { transition-delay: .04s; }
.tm-explore-trips .trip-card:nth-child(2) { transition-delay: .12s; }
.tm-explore-trips .trip-card:nth-child(3) { transition-delay: .20s; }
.tm-explore-trips .trip-card:nth-child(4) { transition-delay: .28s; }
.tm-explore-trips .trip-card:nth-child(5) { transition-delay: .36s; }
.tm-explore-trips .trip-card:nth-child(6) { transition-delay: .44s; }

.tm-explore-trips .trip-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.tm-explore-trips .trip-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 32, 62, .04) 18%,
      rgba(0, 28, 54, .16) 38%,
      rgba(0, 21, 43, .90) 100%);
  pointer-events: none;
}

.tm-explore-trips .trip-card:hover {
  box-shadow: 0 30px 70px rgba(14, 33, 54, .17);
  transform: translateY(-5px);
}

.tm-explore-trips .trip-card:hover .trip-image {
  transform: scale(1.07);
  filter: saturate(1.08);
}

/* Top badge */
.tm-explore-trips .trip-badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 999px;
  background: rgba(0, 37, 72, .48);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tm-explore-trips .trip-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--et-orange);
  box-shadow: 0 0 0 4px rgba(248, 117, 58, .12);
}

/* Card content */
.tm-explore-trips .trip-content {
  position: relative;
  z-index: 3;
  padding: 30px 25px 24px;
  color: #fff;
}

.tm-explore-trips .trip-number {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, .48);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tm-explore-trips .trip-name {
  color: #fff;
  font-family: var(--et-display);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.03em;
  margin: 0;
}

.tm-explore-trips .trip-name span {
  color: #FF9566;
}

.tm-explore-trips .trip-description {
  max-width: 340px;
  margin-top: 11px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
  line-height: 1.7;
}

.tm-explore-trips .trip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.tm-explore-trips .trip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  text-decoration: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
}

.tm-explore-trips .trip-link-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: transform .25s ease, background .25s ease;
}

.tm-explore-trips .trip-card:hover .trip-link-arrow,
.tm-explore-trips .trip-link:hover .trip-link-arrow {
  transform: translateX(4px);
  background: var(--et-orange);
}

/* Decorative outline */
.tm-explore-trips .trip-outline {
  position: absolute;
  z-index: 2;
  width: 210px;
  height: 210px;
  top: -105px;
  right: -105px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, .025),
    0 0 0 64px rgba(255, 255, 255, .018);
  pointer-events: none;
}

/* Bottom line */
.tm-explore-trips .explore-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--et-muted);
  font-size: 9px;
  font-weight: 600;
}

.tm-explore-trips .explore-bottom-line {
  width: 28px;
  height: 1px;
  background: var(--et-line);
}

/* --------------------------------------------------------------------------
   RESPONSIVE & MOBILE FRIENDLY
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .tm-explore-trips .explore-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: auto;
    gap: 16px;
  }

  .tm-explore-trips .trip-card {
    min-height: 380px;
  }
}

@media (max-width: 620px) {
  .tm-explore-trips .explore-trips-section {
    padding: 35px 0 45px;
  }

  .tm-explore-trips .explore-wrap {
    padding: 0 16px !important;
  }

  .tm-explore-trips .explore-header {
    margin-bottom: 24px;
  }

  .tm-explore-trips .explore-title {
    font-size: 38px;
  }

  .tm-explore-trips .explore-intro {
    font-size: 10px;
    line-height: 1.65;
  }

  .tm-explore-trips .explore-grid {
    gap: 14px;
  }

  .tm-explore-trips .trip-card {
    min-height: 340px;
    border-radius: 20px;
  }

  .tm-explore-trips .trip-content {
    padding: 24px 18px 18px;
  }

  .tm-explore-trips .trip-name {
    font-size: 30px;
  }

  .tm-explore-trips .trip-description {
    font-size: 9.4px;
  }
}

@media (max-width: 380px) {
  .tm-explore-trips .explore-title {
    font-size: 34px;
  }

  .tm-explore-trips .trip-card {
    min-height: 320px;
  }

  .tm-explore-trips .trip-content {
    padding: 20px 15px 15px;
  }

  .tm-explore-trips .trip-name {
    font-size: 26px;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .tm-explore-trips,
  .tm-explore-trips * {
    transition: none !important;
    animation: none !important;
  }
  .tm-explore-trips .trip-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
