/* Semana Dálmata shared navigation and footer polish. */
.sdnav-header {
  position: sticky !important;
  top: 0;
  z-index: 1000 !important;
  border-bottom: 1px solid rgba(0, 20, 61, 0.09);
  box-shadow: 0 5px 20px rgba(0, 20, 61, 0.06);
}

.sdv4-footerbottom {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 18px;
}

.sdv4-footerbottom > span {
  margin-right: auto;
}

.sdv4-footerbottom .sdv4-footerlegal {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 8px 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

/* Departure conversion page overrides are deliberately more specific than the
   existing template embed so this staging stylesheet can be tested safely. */
.sddep .sddep-hero {
  min-height: clamp(650px, calc(100svh - 84px), 760px) !important;
  align-items: center !important;
}

.sddep .sddep-herogrid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .55fr) !important;
  gap: 64px !important;
  align-items: center !important;
  padding: 58px 0 !important;
}

.sddep .sddep-herocopy {
  transform: none !important;
}

.sddep .sddep-back {
  margin-bottom: 30px !important;
}

.sddep .sddep-title {
  max-width: 780px !important;
  font-size: clamp(52px, 5.4vw, 82px) !important;
  line-height: .94 !important;
}

.sddep .sddep-subtitle {
  margin-top: 18px !important;
  font-size: clamp(18px, 1.9vw, 26px) !important;
}

.sddep .sddep-herofacts {
  margin-top: 22px !important;
}

.sddep .sddep-booking {
  padding: 24px !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .22) !important;
}

.sddep .sddep-price {
  margin-top: 7px !important;
  font-size: clamp(30px, 2.7vw, 40px) !important;
  line-height: 1.03 !important;
}

.sddep .sddep-pricebasis {
  margin: 7px 0 16px !important;
  line-height: 1.42 !important;
}

.sddep .sddep-partygrid {
  gap: 8px !important;
  margin: 0 0 13px !important;
}

.sddep .sddep-partyfield {
  gap: 6px !important;
  font-size: 9px !important;
}

.sddep .sddep-partyfield input {
  height: 44px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
}

.sddep .sddep-field {
  gap: 6px !important;
  font-size: 10px !important;
}

.sddep .sddep-field select {
  min-height: 46px !important;
  padding: 11px 38px 11px 13px !important;
  background-position: calc(100% - 18px) 17px, calc(100% - 12px) 17px !important;
  font-size: 14px !important;
}

.sddep .sddep-terms {
  display: none !important;
}

.sddep .sddep-consent {
  margin: 12px 0 0 !important;
  color: #4f5869 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.sddep .sddep-consent a {
  font-weight: 700 !important;
}

.sddep .sddep-consent-error:empty {
  display: none !important;
}

.sddep .sddep-booking .sddep-primary {
  min-height: 50px !important;
  margin-top: 14px !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
}

.sddep .sddep-booking .sddep-secondary {
  min-height: 44px !important;
  margin: 7px 0 10px !important;
  padding: 8px 0 5px !important;
  font-size: 13px !important;
}

.sddep .sddep-note {
  font-size: 11px !important;
  line-height: 1.45 !important;
}

.sddep .sddep-nav {
  top: 84px !important;
}

@media (max-width: 767px) {
  .sdnav-header {
    min-height: 76px;
  }

  .sdv4-footerbottom {
    align-items: flex-start;
    gap: 0 16px;
  }

  .sdv4-footerbottom > span {
    flex: 0 0 100%;
    margin: 0 0 8px;
  }

  .sdv4-footerbottom .sdv4-footerlegal {
    white-space: normal;
  }

  .sddep .sddep-hero {
    min-height: auto !important;
    align-items: stretch !important;
  }

  .sddep .sddep-herogrid {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    padding: 46px 0 34px !important;
  }

  .sddep .sddep-back {
    margin-bottom: 22px !important;
  }

  .sddep .sddep-title {
    max-width: 700px !important;
    font-size: 42px !important;
    line-height: .98 !important;
  }

  .sddep .sddep-subtitle {
    margin-top: 12px !important;
    font-size: 17px !important;
    line-height: 1.38 !important;
  }

  .sddep .sddep-herofacts {
    gap: 7px !important;
    margin-top: 18px !important;
  }

  .sddep .sddep-herofacts span {
    padding: 8px 11px !important;
    font-size: 11px !important;
  }

  .sddep .sddep-booking {
    max-width: 560px !important;
    padding: 20px 18px !important;
    border-radius: 14px !important;
  }

  .sddep .sddep-price {
    font-size: 32px !important;
  }

  .sddep .sddep-pricebasis {
    margin-bottom: 14px !important;
    font-size: 12px !important;
  }

  .sddep .sddep-nav {
    top: 76px !important;
  }
}

@media (max-width: 479px) {
  .sdv4-footerbottom .sdv4-footerlegal {
    flex: 1 1 calc(50% - 8px);
  }

  .sdv4-footerbottom .sdv4-footerlegal:last-child {
    flex-basis: 100%;
  }
}
