/* Sea Ray 245 modern page refinements. */
.sea-ray-245-page .sea245-modern-page .p42-main-photo img,
.sea-ray-245-page .sea245-modern-page .p42-floating-photo img {
  object-position: center center;
}

.sea-ray-245-page .sea245-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sea-ray-245-page .sea245-badges span {
  align-items: center;
  background: #e2f2f4;
  border: 1px solid #c7e1e5;
  border-radius: 999px;
  color: #005f66;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  min-height: 34px;
  padding: 0 13px;
}

.sea-ray-245-page .funcat-modern-page .sea245-tour-band {
  grid-template-columns: minmax(0, 1.12fr) minmax(145px, .38fr) minmax(145px, .38fr) minmax(168px, .44fr);
  padding-right: 26px;
}

.sea-ray-245-page .funcat-modern-page .sea245-tour-band .p49-tour-price:last-child {
  margin-left: 0;
  min-width: 0;
  position: static;
}

.sea-ray-245-page .sea245-detail-grid .p42-panel {
  min-height: 100%;
}

.sea-ray-245-page .sea245-moments-panel {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
}

.sea-ray-245-page .sea245-moments-panel > div > span {
  color: #00767d;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sea-ray-245-page .sea245-moments-panel h2 {
  color: #07142d;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 10px;
}

.sea-ray-245-page .sea245-moments-panel p {
  color: #556678;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.sea-ray-245-page .sea245-note-grid {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.sea-ray-245-page .sea245-note-grid li {
  display: grid;
  gap: 5px;
  list-style: none;
  padding: 15px 0;
}

.sea-ray-245-page .sea245-note-grid li + li {
  border-top: 1px solid #d8e7ea;
}

.sea-ray-245-page .sea245-note-grid strong {
  color: #07142d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.sea-ray-245-page .sea245-note-grid span {
  color: #556678;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.sea-ray-245-page .p49-lite-form.sea245-p49-lite > div[style*="fff8e1"],
.sea-ray-245-page .p49-lite-form.sea245-p49-lite > br {
  display: none !important;
}

.sea-ray-245-page .p49-lite-form.sea245-p49-lite .p49-lite-time-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sea-ray-245-page .p49-lite-form.sea245-p49-lite .p49-lite-summary-top {
  grid-template-columns: minmax(0, 1fr) 96px;
}

.sea-ray-245-page .p49-lite-form.sea245-p49-lite .p49-lite-summary-image {
  height: 64px;
  width: 96px;
}

.sea-ray-245-page .sea245-footer {
  margin-top: 0;
}

@media (min-width: 1181px) {
  .sea-ray-245-page .funcat-modern-page .sea245-tour-band {
    grid-template-columns: minmax(0, 1.05fr) minmax(145px, .38fr) minmax(145px, .38fr) minmax(185px, .5fr);
    padding-right: 26px;
  }
}

@media (max-width: 1180px) {
  .sea-ray-245-page .funcat-modern-page .sea245-tour-band {
    grid-template-columns: 1fr 1fr;
    padding-right: 16px;
  }

  .sea-ray-245-page .funcat-modern-page .sea245-tour-band .p49-tour-copy,
  .sea-ray-245-page .funcat-modern-page .sea245-tour-band .p49-mobile-tour-head,
  .sea-ray-245-page .funcat-modern-page .sea245-tour-band .p49-mobile-tour-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .sea-ray-245-page .sea245-moments-panel {
    grid-template-columns: 1fr;
  }

  .sea-ray-245-page .sea245-moments-panel h2 {
    font-size: 22px;
  }

  .sea-ray-245-page .p49-lite-form.sea245-p49-lite .p49-lite-time-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sea-ray-245-page .sea245-badges span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}
/* Legacy Sea Ray 245 sections kept for compatibility. */
.sea-ray-245-page .sea245-pill-panel {
  font-family: 'Montserrat', sans-serif;
}

.sea-ray-245-page .pill-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
}

.sea-ray-245-page .pill-links a {
  align-items: center;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 15px;
  font-weight: 500;
  justify-content: center;
  letter-spacing: 2px;
  padding: 14px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .3s ease, border-color .3s ease;
}

.sea-ray-245-page .pill-links a:hover {
  background-color: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.sea-ray-245-page .pill-links a span {
  margin-right: 8px;
}

.sea-ray-245-page .sea245-distance-input {
  margin: 10px 0;
  padding: 10px;
  width: 100%;
}

.sea-ray-245-page .sea245-distance-button {
  padding: 10px;
}

.sea-ray-245-page .sea245-distance-output {
  font-size: 20px;
  margin: 10px 0;
}

.sea-ray-245-page .sea245-map {
  height: 100%;
  width: 100%;
}

.sea-ray-245-page .saba50-photo-card {
  background: #fff;
  border-radius: 14px;
  margin-top: 10px;
  padding: 14px 16px 16px;
}

.sea-ray-245-page .saba50-photo-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.sea-ray-245-page .saba50-photo-header span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sea-ray-245-page .saba50-photo-header small {
  color: #777;
  font-size: 12px;
}

.sea-ray-245-page .saba50-photo-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, 1fr);
}

