
* {
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}



.filters-wrapper {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

/* Toggle button */
.filters-toggle {
  width: 100%;
  background: white;
  border: none;
  border-radius: 18px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.filters-toggle:hover {
  background: #f6f9f8;
}

.filters-icon {
  font-size: 1.2rem;
}

.filters-label {
  flex: 1;
  margin-left: 0.6rem;
  text-align: left;
  font-size: 1rem;
  color: var(--text);
}

.chevron {
  transition: transform 0.35s ease;
}

/* Panel animation */
.filters {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  background: white;
  border-radius: 0 0 22px 22px;
  padding: 0 1.6rem;
}

.filters.open {
  max-height: 2000px; /* large enough for content */
  opacity: 1;
  padding: 1.6rem;
}

/* Chevron rotation */
.filters.open + .chevron,
.filters-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.filters h2 {
  margin-bottom: 0.4rem;
}

.filters-intro {
  color: var(--muted);
  margin-bottom: 1.6rem;
  max-width: 600px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.filter-group {
  border-bottom: 1px solid #e3ece9;
  padding: 0.5rem 0;
}

.filter-group-header {
  width: 100%;
  background: none;
  border: none;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1b4332;
  cursor: pointer;
}

.filter-group-header-text {
  display: flex; 
  flex-direction: column; 
  text-align: left; 
  align-items: flex-start; 
  justify-content: flex-start;
}

.filter-group-instructional-text {
  font-size: 0.7rem;
}

.filter-group-header .chevron {
  transition: transform 0.25s ease;
}

.filter-group.collapsed .chevron {
  transform: rotate(-90deg);
}

.filter-group-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.filter-group.expanded .filter-group-content {
  max-height: 500px; /* large enough for pills */
  opacity: 1;
  margin-top: 0.5rem;
}

.filter-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.filter-group select {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #dfe8e6;
  background: #f6f9f8;
  color: var(--text);
  cursor: pointer;
}

.filter-group h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: left;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f0f6f5;
  border: 1px solid #dfe8e6;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease, border 0.2s ease;
}

.pill-group input {
  display: none;
}

.pill-group label:has(input:checked) {
  background: #e0f0ed;
  border-color: var(--primary);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.checkbox-filter {
  font-family: 'nunito';
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
}

.number-filter {
  font-family: 'nunito';
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 20px;
}

.number-filter input {
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5%;
  font-size: 1.1rem;
  border-color: var(--primary);
  text-align: center;
}

.datetime-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.datetime-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.datetime-field label {
  color: var(--muted);
}

.datetime-field input {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #d8e2dc;
  font-family: inherit;
}

.sort-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}
.sort-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  color: var(--text);
}

.sort-bar select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #d8e2dc;
  background: #fff;
}

.clear-filters-btn {
  padding: 6px 12px;
  border-radius: 20px;
  height: 2.5rem;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s ease;
  font-family: 'poppins';
}

.clear-filters-btn:hover {
  background: #f5f5f5;
}


.team-section {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 2rem;
  text-align: center;
}

.team-section h1 {
  font-family: 'poppin';
  font-size: 3.5rem;
  line-height: 3rem;
  margin-bottom: 0.5rem;
}

.intro {
  max-width: 600px;
  margin: 2rem auto 3rem;
  font-family: 'nunito';
  color: var(--muted);
}

.team-grid {
  display: grid;
  justify-items: center; /* horizontal alignment */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.booking-team-card {
  background: var(--card-bg);
  max-width: 450px;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.4s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.booking-team-card-content {
  flex: 1;
}

.booking-team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.booking-team-card img {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  cursor: pointer;
}

.booking-team-card h3 {
  margin: 0.5rem 0 0.2rem;
  font-family: 'nunito';
}

.booking-team-card p {
  font-family: 'atkinson';
}

.role {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.card-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.card-actions button {
  width: 50%;
}

.booking-team-card button {
  background: var(--orange);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-family: 'poppins';
}

.booking-team-card button:hover {
  background: #5c9991;
  transform: scale(1.05);
}

.no-more-results {
  text-align: center;
  margin: 2rem 0;
  color: var(--muted);
  display: none;
}

/* Modal */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(52, 70, 70, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 99;
}

.booking-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.booking-modal {
  background: white;
  border-radius: 22px;
  padding: 2.5rem;
  max-width: 650px;
  width: 90%;
  text-align: center;
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: all 0.45s cubic-bezier(.2,.8,.2,1);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 99;
}

.booking-modal-avatar {
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.booking-modal-avatar-small {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.booking-modal-bio {
  margin-bottom: 1.8rem;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: break-word;
}

.booking-modal-bio p {
  margin-bottom: 0.5rem;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Sections */
.booking-modal-section {
  text-align: center;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.booking-modal-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
  text-align: center;
  font-family: 'nunito';
}

/* Interests tags */
.tag-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #e6f1ef;
  color: var(--text);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Gallery */
.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  padding-top: 15px;
}

.gallery img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Contact */
.contact-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.6rem;
}

.contact-links a {
  font-size: 2rem;
  text-decoration: none;
  color: #5c9991;
  transition: transform 0.2s ease;
}

.contact-links a:hover {
  transform: scale(1.1);
}

.booking-modal-overlay.active .booking-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.booking-modal img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.booking-modal h2 {
  margin-bottom: 0.2rem;
}

.booking-modal h4 {
  color: var(--muted);
  margin-bottom: 0.25rem;
  margin-top: 0.25rem;
}

.booking-modal p {
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  border: none;
  background: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--muted);
}

/* Image Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(52, 70, 70, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2000;
}

.image-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: lightboxIn 0.35s ease;
}

/* Gentle zoom-in */
@keyframes lightboxIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Make images feel clickable */
.booking-modal-avatar,
.gallery img {
  cursor: zoom-in !important;
}

/* Tablet Responsive Styles */
@media screen and (min-width: 768px) and (max-width: 1366px) {
  .card-actions {
    flex-direction: column;
  }
  .card-actions button {
    width: 75%;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .card-actions {
    flex-direction: column;
  }
  .card-actions button {
    width: 50%;
  }

  .filters.open {
    max-height: 2500px; /* large enough for content */
  }
}