/* =============================================================
   Jiminy — Disney Cruise Line Discover Subpage Styles
   /css/discover-disney-cruise-line.css

   Page-scoped styles for discover-disney-cruise-line.html only.
   Selectors scoped beneath .discover-dcl-page / .dcl-* / .dl-*
   so editing this file cannot accidentally affect any other
   page. Load LAST, after variables.css, shared.css, and
   discover.css, only on discover-disney-cruise-line.html.

   Uses existing Jiminy design tokens from variables.css:
   --navy, --gold, --cream, --card, --line, --ink, --muted

   Shares the .discover-card / .dl-* / .dl-text-action / etc.
   component system with css/discover-disneyland.css and
   css/discover-walt-disney-world.css so all three destination
   pages stay visually consistent. Duplicated here intentionally
   (page-scoped file) rather than importing another stylesheet.
============================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.discover-dcl-page {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

/* ── SHARED BACK LINK (same pattern as Disneyland/WDW) ────── */
.dl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 4px;
  min-height: 44px;
  border-radius: 10px;
}
.dl-back-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.dl-sample-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.dl-text-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--soft, #f4f7fb);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  min-height: 44px;
}
.dl-text-action:hover { background: var(--line); }
.dl-text-action:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.dl-btn--primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.dl-btn--primary:hover { background: var(--navy2, #04172f); }
.dl-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── HERO (wave transition) ───────────────────────────────── */
.dcl-hero {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  margin: 0 0 22px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--navy);
}
.dcl-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.dcl-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dcl-hero__bg--placeholder {
  background: linear-gradient(135deg, #143a6b 0%, #1d5fcd 55%, #f4b825 140%);
}
.dcl-hero__bg--placeholder img { display: none; }
.dcl-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6,20,42,.82) 0%, rgba(6,20,42,.35) 45%, rgba(6,20,42,.15) 100%);
}
.dcl-hero__content {
  position: relative;
  z-index: 2;
  padding: 22px 24px 56px;
  max-width: 620px;
}
.dcl-hero__back {
  color: #fff;
  margin-bottom: 14px;
}
.dcl-hero__back:hover,
.dcl-hero__back:focus-visible {
  color: var(--gold);
}
.dcl-hero__title {
  font-family: Georgia, serif;
  color: #fff;
  font-size: clamp(32px, 5.2vw, 48px);
  line-height: 1.02;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}
.dcl-hero__subtitle {
  margin: 0 0 20px;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  line-height: 1.55;
  max-width: 48ch;
}
.dcl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.dcl-hero__secondary {
  background: none;
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
  padding: 0 4px;
}
.dcl-hero__secondary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Wave transition at the base of the hero, rendered with an
   inline SVG path so it scales smoothly at any width. */
.dcl-hero__wave {
  position: relative;
  z-index: 2;
  width: 100%;
  line-height: 0;
}
.dcl-hero__wave svg {
  width: 100%;
  height: 48px;
  display: block;
}
.dcl-hero__wave path {
  fill: var(--cream);
}

@media (min-width: 760px) {
  .dcl-hero { min-height: 360px; }
  .dcl-hero__content { padding: 30px 40px 64px; }
  .dcl-hero__wave svg { height: 64px; }
}

/* ── SECTION HEAD (shared by Ships / Plan & Prepare) ──────── */
.dcl-section {
  margin-bottom: 26px;
}
.dcl-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.dcl-section__head h2 {
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: 21px;
  margin: 0 0 4px;
}
.dcl-section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.dcl-view-all {
  flex-shrink: 0;
  width: auto;
  padding: 10px 16px;
}

/* ── EXPLORE THE SHIPS ────────────────────────────────────── */
.dcl-ship-track {
  list-style: none;
  margin: 0;
  padding: 2px 2px 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 78%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 760px) {
  .dcl-ship-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible;
  }
}
.dcl-ship-card {
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(7,31,65,.1);
  display: flex;
  flex-direction: column;
}
.dcl-ship-card__image {
  aspect-ratio: 4/3;
  background: var(--soft, #f4f7fb);
}
.dcl-ship-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dcl-ship-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.dcl-ship-card__name {
  margin: 0;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.dcl-ship-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.dcl-ship-card__view {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  min-height: 44px;
  text-align: left;
}
.dcl-ship-card__view:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── PLAN & PREPARE ───────────────────────────────────────── */
.dcl-tools-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 560px) {
  .dcl-tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .dcl-tools-grid { grid-template-columns: repeat(5, 1fr); }
}
.dcl-tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}
.dcl-tool-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(7,31,65,.1);
}
.dcl-tool-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.dcl-tool-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.dcl-tool-card__title {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  margin: 0;
}
.dcl-tool-card__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.dcl-tool-card__arrow {
  align-self: flex-end;
  color: var(--gold);
  font-weight: 800;
}