.sea-ray-245-page .saba50-photo-card .saba50-photo-item {
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.sea-ray-245-page .saba50-photo-card .saba50-photo-item img {
  display: block;
  height: 120px;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
  width: 100%;
}

.sea-ray-245-page .saba50-photo-card .saba50-photo-item:hover img {
  filter: brightness(1.05);
  transform: scale(1.03);
}

.sea-ray-245-page .saba50-photo-card .saba50-photo-more::before {
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
  content: "";
  inset: 0;
  position: absolute;
}

.sea-ray-245-page .saba50-photo-card .saba50-photo-more-badge {
  background: rgba(0, 0, 0, .8);
  border-radius: 999px;
  bottom: 8px;
  color: #fff;
  font-size: 11px;
  letter-spacing: .12em;
  padding: 4px 10px;
  position: absolute;
  right: 10px;
  text-transform: uppercase;
}

.sea-ray-245-page .saba50-lightbox {
  align-items: center;
  background: rgba(0, 0, 0, .9);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 9999;
}

.sea-ray-245-page .saba50-hidden {
  display: none;
}

.sea-ray-245-page .saba50-lightbox-dialog {
  align-items: center;
  display: flex;
  justify-content: center;
  max-height: 90vh;
  max-width: 90vw;
  position: relative;
}

.sea-ray-245-page #saba50LightboxImg {
  border-radius: 8px;
  display: block;
  height: auto;
  max-height: 90vh !important;
  max-width: 90vw !important;
  object-fit: contain !important;
  width: auto;
}

.sea-ray-245-page .saba50-lightbox-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  position: absolute;
  right: -5px;
  top: -40px;
}

.sea-ray-245-page .saba50-lightbox-arrow {
  background: rgba(0, 0, 0, .6);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  height: 40px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
}

.sea-ray-245-page .saba50-prev {
  left: -50px;
}

.sea-ray-245-page .saba50-next {
  right: -50px;
}

.sea-ray-245-page .saba50-lightbox-arrow:hover,
.sea-ray-245-page .saba50-lightbox-close:hover {
  background: rgba(255, 255, 255, .15);
}

.sea-ray-245-page .saba50-lightbox-counter {
  bottom: -30px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  position: absolute;
  right: 10px;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .sea-ray-245-page .saba50-photo-card .saba50-photo-item img {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .sea-ray-245-page .saba50-prev {
    left: 5px;
  }

  .sea-ray-245-page .saba50-next {
    right: 5px;
  }
}

.sea-ray-245-page .sea245-legacy-logo-mark {
  float: left;
}
.sea-ray-245-page .sea245-legacy-detail-copy {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.sea-ray-245-page .sea245-legacy-detail-copy-spaced {
  margin-bottom: 16px;
}

.sea-ray-245-page .sea245-legacy-detail-list {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
  padding-left: 18px;
}

.sea-ray-245-page .sea245-legacy-detail-note {
  color: #555;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.sea-ray-245-page .sea245-legacy-facts-card {
  background: #fff;
  border-radius: 14px;
  margin-top: 25px;
  padding: 22px;
}

.sea-ray-245-page .sea245-legacy-facts-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.sea-ray-245-page .sea245-legacy-facts-list {
  font-size: 13px;
  line-height: 1.8;
  list-style: none;
  margin-bottom: 12px;
  padding-left: 0;
}

.sea-ray-245-page .sea245-legacy-muted {
  color: #777;
}

.sea-ray-245-page .sea245-legacy-footnote {
  color: #666;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.sea-ray-245-page .sea-ray-245-form-shell option {
  background-color: cornflowerblue;
}

.sea-ray-245-page .sea245-captcha-warning {
  background: #fff8e1;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px;
}

.sea-ray-245-page .p49-lite-form.sea245-p49-lite > .sea245-captcha-warning {
  display: none !important;
}

.sea-ray-245-page .sea245-footer-contact-line {
  margin: 8px 0;
}

.sea-ray-245-page .sea245-footer-contact-icon {
  margin-right: 8px;
  vertical-align: middle;
}
.sea-ray-245-page .sea245-modern-page .p42-media {
  min-height: 570px;
}

.sea-ray-245-page .sea245-modern-page .p42-main-photo {
  height: 100%;
  min-height: 570px;
}

.sea-ray-245-page .sea245-modern-page .p42-main-photo img {
  height: 100%;
  min-height: 570px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 760px) {
  .sea-ray-245-page .sea245-modern-page .p42-media,
  .sea-ray-245-page .sea245-modern-page .p42-main-photo,
  .sea-ray-245-page .sea245-modern-page .p42-main-photo img {
    min-height: 0;
  }
}


/* Vixen-style planning accordions beside the Sea Ray 245 charter details. */
.sea-ray-245-page #sea245-planning {margin:24px 0;}
.sea-ray-245-page #sea245-planning > .card {display:block;border:1px solid #d9e8eb;border-radius:12px;overflow:hidden;margin-bottom:16px;}
.sea-ray-245-page #sea245-planning .card-header {padding:0;background:#fff;border:0;}
.sea-ray-245-page #sea245-planning .card-header a {display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:86px;padding:22px 24px;text-decoration:none;}
.sea-ray-245-page #sea245-planning .card-header a:focus-visible {outline:2px solid #00767d;outline-offset:-3px;}
.sea-ray-245-page #sea245-planning .card-body {padding:24px;background:#fff;border-top:1px solid #e4eef0;}
.sea-ray-245-page #sea245-planning .y-map {height:320px;margin-top:18px;}
.sea-ray-245-page #sea245-planning .box_line {height:auto;min-height:0;text-align:left;}
.sea-ray-245-page #sea245-planning .box_line li {margin-bottom:12px;}
@media(max-width:600px){
.sea-ray-245-page #sea245-planning .card-header a {padding:18px 14px;gap:10px;}
.sea-ray-245-page #sea245-planning .card-header h2 {font-size:18px;}
.sea-ray-245-page #sea245-planning .card-body {padding:16px;}
.sea-ray-245-page #sea245-planning .sea245-distance-button {width:100%;white-space:normal;}
}
.sea-ray-245-page #sea245-planning .y-map {height:auto;}
.sea-ray-245-page .sea245-map-help {margin:12px 0 0;font-size:13px;line-height:1.5;}
