﻿@media (max-width: 1200px) {
  body {
    overflow: auto;
  }
  .header {
    padding-left: 10px;
  }
}
@media (max-width: 1024px) {
  body {
    padding: 0px;
    margin: 0px;
    height: auto;
    overflow-x: hidden;
  }
  h3 {
    font-size: 1em;
  }
  .header-toolbar-contact-3 {
    display: none;
  }
  .layout-tabs > li {
    height: 40px;
  }
  .layout-tabs > li > a {
    font-size: 0.7em;
  }
  .layout-tabs > li > a > title {
    height: auto;
  }
  .layout-tabs > li > a > img {
    width: 20px;
    height: 20px;
  }
  .shadow {
    display: none;
  }
  .layout-tab-content {
    width: 100%;
    height: 100%;
  }
  .btn-route {
    font-size: 1.3em;
    width: 34px;
    height: 34px;
  }
  .header-toolbar-contact .text {
    display: none;
  }
  .layout-mainpage-left {
    width: 100% !important;
    margin: 0px;
    padding: 0px;
    float: none;
  }
  .layout-mainpage-right,
  .layout-mainpage-left > .bs-pane > .bs-left {
    width: 100%;
  }
  .layout-mainpage-left > .bs-pane > .bs-left .header-1-pl,
  .layout-mainpage-left > .bs-pane > .bs-right {
    display: none;
  }
  .layout-mainpage-left > .bs-pane > .search {
    height: 50px;
    padding-top: 0px;
  }
  .layout-mainpage-left > .bs-pane > .search > .form-control-search-stop {
    margin-top: 1%;
    margin-left: 0px;
    width: 70%;
  }
  .layout-mainpage-left > .bs-pane > .search > .btn-search,
  .layout-mainpage-left > .bs-pane > .search > .btn-search:hover,
  .layout-mainpage-left > .bs-pane > .search > .btn-search:active,
  .layout-mainpage-left > .bs-pane > .search > .btn-search:visited {
    margin-right: 5%;
    margin-top: 1%;
    width: 25%;
  }
  .layout-mainpage-right {
    width: 100%;
    min-height: 300px;
  }
  .timetable-pane {
    width: 100%;
    left: 0px;
    border-left: 0px solid #000;
    border-right: 0px solid #000;
    /*height: 100%;*/
  }
  .info-pane {
    width: 100%;
  }
  span#spTimetablePrint {
    display: none;
  }
  span#spTimetableAddToFav {
    position: absolute;
    top: -2000px;
  }
  div#dvTimetableRoutes {
    padding-top: 0;
    padding-bottom: 5px;
  }
  #cbTripPlanerMode, #tbTripPlanerDate {
    width: 100px;
  }
  #cbTripPlanerFrom, #cbTripPlanerTo, #cbTripPlanerMode, #tbTripPlanerGodzOd, #cbTripPlanerIlePrzes {
    width: 85%;
    display: inline-block;
  }
  .tp-params {
    font-size: 1em;
  }
  .tp-params td {
    font-size: 0.9em;
  }
  .tp-params td select, .tp-params td input {
    font-size: 1.1em;
  }
  .bootstrap-select > .dropdown-toggle {
    z-index: auto;
  }
  .dropdown-menu {
    transform: translate3d(0px, 0px, 0px) !important;
  }
  .tp-result {
    min-height: 800px;
  }
}
@media (max-width: 1024px) {
  .timetable-content {
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
  /* Menu styles moved to site.scss for better organization */
  /* All responsive menu styling is now consolidated in site.scss @media (max-width: 1024px) section */
}
/* Mobile app notification modal */
.mobile-app-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: none;
}
.mobile-app-modal.show {
  display: block;
}
.mobile-app-modal .mobile-app-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
}
.mobile-app-modal .mobile-app-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 480px;
  max-height: 95vh;
  overflow-y: auto;
  padding: 0;
  animation: slideUp 0.3s ease-out;
}
.mobile-app-modal .mobile-app-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 1;
  transition: color 0.2s;
}
.mobile-app-modal .mobile-app-modal-close:hover {
  color: #333;
}
.mobile-app-modal .mobile-app-modal-close span {
  display: block;
}
.mobile-app-modal .mobile-app-modal-body {
  padding: 40px 30px 30px;
  text-align: center;
}
.mobile-app-modal .mobile-app-modal-body .mobile-app-icon {
  font-size: 48px;
  margin-bottom: 15px;
  animation: bounce 1s ease-in-out;
}
.mobile-app-modal .mobile-app-modal-body h2 {
  color: #d42e03;
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 12px;
  line-height: 1.3;
}
.mobile-app-modal .mobile-app-modal-body p {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 20px;
}
.mobile-app-modal .mobile-app-modal-body .mobile-app-stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}
.mobile-app-modal .mobile-app-modal-body .mobile-app-stores .store-link {
  display: block;
  max-width: 180px;
  transition: transform 0.2s, opacity 0.2s;
}
.mobile-app-modal .mobile-app-modal-body .mobile-app-stores .store-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.mobile-app-modal .mobile-app-modal-body .mobile-app-stores .store-link .store-badge {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.mobile-app-modal .mobile-app-modal-body .mobile-app-dismiss-btn {
  background: #f0f0f0;
  color: #666;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  max-width: 280px;
}
.mobile-app-modal .mobile-app-modal-body .mobile-app-dismiss-btn:hover {
  background: #e0e0e0;
  color: #333;
}

/* Landscape mode adjustments for mobile devices */
@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  .mobile-app-modal-content {
    max-width: 600px;
    width: 85%;
    max-height: 90vh;
  }
  .mobile-app-modal-body {
    padding: 25px 20px 20px;
  }
  .mobile-app-modal-body .mobile-app-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }
  .mobile-app-modal-body h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .mobile-app-modal-body p {
    font-size: 13px;
    margin-bottom: 15px;
  }
  .mobile-app-modal-body .mobile-app-stores {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
  }
  .mobile-app-modal-body .mobile-app-stores .store-link {
    max-width: 140px;
  }
  .mobile-app-modal-body .mobile-app-dismiss-btn {
    padding: 8px 20px;
    font-size: 13px;
    max-width: 240px;
  }
  .mobile-app-modal-close {
    top: 8px;
    right: 8px;
    font-size: 28px;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* Hide modal on desktop */
@media (min-width: 1025px) {
  .mobile-app-modal {
    display: none !important;
  }
}
