/* ============================================================
   HOME PAGE — Hero search, services, routes, steps, FAQ, testimonials
   ============================================================ */

/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.10) 0%, rgba(15,23,42,0) 30%),
    url('/assets/img/hero-home.jpg') center / cover no-repeat;
  min-height: 720px;
}
.hero::before { content: none; }

/* Inner container: limits width, holds text + form on the LEFT,
   leaving the right side (boat image) clean. */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px 110px;     /* bottom padding for bottom-features bar */
  min-height: 720px;
  display: flex; flex-direction: column;
  gap: 28px;
}
.hero-text-block {
  max-width: 580px;
}

.hero h1 {
  font-size: 44px; font-weight: 800;
  color: var(--red);
  line-height: 1.15;
  margin-bottom: 14px;
  /* text-shadow: 0 2px 14px rgba(0,0,0,0.3); */
}
.hero-sub {
  font-size: 16px; color: var(--primary);;
  margin-bottom: 18px;
  /* text-shadow: 0 1px 4px rgba(0,0,0,0.3); */
}

/* Top feature list (small icons inline above form) */
.hero-feature-list {
  display: flex; flex-wrap: wrap;
  gap: 22px;
  font-size: 13.5px;
  color: var(--primary);
  /* text-shadow: 0 1px 3px rgba(0,0,0,0.4); */
}
.hero-feature-item {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-feature-item svg { flex-shrink: 0; opacity: 0.9; }

/* Bottom features bar — positioned at the bottom-left of the hero,
   overlaying the image. Single row, semi-transparent. */
.hero-bottom-features {
  position: absolute;
  left: 0; right: 0; bottom: 32px;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex; flex-wrap: wrap;
  gap: 32px 40px;
  color: #fff;
}
.hbf-item {
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hbf-item strong {
  display: block;
  font-size: 13.5px; font-weight: 700;
}
.hbf-item small {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

/* ---- SEARCH CARD (pill style) ---- */
.hero-search-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 650px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.20);
  margin-top: 4px;
}

/* Trip type tabs (radio-pill style) */
.home-trip-tabs {
  display: flex; gap: 8px;
  margin-bottom: 16px;
}
.home-trip-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background: transparent;
  border: 1.5px solid var(--border);
  font-size: 13.5px; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.home-trip-tab:hover { color: var(--blue); }
.home-trip-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.trip-tab-radio {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
.home-trip-tab.active .trip-tab-radio::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #fff;
}

/* Form row: 4 fields + swap button between fields 1 and 2 */
.hero-search-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr 1fr;  /* from | swap | to | dateOut | dateRet */
  gap: 0;
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.hsr-field {
  padding: 10px 14px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}
.hsr-field:last-child { border-right: none; }
.hsr-field.disabled {
  background: #f1f5f9;
  opacity: 0.65;
  cursor: not-allowed;
}
.hsr-field.disabled input { cursor: not-allowed; pointer-events: none; }

.hsr-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  text-transform: none;
}

.hsr-control {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  min-width: 0;
}
.hsr-control select,
.hsr-control input {
  flex: 1;
  border: 0; outline: none; background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 0; min-width: 0;
  cursor: pointer;
}
.hsr-control select { appearance: none; -webkit-appearance: none; padding-right: 4px; }
.hsr-icon { flex-shrink: 0; }

/* Swap button — circular blue, between fields 1 and 2 */
.hsr-swap {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  border: none;
  color: var(--blue);
  cursor: pointer;
  align-self: center;
  margin: 0 -14px;     /* slightly overlap the borders for visual centering */
  z-index: 2;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px #fff;   /* white ring to separate from the gray border */
  transition: all 0.15s;
  transform: rotate(90deg);
}
.hsr-swap:hover { background: var(--blue); color: #fff; }

/* CTA row */
.hero-search-cta-row {
  display: flex; gap: 12px;
  align-items: center;
  justify-content: end;
}
.hsr-promo-btn {
  flex: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px; color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.hsr-promo-btn:hover { border-color: var(--blue); color: var(--blue); }

.hero-search-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.35);
  transition: all 0.15s;
}
.hero-search-btn:hover { background: #b71c1c; transform: translateY(-1px); }

/* ---- SECTIONS ---- */
.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 6px; }
.section-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }

