#iatf-nearby-venues {
  text-align: center;
  margin: 2em auto;
  max-width: 600px;
  font-family: system-ui, sans-serif;
}

#venues-status {
  margin-bottom: 1.5em;
}

#venues-status.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner {
  border: 4px solid #eee;
  border-top: 4px solid #00612f;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 0.5em;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#postal-input {
  padding: 0.5em;
  width: 120px;
  margin-right: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#postal-submit {
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5em 1em;
  cursor: pointer;
}
#postal-submit:hover {
  background-color: #125aa0;
}

#postal-search-container {
  margin-bottom: 1em;
  display: flex;
  justify-content: flex-end;
}

.postal-search-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.postal-search-box {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

#postal-input {
  padding: 0.5em;
  width: 150px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#postal-submit {
  background-color: #00612f;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5em 1em;
  cursor: pointer;
}

#postal-submit:hover {
  background-color: #004a24;
}

#postal-error {
  color: red;
  font-size: 0.9em;
  margin-top: 0.5em;
  display: none;
}

#venues-list {
  margin-top: 1em;
}

.venue-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1em;
  margin-bottom: 1em;
  text-align: left;
  transition: transform 0.2s ease;
}

.venue-card:hover {
  transform: scale(1.02);
}

.venue-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 1em;
  border-radius: 4px;
}

.venue-info h3 {
  margin: 0;
  color: #000 !important;
  font-weight: bold !important;
  font-size: 1.2em !important;
}

.venue-links {
  margin-top: 0.5em;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.venue-link {
  color: #1976d2;
  text-decoration: none;
}

.venue-link:hover {
  text-decoration: underline;
}

#pagination {
  margin-top: 1em;
  display: flex;
  justify-content: space-between;
}

.pagination-buttons {
  font-size: 0.9em;
}

.page-btn {
  margin: 0 0.3em;
  padding: 0.4em 0.8em;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #f9f9f9;
  cursor: pointer;
  transition: background 0.2s;
  font-size: inherit;
}

.page-btn:hover {
  background: #eee;
}

.page-btn.active {
  background: #1976d2;
  color: white;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn:disabled:hover {
  background: #f9f9f9;
}

.page-ellipsis {
  padding: 0.4em 0.5em;
  color: #666;
  user-select: none;
}

.prev-next-btn {
  font-weight: 500;
}

.unit-toggle-btn {
  padding: 0.5em 1em;
  border: 1px solid #1976d2;
  border-radius: 4px;
  background: white;
  color: #1976d2;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s;
}

.unit-toggle-btn:hover {
  background: #1976d2;
  color: white;
}
