/* =========================================================
   CRUISES.CSS
   Cruises Page Only Styles
========================================================= */


/* =========================================================
   01 — PAGE BASE
========================================================= */

body {
  background: #ffffff;
}


/* =========================================================
   02 — HERO (CRUISES PAGE)
========================================================= */

.hero--cruise {
  height: clamp(60vh, 70vh, 85vh);
}

.hero--cruise .hero-content {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.hero--cruise .hero-text-container {
  text-align: center;
  padding: 0 20px 12px;
}

.hero--cruise .hero-headline {
  font-family: 'Aclonica', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 4px;
  color: #003366;
  margin: 0;

  text-shadow:
    -2px -2px 0 #ffffff,
     2px -2px 0 #ffffff,
    -2px  2px 0 #ffffff,
     2px  2px 0 #ffffff;
}

.hero--cruise .hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  color: #ffffff;
  margin-top: 6px;

  text-shadow:
    -2px -2px 0 #000000,
     2px -2px 0 #000000,
    -2px  2px 0 #000000,
     2px  2px 0 #000000;
}


/* =========================================================
   03 — SEARCH BAR
========================================================= */

.cruise-search-bar {
  max-width: 900px;
  margin: 40px auto 20px;
  padding: 0 20px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.cruise-search-bar label {
  font-weight: 600;
  color: #003B4A;
}

#cruise-search {
  flex: 1;
  padding: 12px 14px;
  font-size: 1rem;

  border: 2px solid #ccc;
  border-radius: 6px;
}

#cruise-search:focus {
  outline: none;
  border-color: #007794;
}

.cruise-search-clear {
  padding: 10px 14px;
  font-size: 1rem;
  border: none;
  background: #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
}

.cruise-search-clear:hover {
  background: #d0d0d0;
}


/* =========================================================
   04 — CRUISE CARD GRID (AUTHORITATIVE)
========================================================= */

#cruise-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}


/* =========================================================
   05 — CRUISE CARD
========================================================= */

.cruise-card {
  background: #ffffff;
  border: 2px solid #d0d0d0;
  border-radius: 12px;
  overflow: hidden;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cruise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}


/* =========================================================
   06 — CRUISE IMAGE
========================================================= */

.cruise-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.cruise-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cruise-sale-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;

  background: #e60023;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
}

.cruise-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;

  background: rgba(0,0,0,0.65);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 4px;
}


/* =========================================================
   07 — CRUISE CARD BODY
========================================================= */

.cruise-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cruise-line-logo {
  width: 100%;
  max-height: 70px;
  object-fit: contain;
}

.cruise-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #003366;
  margin: 0;
}

.cruise-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}


/* =========================================================
   08 — INFO ROW
========================================================= */

.cruise-info-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.label {
  font-size: 11px;
  text-transform: uppercase;
  color: #777;
}

.value {
  font-size: 14px;
  font-weight: 600;
}


/* =========================================================
   09 — PRICE + BUTTON
========================================================= */

.cruise-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.price-label {
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
}

.price-amount {
  font-size: 24px;
  font-weight: 700;
  color: #1a3d7c;
}

.cruise-details-btn {
  padding: 10px 18px;
  background: #1a3d7c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.cruise-details-btn:hover {
  background: #142f60;
}


/* =========================================================
   10 — PAGINATION
========================================================= */

.pagination {
  text-align: center;
  margin-bottom: 40px;
}

.pagination button {
  margin: 0 6px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: #ffffff;
  cursor: pointer;
}

.pagination button.active {
  background: #003B4A;
  color: #ffffff;
}


/* =========================================================
   11 — CRUISE LINE LOGO GRID (FLUID + RESPONSIVE)
========================================================= */

.cruise-line-logos {
  width: min(1200px, 100%);
  margin: 40px auto 20px;
  padding: 0 20px;
}

.cruise-line-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: stretch;
}

/* Make the <a> behave like a tile */
.cruise-line-link {
  display: grid;
  place-items: center;
  width: 100%;
  background: #ffffff;
  border: 2px solid #d0d0d0;
  border-radius: 12px;
  padding: 14px 16px;

  filter: grayscale(100%);
  opacity: 0.9;

  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.cruise-line-link:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px);
}

/* Logo sizing: consistent and NOT huge */
.cruise-line-link img {
  display: block;
  width: 100%;
  max-width: 180px;  /* prevents giant logos */
  height: 56px;      /* smaller default */
  object-fit: contain;
}


/* =========================================================
   12 — MODAL
========================================================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
}

.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #ffffff;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}


/* =========================================================
   13 — RESPONSIVE
========================================================= */

@media (max-width: 980px) {
  .cruise-line-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  #cruise-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 600px) {
  /* Make logos a clean 2-column grid on phones */
  .cruise-line-logos { padding: 0 12px; }

  .cruise-line-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cruise-line-link {
    padding: 12px 10px;
    border-radius: 12px;
  }

  .cruise-line-link img {
    max-width: 140px;
    height: 42px;
  }

  /* Search bar: stack nicely */
  .cruise-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cruise-search-bar label {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .cruise-card-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cruise-details-btn { width: 100%; }
}

@media (max-width: 360px) {
  .cruise-line-grid { grid-template-columns: 1fr; }
}