/* ── LOWER GRID (Ports / Countdown / Community) ───────────── */
.dcl-lower-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
@media (min-width: 760px) {
  .dcl-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .discover-card--full {
    grid-column: 1 / -1;
  }
}

.discover-dcl-page .discover-card {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7,31,65,.14);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.discover-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--navy);
  padding: 16px 18px;
}
.discover-card__title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.discover-card__title-group h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.discover-card__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(244,184,37,.14);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.discover-card__icon svg { width: 16px; height: 16px; }
.discover-card__open {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  min-width: 44px;
  min-height: 44px;
  margin: -6px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gold);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.discover-card__open:hover { background: rgba(244,184,37,.16); }
.discover-card__open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.discover-card__body {
  padding: 16px 18px 18px;
  flex: 1;
}

/* ── POPULAR PORT DESTINATIONS ────────────────────────────── */
.dcl-port-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dcl-port-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  min-height: 44px;
}
.dcl-port-row:last-child { border-bottom: none; }
.dcl-port-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dcl-port-row__thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft, #f4f7fb);
}
.dcl-port-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dcl-port-row__body {
  flex: 1;
  min-width: 0;
}
.dcl-port-row__name {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}
.dcl-port-row__region {
  margin: 1px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}
.dcl-port-row__desc {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dcl-port-row__arrow {
  flex-shrink: 0;
  color: var(--gold);
  font-weight: 800;
}

/* ── CRUISE COUNTDOWN ──────────────────────────────────────── */
.dcl-countdown-empty {
  text-align: center;
  padding: 6px 0 4px;
}
.dcl-countdown-empty__icon {
  font-size: 34px;
  margin-bottom: 6px;
}
.dcl-countdown-empty h3 {
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: 18px;
  margin: 0 0 6px;
}
.dcl-countdown-empty p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
}
.dcl-countdown-active {
  text-align: center;
}
.dcl-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 16px;
}
.dcl-countdown-cell {
  background: var(--soft, #f4f7fb);
  border-radius: 12px;
  padding: 10px 4px;
}
.dcl-countdown-cell__num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dcl-countdown-cell__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 4px;
}
.dcl-countdown-departed {
  text-align: center;
  padding: 10px 0;
}
.dcl-countdown-departed h3 {
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: 18px;
  margin: 0 0 14px;
}
.dcl-countdown-date-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dcl-countdown-date-form label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  text-align: left;
}
.dcl-countdown-date-form input[type="date"] {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  min-height: 44px;
  font-family: inherit;
  color: var(--ink);
}
.dcl-countdown-date-form input[type="date"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.dcl-countdown-edit-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.dcl-countdown-edit-row button {
  background: none;
  border: none;
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
  min-height: 44px;
  padding: 6px 8px;
}
.dcl-countdown-edit-row button:hover { color: var(--gold); }
.dcl-countdown-edit-row button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── FROM THE COMMUNITY ───────────────────────────────────── */
.dcl-community-grid {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 560px) {
  .dcl-community-grid { grid-template-columns: repeat(4, 1fr); }
}
.dcl-community-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft, #f4f7fb);
  display: block;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.dcl-community-card__image {
  aspect-ratio: 1;
  overflow: hidden;
}
.dcl-community-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dcl-community-card__play {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(7,31,65,.68);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.dcl-community-card__body {
  padding: 8px 10px 10px;
}
.dcl-community-card__caption {
  margin: 0 0 3px;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dcl-community-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.dcl-community-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── JIMINY PLANNING CALLOUT ───────────────────────────────── */
.dcl-jiminy-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--navy);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 12px 32px rgba(7,31,65,.18);
  flex-wrap: wrap;
}
.dcl-jiminy-callout__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(244,184,37,.14);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.dcl-jiminy-callout__text {
  flex: 1;
  min-width: 200px;
}
.dcl-jiminy-callout__text h2 {
  font-family: Georgia, serif;
  color: #fff;
  font-size: 19px;
  margin: 0 0 4px;
}
.dcl-jiminy-callout__text p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 13.5px;
  line-height: 1.45;
}
.dcl-jiminy-callout__btn {
  flex-shrink: 0;
}

/* ── REDUCED MOTION ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .discover-card,
  .dcl-ship-card,
  .dcl-tool-card,
  .dcl-community-card,
  .dcl-port-row {
    transition: none;
    scroll-behavior: auto;
  }
}
