/* ==========================================================================
   DELTA TRAVEL - RESPONSIVE & MOBILE ADAPTATION (responsive.css)
   ========================================================================== */

@media (max-width: 991.98px) {
  /* Header & Navigation */
  .topbar {
    display: none; /* Ẩn topbar trên mobile để tối ưu không gian */
  }

  .navbar-delta {
    padding: 0.65rem 0;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding: 6rem 0 4rem 0;
    text-align: center;
  }

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

  .hero-description {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  /* Search Box */
  .search-box-container {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .search-box-card {
    padding: 1.25rem;
  }

  /* Flash Sale */
  .flash-sale-wrapper {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.25rem;
  }

  .flash-sale-info {
    flex-direction: column;
    text-align: center;
  }

  /* Checkout summary sticky disabled on tablet/mobile */
  .order-summary-card {
    position: static;
    margin-top: 2rem;
  }

  .tour-filter-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .tour-filter-pills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tour-sort-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  /* Footer */
  .footer-delta {
    padding-top: 3.5rem;
  }

  .footer-delta .col-lg-4,
  .footer-delta .col-lg-2,
  .footer-delta .col-lg-3 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.75rem;
  }

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

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Tour Cards */
  .tour-card-actions {
    grid-template-columns: 1fr;
  }

  .tour-filter-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .tour-filter-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tours-control-bar {
    align-items: flex-start;
  }

  /* Payment Tabs */
  .payment-methods-tabs {
    grid-template-columns: 1fr;
  }

  /* Modals */
  .modal-booking .modal-header,
  .modal-itinerary .modal-header {
    padding: 1rem 1.25rem;
  }

  .modal-booking .modal-body,
  .modal-itinerary .modal-body {
    padding: 1rem;
  }

  .modal-itinerary-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    text-align: center;
  }

  .itinerary-timeline {
    padding-left: 1.5rem;
  }

  .itinerary-day-badge {
    left: -2.15rem;
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  /* E-ticket Grid */
  .eticket-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .eticket-code-block {
    text-align: center;
  }

  .eticket-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .eticket-body {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   BỐ CỤC ĐA DỤNG: MOBILE & MỌI ĐỘ RỘNG DESKTOP
   ========================================================================== */

/* Nút mở bộ lọc tour nằm cùng hàng với số lượng tour, dễ bấm trên mobile */
@media (max-width: 575.98px) {
  .tour-filter-toggle {
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }
}

/* Chân trang: badge chứng nhận tự xuống dòng, không tràn ngang */
.footer-bottom > div {
  min-width: 0;
}

.footer-bottom .badge {
  white-space: normal;
  text-align: left;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  .footer-bottom .d-flex.align-items-center.gap-3 {
    flex-wrap: wrap;
    gap: 0.5rem !important;
  }
}

/* Lưới tour: khoảng cách gọn hơn trên màn hình hẹp */
@media (max-width: 575.98px) {
  .tours-control-bar {
    gap: 0.5rem;
  }
  .tour-sort-wrapper,
  .tour-sort-select {
    width: 100%;
  }
  .tour-sort-select {
    flex: 1;
  }

  /* Modal lịch trình gọn hơn trên điện thoại */
  .modal-itinerary .modal-header {
    padding: 0.85rem 1rem !important;
    gap: 0.75rem;
  }
  .modal-itinerary .modal-title {
    font-size: 1.05rem !important;
  }
  .modal-itinerary .btn-close-modal {
    width: 32px;
    height: 32px;
  }
  .modal-itinerary .modal-body {
    padding: 1rem !important;
  }
  .modal-itinerary .itinerary-hero-img {
    height: 190px;
  }
  .itinerary-nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .itinerary-nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .itinerary-nav-tabs .nav-link {
    white-space: nowrap;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
  }
  .modal-itinerary-footer {
    padding: 0.85rem 1rem !important;
    gap: 0.75rem;
  }
  .itinerary-footer-price .val {
    font-size: 1.25rem;
  }
  .modal-itinerary-footer .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
