/* leaflet map + filters */

#map {
  width: 100%;
  height: 440px;
}

.alumni-map-container {
  display: flex;
}

.alumni-filters label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-initial-icon div {
  background: #00b0b9;
  color: #fff;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#sidebar {
  width: 300px;
  min-width: 200px;
  max-width: 350px;
  padding: 20px;
  background: #f1f1f1;
  border-right: 1px solid #ddd;
}

#map-user-popup {
  transition: transform 0.2s;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

#map-user-popup .close-btn {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  background: none;
  border: none;
}

#map-user-popup .map-user-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: #285780;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

#user-list {
  background: #fff;
}

.sidebar-user {
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.sidebar-user:hover,
.sidebar-user.active {
  background: #e9ecef;
}

.sidebar-user {
  padding: 6px 12px;
}

.map-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.map-user-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #00b0b9;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
}

#map-user-popup {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-width: 900px;
  width: 100%;
  border-top: 1px solid #ddd;
  padding: 1.5rem;
  font-size: 16px;
  border-radius: 12px;
}

img.leaflet-marker-icon {
  border-radius: 50%;
  object-fit: cover;
}

#show-filters-link,
#clear-filters-link {
  display: flex;
  align-items: center;
  max-width: max-content;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 4px;
  text-decoration: none;
}

#clear-filters-link {
  color: #ef233c;
}

#show-filters-link {
  color: #285780;
  border-color: #285780;
  border: 1px solid #285780;
}

#show-filters-link:hover,
#show-filters-link.active {
  color: #fff;
  background: #285780;
  transition: all 0.3s ease;
}

#show-filters-link svg,
#clear-filters-link svg {
  width: 16px;
  height: 16px;
}

#show-filters-link svg,
#clear-filters-link svg {
  fill: #285780;
}

#clear-filters-link svg {
  fill: #ef233c;
}

#show-filters-link:hover svg,
#show-filters-link.active svg {
  fill: #fff;
}

@media (max-width: 768px) {
  .alumni-map-container {
    flex-direction: column;
  }

  #map {
    flex: 0 auto !important;
  }

  #sidebar {
    width: 100%;
    max-width: 100%;
  }
}

/* registration page */

