/* Category Filter Styles */
.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px 0;
}

.category-btn {
  padding: 12px 24px;
  background-color: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 50px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-btn:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

.category-btn.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(44, 85, 146, 0.25);
}

.category-btn i {
  font-size: 1.1rem;
}

/* Search & Filter */
.filter-buttons {
  margin-bottom: 20px;
}
.filter-buttons button {
  margin-right: 10px;
  padding: 8px 15px;
  border: none;
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}
.filter-buttons button:hover {
  background-color: #45a049;
}
.table-row {
  display: flex;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.search-filter {
  background: #fff; /* Clean white background */
  border-radius: 12px; /* Smooth corners */
  padding: 20px 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer shadow */
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 20px;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: none; /* Remove extra shadow */
}

.search-box input:focus {
  border-color: #2c5592; /* Highlight on focus */
  outline: none;
  box-shadow: 0 0 8px rgba(44, 85, 146, 0.2);
}

.filter-dropdown {
  min-width: 180px;
  position: relative;
}

.filter-dropdown select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-dropdown select:hover {
  border-color: #2c5592;
}

.filter-dropdown:after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #7f8c8d;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .search-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

/* Table Styles */
.coaches-table {
  width: 100%;
  background: var(--color-bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  display: table;
}

.table-header {
  display: table-row;
  background: var(--color-primary-light);
  color: var(--color-text-light);
  font-weight: 600;
}

.table-header-cell {
  display: table-cell;
  padding: 18px 15px;
  text-align: left;
  border-bottom: 2px solid var(--color-primary);
}

.table-row {
  display: table-row;
  transition: background 0.25s;
}

.table-row:nth-child(even) {
  background-color: #f9fbff;
}

.table-row:hover {
  background-color: #eef4ff;
}

.table-cell {
  display: table-cell;
  padding: 15px;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}

/* Coach info */
.coach-image {
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f2f2f2; /* fallback color */
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills 120x80, crops if needed */
  object-position: center; /* keeps image centered */
}

.coach-name {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.coach-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.coach-seats {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}
.coach-seats-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.coach-seats-layout svg {
  width: 100px; /* perfect fixed width */
  height: 50px; /* consistent height */
  display: block;
}

.mobile-coach-seats-layout svg {
  width: 60px;
  height: 30px;
  display: block;
}
/* Features */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature {
  background: #f0f6ff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.feature:hover {
  background: #e2ecff;
}

/* Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.view-photos,
.book-now {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.view-photos {
  background: var(--color-primary-light);
  color: var(--color-text-light);
}

.view-photos:hover {
  background: var(--color-primary);
}

.book-now {
  background: var(--color-secondary);
  color: var(--color-text-light);
}

.book-now:hover {
  background: var(--color-secondary-light);
}
.photo-gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: row; /* two columns */
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999;
}

/* Left thumbnails column */
.photo-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 100%;
  width: 120px; /* fixed width for thumbnails */
  margin-right: 20px;
  padding-right: 5px;
}

.photo-gallery-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.photo-gallery-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.active-thumb {
  border-color: #1e90ff;
  box-shadow: 0 0 10px #1e90ff;
}

/* Right main image column */
.photo-gallery-main {
  flex: 1; /* take remaining space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.photo-gallery-img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s;
}

.photo-gallery-img:hover {
  transform: scale(1.02);
}

/* Navigation buttons inside main image */
.photo-gallery-nav {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.photo-gallery-btn {
  background: rgba(30, 144, 255, 0.7);
  color: #fff;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 18px;
  transition: background 0.3s, transform 0.2s;
}

.photo-gallery-btn:hover {
  background: rgba(30, 144, 255, 1);
  transform: scale(1.05);
}

/* Close button */
.photo-gallery-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 1000; /* ensure it’s above other elements */
}

.photo-gallery-close:hover {
  color: #ff4c4c;
  transform: scale(1.3);
}

/* Responsive layout */
@media (max-width: 768px) {
  .filter-dropdown{
    width: 90%;
  }
  .photo-gallery-overlay {
    flex-direction: column;
    padding: 10px;
  }

  .photo-gallery-thumbs {
    flex-direction: row;
    width: 100%;
    max-height: 100px;
    overflow-x: auto;
    margin-bottom: 10px;
    margin-right: 0;
    gap: 8px;
  }

  .photo-gallery-thumb {
    width: 70px;
    height: 70px;
  }

  .photo-gallery-main {
    width: 100%;
  }

  .photo-gallery-img {
    width: 95%;
    max-height: 80vh;
  }
}

/* Empty State */
.no-results {
  text-align: center;
  padding: 40px;
  background: var(--color-bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.no-results i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 15px;
}

.no-results h3 {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .table-header-cell:nth-child(3),
  .table-cell:nth-child(3) {
    display: none;
  }
}

@media (min-width: 768px) {
  .coaches-cards {
    display: none;
  }
}

@media (max-width: 768px) {
  .coaches-table {
    display: none;
  }

  .coaches-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .coach-card {
    background: var(--color-bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
  }

  .coach-header {
    background: var(--color-primary-light);
    color: var(--color-text-light);
    padding: 15px;
  }

  .coach-name {
    color: var(--color-text-light);
    font-size: 1.3rem;
  }

  .coach-content {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .coach-image {
    width: 100%;
    height: auto;
    grid-column: 1 / -1;
  }

  .coach-details {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .detail-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
  }

  .detail-value {
    color: #555;
  }

  .features {
    grid-column: 1 / -1;
  }

  .action-buttons {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  header h1 {
    font-size: 2rem;
  }

  .search-filter {
    flex-direction: column;
  }

  .search-box {
    min-width: 100%;
  }
}
