@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* Modern genel gövde ve başlıklar */
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2563eb;
  margin-top: 32px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

form {
  background: #fff;
  padding: 32px 24px 24px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08);
  max-width: 650px;
  margin: 32px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label, select, input[type="checkbox"] {
  display: block;
  margin-bottom: 10px;
}

.checkbox-group label {
  display: inline-block;
  margin-right: 10px;
}

button {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: linear-gradient(90deg, #1247d9 2%, #3c7af7 100%);
  box-shadow: 0 6px 20px rgba(59,130,246,0.18);
}

.checkbox-tile-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Her satırda 5 kutu */
  column-gap: 0px;    /* Yatayda neredeyse bitişik */
  row-gap: 7px;
  margin-bottom: 12px;
  justify-items: center;
  align-items: center;
}

.checkbox-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 14px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(60,60,60,0.06);
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  user-select: none;
}

.checkbox-tile:has(input[type="checkbox"]:checked) {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(59,130,246,0.13);
}

.checkbox-tile:has(input[type="checkbox"]:checked) .tile-icon,
.checkbox-tile:has(input[type="checkbox"]:checked) .tile-label {
  color: #fff;
}

.checkbox-tile input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-tile .tile-icon {
  font-size: 1.2rem;
  color: #3b82f6;
  margin-bottom: 2px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 100%;
  transition: color 0.2s;
}

.checkbox-tile .tile-label {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.70rem;
  color: #222;
  font-weight: 500;
  text-align: center;
  margin-top: 2px;
  margin-bottom: 0;
  line-height: 1.1;
  width: 100%;
  word-break: break-word;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 18px;
  max-height: 28px;
  padding-left: 6px;
  padding-right: 6px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  white-space: normal;
  transition: color 0.2s;
}

label[for="use-geolocation"] {
  font-size: 1rem;
  color: #222;
  margin-bottom: 0;
  margin-top: 8px;
}

input[type="text"]#location,
button[type="submit"] {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.1rem;
}

input[type="text"]#location {
  padding: 10px 12px;
  border: 1.5px solid #c7d2fe;
  margin-bottom: 8px;
  transition: border 0.2s;
  display: block;
   width: 100% !important; /* Otomatik tamamlama kutusu da aynı genişlikte */
  max-width: 100%;
  box-sizing: border-box;
  left: 0 !important;
  right: 0;
  /* Formun pozisyonuna göre aşağıdaki satırı da ekleyebilirsin: */
  position: static !important;
}

/* Modern otomatik tamamlama kutusu ve hizalama */
.input-autocomplete-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.input-autocomplete-wrapper input[type="text"]#location {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px 8px 0 0;
  border: 1.5px solid #c7d2fe;
  padding: 10px 12px;
  font-size: 1.1rem;
  font-family: 'Poppins', Arial, sans-serif;
  margin-bottom: 0;
  background: #fff;
  z-index: 2;
  position: relative;
  display: block;
}

#location-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid #c7d2fe;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 16px rgba(59,130,246,0.10);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  overflow-y: auto;
  max-height: 220px;
  z-index: 10;
}

/* Her bir öneri satırı */
#location-suggestions li {
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid #f3f4f6;
}

#location-suggestions li:last-child {
  border-bottom: none;
}

#location-suggestions li:hover,
#location-suggestions li.active {
  background: #e0e7ff;
  color: #2563eb;
}

/* Kapsayıcı pozisyonu düzeltme */
#location {
  position: relative;
}

/* Eğer input ve suggestions aynı kapsayıcıda ise, kapsayıcıya relative ekle */
.input-autocomplete-wrapper {
  position: relative;
  width: 100%;
}

#map {
  width: 100%;
  max-width: 650px; /* Form ve container ile aynı genişlik */
  margin: 0 auto 32px auto;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(59,130,246,0.07);
  height: 350px; /* Yüksekliği ihtiyaca göre ayarlayabilirsin */
  display: block;
}

#plan-result {
  max-width: 650px;
  margin: 24px auto 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(59,130,246,0.07);
  padding: 18px 24px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  color: #222;
}

/* Modern Trip Plan görünümü */
#plan-result ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#plan-result > ul > li {
  margin-bottom: 28px;
}

