/* FinTours v46 mobile organisation patch */

@media (max-width: 700px) {
  body {
    font-size: 15px;
    line-height: 1.55;
  }

  .container {
    width: calc(100% - 24px);
  }

  .topbar {
    position: sticky;
    top: 0;
  }

  .topbar-inner {
    padding: 12px 0;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    flex: 0 0 52px;
  }

  .brand-text strong {
    font-size: 22px;
    line-height: 1;
    white-space: nowrap;
  }

  .brand-text small {
    font-size: 9px;
    letter-spacing: .16em;
    line-height: 1.25;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 18px;
    font-weight: 600;
    background: #fffdfa;
    flex: 0 0 auto;
  }

  .nav {
    top: 82px;
    left: 12px;
    right: 12px;
    border-radius: 20px;
    padding: 16px;
    gap: 10px;
  }

  .nav a,
  .nav .login-pill {
    width: 100%;
  }

  .hero,
  .section,
  .package-hero,
  .auth-page,
  .clean-login-page {
    padding-top: 24px;
  }

  .hero h1,
  .package-title h1,
  .section h2,
  .content-card h2,
  .auth-wrap h1,
  h1,
  h2 {
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -.02em;
  }

  .lead,
  .sub {
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-grid,
  .split,
  .package-top,
  .auth-wrap,
  .dashboard-grid,
  .cards,
  .destination-grid,
  .offer-grid,
  .included-row,
  .activity-grid,
  .gallery-strip,
  .list-grid,
  .footer-grid,
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr !important;
  }

  .search-shell,
  .content-card,
  .auth-card,
  .sticky-card,
  .table-card,
  .offer-card,
  .package-card,
  .destination-card,
  .hero-card {
    border-radius: 22px;
  }

  .search-shell,
  .content-card,
  .auth-card,
  .sticky-card,
  .hero-card {
    padding: 16px;
  }

  .section-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 18px;
  }

  .section-head > div:first-child {
    order: 1;
  }

  .section-head > form,
  .section-head > .btn,
  .section-head > .btn.secondary,
  .section-head > a.btn,
  .section-head > a.btn.secondary {
    order: 2;
  }

  .section-head form.form-grid {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 18px;
    background: #fffdfa;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(46,34,20,.06);
  }

  .field,
  .field-wide {
    grid-column: auto !important;
  }

  .field label {
    font-size: 10px;
    letter-spacing: .18em;
  }

  .field input,
  .field select,
  .field textarea,
  .room-guest-trigger,
  .btn,
  .btn.secondary {
    min-height: 52px;
    border-radius: 18px;
  }

  .section-head form .btn,
  .section-head form .btn.secondary,
  .form-grid .btn,
  .form-grid .btn.secondary {
    width: 100%;
  }

  .inline-options {
    gap: 10px;
  }

  .inline-options .btn,
  .inline-options .btn.secondary {
    width: 100%;
  }

  .filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 8px 0 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 18px;
  }

  .package-card h3,
  .destination-card h3 {
    font-size: 28px;
  }

  .pkg-body {
    padding: 16px;
  }

  .price {
    font-size: 20px;
  }

  .meta {
    gap: 8px;
  }

  .destination-card {
    display: block;
  }

  .destination-card img,
  .pkg-img,
  .hero-photo {
    border-radius: 18px 18px 0 0;
  }

  /* Mobile organisation for package catalogue page */
  body:has(form[action="" i]),
  body {
    overflow-x: hidden;
  }

  /* Packages/holidays listing page two-column issue */
  .section .section-head form[method="get"] {
    order: 1;
  }

  .section .section-head > div:first-child {
    order: 2;
  }

  .section .section-head .btn.secondary,
  .section .section-head > a.btn.secondary {
    order: 3;
    align-self: stretch;
    text-align: center;
  }

  /* When page has package search, keep form first and intro below */
  .section .section-head:has(form[method="get"]) {
    gap: 18px;
  }

  /* Keep hotel/flight form controls tidy */
  .search-shell .inline-options {
    gap: 12px;
  }

  .search-shell .inline-options label {
    font-size: 13px;
  }

  .room-guest-menu {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    min-width: 0;
  }

  .table-card {
    overflow-x: auto;
  }
}
