/* ==========================================================================
   css/ferry-modal.css — the ferry notice
   --------------------------------------------------------------------------
   Project:   Kali Villas Mentawai
   Loaded by: book.html and tunel-crew.html, with js/ferry-modal.js, which
              builds the notice. The Tunel page repaints it in its own ink
              (css/pages/tunel-crew.css).
   ========================================================================== */

/* ==========================================================================
   Ferry modal — popup overlay shown the first time the user interacts
                    with the WhatsApp button or focuses the enquiry form
                    (driven by js/ferry-modal.js)
   ========================================================================== */
.ferry-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ferry-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ferry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--shade-a55);
  backdrop-filter: blur(4px);
}

.ferry-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2.75rem 2.25rem 2.25rem;
  background: var(--sand);
  border: 0.5px solid var(--sand-deeper);
  box-shadow: 0 16px 60px var(--navy-a35);
  transform: translateY(8px);
  transition: transform 0.3s ease;
}
.ferry-modal.is-open .ferry-modal-card {
  transform: translateY(0);
}

.ferry-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--navy-muted);
  cursor: pointer;
  transition: color 0.25s;
}
.ferry-modal-close:hover { color: var(--terra); }

.ferry-modal-title {
  margin: 0.5rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--navy);
}

.ferry-modal-body {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--navy-muted);
}


/* Transit summary — two rows: Mentawai Fast + Susi Air, each row a label
   on the left and operating days on the right. */
.ferry-modal-transit {
  margin: 0;
  border: 0.5px solid var(--sand-deeper);
  background: var(--sand-deeper);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.transit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--sand-dark);
}
.transit-row dt {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--terra);
}
.transit-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--navy);
  text-align: right;
}
.transit-note {
  margin-left: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 300;
  color: var(--navy-dim);
}


/* Action row — OK is the primary (terracotta), Getting Here is outlined */
.ferry-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.ferry-modal-cta,
.ferry-modal-ok {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
/* Secondary — Getting Here, soft terracotta tint (opens in a new tab). */
.ferry-modal-cta {
  background: var(--terra-pale);
  color: var(--terra);
  border: 0.5px solid var(--terra);
}
.ferry-modal-cta:hover {
  background: var(--terra);
  color: var(--sand);
}
/* Primary — OK, terracotta filled (the emphasised acknowledge action) */
.ferry-modal-ok {
  background: var(--terra);
  color: var(--sand);
  border: 0.5px solid var(--terra);
}
.ferry-modal-ok:hover { background: var(--terra-light); border-color: var(--terra-light); }


/* ==========================================================================
   Ferry modal, phone-sized (owner screenshot, 25 Aug 2026)
   --------------------------------------------------------------------------
   Balanced title, stacked operator rows (label above days, left-aligned
   — no more "Sun" wrapping alone), tighter card.
   ========================================================================== */
.ferry-modal-title { text-wrap: balance; }

@media (max-width: 700px) {
  .ferry-modal        { padding: 1.25rem; }
  .ferry-modal-card   { padding: 2rem 1.4rem 1.4rem; }
  .ferry-modal-title  { font-size: 1.4rem; margin-bottom: 1.25rem; }
  .transit-row        { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 0.75rem 0.9rem; }
  .transit-row dd     { text-align: left; font-size: 1rem; }
  .transit-note       { margin-left: 0.35rem; }
  .ferry-modal-body   { margin-top: 1.1rem; font-size: 1rem; }
  .ferry-modal-actions { margin-top: 1.4rem; }
}

