/* FerryEU trains page — clean no-popup edition */
.trains-page{background:#fff}

/* Compact hero */
.trains-page .trains-hero-bare-search{
  position:relative;
  height:300px!important;
  min-height:300px!important;
  overflow:hidden;
}
.trains-page .trains-hero-bare-search .hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%!important;
  object-fit:cover!important;
  object-position:center;
}
.trains-page .trains-hero-bare-search .hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
}
.trains-hero-stack{
  position:relative;
  z-index:2;
  padding-top:22px;
  padding-bottom:18px;
}
.trains-hero-heading{
  max-width:820px;
}
.trains-hero-heading h1{
  margin:5px 0 10px;
  color:#062b4f;
  font-size:clamp(2.2rem,3.8vw,3.45rem);
  line-height:.99;
  letter-spacing:-.035em;
  text-shadow:0 1px 2px rgba(255,255,255,.58);
}
.trains-hero-heading>p{
  max-width:760px;
  margin:0;
  padding:8px 12px;
  color:#062b4f;
  background:rgba(255,255,255,.90);
  border:1px solid rgba(255,255,255,.94);
  border-radius:10px;
  box-shadow:0 4px 14px rgba(3,27,50,.12);
  font-size:.92rem;
  font-weight:800;
  line-height:1.4;
  text-shadow:none;
}

/* Booking options */
.train-options-top{
  padding-top:28px!important;
  padding-bottom:24px!important;
}
.compact-heading{margin-bottom:18px!important}

