/* FerryEU ferry booking page */
.ferries-page{background:#fff}

/* Hero with compact AFerry engine on the right */
.ferries-hero-with-engine{
  position:relative;
  min-height:398px;
  overflow:hidden;
  background:#fff;
}
.ferries-hero-with-engine .hero-image{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:calc(100% - 113px);
  object-fit:cover;
  object-position:center;
}
.ferries-hero-with-engine .hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg,rgba(255,255,255,.76) 0%,rgba(255,255,255,.52) 48%,rgba(255,255,255,.20) 100%),
    linear-gradient(0deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
}
.ferries-hero-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:399px minmax(0,1fr);
  gap:52px;
  align-items:start;
  padding-top:0;
  padding-bottom:10px;
  transform:translateY(-57px);
}
.ferries-hero-copy{
  max-width:760px;
  margin-left:auto;
  padding-top:0;
}
.ferries-hero-copy h1{
  margin:7px 0 16px;
  color:#062b4f;
  font-size:clamp(2.7rem,5vw,4.8rem);
  line-height:.98;
  letter-spacing:-.035em;
  text-shadow:0 1px 2px rgba(255,255,255,.75);
}
.ferries-hero-lead{
  max-width:720px;
  margin:0 0 16px;
  color:#16344f;
  font-size:1.05rem;
  font-weight:700;
  line-height:1.58;
  text-shadow:0 1px 2px rgba(255,255,255,.70);
}
.hero-partner-disclosure{
  max-width:700px;
  margin:18px 0 0;
  padding-top:14px;
  border-top:1px solid rgba(6,43,79,.24);
  color:#29445c;
  font-size:.84rem;
  line-height:1.45;
}

.hero-ferry-engine{
  width:399px;
  max-width:100%;
  padding:16px 14px 12px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(6,43,79,.18);
  border-radius:18px;
  box-shadow:0 18px 46px rgba(6,43,79,.20);
  box-sizing:border-box;
}
.hero-ferry-engine-heading{
  margin-bottom:10px;
  text-align:center;
}
.hero-ferry-engine-heading h2{
  margin:4px 0 0;
  color:#062b4f;
  font-size:1.55rem;
  line-height:1.08;
}
.hero-aferry-shell{
  width:100%;
  overflow:hidden;
  border:1px solid #dfe7ee;
  border-radius:12px;
  background:#fff;
}
#afiframe{
  display:block;
  width:100%;
  height:340px;
  border:0;
  background:#fff;
}
.ferry-engine-fallback{
  margin:8px 0 0;
  text-align:center;
  font-size:.8rem;
}
.ferry-engine-fallback a{
  color:#075e86;
}

@media (max-width:980px){
  .ferries-hero-with-engine{
    height:auto!important;
    min-height:0!important;
  }
  .ferries-hero-with-engine .hero-image{
    top:0;
    left:0;
    width:100%;
    height:100%;
  }
  .ferries-hero-grid{
    transform:none;
  }
  .ferries-hero-grid{
    grid-template-columns:1fr;
    gap:28px;
    padding-top:2px;
    padding-bottom:16px;
  }
  .ferries-hero-copy{
    padding-top:0;
  }
  .hero-ferry-engine{
    width:399px;
    max-width:100%;
    margin:0 auto;
  }
}

@media (max-width:700px){
  .ferries-hero-with-engine{
    height:auto!important;
    min-height:0!important;
  }
  .ferries-hero-grid{
    padding-top:0;
    padding-bottom:16px;
  }
  .ferries-shortcuts{
    margin-top:0!important;
    padding-top:20px!important;
  }
  .ferries-hero-copy h1{
    font-size:clamp(2.3rem,11vw,3.25rem);
  }
  .hero-ferry-engine{
    width:100%;
    padding:12px 8px 10px;
    border-radius:14px;
  }
  #afiframe{
    width:100%;
    height:360px;
  }
}


/* Shortcuts */
.ferries-shortcuts{
  padding-top:10px!important;
  padding-bottom:14px!important;
}
.ferries-shortcuts .shortcut-grid{
  margin-top:0!important;
  margin-bottom:0!important;
}

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

/* Cashback reminder */
.cashback-reminder{
  padding-top:28px!important;
  padding-bottom:28px!important;
}
.cashback-reminder-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:24px 28px;
  border:1px solid #dfe7ee;
  border-radius:18px;
  background:#f7fafc;
}
.cashback-reminder-card h2{
  margin:5px 0 7px;
  color:#062b4f;
  font-size:clamp(1.55rem,2.5vw,2.1rem);
}
.cashback-reminder-card p{
  margin:0;
  color:#53687b;
}

/* Full width copy sections */
.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;
}

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

