
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.form-container {
  display: flex;
  justify-content: center;
}


.spoj-container {
  display: inline-block;
  background: #ffeca1 !important;
  width: 95vw;
  max-width: 500px;
  min-width: 280px;
  padding: 1.5em;
  box-sizing: border-box;
  color: #fff;
}

.hidden {
  display: none !important;
}

.vyhledavac-form {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}


.input {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 6px;
}


.vyhledavac-Input {
  border-radius: 13px;
  height: 2.8em;
  border: none;
  padding: 0 0.9em;
  font-size: 1em;
  font-weight: 500;
  color: #2b2b2b;
  background-color: #fff;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}


.switch-btn {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  user-select: none;
  border-radius: 50%;
}


.switch-btn img {
  max-width: 70%;
  max-height: 70%;
}


#submit-btn,
.submitBtn {
  width: 100%;
  height: 40px;
  align-self: center;
  background: #ee0000;
  color: #fff;
  font-size: 16px !important;
  padding: 0.9em;
  font-size: 1em;
  border: none;
  border-radius: 20px !important;
  font-weight: 700 !important;
}

#submit-btn:hover,
.submitBtn:hover {
  background: #810000;
}


input,
input[type="text"],
select,
input:focus,
input:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.dateiInput,
.timeInput {
  flex: 1;
}

input[type="time"],
#myDate {
  border-radius: 13px;
  border: none !important;
  font-size: 1em;
  padding: 0 10px;
  color: #222;
  background-color: #fff;
  height: 48px;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}


.user-location-icon {
  background: none;
  border: none;
}


.pulse-marker {
  width: 16px;
  height: 16px;
  background: #4285f4; 
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.6);
}


#myDate {
  width: 100%;
  height: 48px;
}


.dateSelection {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 46px;
  gap: 12px;
}


.search-items-container {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  max-height: 150px;
  background-color: #fff;
  border-radius: 13px;
  border: 1px solid #ccc;
  width: 100%;
  transition: all 0.2s ease-in-out;
  padding: 0.3em 0;
}


.search-items {
  list-style: none;
  margin: 0;
  padding: 0;
}


.search-items li {
  padding: 0.6em 1em;
  background-color: transparent;
  color: #333;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #eee;
}


.search-items li:hover {
  background-color: #ffe5e5;
  color: #b10000;
}


input,
select,
option {
  width: 100%;
  min-height: 44px;
  border-radius: 13px !important;
}

.headers {
  width: auto;
  max-width: 500px;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 13px;
}

.header-container {
  cursor: pointer;
  width: calc(46.5%);
  background: #ffffff;
  height: 40px;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-container p {
  font-weight: bold;
  color: black;
  margin: 0 !important;
}


#selected-header {
  background: #ffeca1;
}
#selected-header p {
  color: #000000;
}

label {
  color: #000;
  font-weight: 600;
}

.loading {
  width: 48px;
  height: 48px;
  border: 8px solid #fff;
  border-top-color: #ee0000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 15px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.dateInput,
.timeInput {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}


#toast-container {
    position: fixed;
    bottom: 30px; 
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    color: #333;
    padding: 15px 20px;
    border-radius: 13px; 
 
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    font-family: "Hradec-Regular", sans-serif; 
    border-left: 6px solid #e30613;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


.toast-error { border-left-color: #e30613; } 
.toast-success { border-left-color: #2ecc71; } 
.toast-info { border-left-color: #ffdf00; }


.toast-icon {
    font-size: 20px;
    font-weight: bold;
}

.toast-error .toast-icon { color: #e30613; }
.toast-info .toast-icon { color: #d4b800; }


@media screen and (min-width: 300px) {
  .inputs {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .input-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
  .swap-container {
    display: flex;
    justify-content: center;
  }
  .desktop {
    display: none;
  }
}

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

  .mobile {
    display: none;
  }
  .input-container {
    width: 100%;
  }
  .inputs {
    flex-direction: row;
  }
  .desktop {
    display: inline;
  }
  .spoj-container {
    width: 100%;
    max-width: 100vw;
    padding: 1.5em 2em;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
  }
  .separator-line {
    height: 35px;
    background: gray;
    width: 2px;
    opacity: 0.4;
  }

  .switch-btn {
    transform: rotate(90deg);
    min-width: 44px;
  }
  .input label {
    margin: 0 10px;
  }


  .vyhledavac-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
  }


  .input {
    flex: 1;
    background-color: white;
    flex-direction: row;
    align-items: center;
    border-radius: 13px;
    padding: 2px 0 2px 5px;
  }


  input[type="text"] {
    border-left: solid rgb(183, 181, 181) 2px;
    border-radius: 0;
  }


  .headers {
    width: 100vw;
    max-width: calc(100%);
  }


  .header-container {
    width: calc(49.5%);
  }

  .dateSelection {
    flex: 0 0 auto;
    display: flex;
    gap: 0.8em;
    align-items: center;
    width: auto;
  }


  #submit-btn,
  .submitBtn {
    width: auto;
    white-space: nowrap;
  }


  .main-container {
    width: 100%;
  }
  .form-container {
    width: 100%;
  }
}
