
/* SailTripFinder public search – V0.13.3 */
.stf-search-page .entry-header{display:none!important}
.stf-search-page .site-content{background:#f6f8fa}
.stf-search-page .site-content>.ast-container,.stf-search-page .site-main,.stf-search-page .entry-content{max-width:none!important;width:100%!important;padding-left:0!important;padding-right:0!important}
.stf-search-wrap{max-width:1560px;margin:0 auto;padding:54px 56px 88px;color:#102a43;font-family:inherit}

.stf-search-hero{max-width:820px;margin:0 0 30px}
.stf-search-kicker{margin:0 0 8px;color:#0877d1;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.stf-search-hero h1{margin:0 0 10px;font-size:44px;line-height:1.08;letter-spacing:-.03em;color:#102a43}
.stf-search-hero>p:last-child{max-width:760px;margin:0;color:#647789;font-size:16px;line-height:1.65}

.stf-filter-panel{position:relative;margin:0 0 34px;background:#fff;border:1px solid #e0e7ec;border-radius:22px;box-shadow:0 14px 38px rgba(17,44,68,.06)}
.stf-filter-form{padding:18px}
.stf-quick-search-grid{display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(360px,1.6fr) minmax(160px,.9fr) minmax(160px,.9fr) minmax(190px,1fr) 142px;gap:12px;align-items:end}
.stf-search-control{min-width:0}
.stf-search-control .stf-field{margin:0}
.stf-search-control fieldset{min-width:0}
.stf-search-control>legend,.stf-search-control-range>legend,.stf-search-control-price>legend{display:block;margin:0 0 7px;padding:0;font-size:12px;font-weight:800;color:#52697b}
.stf-field{display:block;margin:0}
.stf-field>span,.stf-compact-field>span{display:block;margin:0 0 7px;font-size:12px;font-weight:800;color:#52697b}
.stf-field input,.stf-field select,.stf-compact-field select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:48px;border:1px solid #d6dfe5;border-radius:12px;background:#fff;padding:10px 12px;color:#183247;font-size:14px;outline:none;box-shadow:none;transition:border-color .16s ease,box-shadow .16s ease}
.stf-field input::placeholder{color:#97a5af}
.stf-field input:focus,.stf-field select:focus,.stf-compact-field select:focus{border-color:#0877d1;box-shadow:0 0 0 3px rgba(8,119,209,.09)}
.stf-search-control-range,.stf-search-control-price{border:0;padding:0;margin:0}
.stf-inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.stf-inline-fields .stf-field,.stf-price-inline .stf-field{min-width:0}
.stf-inline-fields .stf-field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.stf-price-inline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.stf-price-inline .stf-field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.stf-search-submit{box-sizing:border-box;min-width:0;max-width:100%;min-height:48px;border:0;border-radius:12px;background:#0877d1;color:#fff;padding:0 18px;font-weight:800;font-size:14px;cursor:pointer;box-shadow:0 6px 16px rgba(8,119,209,.18);transition:transform .16s ease,background .16s ease}
.stf-search-submit:hover{background:#066bbd;transform:translateY(-1px)}

.stf-filter-bottom-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:13px;padding-top:13px;border-top:1px solid #eef2f4}
.stf-more-filters{flex:1;margin:0}
.stf-more-filters summary{display:inline-flex;align-items:center;gap:8px;padding:5px 2px;cursor:pointer;color:#173b58;font-size:13px;font-weight:800;list-style:none}
.stf-more-filters summary::-webkit-details-marker{display:none}
.stf-more-filters summary::before{content:'+';display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border-radius:50%;background:#edf6fc;color:#0877d1;font-size:15px}
.stf-more-filters[open] summary::before{content:'−'}
.stf-more-filters-body{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:15px;padding:16px;background:#f8fafb;border:1px solid #edf1f4;border-radius:15px}
.stf-more-filters-body .stf-field{margin:0}
.stf-more-range{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stf-clear-filters{flex:0 0 auto;color:#6c7f8f;font-size:12px;font-weight:700;text-decoration:none!important}
.stf-clear-filters:hover{color:#0877d1}

.stf-results{min-width:0}
.stf-results-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:0 0 18px}
.stf-results-count{margin:0;color:#17324d;font-size:19px;font-weight:800}
.stf-results-note{margin:4px 0 0;color:#7b8c99;font-size:12px}
.stf-search-alert-teaser{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border-radius:999px;background:#eef7fd;color:#37657f;font-size:11px;font-weight:700;white-space:nowrap}

.stf-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.stf-results-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:28px}
.stf-results-pagination a,.stf-results-pagination>span{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #d6dfe5;border-radius:10px;font-size:14px;font-weight:700;text-decoration:none;color:#183247;background:#fff}
.stf-results-pagination [aria-current="page"]{border-color:#0877d1;background:#0877d1;color:#fff}
.stf-results-pagination a:hover{border-color:#0877d1;color:#0877d1}
.stf-results-pagination a:focus-visible{outline:3px solid #0877d1;outline-offset:3px}
.stf-results-pagination .stf-pagination-gap{min-width:20px;padding:0;border:0;background:transparent}
.stf-result-card{min-width:0;background:#fff;border:1px solid #e1e8ed;border-radius:22px;overflow:hidden;box-shadow:0 8px 28px rgba(17,44,68,.06);transition:transform .18s ease,box-shadow .18s ease}
.stf-result-card:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(17,44,68,.09)}
.stf-result-media{position:relative;display:block;aspect-ratio:16/9;background:#e9f1f5;overflow:hidden}
.stf-result-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.stf-result-card:hover .stf-result-media img{transform:scale(1.015)}
.stf-result-placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;color:#8193a0;font-weight:800;letter-spacing:.05em}
.stf-result-badges{position:absolute;left:16px;top:16px;display:flex;gap:7px;flex-wrap:wrap}
.stf-result-badges span{display:inline-flex;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.94);backdrop-filter:blur(7px);color:#16344c;font-size:10px;font-weight:800;box-shadow:0 2px 10px rgba(0,0,0,.09)}
.stf-result-badges .stf-sponsored-badge{background:#103e5e;color:#fff}
.stf-result-body{padding:18px 18px 19px}
.stf-result-location{margin:0 0 7px;color:#0877d1;font-size:12px;font-weight:800;letter-spacing:.01em;line-height:1.4}
.stf-result-body h2{margin:0 0 8px;font-size:21px;line-height:1.25;letter-spacing:-.018em}
.stf-result-body h2 a{color:#102f47;text-decoration:none!important}

.stf-result-departure{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:8px 0;border-top:1px solid #edf1f4;border-bottom:1px solid #edf1f4}
.stf-result-departure>div{min-width:0}
.stf-meta-label{display:block;margin-bottom:3px;color:#8998a4;font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.stf-result-departure strong{display:block;color:#19374d;font-size:16px;line-height:1.3}
.stf-more-departures{flex:0 0 auto;padding:7px 10px;border:0;border-radius:999px;background:#f0f6fa;color:#356984;font:inherit;font-size:11px;font-weight:800;cursor:pointer;transition:background .16s ease,color .16s ease}
.stf-more-departures:hover{background:#e2f1fa;color:#0877d1}
.stf-extra-departures{margin:-1px 0 0;border-bottom:1px solid #edf1f4;background:#f8fbfd}
.stf-extra-departure-row{display:grid;grid-template-columns:minmax(0,1.5fr) auto auto;gap:10px;align-items:center;padding:9px 10px;border-top:1px solid #edf1f4;color:#607789;font-size:11px}
.stf-extra-departure-row strong{color:#24485f;font-size:11px}
.stf-extra-departure-row span:last-child{text-align:right}
.stf-result-details{display:flex;flex-wrap:wrap;gap:7px 16px;padding:10px 0 12px;color:#607789;font-size:12px}
.stf-result-details span{position:relative}
.stf-result-details span:not(:last-child)::after{content:'•';position:absolute;right:-10px;color:#b7c1c8}

.stf-result-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding-top:1px}
.stf-result-provider{display:flex;align-items:center;gap:9px;min-width:0;flex:1 1 auto}
.stf-result-provider img.stf-result-provider-image{display:block;width:36px;height:36px;min-width:36px;max-width:36px;flex:0 0 36px;border:1px solid #dce6eb;border-radius:8px;object-fit:contain;background:#f1f6f8}
.stf-result-provider-copy{min-width:0}
.stf-result-provider-copy>.stf-meta-label{line-height:14px;margin-bottom:2px}
.stf-result-provider-copy>strong{line-height:19px}
.stf-result-provider strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#314d61;font-size:13px}
.stf-result-price{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:6px;max-width:55%;min-width:0;text-align:right;flex:0 0 auto}
.stf-result-price>.stf-meta-label{margin:0}
.stf-result-price strong{display:block;min-width:0;overflow-wrap:anywhere;color:#102f47;font-size:21px;line-height:1.05;letter-spacing:-.02em}
.stf-result-price small{grid-column:1/-1;display:block;margin-top:2px;color:#718391;font-size:11px}
.stf-result-cta{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin-top:17px;border-radius:12px;background:#0877d1;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:800;transition:background .16s ease,transform .16s ease}
.stf-result-cta:hover{background:#066bbd;transform:translateY(-1px)}

.stf-empty-results{padding:58px 30px;text-align:center;border:1px dashed #c8d5dc;border-radius:20px;background:#fff}
.stf-empty-results h2{margin:0 0 8px}
.stf-empty-results p{max-width:650px;margin:0 auto 18px;color:#6e8090}
.stf-search-reset{font-weight:800;color:#0877d1;text-decoration:none!important}
.stf-search-toolbar-mobile,.stf-filter-mobile-head,.stf-filter-overlay{display:none}



/* Where autocomplete: Country + Sailing area + Port in one field. */
.stf-search-control-where{position:relative;z-index:12}
.stf-where-input-wrap{position:relative}
.stf-where-suggestions{
  position:absolute;
  z-index:100;
  left:0;
  right:0;
  top:calc(100% + 6px);
  max-height:320px;
  overflow:auto;
  border:1px solid #d5e0e6;
  border-radius:12px;
  background:#fff;
  box-shadow:0 16px 34px rgba(24,50,71,.16);
}
.stf-where-suggestion{
  display:flex;
  width:100%;
  align-items:center;
  gap:11px;
  min-height:54px;
  padding:9px 12px;
  border:0;
  border-bottom:1px solid #edf2f5;
  background:#fff;
  color:#183247;
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.stf-where-suggestion:last-child{border-bottom:0}
.stf-where-suggestion:hover,
.stf-where-suggestion.is-active{background:#f1f7fb}
.stf-where-suggestion-copy{display:block;min-width:0}
.stf-where-suggestion-copy strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#17384f;
  font-size:13px;
  line-height:1.25;
}
.stf-where-suggestion-copy small{
  display:block;
  margin-top:2px;
  color:#81919c;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.stf-where-type-icon{
  position:relative;
  width:24px;
  height:24px;
  flex:0 0 24px;
}
.stf-where-type-icon--port::before{
  content:"";
  position:absolute;
  left:6px;
  top:2px;
  width:12px;
  height:12px;
  border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  background:#0877d1;
}
.stf-where-type-icon--port::after{
  content:"";
  position:absolute;
  left:10px;
  top:6px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#fff;
}
.stf-where-type-icon--country::before{
  content:"";
  position:absolute;
  inset:4px;
  border:2px solid #53748a;
  border-radius:50%;
}
.stf-where-type-icon--country::after{
  content:"";
  position:absolute;
  left:11px;
  top:4px;
  bottom:4px;
  width:2px;
  border-radius:2px;
  background:#53748a;
}
.stf-where-type-icon--area::before{
  content:"";
  position:absolute;
  left:3px;
  right:3px;
  top:6px;
  height:10px;
  border-top:2px solid #3d809f;
  border-bottom:2px solid #3d809f;
  transform:skewY(-18deg);
}
.stf-where-type-icon--area::after{
  content:"";
  position:absolute;
  left:4px;
  right:4px;
  top:11px;
  border-top:2px solid #3d809f;
  transform:skewY(18deg);
}
.stf-where-empty{
  padding:13px 14px;
  color:#7c8e9a;
  font-size:12px;
  font-weight:700;
}

@media(max-width:980px){
  .stf-search-control-where{z-index:20}
  .stf-where-suggestions{max-height:260px}
}

@media(max-width:1480px){
  .stf-search-wrap{padding-left:34px;padding-right:34px}
  .stf-quick-search-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1.8fr) minmax(0,.9fr) minmax(0,.9fr);}
  .stf-search-control-price{grid-column:1/3}
  .stf-search-submit{grid-column:4}
}

@media(max-width:1180px){
  .stf-quick-search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stf-search-control-price{grid-column:1}
  .stf-search-submit{grid-column:2}
  .stf-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}

@media(max-width:980px){
  .stf-search-wrap{padding:34px 22px 70px}
  .stf-search-hero{margin-bottom:22px}
  .stf-search-hero h1{font-size:36px}
  .stf-search-toolbar-mobile{display:block;margin-bottom:16px}
  .stf-mobile-filter-button{width:100%;min-height:48px;border:1px solid #d5dfe5;border-radius:12px;background:#fff;color:#17344b;font-weight:800;box-shadow:0 6px 18px rgba(17,44,68,.05)}
  .stf-filter-panel{position:fixed;z-index:100002;top:0;bottom:0;left:0;width:min(420px,94vw);margin:0;border-radius:0;overflow:auto;transform:translateX(-105%);transition:transform .22s ease;box-shadow:0 0 36px rgba(0,0,0,.15)}
  .stf-filter-panel.is-mobile-open{transform:translateX(0)}
  .stf-filter-mobile-head{display:flex;position:sticky;top:0;z-index:2;align-items:center;justify-content:space-between;padding:15px 18px;background:#fff;border-bottom:1px solid #edf1f4}
  .stf-filter-mobile-head strong{font-size:16px}
  .stf-filter-mobile-head button{width:38px;height:38px;border:0;background:#f1f5f7;border-radius:50%;font-size:24px;line-height:1;cursor:pointer}
  .stf-filter-form{padding:18px}
  .stf-quick-search-grid{display:block}
  .stf-search-control,.stf-search-control-price,.stf-search-submit{display:block;width:100%;margin-bottom:15px}
  .stf-search-control-price{grid-column:auto}
  .stf-search-submit{min-height:50px}
  .stf-filter-bottom-row{display:block;margin-top:5px;padding-top:8px}
  .stf-more-filters-body{grid-template-columns:1fr 1fr}
  .stf-clear-filters{display:inline-block;margin-top:14px}
  .stf-filter-overlay{position:fixed;z-index:100001;inset:0;background:rgba(17,34,49,.42)}
  .stf-filter-overlay.is-visible{display:block}
}

@media(max-width:760px){
  .stf-results-grid{grid-template-columns:1fr;gap:18px}
  .stf-results-head{align-items:flex-start;flex-direction:column;gap:10px}
  .stf-search-alert-teaser{white-space:normal}
}

@media(max-width:640px){
  .stf-search-wrap{padding:28px 16px 58px}
  .stf-search-hero h1{font-size:31px}
  .stf-search-hero>p:last-child{font-size:14px;line-height:1.55}
  .stf-inline-fields,.stf-price-inline{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stf-currency-field{grid-column:1/-1}
  .stf-more-filters-body{grid-template-columns:1fr}
  .stf-more-range{grid-template-columns:1fr 1fr}
  .stf-result-card{border-radius:18px}
  .stf-result-body{padding:17px}
  .stf-result-body h2{font-size:21px}
  .stf-result-departure{align-items:flex-start;flex-direction:column;gap:8px}
  .stf-result-bottom{align-items:flex-end}
  .stf-result-details span:not(:last-child)::after{display:none}
}

@media(max-width:520px){
  .stf-extra-departure-row{grid-template-columns:1fr auto;gap:4px 10px}
  .stf-extra-departure-row span:last-child{grid-column:1/-1;text-align:left;color:#718693}
}

@media(max-width:420px){
  .stf-inline-fields{grid-template-columns:1fr}
}


/* Compact departure / arrival summary on trip cards. */
.stf-result-route{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0 0 15px;
}
.stf-result-route:has(.stf-result-route-item:only-child){
  grid-template-columns:1fr;
}
.stf-result-route-item{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:10px 11px;
  border:1px solid #e2e9ed;
  border-radius:11px;
  background:#f9fbfc;
}
.stf-result-route-item>div{
  min-width:0;
}
.stf-result-route-item strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#27465b;
  font-size:12px;
  line-height:1.25;
}
.stf-result-route-pin{
  position:relative;
  display:inline-block;
  width:13px;
  height:17px;
  flex:0 0 13px;
}
.stf-result-route-pin::before{
  content:"";
  position:absolute;
  left:1px;
  top:0;
  width:11px;
  height:11px;
  border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  box-shadow:0 1px 2px rgba(17,45,64,.18);
}
.stf-result-route-pin::after{
  content:"";
  position:absolute;
  left:4.5px;
  top:3.5px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#fff;
}
.stf-result-route-pin--departure::before{background:#0877d1}
.stf-result-route-pin--arrival::before{background:#173b58}

@media(max-width:640px){
  .stf-result-route{
    grid-template-columns:1fr;
  }
  .stf-result-route-item strong{
    white-space:normal;
  }
}

.stf-last-minute-active{display:inline-block;margin:8px 0 0;padding:5px 10px;border-radius:6px;background:#eaf5f7;color:#235a7f;font-size:13px;font-weight:700}

[data-stf-training-search][hidden]{display:none!important}

/* Training filters occupy their own full-width row below the quick search. */
.stf-training-filter-row{min-width:0;margin:22px 0 0;padding:18px 20px 20px;border:1px solid #dce7ee;border-radius:14px;background:#f7fafc}
.stf-training-filter-row[hidden]{display:none!important}
.stf-training-filter-row>legend{padding:0 8px;font-size:14px;font-weight:700;color:#23485f}
.stf-training-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;align-items:start}
.stf-training-filter-grid .stf-search-control{margin:0;min-width:0}
.stf-training-filter-grid .stf-field{display:block;margin:0}
.stf-training-filter-grid .stf-field>span{display:block;min-height:34px;line-height:1.4;margin-bottom:8px}
.stf-training-filter-grid select{width:100%;max-width:100%;min-width:0;text-overflow:ellipsis}
@media(max-width:1200px){.stf-training-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.stf-training-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.stf-training-filter-row{padding:14px;margin-top:16px}}
@media(max-width:480px){.stf-training-filter-grid{grid-template-columns:minmax(0,1fr)}.stf-training-filter-grid .stf-field>span{min-height:0}}
