/* MSC Cruise Search (/cruises/search). Builds on the Yacht Club search styles. */

.msc-search-hero .yacht-club-search-directory-link a {
  font-weight: 600;
}

.msc-search-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: flex-end;
}

.msc-search-form .yc-month-year-group[hidden],
.msc-search-form .yc-month-nav[hidden] {
  display: none;
}

.msc-search-field {
  display: grid;
  gap: 0.35rem;
}

.msc-search-field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.msc-search-field select,
.msc-search-field input {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--navy-line, #dfe5ec);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: inherit;
}

.msc-search-count-note {
  color: var(--text-muted);
  font-weight: 400;
}

.msc-search-cabins {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msc-search-cabin {
  display: block;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--navy-line, #dfe5ec);
  border-radius: 10px;
  background: var(--surface, #f4f6f9);
  font: inherit;
  color: inherit;
  text-align: left;
}

.msc-search-cabin.has-image {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem 0.4rem 0.4rem;
}

/* Small square room photo beside the name and price, so cards stay the same height. */
.msc-search-cabin-image {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  max-width: none;
  border-radius: 7px;
  object-fit: cover;
  background: var(--surface, #f4f6f9);
}

.msc-search-cabin-copy {
  display: block;
  min-width: 0;
}

.msc-search-cabin-name {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.msc-search-cabin-price {
  display: block;
  margin-top: 0.15rem;
  font-weight: 700;
  font-size: 1rem;
}

.msc-search-cabin.is-quotable {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.msc-search-cabin.is-quotable:hover,
.msc-search-cabin.is-quotable:focus-visible {
  border-color: var(--ocean-light, #3dade0);
  background: #fff;
  box-shadow: 0 4px 12px rgba(4, 21, 38, 0.08);
  outline: none;
}

.msc-search-cabin.is-selected {
  border-color: var(--ocean-deep, #0a3d62);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ocean-deep, #0a3d62);
}

.msc-search-yc-upsell {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(176, 141, 87, 0.35);
  background: linear-gradient(90deg, rgba(176, 141, 87, 0.12), rgba(176, 141, 87, 0.04));
  font-size: 0.9rem;
}

.msc-search-yc-upsell p {
  margin: 0;
  flex: 1;
}

.msc-search-yc-upsell a {
  font-weight: 600;
  white-space: nowrap;
}

.msc-search-yc-icon {
  flex: none;
  font-size: 1.1rem;
  color: #b08d57;
}

.msc-search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.msc-search-page-status {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.msc-search-fine-print {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .msc-search-cabins {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .msc-search-yc-upsell {
    flex-wrap: wrap;
  }

  .msc-search-yc-upsell a {
    white-space: normal;
  }
}

/* Port and ship hub pages (/cruises/from/*, /cruises/ships/*), laid out like a port landing page */

.msc-hub-breadcrumb {
  margin-bottom: 1rem;
}

.msc-hub-hero {
  min-height: 15rem;
}

/* Room for the search bar that overlaps the bottom of the hero. */
.msc-hub-hero .yacht-club-search-hero-content {
  padding-bottom: 3rem;
}

.msc-hub-searchbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  margin: -1.75rem 1.5rem 0;
  position: relative;
  z-index: 2;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--navy-line, #dfe5ec);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(4, 21, 38, 0.12);
}

.msc-hub-searchbar-field {
  display: grid;
  gap: 0.3rem;
}

.msc-hub-searchbar label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.msc-hub-searchbar select {
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--navy-line, #dfe5ec);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.msc-hub-searchbar .btn {
  min-height: 44px;
}

.msc-hub-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1.75rem 0 0;
  border: 1px solid var(--navy-line, #dfe5ec);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.msc-hub-facts > div {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--navy-line, #dfe5ec);
}

.msc-hub-facts > div:last-child {
  border-right: 0;
}

.msc-hub-facts dt,
.msc-hub-port-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.msc-hub-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.msc-hub-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin-top: 2rem;
}

.msc-hub-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
}

.msc-hub-panel p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

.msc-hub-deals,
.msc-hub-port,
.msc-hub-faq {
  margin-top: 2.5rem;
}

.msc-hub-deals-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.msc-hub-deals-head {
  align-items: center;
  margin-bottom: 0.5rem;
}

.msc-hub-deals-head h2 {
  margin: 0;
}

.msc-hub-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.msc-hub-sort label {
  font-weight: 600;
  white-space: nowrap;
}

.msc-hub-sort select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color, #d6dbe3);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.msc-hub-deals-note {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.msc-deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.msc-deal-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--navy-line, #dfe5ec);
  border-radius: 10px;
  overflow: hidden;
}

.msc-deal-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0a3d62, #1e6fa8);
}

.msc-deal-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msc-deal-card-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--coral, #e76f51);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.msc-deal-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  padding: 0.9rem 1rem 1rem;
}

.msc-deal-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
}

.msc-deal-card-dates {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.msc-deal-card-ports {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msc-deal-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.msc-deal-card-price span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.msc-deal-card-price s {
  color: var(--text-muted);
  margin-right: 0.35rem;
  font-size: 0.9rem;
}

.msc-deal-card-price strong {
  font-size: 1.35rem;
}

.msc-deal-card-yc {
  margin: 0.35rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(176, 141, 87, 0.5);
  font-size: 0.86rem;
  font-weight: 600;
}

.msc-deal-card-yc i {
  color: #b08d57;
  margin-right: 0.3rem;
}

.msc-hub-deals-more {
  margin-top: 1.25rem;
  text-align: center;
}

.msc-hub-port-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.msc-hub-port-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--navy-line, #dfe5ec);
  border-radius: 10px;
}

.msc-hub-port-list dd {
  margin: 0.15rem 0 0;
  line-height: 1.55;
}

.msc-hub-port-side {
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--navy-line, #dfe5ec);
  border-radius: 10px;
}

.msc-hub-port-side h3 {
  font-size: 1rem;
  margin: 0 0 0.6rem;
}

.msc-hub-airports {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.msc-hub-airports th,
.msc-hub-airports td {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--navy-line, #dfe5ec);
  vertical-align: top;
}

.msc-hub-airports td {
  color: var(--text-muted);
  padding-left: 0.75rem;
}

.msc-hub-port-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.msc-hub-yc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(176, 141, 87, 0.45);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(176, 141, 87, 0.14), rgba(176, 141, 87, 0.03));
}

.msc-hub-yc .msc-search-yc-icon {
  font-size: 1.6rem;
}

.msc-hub-yc h2 {
  font-size: 1.25rem !important;
  margin-bottom: 0.25rem !important;
}

.msc-hub-yc p {
  margin: 0;
}

.msc-hub-yc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.msc-hub-faq details {
  background: #fff;
  border: 1px solid var(--navy-line, #dfe5ec);
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.msc-hub-faq summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
}

.msc-hub-faq details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  line-height: 1.6;
}

.msc-hub-explore {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line, #dfe5ec);
}

.msc-hub-explore h2 {
  font-size: 1rem !important;
  font-family: var(--font-body) !important;
}

.msc-hub-explore ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.msc-search-browse {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.msc-search-browse strong {
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .msc-hub-searchbar {
    grid-template-columns: 1fr 1fr;
    margin: -1.25rem 0.75rem 0;
  }

  .msc-hub-searchbar .btn {
    grid-column: 1 / -1;
  }

  .msc-hub-facts {
    grid-template-columns: 1fr 1fr;
  }

  .msc-hub-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .msc-hub-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--navy-line, #dfe5ec);
  }

  .msc-hub-copy,
  .msc-hub-port-grid,
  .msc-hub-explore {
    grid-template-columns: 1fr;
  }

  .msc-deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .msc-hub-yc {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .msc-hub-yc ul {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .msc-deal-grid {
    grid-template-columns: 1fr;
  }
}

/* YC-style filter sidebar on /cruises/search */
.msc-search-form .yc-ships-option[hidden],
.msc-search-form .yc-ships-empty[hidden] {
  display: none;
}

.msc-month-chip {
  cursor: pointer;
  text-align: center;
}

.msc-month-chip:focus-within {
  outline: 2px solid var(--primary-color, #0b2a4a);
  outline-offset: 2px;
}

.msc-date-range {
  display: grid;
  gap: 0.75rem;
}

.msc-date-range input[type='date'] {
  width: 100%;
}

.msc-search-clear {
  align-self: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
}

a.yacht-club-search-chip {
  text-decoration: none;
}

.yc-calendar-panel[hidden],
.yc-month-panel[hidden] {
  display: none;
}

.msc-search-browse--footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #dfe5ec);
}

/* Room photos in the quote form's room type choices: a small square beside the name and price. */
.yc-quote-room-type-copy:has(.yc-quote-room-type-image) {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: center;
  width: 100%;
}

.yc-quote-room-type-image {
  grid-row: span 2;
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  max-width: none;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface, #f4f6f9);
}

.yc-quote-room-type-option:has(.yc-quote-room-type-image) {
  align-items: center;
  padding: 0.55rem 0.65rem;
  gap: 0.5rem;
}

.yc-quote-room-type-option:has(.yc-quote-room-type-image) input[type='radio'] {
  margin-top: 0;
}

.yc-quote-room-type-option:has(.yc-quote-room-type-image) .yc-quote-room-type-name {
  font-size: 0.95rem;
}

.yc-quote-room-type-option:has(.yc-quote-room-type-image) .yc-quote-room-type-price {
  font-size: 0.85rem;
  white-space: nowrap;
}
