/* ============================================================
   RESPONSIVE STYLES — Mobile First Overrides
   ============================================================ */

/* ---------- Large Desktop (1400px+) ---------- */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 3.75rem;
  }

  .search-box {
    padding: 2rem 2.5rem;
  }
}

/* ---------- Laptop / Small Desktop (max: 1199px) ---------- */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }
}

/* ---------- Tablet (max: 991px) ---------- */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 520px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .search-box {
    padding: 1.5rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .stepper-label {
    display: none;
  }

  .stepper-line {
    width: 30px;
  }

  .trip-card {
    padding: 1.25rem;
  }

  .booking-stepper {
    gap: 0.25rem;
  }

  .filter-sidebar-col {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 1060;
    background: #fff;
    box-shadow: var(--shadow-2xl);
    transition: left 0.35s ease;
    overflow-y: auto;
    padding: 1.5rem;
  }

  .filter-sidebar-col.open {
    left: 0;
  }

  .filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1055;
    display: none;
  }

  .filter-overlay.show {
    display: block;
  }

  .fare-summary {
    position: static;
    margin-top: 1.5rem;
  }

  .route-card {
    height: 240px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 14px;
    padding-bottom: 70px;
  }

  /* Space for bottom nav */

  .hero-viewport-elite {
    height: 320px;
  }

  .hero-title-premium {
    font-size: 1.8rem;
  }

  .search-anchor {
    margin-top: -60px;
  }

  .search-card-premium {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .search-inputs-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .search-input-group {
    padding: 1rem;
    border-bottom: 1px solid var(--slate-100);
  }

  .search-input-group:last-child {
    border-bottom: none;
  }

  .border-end-premium {
    border-right: none;
  }

  .swap-toggle-container {
    right: 1.5rem;
    top: 3.5rem;
    /* Positioned between FROM and TO on mobile */
    transform: none;
  }

  .app-bottom-nav {
    display: flex !important;
  }

  /* Compact Segment Rows */
  .segment-row-premium .search-inputs-grid {
    border: 1px solid var(--slate-200);
    box-shadow: none;
    background: var(--slate-50);
  }
}

/* ---------- Small phone (max: 575px) ---------- */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .search-box {
    padding: 1rem;
  }

  .swap-btn {
    width: 34px;
    height: 34px;
  }

  .section-padding {
    padding: 2rem 0;
  }

  .card-ferry .card-body {
    padding: 1rem;
  }

  .seat {
    width: 34px;
    height: 34px;
    font-size: 0.6rem;
  }

  .seat-row .aisle {
    width: 16px;
  }

  .trip-card {
    padding: 1rem;
  }

  .trip-price {
    font-size: 1.2rem;
  }

  .page-header {
    padding: 1.5rem 0;
  }

  .page-header h1 {
    font-size: 1.35rem;
  }

  .fare-summary {
    padding: 1rem;
  }

  .passenger-form-card {
    padding: 1rem;
  }
}

/* ---------- Print ---------- */
@media print {

  .hero-section,
  .cta-section,
  .footer-main,
  .navbar-ferry,
  .booking-stepper,
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .card-ferry,
  .fare-summary,
  .passenger-form-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .booking-ref {
    font-size: 14pt;
    border: 2px solid #000;
    padding: 0.5rem 1rem;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ---------- PREMIUM SECTIONS RESPONSIVE ---------- */

@media (max-width: 991.98px) {

  .operator-showcase-section,
  .schedule-explorer-section {
    padding: 60px 0;
  }

  .operator-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-visual {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .operator-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .operator-grid-item {
    padding: 20px 15px;
  }

  .op-logo-placeholder {
    font-size: 0.8rem;
    height: 40px;
  }

  .schedule-accordion-button {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .table-schedule th,
  .table-schedule td {
    padding: 12px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .operator-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-visual {
    display: none;
    /* Hide image on very small screens to save vertical space */
  }

  .toggle-pill {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}