/* Page-load TopCashback offer */
.load-cashback-layer[hidden]{display:none!important}
.load-cashback-layer{
  position:fixed;
  inset:0;
  z-index:100100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.load-cashback-backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,20,36,.70);
  backdrop-filter:blur(3px);
}
.load-cashback-panel{
  position:relative;
  z-index:1;
  width:min(1040px,calc(100vw - 24px));
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:20px 24px;
  align-items:center;
  padding:24px 22px 18px 22px;
  background:#fff;
  border:3px solid #0b4f78;
  border-radius:22px;
  box-shadow:0 30px 90px rgba(0,0,0,.36);
}
.load-cashback-close{
  position:absolute;
  top:10px;
  right:12px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:#edf3f6;
  color:#062b4f;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.load-cashback-close:hover,
.load-cashback-close:focus-visible{
  background:#dce7ed;
}
.load-cashback-stop{
  display:block;
  width:180px;
  max-width:100%;
  height:auto;
}
.load-cashback-primary-link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.load-cashback-primary-link:hover,
.load-cashback-primary-link:focus-visible{
  color:inherit;
  text-decoration:none;
}
.load-cashback-copy .section-kicker{
  display:block;
  margin-bottom:7px;
  color:#0a8b82;
}
.load-cashback-copy h2{
  margin:0 0 18px;
  padding-right:22px;
  color:#062b4f;
  font-size:clamp(1.55rem,3.2vw,2.25rem);
  line-height:1.08;
  letter-spacing:-.02em;
}
.load-cashback-cta{
  display:inline-flex;
  justify-content:center;
  text-align:center;
}
.load-cashback-terms{
  margin:10px 0 0;
  text-align:center;
  white-space:nowrap;
  color:#6b7b89;
  font-size:.7rem;
  line-height:1.25;
}
.load-cashback-merchants{
  grid-column:1 / -1;
  padding-top:6px;
  border-top:1px solid #e6edf2;
}
.load-cashback-merchants-title{
  margin:6px 0 -6px;
  text-align:center;
  color:#062b4f;
  font-size:.95rem;
  font-weight:800;
  letter-spacing:.01em;
}
.load-cashback-merchant-row{
  display:flex;
  flex-wrap:nowrap;
  justify-content:space-between;
  align-items:center;
  gap:2px;
}
.load-cashback-merchant-row img{
  display:block;
  width:auto;
  max-width:118px;
  height:44px;
  object-fit:contain;
  margin:0;
  flex:0 1 auto;
  min-width:0;
}
body.load-cashback-open{
  overflow:hidden;
}

@media (max-width:900px){
  .cashback-reminder-card{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media (max-width:700px){
  .aferry-frame-shell{
    border-radius:12px;
  }

  .ferries-page .split-section.section,
  .ferries-page .travel-types.section,
  .ferries-page .routes-section.section,
  .ferries-page .seo-content.section,
  .ferries-page .ferry-faq.section{
    padding-top:28px!important;
    padding-bottom:28px!important;
  }

  .cashback-reminder{
    padding-top:20px!important;
    padding-bottom:20px!important;
  }
  .cashback-reminder-card{
    padding:20px 18px;
  }
  .cashback-reminder-card .button{
    width:100%;
    justify-content:center;
  }

  .load-cashback-layer{
    padding:12px;
  }
  .load-cashback-panel{
    width:min(720px,100%);
    grid-template-columns:1fr;
    gap:14px;
    padding:22px 18px 20px;
    text-align:center;
  }
  .load-cashback-stop{
    width:132px;
    margin:0 auto;
  }
  .load-cashback-copy h2{
    padding-right:0;
    font-size:1.55rem;
  }
  .load-cashback-cta{
    width:100%;
  }
  .load-cashback-merchants{
    padding-top:10px;
  }
  .load-cashback-merchant-row{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px 4px;
  }
  .load-cashback-merchant-row img{
    width:100%;
    max-width:175px;
    height:auto;
    margin:0 auto;
  }
  .load-cashback-terms{
    white-space:normal;
    font-size:.72rem;
    line-height:1.35;
  }
}


@media (min-width:981px){
  .ferries-shortcuts{
    margin-top:-76px!important;
    position:relative;
    z-index:3;
  }
}


/* Ferry page popup reset / compact carousel version */
.load-cashback-panel{
  position:relative;
  z-index:1;
  width:min(860px,calc(100vw - 28px));
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:20px;
  align-items:start;
  padding:24px 26px 24px 20px;
  background:#fff;
  border:3px solid #0b4f78;
  border-radius:22px;
  box-shadow:0 30px 90px rgba(0,0,0,.36);
}
.load-cashback-visual{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding-top:0;
}
.load-cashback-stop{
  display:block;
  width:min(160px,100%);
  height:auto;
  margin:0 0 6px;
}
.load-cashback-carousel-wrap{
  width:100%;
  text-align:center;
}
.load-cashback-carousel-title{
  margin:0 0 8px;
  color:#062b4f;
  font-size:.72rem;
  font-weight:800;
  line-height:1.2;
}
.load-cashback-carousel{
  position:relative;
  width:100%;
  height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.load-cashback-carousel-item{
  position:absolute;
  inset:0;
  margin:auto;
  max-width:190px;
  max-height:72px;
  width:auto;
  height:auto;
  opacity:0;
  transition:opacity .35s ease;
  object-fit:contain;
}
.load-cashback-carousel-item.is-active{
  opacity:1;
}
.load-cashback-copy .section-kicker{
  display:block;
  margin-bottom:7px;
  color:#0a8b82;
}
.load-cashback-copy h2{
  margin:0;
  font-size:1.75rem;
  line-height:1.16;
  color:#062b4f;
}
.load-cashback-cta{
  margin-top:16px;
}
.load-cashback-terms{
  margin:14px 0 0;
  color:#6b7b89;
  font-size:.78rem;
  line-height:1.45;
}
@media (max-width:700px){
  .load-cashback-panel{
    width:min(520px,100%);
    grid-template-columns:1fr;
    gap:14px;
    padding:22px 18px 20px;
    text-align:center;
  }
  .load-cashback-visual{
    align-items:center;
  }
  .load-cashback-stop{
    width:128px;
    margin:0 auto 10px;
  }
  .load-cashback-carousel{
    height:74px;
  }
  .load-cashback-carousel-item{
    max-width:140px;
    max-height:58px;
  }
  .load-cashback-copy h2{
    font-size:1.55rem;
  }
  .load-cashback-cta{
    width:100%;
  }
}


/* Targeted enlargements for smaller-looking carousel logos */
.load-cashback-carousel-item[src$="dfds.png"]{
  max-width:220px;
  max-height:84px;
}
.load-cashback-carousel-item[src$="direct-ferries.png"]{
  max-width:220px;
  max-height:84px;
}
.load-cashback-carousel-item[src$="wightlink.png"]{
  max-width:215px;
  max-height:82px;
}
.load-cashback-carousel-item[src$="ferryhopper.png"]{
  max-width:220px;
  max-height:84px;
}

@media (max-width:700px){
  .load-cashback-carousel-title{
    font-size:.68rem;
    margin:4px 0 -4px;
  }
  .load-cashback-carousel-item[src$="dfds.png"],
  .load-cashback-carousel-item[src$="direct-ferries.png"],
  .load-cashback-carousel-item[src$="wightlink.png"],
  .load-cashback-carousel-item[src$="ferryhopper.png"]{
    max-width:190px;
    max-height:64px;
  }
}


/* Further targeted enlargements */
.load-cashback-carousel-item[src$="direct-ferries.png"]{
  max-width:240px;
  max-height:90px;
}
.load-cashback-carousel-item[src$="irish-ferries.png"]{
  max-width:235px;
  max-height:88px;
}

@media (max-width:700px){
  .load-cashback-carousel-item[src$="direct-ferries.png"]{
    max-width:205px;
    max-height:70px;
  }
  .load-cashback-carousel-item[src$="irish-ferries.png"]{
    max-width:200px;
    max-height:68px;
  }
}


/* v31: understated merchant caption beneath rotating logo */
.load-cashback-carousel-title{
  margin:2px 0 0!important;
  color:#718095!important;
  font-size:.62rem!important;
  font-weight:600!important;
  line-height:1.15!important;
}
@media (max-width:700px){
  .load-cashback-carousel-title{
    margin:2px 0 0!important;
    font-size:.60rem!important;
  }
}


/* v33: smaller popup headline on mobile */
@media (max-width:700px){
  .load-cashback-copy h2{
    font-size:1.28rem!important;
    line-height:1.18!important;
  }
}


/* Hero refinement — match the approved homepage/destinations overlay treatment */
.ferries-hero-with-engine .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%);
}
.ferries-hero-copy h1{
  color:#fff;
  text-shadow:none;
}
.ferries-hero-lead{
  color:#edf5fa;
  text-shadow:none;
  font-weight:600;
}
.hero-partner-disclosure{
  color:#e5eef6;
  border-top:1px solid rgba(255,255,255,.28);
}
.ferries-hero-copy .section-kicker{margin-bottom:12px;}
@media(max-width:760px){
  .ferries-hero-with-engine .hero-overlay{background:linear-gradient(90deg,rgba(3,31,59,.94) 0%,rgba(6,43,79,.84) 62%,rgba(6,43,79,.56) 100%);}
}
