/* Trial home: hero search bar + dropdown + CTAs */

.home-trial-hero-accent {
  color: #96ff94;
}

.home-trial-search-wrap {
  max-width: 528px;
  margin: 0 auto;
}

.home-trial-search {
  position: relative;
  width: 100%;
  z-index: 100;
}

.home-trial-search-input-wrap {
  position: relative;
  border-radius: 4px;
  border: solid 1px #c0c4ca;
  background: #fff;
  display: flex;
  align-items: center;
}

.home-trial-search-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-family: "roc-grotesk", sans-serif;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #04132d;
}

.home-trial-search-input::placeholder {
  color: #04132d;
  opacity: 1;
}

.home-trial-search-input:focus {
  outline: none;
}

.home-trial-search-spinner {
  position: absolute;
  right: 14px;
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: #04132d;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.home-trial-search-spinner.is-active {
  opacity: 1;
  animation: home-trial-spin 0.7s linear infinite;
}

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

.home-trial-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border-radius: 4px;
  border: solid 1px #c0c4ca;
  box-shadow: 0 8px 24px rgba(4, 19, 45, 0.12);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
}

.home-trial-search-group {
  padding: 8px 0;
}

.home-trial-search-group:not(:last-child) {
  border-bottom: 1px solid #e8eaed;
}

.home-trial-search-group-title {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5f6368;
}

.home-trial-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-trial-search-item {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  color: #04132d;
  text-decoration: none;
  transition: background 0.15s;
}

.home-trial-search-item:hover {
  background: #96ff94;
}

.home-trial-ctas {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  width: 100%;
}

.home-trial-ctas .home-trial-cta-primary {
  min-width: 200px;
}

@media (min-width: 768px) {
  .home-trial-search-wrap {
    max-width: 528px;
  }
}

/* Shorter hero when only search + single CTA */
.banner-home-trial.banner-4 {
  min-height: 480px !important;
}

@media (min-width: 768px) {
  .banner-home-trial.banner-4 {
    min-height: 520px !important;
  }
}

.home-trial-cta {
  display: inline-block;
  padding: 12px 20px;
  font-family: "roc-grotesk", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.home-trial-cta-secondary {
  background: #fff;
  color: #04132d;
  border: solid 1px #c0c4ca;
}

.home-trial-cta-secondary:hover {
  background: #f1f3f4;
  border-color: #04132d;
}

.home-trial-cta-primary {
  background: #96ff94;
  color: #04132d;
  border: none;
}

.home-trial-cta-primary:hover {
  background: #c2ff42;
}

@media (max-width: 575px) {
  .home-trial-ctas {
    margin-top: 16px;
  }

  .home-trial-ctas-row {
    flex-direction: column;
    width: 100%;
  }

  .home-trial-cta {
    width: 100%;
    text-align: center;
  }
}

/* ------------------------------------------
   Trending Events (trial home)
   Uses .card-slider-box so theme event card styles apply; we override layout to grid.
   ------------------------------------------ */
.trending-events-trial {
  padding: 60px 0 80px;
}

.trending-events-trial .title-and-buttons {
  margin-bottom: 24px;
}

.trending-events-trial .title-and-buttons h2 {
  margin: 0;
  font-family: "roc-grotesk", sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: #04132d;
}

/* Slider layout: don’t use grid so slick can run; slide = .trending-event-card-wrap */
.trending-events-trial.gallery-cards .trending-events-trial-grid.inner-cards {
  display: block;
  gap: 0;
  margin-bottom: 0;
}

.trending-events-trial .trending-events-trial-grid.card-slider-box .trending-event-card-wrap {
  margin-right: 32px;
}

.trending-events-trial .trending-events-trial-grid .trending-event-card-wrap .card-box {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-bottom: 0;
}

/* Desktop: align date and location in one row; equal-height white box for all cards */
.trending-events-trial.gallery-cards .trending-events-trial-grid .slick-track {
  display: flex;
  align-items: stretch;
}

.trending-events-trial.gallery-cards .trending-events-trial-grid .trending-event-card-wrap {
  height: auto;
  display: flex;
}

.trending-events-trial.gallery-cards .trending-events-trial-grid .trending-event-card-wrap .card-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.trending-events-trial.gallery-cards .trending-events-trial-grid .trending-event-card-wrap .card-box .text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.trending-events-trial.gallery-cards .trending-events-trial-grid .trending-event-card-wrap .card-box .text-content .btns-box {
  margin-top: auto;
}

.trending-events-trial.gallery-cards .inner-cards .text-content .event-meta-wrapper {
  align-items: baseline;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
}

.trending-events-trial.gallery-cards .inner-cards .text-content .event-meta-wrapper .event-formatted-date,
.trending-events-trial.gallery-cards .inner-cards .text-content .event-meta-wrapper .event-formatted-location {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.trending-events-trial.gallery-cards .inner-cards .text-content .event-meta-wrapper .event-formatted-date span,
.trending-events-trial.gallery-cards .inner-cards .text-content .event-meta-wrapper .event-formatted-location span {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.trending-events-trial.gallery-cards .inner-cards .text-content .title-trending-wrapper {
  margin-bottom: 8px;
}

/* Counter + prev/next in title row */
.trending-events-trial .title-and-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trending-events-trial .trending-events-trial-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trending-events-trial .trending-events-counter {
  font-family: "roc-grotesk", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #04132d;
}

.trending-events-trial .trending-events-trial-controls .btns-box {
  display: flex;
  gap: 0;
}

.trending-event-card-wrap {
  position: relative;
}

.trending-event-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04132d;
  color: #96ff94;
  font-family: "roc-grotesk", sans-serif;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50%;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
  .trending-events-trial {
    padding: 80px 0 100px;
  }

  .trending-events-trial .title-and-buttons {
    margin-bottom: 30px;
  }

  .trending-events-trial .title-and-buttons h2 {
    font-size: 36px;
  }

  .trending-event-rank {
    width: 40px;
    height: 40px;
    font-size: 18px;
    top: 16px;
    left: 16px;
  }
}

/* Mobile: date + location on one line; Trail + Scenic on one line; same date/location alignment */
@media (max-width: 767.98px) {
  .trending-events-trial.gallery-cards .inner-cards .text-content .event-meta-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: baseline;
  }

  .trending-events-trial.gallery-cards .inner-cards .text-content .event-meta-wrapper .event-formatted-date,
  .trending-events-trial.gallery-cards .inner-cards .text-content .event-meta-wrapper .event-formatted-location {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
  }

  .trending-events-trial.gallery-cards .inner-cards .text-content .links-box {
    flex-wrap: nowrap;
  }

  .trending-events-trial.gallery-cards .inner-cards .text-content .links-box div {
    width: auto;
  }
}