.train-booking-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}
.train-booking-card{
  display:grid;
  grid-template-columns:140px minmax(0,1fr);
  gap:22px;
  align-items:flex-start;
  padding:22px;
  border:1px solid #dfe7ee;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 30px rgba(6,43,79,.07);
}
.train-card-brand{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  text-decoration:none;
}
.train-card-brand img{
  display:block;
  width:120px;
  height:auto;
  max-width:100%;
}
.omio-brand img{
  width:120px;
  border-radius:18px;
}
.train-card-copy h3{
  margin:6px 0 10px;
  color:#062b4f;
  font-size:clamp(1.3rem,2.2vw,1.8rem);
  line-height:1.12;
}
.train-card-copy p{
  margin:0 0 14px;
  color:#41566d;
  line-height:1.58;
}
.pseudo-rail-form{
  margin-top:12px;
  padding:16px;
  border:1px solid #e5ebf0;
  border-radius:18px;
  background:#f8fbfd;
}
.pseudo-rail-grid{
  display:grid;
  gap:12px;
}
.pseudo-rail-grid-four{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.pseudo-rail-form label{display:block}
.pseudo-rail-form label span{
  display:block;
  margin:0 0 6px;
  color:#062b4f;
  font-size:.85rem;
  font-weight:700;
}
.pseudo-rail-form input,
.pseudo-rail-form select{
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid #cfd8e1;
  border-radius:12px;
  background:#fff;
  color:#173b59;
  font:inherit;
  box-sizing:border-box;
}
.pseudo-rail-actions{margin-top:14px}
.pseudo-rail-actions .button{
  width:100%;
  justify-content:center;
}

/* Shortcut area */
.trains-page .home-shortcuts{
  margin-top:0!important;
  padding-top:10px!important;
  padding-bottom:12px!important;
}
.trains-page .home-shortcuts .shortcut-grid{
  margin-top:0!important;
  margin-bottom:0!important;
}
.trains-page .home-shortcuts + .split-section{
  padding-top:24px!important;
}

/* Compact section rhythm */
.trains-page .split-section.section,
.trains-page .routes-section.section,
.trains-page .travel-types.section,
.trains-page .family-section.section,
.trains-page .seo-content.section,
.trains-page .train-faq.section{
  padding-top:38px!important;
  padding-bottom:38px!important;
}
.trains-page .section-heading{
  margin-bottom:22px!important;
}
.trains-page .split-grid{
  row-gap:30px;
}
.trains-page .final-cta{
  padding-top:34px!important;
  padding-bottom:34px!important;
}

/* Cashback section */
.train-cashback-section .split-grid{align-items:center}
.cashback-visual{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:360px;
  padding:30px;
  border:1px solid #dce7e5;
  border-radius:20px;
  background:linear-gradient(135deg,#fff4f4 0%,#fff 70%);
  box-shadow:0 10px 28px rgba(6,43,79,.06);
}
.cashback-topcashback-link{
  display:block;
  text-decoration:none;
}
.cashback-topcashback-inline{
  display:block;
  width:min(300px,88%);
  height:auto;
  margin-bottom:14px;
  border-radius:12px;
  transition:transform .18s ease,box-shadow .18s ease;
}
.cashback-topcashback-link:hover .cashback-topcashback-inline,
.cashback-topcashback-link:focus-visible .cashback-topcashback-inline{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(6,43,79,.16);
}
.cashback-visual small{
  max-width:320px;
  color:#6c7c8c;
  line-height:1.4;
  text-align:center;
}
.member-tip-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  margin-top:18px;
}
.text-button{
  display:inline-block;
  border:0;
  background:none;
  padding:8px 0;
  color:#075e86;
  text-decoration:underline;
  font:inherit;
  font-weight:700;
}
.small-disclosure{
  font-size:.8rem;
  line-height:1.45!important;
  color:#718095!important;
}

/* Full-width Before you reserve */
.before-reserve-full .before-reserve-copy{
  width:100%;
  max-width:none;
}
.before-reserve-full .before-reserve-copy h2,
.before-reserve-full .before-reserve-copy p{
  max-width:none;
}
.before-reserve-full .text-cta{
  display:inline-flex;
  margin-top:14px;
}

/* FAQ */
.train-faq{
  padding-top:38px!important;
  padding-bottom:38px!important;
}
.train-faq .faq-list details{
  border-bottom:1px solid #dfe6ec;
}
.train-faq .faq-list summary{
  padding:12px 42px 12px 0;
  line-height:1.2;
}
.train-faq .faq-list details>div{
  padding-bottom:12px;
}
.train-faq .faq-list p{
  line-height:1.45;
}

/* Responsive */
@media (max-width:1000px){
  .train-booking-grid{grid-template-columns:1fr}
  .pseudo-rail-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .trains-page .trains-hero-bare-search{
    height:270px!important;
    min-height:270px!important;
  }
  .trains-hero-stack{
    padding-top:18px;
    padding-bottom:16px;
  }
  .trains-hero-heading h1{
    font-size:clamp(2rem,9vw,2.7rem);
  }
  .trains-hero-heading>p{
    padding:7px 10px;
    font-size:.84rem;
    line-height:1.34;
  }
  .train-booking-card{
    grid-template-columns:1fr;
    gap:16px;
    padding:18px;
  }
  .train-card-brand{justify-content:flex-start}
  .train-card-brand img{width:110px}
  .pseudo-rail-grid-four{grid-template-columns:1fr}
  .trains-page .split-section.section,
  .trains-page .routes-section.section,
  .trains-page .travel-types.section,
  .trains-page .family-section.section,
  .trains-page .seo-content.section,
  .trains-page .train-faq.section{
    padding-top:28px!important;
    padding-bottom:28px!important;
  }
  .cashback-visual{
    min-height:0;
    padding:22px;
  }
  .cashback-topcashback-inline{
    width:min(250px,86%);
  }
}


/* Hero refinement — match the approved homepage/destinations overlay treatment */
.trains-page .trains-hero-bare-search .hero-overlay{
  background:linear-gradient(90deg,rgba(3,31,59,.92) 0%,rgba(6,43,79,.78) 48%,rgba(6,43,79,.30) 78%,rgba(6,43,79,.12) 100%);
}
.trains-hero-heading h1{
  color:#fff;
  text-shadow:none;
}
.trains-hero-heading>p{
  max-width:760px;
  margin:0;
  padding:0;
  color:#edf5fa;
  background:transparent;
  border:0;
  box-shadow:none;
  font-size:1.02rem;
  font-weight:500;
  line-height:1.48;
  text-shadow:none;
}
.trains-hero-heading .section-kicker{margin-bottom:12px;}
@media(max-width:760px){
  .trains-page .trains-hero-bare-search .hero-overlay{background:linear-gradient(90deg,rgba(3,31,59,.94) 0%,rgba(6,43,79,.84) 62%,rgba(6,43,79,.56) 100%);}
}
