/* Form Layout */
#ticketvort-search-form {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 0;
  box-sizing: border-box;
}

/* Inputs + Buttons Row */
.ticketvort-row-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

/* Inputs and Buttons */
.ticketvort-row-top input,
.ticketvort-row-top button {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  flex: 1; /* equal width */
  min-width: 0; /* prevents overflow */
  box-sizing: border-box;
}

/* Search button styling */
.ticketvort-row-top button[type="submit"] {
  background-color: #e63946;
  color: white;
  border: none;
}

/* Clear button styling */
#ticketvort-clear {
  background-color: #777;
  color: white;
  border: none;
}

/* Results */
#ticketvort-results {
  margin-top: 20px;
}

.ticketvort-result {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ticketvort-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.ticketvort-price {
  font-weight: bold;
  margin: 10px 0;
}

/* View Event button */
.ticketvort-link {
  display: inline-block;
  padding: 10px 15px;
  background-color: #e63946;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.ticketvort-link:hover {
  background-color: #c92c3c;
}

/* Responsive: stack vertically on mobile */
@media (max-width: 768px) {
  .ticketvort-row-top {
    flex-direction: column;
  }

  .ticketvort-row-top input,
  .ticketvort-row-top button {
    width: 100%;
  }
}


/* Make sure the native date picker icon shows */
input[type="date"] {
  position: relative;
  -webkit-appearance: textfield; /* ensures icon shows on iOS Safari */
  appearance: auto; /* resets appearance */
  padding-right: 2.5rem; /* space for the icon */
  cursor: pointer;
}

/* Show the calendar icon for Webkit browsers (Chrome, Safari, Edge, mobile) */
input[type="date"]::-webkit-calendar-picker-indicator {
  display: block;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 1;
}

/* For Firefox (it hides the icon by default) */
input[type="date"]::-moz-calendar-picker-indicator {
  display: block;
  cursor: pointer;
}
