/* Admin panel (/admin/) -- reuses the site's navy/gold theme variables so it
   doesn't look like a bolted-on tool, but is laid out for data/forms rather
   than marketing content. */

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(1, 43, 68, 0.04);
  border-radius: 10px;
  margin-bottom: 32px;
}
.admin-topbar span {
  color: #333;
  font-size: 0.95rem;
}
.admin-topbar a {
  color: var(--wdtBodyBGColor, #012b44);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--wdtPrimaryColor, #c8aa6e);
}

.admin-section {
  margin-bottom: 56px;
}
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-section-head h2 {
  margin: 0;
  color: var(--wdtBodyBGColor, #012b44);
}

.admin-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  border: 1px solid var(--wdtPrimaryColor, #c8aa6e);
  background: transparent;
  color: var(--wdtPrimaryColor, #a4802f);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.admin-btn:hover {
  background: var(--wdtPrimaryColor, #c8aa6e);
  color: var(--wdtBodyBGColor, #012b44);
}
.admin-btn-primary {
  background: var(--wdtPrimaryColor, #c8aa6e);
  color: var(--wdtBodyBGColor, #012b44);
}
.admin-btn-primary:hover {
  opacity: 0.9;
  background: var(--wdtPrimaryColor, #c8aa6e);
}
.admin-btn-danger {
  border-color: rgba(200, 60, 60, 0.4);
  color: #a02020;
}
.admin-btn-danger:hover {
  background: #a02020;
  color: #fff;
}
.admin-btn-small {
  padding: 7px 16px;
  font-size: 0.85rem;
}

.admin-alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.admin-alert-error {
  background: rgba(200, 60, 60, 0.08);
  border: 1px solid rgba(200, 60, 60, 0.25);
  color: #7a2020;
}
.admin-alert-success {
  background: rgba(60, 140, 90, 0.1);
  border: 1px solid rgba(60, 140, 90, 0.3);
  color: #1f5c38;
}

/* Tables: horizontal scroll on narrow screens rather than squeezing columns
   unreadably thin. */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(1, 43, 68, 0.1);
  border-radius: 10px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}
.admin-table th,
.admin-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(1, 43, 68, 0.08);
  white-space: nowrap;
}
.admin-table th {
  background: rgba(1, 43, 68, 0.04);
  color: var(--wdtBodyBGColor, #012b44);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table td.admin-table-wrap-text {
  white-space: normal;
  max-width: 260px;
}
.admin-empty-row td {
  text-align: center;
  color: #777;
  padding: 28px;
}
.admin-status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--wdtPrimaryColor, #c8aa6e);
  color: var(--wdtBodyBGColor, #012b44);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Forms */
.admin-form {
  max-width: 640px;
}
.admin-form-wide {
  max-width: 100%;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.admin-form label {
  display: block;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
}
.admin-form label span.admin-required {
  color: #a02020;
}
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="tel"],
.admin-form input[type="date"],
.admin-form input[type="password"],
.admin-form select,
.admin-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(1, 43, 68, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #222;
  box-sizing: border-box;
}
.admin-form textarea {
  resize: vertical;
  min-height: 90px;
}
.admin-map-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 400;
  color: #888;
}

/* Free OpenStreetMap-based place search dropdown (assets/js/aeon-geocode-autocomplete.js). */
.aeon-geocode-suggestions {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  background: #fff;
  border: 1px solid rgba(1, 43, 68, 0.15);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(1, 43, 68, 0.15);
  max-height: 240px;
  overflow-y: auto;
  margin-top: 4px;
}
.aeon-geocode-suggestions.is-open {
  display: block;
}
.aeon-geocode-suggestion {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 400;
  color: #222;
  cursor: pointer;
  border-bottom: 1px solid rgba(1, 43, 68, 0.06);
}
.aeon-geocode-suggestion:last-child {
  border-bottom: none;
}
.aeon-geocode-suggestion:hover,
.aeon-geocode-suggestion.is-active {
  background: rgba(200, 170, 110, 0.15);
}
.admin-form-actions {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-login-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid rgba(1, 43, 68, 0.1);
  border-radius: 12px;
}

.admin-card {
  border: 1px solid rgba(1, 43, 68, 0.1);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 28px;
}
.admin-card h2 {
  margin-top: 0;
  color: var(--wdtBodyBGColor, #012b44);
}

.admin-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--wdtPrimaryColor, #c8aa6e);
}
.admin-timeline li {
  position: relative;
  padding: 4px 0 22px 26px;
}
.admin-timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wdtPrimaryColor, #c8aa6e);
}
.admin-timeline-date {
  font-size: 0.82rem;
  color: #777;
}
.admin-timeline-status {
  font-weight: 700;
  color: var(--wdtBodyBGColor, #012b44);
}

@media (max-width: 767px) {
  .admin-topbar { flex-direction: column; align-items: flex-start; }
  .admin-login-card { padding: 28px 20px; }
  .admin-form-actions { flex-direction: column; }
  .admin-form-actions .admin-btn { width: 100%; text-align: center; }
  .admin-card { padding: 20px; }
}
