* {
  box-sizing: border-box;
}

div {
  /* float: right; */
  direction: rtl;
}


body {
  font-family: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
}

input {
  font-family: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.input_text::placeholder {
  color: #333;
  font-size: 15px;
}

.btn_blue {
  background: #0279c2;
  font-size: 16px;
  color: #fff;
  font-weight: bold;
  border: none;
  width: 100%;
  border-radius: 10px;
  line-height: 45px;
  text-align: center;
  cursor: pointer;
}

.btn_blue:hover {
  background-color: #0084d6;
}

.fw {
  width: 100%;
}

.input_text {
  width: 100%;
  font-size: 15px;
  padding: 10px 15px;
  margin: 3px 0 !important;
  border-radius: 10px;
  border: 1px solid royalblue;
}

p {
  margin: 10px 0;
}

h3 {
  margin: 0;
}

.btn_flip {
  cursor: pointer;
  border-radius: 90px;
  padding: .6rem;
  background-color: #0279c2;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  justify-items: center;
  transform: rotate(90deg);
  border: none;
}

.form-group {
  position: relative;
  width: 100%;
  direction: ltr;
}

label {
  display: block;
  margin-bottom: 8px;
  width: 140px;
}

.passenger-input {
  border: 1px solid royalblue;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  background: white;
  width: 100%;
}


.overlay_dialog {
  position: fixed;
  top: 0;
  background: #00000077;
  height: 100%;
  left: 0;
  width: 100%;
  display: none;
  z-index: 10005;
  /* padding-top: 100px; */
}

.dialog-header { 
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  background: #fff;
  border-bottom: 1px solid #ddd;  
}

.close-btn {
  background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.passenger-dialog {
  position: fixed;
  top: 0;
  background: #fff;
  height: 100%;
  left: 0;
  width: 100%;
  display: none;
  z-index: 10005;
}

.passenger-dialog-inner {
  background: white;
  width: 100%;
  /* border: 1px solid #ccc; */
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  padding: 16px;
  height: 100%;

  /* border-top-left-radius: 10px;
  border-top-right-radius: 10px; */
}

.group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.group span.count {
  width: 24px;
  text-align: center;
}

.group button {
  width: 28px;
  height: 28px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f0f0f0;
  cursor: pointer;
}

.passenger-summary {
  margin-top: 12px;
  font-weight: bold;
  text-align: center;
}

















.ac_results_inner_cont {
  background: white;
  width: 100%;
  /* border: 1px solid #ccc; */
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  padding: 16px;
  height: 100%;

  /* border-top-left-radius: 10px;
  border-top-right-radius: 10px; */
}



.location-results-inner {}



.item {
  position: relative;
  padding: 5px 36px 3px 10px; /* leave space for the icon on the right */
  cursor: pointer;
}

.item span {
  color:  #bbb;
  font-size: 13px;
  float: left;
}

.item::after {
  content: "";
  position: absolute;
  right: 8px;           /* distance from the right edge */
  top: 50%;
  margin-top: 3px;
  width: 22px;          /* icon size */
  height: 24px;
  background: url('/images/location.svg') no-repeat center center;
  background-size: contain;
  transform: translateY(-50%); /* vertically center */
  pointer-events: none;        /* don’t block clicks */
}


.item:hover {
  background: #eee;
}







































.cal-modal {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 10005;
  display: flex;
  flex-direction: column;
  /* padding-top: 100px; */
}

.cal-hidden {
  display: none;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

/* optional, tweak to your styles */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 4px 0 6px
}

.cal-weekdays .cal-wd {
  text-align: center;
  opacity: .85
}

.cal-weekdays .cal-wd-today {
  /* font-weight: 700;
  opacity: 1 */
}

.cal-day.cal-today {
  _font-weight: 700;
  _outline: 1px dashed rgba(0, 0, 0, .35);
}


.cal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cal-scroll-container {
  overflow-y: auto;
  padding: 12px;
  flex-grow: 1;
  background: #fff;
}

.cal-month {
  margin-bottom: 24px;
}

.cal-month-title {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: bold;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  padding: 8px 0;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #f9f9f9;
  cursor: pointer;
}

.cal-day.cal-disabled {
  background-color: #eee;
  color: #aaa;
  pointer-events: none;
}

.cal-day:hover:not(.cal-disabled) {
  background-color: #d0eaff;
}

html[dir="rtl"] .cal-header {
  flex-direction: row-reverse;
}
































table {
  width: 100%;
  padding: 0;
  margin: 0;
}

table td {
  padding: 0;
  margin: 0;
}

.card {
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  max-width: 500px;
  width: 100%;
  /* Optional: only if you want it to be responsive */
  margin: 16px 0 16px auto;
  /* Push to the right */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  /* One item per line */
  align-items: flex-start;
  /* Optional: aligns children to left inside the box */
}

.card-header {
  margin-bottom: 15px;
  width: 100%;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  margin-left: 4px;
  color: #fff;
}

.badge.fastest {
  background: #4caf50;
}

.badge.confirm {
  background: #f0c14b;
  color: #333;
}

.badge.bestseller {
  background: #d63384;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route .time-location {
  font-weight: 500;
}

.duration {
  font-size: 14px;
  color: #333;
  line-height: 25px;
  padding: 15px 45px;
}

.rating {
  /* background: #e0f2f1; */
  padding: 2px 6px;
  /* border-radius: 4px; */
  /* margin-right: 8px; */
}

.details-link {
  color: #00aaff;
  text-decoration: none;
  font-size: 14px;
}

.price-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 15px;
  border-top: 1px solid #ddd;

}

.price {
  font-size: 16px;
  font-weight: bold;
}

.book-btn {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.card_hidden {
  display: none;
}

body {
  font-family: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
}

#results_cont .card:nth-child(n+4) {
  /* display: none !important; */
}

#results_cont.show-all .card {
  /* display: flex !important; */
}

/* Overlay styling */
#imgOverlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

#imgOverlay img {
  width: 93%;
  max-width: 600px;
}






@media screen and (min-width: 701px) {

  #location_dialog {
  }

  /* styles for screen width > 700px */
  .ac_results_inner_cont {
    margin: 0 auto;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
  }

  .cal-header,
  #calendar-scroll-container {
    margin: 0 auto;
    max-height: 470px;
    /* border-radius: 10px; */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    max-width: 500px;

  }

  .cal-header {
    _display: none !important;
  }

  .passenger-dialog-inner {
    margin: 0 auto;
    max-width: 500px;
    max-height: 300px;
  }

  #passengers_ok {
    position: relative !important;
    margin-top: 50px !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
  }

  .cal-modal {
    display: block;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

}