.alumni-registration-container {
  max-width: 600px;
  margin: 2em auto;
  padding: 2em;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.alumni-registration-form h2 {
  margin-bottom: 1em;
  text-align: center;
}

.alumni-registration-form h3 {
  margin: 1.5em 0 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #eee;
}

.alumni-registration-form p {
  margin-bottom: 1em;
}

.alumni-registration-form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.alumni-registration-form .input,
.alumni-members #user-search {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alumni-form .uni-save-btn,
.alumni-form .uni-logout-btn,
.alumni-form .uni-add-btn {
  padding: 10px 20px !important;
  font-size: 16px;
  display: flex;
  margin-top: 20px;
  transition: all 0.2s ease;
  border: 1px solid !important;
}

.alumni-form .uni-save-btn,
.alumni-form .uni-save-btn:focus {
  background: #285780;
  color: #fff;
  border-color: #285780;
}

.alumni-form .uni-add-btn,
.alumni-form .uni-add-btn:focus {
  background: #fff;
  color: #00b0b9;
  border-color: #00b0b9;
}

.alumni-form .uni-add-btn:hover {
  background: #fff;
  color: #00b0b9;
}

.alumni-form .uni-save-btn:hover {
  background: #285780;
  color: #fff;
}

.alumni-form .uni-save-btn:hover,
.alumni-form .uni-logout-btn:hover,
.alumni-form .uni-add-btn:hover {
  transform: translateY(-4px);
}

span.required {
  color: red;
}

.flatpickr-current-month {
  display: flex !important;
}

/* alumni single page */

.alumni-single,
.alumni-archive {
  margin: 4rem auto;
  max-width: 1280px;
  padding: 0 2rem;
}

.alumni-single ul,
.alumni-single li {
  list-style: none;
  padding: 0;
}

.alumni-single label {
  font-weight: bold;
}

.skills-and-industries li,
.other-activities li,
.collabs li {
  margin-left: 2rem;
  list-style: disc;
}

.alumni-edit-form input,
.alumni-bio textarea {
  width: 100% !important;
  padding: 8px !important;
  margin: 5px 0 !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

.alumni-edit-form .avatar-section {
  margin-bottom: 20px;
}

.alumni-edit-form .avatar-section img,
img.avatar-200 {
  display: flex;
  margin-bottom: 10px;
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
}

.avatar-placeholder {
  display: flex;
  background: #00b0b9;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 50%;
}

.avatar-placeholder h1 {
  font-size: 120px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.alumni-single .avatar-placeholder h1 {
  font-size: calc(200px / 2);
}

.alumni-single h2 {
  margin-top: 2rem;
}

.alumni-edit-form .form-submit {
  margin-top: 20px;
}

.form-submit .uni-save-btn {
  max-width: max-content;
}

.notice {
  padding: 10px;
  margin: 20px 0;
  border-radius: 4px;
}

.notice-success {
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  color: #3c763d;
}

.notice-error {
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  color: #a94442;
}

.description {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

/* faculty and other faculty */

.faculty-info-container,
.other-faculty-info-container {
  margin-bottom: 20px;
}

.faculty-entry,
.other-faculty-entry {
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  position: relative;
}

.remove-faculty,
.remove-other-faculty {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #dc3545 !important;
  cursor: pointer;
}

.remove-faculty:hover,
.remove-other-faculty:hover {
  text-decoration: underline !important;
}

#add-faculty,
#add-other-faculty {
  margin-top: 10px;
}

.faculty-list,
.other-faculty-list {
  list-style: none;
  padding-left: 20px;
  margin: 10px 0;
}

.faculty-list li,
.other-faculty-list li {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.dual-education input[type="checkbox"] {
  margin: 0 !important;
  max-width: max-content;
}

/* alumni archive page */

.alumni-archive .avatar-placeholder h1 {
  font-size: calc(75px / 2);
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.alumni-member {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.alumni-member-upper {
  margin-bottom: 1rem;
}

.alumni-member:hover {
  transform: translateY(-5px);
}

.alumni-member a {
  text-decoration: none;
  color: inherit;
  display: block;
  max-width: max-content;
}

.alumni-member h3 {
  margin: 1rem 0;
  color: #333;
}

.alumni-member .contact-info {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.alumni-member .contact-info a {
  text-decoration: underline;
  color: #285780;
}

.alumni-member .contact-info a:hover {
  text-decoration: none;
}

.alumni-member .learn-more {
  padding: 0.5rem 1rem;
  background: #285780;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.2s;
}

.alumni-member .learn-more:hover {
  background: rgb(60, 115, 163);
}

/* select2 */

.new-tag-hint {
  color: #666;
  font-size: 0.9em;
  font-style: italic;
}

.new-tag-option {
  color: #2271b1;
}

.select2-results__option--highlighted .new-tag-hint {
  color: rgba(255, 255, 255, 0.8);
}

.select2-container {
  margin-bottom: 12px !important;
}

.select2-selection:not(.select2-selection--multiple) {
  min-height: 43px !important;
}

.select2-selection__clear,
.select2-selection__arrow {
  transform: translateY(-50%) !important;
  top: 50% !important;
  position: absolute !important;
}

.select2-selection__clear {
  padding: 0 !important;
  right: 10px !important;
}

.select2-selection:not(.select2-selection--multiple)
  .select2-selection__rendered {
  padding: 6px 12px !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color: #ddd !important;
  border-radius: 4px !important;
}

.select2-container--default .select2-selection--multiple {
  padding: 9px 12px !important;
}

.select2-search__field {
  line-height: 1 !important;
}

/* thank you page */

.ty-page-alumni #content {
  margin: 4rem auto;
  max-width: 1280px;
  padding: 0 2rem;
}

.ty-page-alumni #content h1 {
  margin: 0 0 1rem 0;
  padding: 0;
}

@media (max-width: 768px) {
  .ty-page-alumni #content {
    padding: 0 1rem;
  }
}
