/* Global Box-Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Hesaplanan Tutar Stili */
.fare-result span {
  font-size: 26px;
  background-color: #0d2eed;
  user-select: all;
  padding: 10px;
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* Google Maps InfoWindow için */
.gm-style-iw {
  flex-direction: row-reverse !important;
}

/* Taksimetre Hesapla Butonu */
#calculateFare {
  background: linear-gradient(90deg, #000, #333);
  color: #fff;
  width: 93%;
  padding: 18px;
  font-size: 19px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1px;
}

/* Genel Sayfa Stilleri */
body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #e5e9ec;
  color: #333;
}

/* Container genel stil */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header & Plan-Journey Bölgesi */
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.logo img {
  max-width: 150px;
  margin-bottom: 30px;
  float: left;
}

/* Yolculuk planlama alanı */
.plan-journey .journey-container {
  position: fixed;
  bottom: 5px;               /* Alttan 5px boşluk */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  margin: 0;
  z-index: 1000;
  background: white;
  padding: 10px 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* Yolculuk Etiketi */
.journey-label {
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

/* Plan-Journey Bölgesi */
.plan-journey {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Journey Container */
.journey-container {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  background-color: #efeff7;
  margin-bottom: 10px;
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
  margin-bottom: 10px;
}

/* Input alanları */
.input-wrapper input {
  width: 93%;
  padding: 18px;
  font-size: 18px;
  border: 1px solid #000;
  border-radius: 10px;
  margin-bottom: 1px;
}

/* Clear Button */
.clear-btn {
  position: absolute;
  right: 30px;
  top: 45%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 45px;
  display: none;
}

.input-wrapper input:not(:placeholder-shown),
.input-wrapper input:not(:empty) {
  padding-right: 40px;
}

.input-wrapper input:not(:placeholder-shown) + .clear-btn,
.input-wrapper input:not(:empty) + .clear-btn {
  display: block;
}

/* Find Location Button */
.find-location-btn {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  max-height: 100%;
  max-width: 40px;
}

/* Fixed Destination Marker Overlay */
.fixed-destination-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  max-width: 40px;
  max-height: 40px;
}

/* Responsive harita placeholder: Mobilde statik arka plan resmi */
@media (max-width: 768px) {
  #map {
    background: url('images/static_map_mobile.jpg') no-repeat center center;
    background-size: cover;
  }
}

/* Genel Buton Stilleri */
button {
  padding: 10px 20px;
  background-color: #fff;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #31b403;
}

button.full-width {
  width: 100%;
}

/* Sonuç ve Liste Alanları */
.result-section {
  margin: 20px 0;
  text-align: center;
}

.taxi-stand-item,
.luxury-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
}

.stand-logo,
.luxury-logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.stand-info,
.luxury-info {
  flex: 1;
}

.stand-fare,
.luxury-fare {
  font-size: 18px;
  display: flex;
  align-items: center;
}

.stand-fare img,
.luxury-fare img {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #000;
}



.taxi-stand-item:last-child, .luxury-item:last-child {
  border-bottom: none;
}

.stand-logo-container, .luxury-logo-container {
  flex: 0 0 80px;
  margin-right: 10px;
}

.stand-logo, .luxury-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.stand-details, .luxury-details {
  flex: 1;
}

.stand-name, .luxury-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.stand-arrival, .luxury-arrival {
  font-size: 14px;
  color: #286df4;
  margin-bottom: 22px;
}

.stand-contacts, .luxury-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-phone img, .contact-whatsapp img {
  width: 24px;
  height: 24px;
}

.contact-button {
  margin-right: 5px;
}


.stand-fare img, .luxury-fare img {
  width: 24px;
  height: 24px;
}

.taxi-stands, .luxury-vehicles {
  position: fixed;
  top: 20px;                     /* Sayfanın tepesinden 20px aşağıda konumlandırmak için */
  left: 50%;                     /* Görüntü alanının ortasına dayar */
  transform: translateX(-50%);   /* Kendi genişliğinin yarısı kadar sola kaydırır */
  width: 100%;
  max-width: 600px;

  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  margin: 187px 0;                /* Üst-alt 15px boşluk */
}

/* Toast Stili */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.toast.hide {
  opacity: 0;
}

/* Görsel fallback (kırık resim yerine yedek ikon) */
img[data-fallback] {
  content: attr(data-fallback);
  onerror: this.onerror=null;this.src=this.getAttribute('data-fallback');
}
