html,
body {
  overflow-x: hidden;
}

@media (max-width: 767px) {
  /* ---- Header ---- */
  .header-top-second .container-fluid > .row {
    flex-wrap: wrap;
  }

  .travel-price .travel-select .btn-primary,
  .travel-price .travel-select .button.button-xlarge3 {
    min-height: auto !important;
    font-size: 11px !important;
  }

  .booking-item {
    padding: 0px 2px !important;
  }

  .header-left-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    justify-content: space-between;
    padding: 8px 12px;
  }

  .logo {
    max-height: 42px !important;
    width: auto !important;
  }

  .call-center-image {
    display: none;
  }

  .call-center-text {
    font-size: 11px;
  }

  /* Nav + login sütunu */
  .nav-col {
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }
 
  /* .top-links.app-control-hide {
    display: none !important;
  } */

  /* ---- Sefer Değiştir Filtre Formu ---- */
  .filter-button {
    display: block !important;
    width: calc(100% - 30px);
    margin: 10px 15px;
    cursor: pointer;
    text-align: center;
  }

  /* Her filtre alanı tam genişlik */
  #travelFilter > .filter-field {
    width: 100% !important;
    float: none !important;
    padding: 5px 15px;
  }

  /* Tarih input sütunu */
  .filter-date-input {
    width: 100% !important;
    padding-right: 0;
  }

  /* Bugün / Yarın buton sütunu */
  .filter-date-buttons {
    width: 100% !important;
    padding: 0;
  }

  /* Select2 inline genişliği sıfırla */
  .select2.select2-container {
    width: 100% !important;
    min-width: unset !important;
  }

  .today-tomorrow-changer {
    font-size: 12px;
    padding: 5px 8px;
  }

  /* Bilet Ara butonu */
  .secondary-page-submit {
    display: block;
    width: 100%;
    margin-top: 8px;
  }

  /* ---- Sefer Listesi ---- */
  ul.booking-list {
    padding: 0;
    padding-bottom: 65px; /* kayan ödeme butonu için boşluk */
  }

  .booking-item-container {
    margin-bottom: 8px;
  }

  .mobile-route-name.nodesktop {
    display: block !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
  }

  /* ---- Otobüs Kartı ---- */
  .bus-box-custom.row {
    margin-left: 0;
    margin-right: 0;
    padding: 8px 6px;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
  }

  /* Logo sütunu */
  .bus-logo-col {
    width: 40px !important;
    max-width: 40px;
    flex: 0 0 40px;
    padding: 0 4px 0 0 !important;
  }

  .company-logo-custom {
    height: auto;
    display: block;
  }

  /* İçerik sütunu */
  .bus-content-col {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px);
    flex: 1;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
  }

  /* Saat sütunu */
  .travel-date-time {
    width: 95px !important;
    max-width: 95px;
    flex: 0 0 95px;
    padding: 0 4px 0 0;
  }

  .booking-item-clock b {
    font-size: 23px;
    display: block;
    white-space: nowrap;
  }

  .booking-average-time {
    font-size: 9px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
  }

  /* Servis ikonları gizle */
  .model-icons-area {
    display: none !important;
  }

  /* Kalkış–Varış metin sütunu gizle */
  .travel-departure-arrival {
    display: none !important;
  }

  /* Araç modeli / plaka sütunu gizle */
  .travel-model-options {
    display: none !important;
  }

  /* Fiyat + Koltuk Seç sütunu */
  .travel-price {
    width: calc(100% - 95px) !important;
    max-width: calc(100% - 95px);
    flex: 1;
    text-align: right !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 0 4px !important;
  }

  .booking-item-price {
    font-size: 16px;
    font-weight: 700;
    display: block;
    white-space: nowrap;
    margin-bottom: 5px;
  }

  .travel-select {
    width: 100%;
    text-align: right;
  }

  .travel-select .button,
  .travel-select a.button {
    padding: 6px 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
    display: inline-block !important;
  }

  /* Koltuk planı yatay scroll */
  .booking-item-details {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .payPass {
    position: fixed !important;
    bottom: 0px !important;    
    width: 100% !important;
    border-radius: 0 !important;
    text-align: center;
  }

  /* ---- Footer ---- */
  .footer-widgets-wrap .logo-center,
  .footer-widgets-wrap .stores {    
    float: none !important;
    text-align: center;
  }

  .footer-logo {
    display: block;
    margin: 0 auto 10px;
  }

  .store-badges {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Menü sütunları 2'li düzen */
  .footer-menu-m,
  .footer-menu-m2,
  .footer-menu-m3,
  .footer-menu-m4 {
    width: 50% !important;
    float: left !important;
    padding-bottom: 12px;
    box-sizing: border-box;
  }

  /* Şirket bilgileri sütunları */
  .footer-company-info {
    width: 100% !important;
    float: none !important;
    overflow-x: auto;
  }

  .tursab-table {
    font-size: 12px;
    width: 100%;
  }

  /* Telif hakkı sütunları */
  .footer-copyright-col {
    width: 100% !important;
    float: none !important;
    text-align: center;
    margin-bottom: 10px;
  }

  .footer-adres address {
    font-size: 12px;
  }

  /* ---- Login Modal ---- */
  .mfp-dialog {
    max-width: 95%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
  }

  .g-recaptcha {
    transform: scale(0.88);
    transform-origin: 0 0;
    -webkit-transform: scale(0.88);
    -webkit-transform-origin: 0 0;
  }
}

/* ============================================================
   TABLET  (768px – 991px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {
  /* Filtre formu 2'li düzen */
  #travelFilter > .filter-field {
    width: 50% !important;
    float: left;
    margin-bottom: 8px;
  }

  /* Select2 genişlik */
  .select2.select2-container {
    width: 100% !important;
  }

  /* Araç modeli / plaka gizle */
  .travel-model-options {
    display: none !important;
  }

  /* Sütun yeniden dağılımı */
  .travel-date-time {
    width: 22% !important;
  }

  .travel-departure-arrival {
    width: 48% !important;
  }

  .travel-price {
    width: 30% !important;
    text-align: right;
  }
}