.trip-category-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  margin-top: 18px;
  letter-spacing: 0.5px;
}

.trip-place-card {
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.07);
  padding: 14px 16px 10px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px solid #e0e7ff;
}

.trip-place-card a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.05rem;
}

.trip-place-card a:hover {
  text-decoration: underline;
}

.trip-place-card iframe {
  width: 100%;
  min-height: 140px;
  border-radius: 8px;
  border: none;
  margin: 0;
  margin-top: 6px;
  margin-bottom: 0;
  box-shadow: 0 1px 4px rgba(59,130,246,0.09);
}

#plan-result h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 18px;
  margin-top: 0;
  letter-spacing: 0.5px;
  text-align: center;
  border-bottom: 2px solid #e0e7ff;
  padding-bottom: 8px;
}

.download-btn {
  display: block;
  width: 100%;
  margin: 0 auto 18px auto;
  background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  padding: 14px 0;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.18rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.13);
  border: none;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.2px;
  box-sizing: border-box;
  border-radius: 8px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.1rem;
}

.download-btn:hover {
 background: linear-gradient(90deg, #1d4ed8 0%, #4a7be5 100%);
  box-shadow: 0 6px 20px rgba(59,130,246,0.18);
}

@media (max-width: 700px) {
  form, #plan-result {
    padding: 12px 4vw;
    max-width: 98vw;
  }
  .checkbox-tile-group {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0px;
    row-gap: 6px;
  }
  .checkbox-tile {
    width: 70px;
    height: 70px;
  }
  #map {
    height: 250px !important;
  }
}
/* Modern location satırı ve checkbox */
.location-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 4px;   /* Eskiden 18px veya daha fazlaydı, şimdi daha az */
  gap: 10px;
}

.modern-checkbox {
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Poppins', Arial, sans-serif;
  color: #222;
  user-select: none;
  display: flex;
  align-items: center;
}

.modern-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.modern-checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  width: 22px;
  background-color: #f3f4f6;
  border: 2px solid #c7d2fe;
  border-radius: 6px;
  transition: background 0.2s, border 0.2s;
  box-sizing: border-box;
}

.modern-checkbox input[type="checkbox"]:checked ~ .checkmark {
  background-color: #2563eb;
  border-color: #2563eb;
}

.modern-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.modern-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
  display: block;
}

.modern-checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  border-radius: 1px;
  transform: rotate(45deg);
  content: "";
  position: absolute;
}

br {
  display: none;        /* <br> etiketinin boşluk bırakmasını engelle */
}

/* Modern ve sade bir select görünümü */
#lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #f8f8f8 url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/icons/globe.svg') no-repeat right 8px center/18px 18px;
  padding-right: 32px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border 0.2s;
}
#lang-select:focus {
  border: 1.5px solid #007bff;
  outline: none;
}

.lang-btn {
  padding: 2px 4px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #f8f9fa;
  font-size: 0.93rem;
  cursor: pointer;
  color: #333;
  transition: background 0.2s, color 0.2s, border 0.2s;
  min-width: 28px;
  font-weight: 400;
  box-shadow: none;
}
.lang-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
.lang-btn:not(.active) {
  background: #f8f9fa;
  color: #333;
  border-color: #ccc;
}
.lang-btn:not(.active):hover {
  background: #e2e6ea;
  color: #222;
}

/* Küçük ve kompakt csv-info kutusu */
#csv-info {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1000;
  width: 210px;
  height: auto;
  max-width: 90vw;
  background: rgba(255,255,255,0.97);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.13);
  padding: 10px 12px 8px 12px;
  display: none;
}

#csv-info .download-btn {
  font-size: 1rem;
  padding: 4px 8px;      /* Sağ ve sol padding artırıldı */
  margin-bottom: 6px;
  color: #fff !important; /* Yazı rengi beyaz */
  background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
  border: none;
  border-radius: 6px;
  text-align: center;
  width: 100%;
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.13);
}

#csv-info .download-btn:hover {
  background: linear-gradient(90deg, #1d4ed8 0%, #4a7be5 100%);
  box-shadow: 0 6px 20px rgba(59,130,246,0.18);
}

#csv-info .csv-desc {
  font-size: 12px;
  color: #444;
  margin-top: 2px;
  line-height: 1.3;
  text-align: left;
}