/* ---- SERVICES ---- */
.service-card {
  text-align: center; padding: 32px 24px;
  border-radius: 14px; border: 1px solid var(--border);
  background: #fff; transition: all 0.2s;
}
.service-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: var(--blue-border);
}
.service-icon {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  /* No background — the SVG has its own circle */
}
.service-title { font-weight: 700; font-size: 16px; color: var(--primary); margin-bottom: 10px; }
.service-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---- ROUTE CARDS ---- */
.route-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  text-decoration: none; display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.route-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.route-card-img {
  position: relative; height: 140px; overflow: hidden;
  background: #e0f2fe;
}
.route-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s;
}
.route-card:hover .route-card-img img { transform: scale(1.05); }
.route-card-img-label {
  position: absolute; left: 12px; bottom: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 99px;
  backdrop-filter: blur(4px);
}
.route-card-body { padding: 14px 16px; }
.route-name { font-weight: 700; font-size: 14px; color: var(--primary); margin-bottom: 8px; }
.route-name .arrow { color: var(--blue); }
.route-meta { display: flex; justify-content: space-between; align-items: center; }
.route-duration { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.route-price { font-size: 13px; font-weight: 700; color: var(--blue); }

/* ---- STEPS SECTION (4 steps + boat illustration) ---- */
.steps-section {
  position: relative; overflow: hidden;
  padding: 60px 0;
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 60%, #b71c1c 100%);
}
.steps-title {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
}

.steps-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  position: relative;
}
/* Horizontal dotted line connecting all 4 steps */
.steps-list::before {
  content: '';
  position: absolute;
  top: 24px;     /* aligned with the center of step-num circles */
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background-image: linear-gradient(to right, rgba(255,255,255,0.5) 50%, transparent 50%);
  background-size: 8px 1px;
  z-index: 0;
}

.step-card {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 13px; font-weight: 800;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}
.step-icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.05);
}
.step-card h3 {
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 12.5px;
  opacity: 0.75;
  line-height: 1.7;
  color: #fff;
}

.steps-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-illustration img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

@media (max-width: 900px) {
  .steps-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .steps-illustration { max-width: 240px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .steps-list {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
  }
  .steps-list::before { display: none; }
}
@media (max-width: 480px) {
  .steps-list { grid-template-columns: 1fr; }
}

/* ---- FAQ ---- */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.faq-list-col { min-width: 0; }
.faq-image-col {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  position: sticky; top: 90px;
}
.faq-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
  display: block;
}
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-image-col { display: none; }   /* hide on mobile to save space */
}

/* ---- TESTIMONIALS ---- */
.testimonials-slider {
  overflow: hidden;
  margin-bottom: 24px;
}
.testimonials-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  will-change: transform;
}
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  position: relative;
}
.testimonial-quote-mark {
  position: absolute;
  top: 16px; left: 22px;
  font-size: 38px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  opacity: 0.85;
}
.testimonial-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin: 24px 0 18px;
  padding-top: 18px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-info { flex: 1; min-width: 0; }
.testimonial-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.testimonial-city { font-size: 12px; color: var(--muted); margin-top: 2px; }
.testimonial-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.testimonial-pager {
  display: flex; gap: 8px;
  justify-content: center;
}
.testimonial-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.testimonial-dot.active {
  background: var(--blue);
  width: 20px;
  border-radius: 99px;
}
@media (max-width: 900px) {
  .testimonials-slider .testimonial-card { min-width: 0; }
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%; background: none; border: none; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left;
}
.faq-question { font-size: 14px; font-weight: 600; color: var(--text); padding-right: 16px; }
.faq-icon { font-size: 18px; color: var(--muted); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { font-size: 13px; color: var(--muted); line-height: 1.7; padding-bottom: 16px; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: #fff; border-radius: 14px; padding: 24px;
  border: 1px solid var(--border);
}
.stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }
.testimonial-text { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
}
.testimonial-name { font-weight: 700; font-size: 13px; }
.testimonial-city { font-size: 12px; color: var(--muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-search-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "from to"
      "dateOut dateRet";
    gap: 0;
  }
  .hero-search-row > .hsr-field:nth-child(1) { grid-area: from; }
  .hero-search-row > .hsr-field:nth-child(3) { grid-area: to; border-right: none; }
  .hero-search-row > .hsr-field:nth-child(4) { grid-area: dateOut; border-top: 1px solid #e2e8f0; }
  .hero-search-row > .hsr-field:nth-child(5) { grid-area: dateRet; border-top: 1px solid #e2e8f0; border-right: none; }
  .hsr-swap {
    grid-area: from;
    align-self: end;
    justify-self: end;
    margin: 0 4px 4px 0;
    transform: rotate(90deg);
  }
}
@media (max-width: 768px) {
  .hero { min-height: 0; }
  .hero-inner {
    padding: 50px 20px 200px;     /* extra bottom for stacked features */
    min-height: 0;
  }
  .hero h1 { font-size: 28px; }
  .hero-bottom-features {
    bottom: 20px;
    padding: 0 20px;
    gap: 16px 24px;
  }
  .hbf-item small { display: none; }   /* hide subtext on mobile */
  .section { padding: 36px 0; }
}
@media (max-width: 600px) {
  .hero-inner { padding: 40px 16px 180px; }
  .hero-search-card { padding: 16px; }
  .hero-search-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "from"
      "to"
      "dateOut"
      "dateRet";
  }
  .hero-search-row > .hsr-field {
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0;
  }
  .hero-search-row > .hsr-field:last-child { border-bottom: none; }
  .hsr-swap {
    grid-area: from;
    align-self: end;
    justify-self: end;
    margin: 0 4px 4px 0;
    transform: rotate(90deg);
  }
  .hero-search-cta-row { flex-direction: column; }
  .hsr-promo-btn, .hero-search-btn { width: 100%; justify-content: center; }
  .home-trip-tab { font-size: 12px; padding: 6px 14px; }
}
