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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  width: 460px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
}

.container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.header {
  text-align: center;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}

.header h1 {
  font-size: 24px;
  color: #667eea;
}

.subtitle {
  font-size: 14px;
  color: #666;
}

.flex {
  display: flex;
  gap: 16px;
}

.form-section {
  /* margin-bottom: 20px; */
}

.input-group,
.date-group {
  margin-bottom: 14px;
}

.date-group {
  width: 50%;
}

.input-group label,
.date-group label {
  display: flex;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.text-input,
.number-input,
.date-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
  background: #f9f9f9;
}

.label-with-arrows {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.label-with-arrows label {
  margin-bottom: 0;
}

.date-arrows-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.date-arrows-container .date-arrow {
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #667eea;
  transition: all 0.2s;
  padding: 0;
}

.date-arrows-container .date-arrow:hover {
  background: #e0e0e0;
  color: #764ba2;
}

.date-arrows-container .date-arrow:active {
  background: #d0d0d0;
}

.text-input:focus,
.number-input:focus,
.date-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
}

.text-input-disabled {
  background: #f0f0f0;
  cursor: not-allowed;
}

/* .text-input text-transform removed to allow city names in autocomplete */

.autocomplete-wrapper {
  position: relative;
  width: 50%;
}

.input-with-clear {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-clear .text-input {
  padding-right: 36px;
}

.clear-button {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
}

.input-with-clear:hover .clear-button,
.input-with-clear:focus-within .clear-button {
  opacity: 1;
  pointer-events: all;
}

.clear-button:hover {
  background: #f0f0f0;
  color: #667eea;
}

.clear-button:active {
  background: #e0e0e0;
}

.swap-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px;
  width: auto;
  min-width: 40px;
  margin-top: 20px;
}

.swap-button {
  background: #0000;
  border: none;
  width: 36px;
  border-radius: 16px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #667eea;
  transition: all 0.2s;
}

.swap-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.swap-button:active {
  transform: translateY(0);
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #667eea;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: -2px;
}

.autocomplete-dropdown.show {
  display: block;
}

.autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background-color: #f5f5f5;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-code {
  font-weight: 600;
  color: #667eea;
  font-size: 14px;
}

.autocomplete-location {
  font-size: 12px;
  color: #666;
  text-align: right;
}

.number-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.number-input {
  -moz-appearance: textfield;
  padding-right: 60px;
}

.number-input::-webkit-outer-spin-button,
.number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-arrow {
  position: absolute;
  right: 4px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  width: 24px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #667eea;
  transition: all 0.2s;
  padding: 0;
}

.number-arrow:hover {
  background: #e0e0e0;
  color: #764ba2;
}

.number-arrow:active {
  background: #d0d0d0;
}

.number-arrow-up {
  top: 2px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.number-arrow-down {
  bottom: 2px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

.radio-group {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 0;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}

.radio-label span {
  user-select: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}

.checkbox-label span {
  user-select: none;
}

.save-button-group {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  /* position: fixed; */
  /* left: 70% */
}

.btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-weight: 600;
  color: white;
}

.btn-disabled {
  background: linear-gradient(135deg, #a2aacc 0%, #9884ad 100%);
  color: rgb(0, 0, 0);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #12f2a7;
  color: #171542;
  border-bottom: 4px solid #10855e;
}


.btn-secondary:hover:not(:disabled) {
  background: #0db980;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.status-message {
  min-height: 20px;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s;
}

.status-message.success {
  background: #d4edda;
  color: #155724;
}

.status-message.warn {
  background: #f8df65;
  color: #4e4411;
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  font-weight: bold;
}

.info-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
  margin-top: 16px;
}

.info-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  font-weight: bold;
}

.site-list {
  list-style: none;
  font-size: 11px;
  color: #888;
  padding-left: 0;
  display: flex;
  flex-direction: column;
}

#site-list-container{
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
}

.site-list li {
  width: 160px;
  padding: 4px 0;
  padding-left: 16px;
  background-color: #6575b7;
  border: none;              
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  color: white;              
  padding: 10px 14px;        
  text-align: center;        
  text-decoration: none;     
  display: inline-block;     
  margin: 4px 2px;           
  cursor: pointer;           
  font-size: 16px;           
  border-bottom: 3px solid #49356f;   
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.site-list li:hover {
  background-color: #6270b0; /* Darker background on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(54, 66, 118, 0.4);
}

.site-list li a {
  text-decoration: none;
  color: white;
}

/* .site-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
} */

#searchBtn {
  display: none;
}

#hotelsNearAirportText {
  font-size: 14px;
}

.divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 16px 0;
}