* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-black: #2c3e2d;
  --earth-green: #2c3e2d;
  --sage-green: #5a6b5a;
  --light-sage: #8fa28f;
  --primary-white: #ffffff;
  --nude-beige: #f4f1ec;
  --warm-cream: #faf8f5;
  --light-beige: #f7f4ef;
  --soft-beige: #f0ede8;
  --text-charcoal: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --accent-sage: #8fa28f;
  --border-light: rgba(44, 62, 45, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-charcoal);
  background: var(--primary-white);
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-image {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.booking-container {
  padding-top: 100px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 4vw;
  padding-right: 4vw;
  padding-bottom: 4rem;
}

.section-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
}

.section-tab {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--text-medium);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  text-transform: lowercase;
  font-weight: 500;
}

.section-tab:hover {
  color: var(--earth-green);
}

.section-tab.active {
  color: var(--earth-green);
  border-bottom-color: var(--sage-green);
}

.section-content {
  display: none;
}

.section-content.active {
  display: block;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.location-selector {
  position: relative;
}

.location-dropdown {
  background: var(--primary-white);
  border: 2px solid var(--border-light);
  padding: 0.8rem 3rem 0.8rem 1.5rem;
  border-radius: 10px;
  font-size: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--earth-green);
  cursor: pointer;
  appearance: none;
  text-transform: lowercase;
}

.location-selector::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 16px;
  color: var(--earth-green);
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-select {
  background: var(--primary-white);
  border: 2px solid var(--border-light);
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--earth-green);
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e2d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.filter-select:hover {
  border-color: var(--sage-green);
}

.filter-select:focus {
  outline: none;
  border-color: var(--earth-green);
}

.clear-all-btn {
  background: transparent;
  border: none;
  color: var(--sage-green);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.week-calendar {
  background: var(--primary-white);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 20px rgba(44, 62, 45, 0.08);
  border: 1px solid var(--border-light);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-nav-btn {
  background: var(--earth-green);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
  background: var(--sage-green);
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.day-item {
  text-align: center;
  padding: 1.5rem 0.5rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.day-item:hover {
  background: var(--light-beige);
}

.day-item.selected {
  background: var(--earth-green);
  color: white;
}

.day-item.today {
  border-color: var(--sage-green);
}

.day-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.day-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
}

.day-date {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.date-display-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--nude-beige);
  border-radius: 10px;
}

.current-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--earth-green);
  font-weight: 500;
}

.today-btn {
  background: var(--primary-white);
  border: 2px solid var(--earth-green);
  color: var(--earth-green);
  padding: 0.6rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.today-btn:hover {
  background: var(--earth-green);
  color: white;
}

.classes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.class-item {
  background: var(--primary-white);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 80px 80px 1fr auto;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s ease;
}

.class-item:hover {
  box-shadow: 0 8px 30px rgba(44, 62, 45, 0.12);
  transform: translateY(-2px);
}

.class-time-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.class-time {
  font-size: 20px;
  font-weight: 600;
  color: var(--earth-green);
}

.class-duration {
  font-size: 12px;
  color: var(--text-medium);
}

.class-location {
  font-size: 13px;
  color: var(--text-light);
}

.instructor-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--nude-beige);
  background: linear-gradient(
    135deg,
    var(--nude-beige) 0%,
    var(--light-beige) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--sage-green);
  font-weight: 600;
}

.class-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.class-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--earth-green);
  text-transform: lowercase;
}

.instructor-name {
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
}

.class-room {
  font-size: 13px;
  color: var(--text-light);
}

.heated-badge {
  display: inline-block;
  background: #ff6b6b;
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reserve-btn {
  background: var(--primary-white);
  border: 2px solid var(--earth-green);
  color: var(--earth-green);
  padding: 0.8rem 2.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.reserve-btn:hover {
  background: var(--earth-green);
  color: white;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--primary-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(44, 62, 45, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.service-card.featured-card {
  border: 2px solid var(--sage-green);
  transform: scale(1.02);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(44, 62, 45, 0.12);
}

.service-card.featured-card:hover {
  transform: scale(1.02) translateY(-8px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(
    135deg,
    var(--nude-beige) 0%,
    var(--sage-green) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--primary-white);
}

.card-content {
  padding: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--earth-green);
  font-weight: 500;
  text-transform: lowercase;
}

.card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--sage-green);
}

.card-description {
  color: var(--text-medium);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.card-btn {
  width: 100%;
  background: var(--earth-green);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.card-btn:hover {
  background: var(--sage-green);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.teacher-card {
  background: var(--primary-white);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(44, 62, 45, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.teacher-card:hover {
  border-color: var(--sage-green);
  transform: translateY(-5px);
}

.teacher-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--nude-beige);
  background: linear-gradient(
    135deg,
    var(--nude-beige) 0%,
    var(--light-beige) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--sage-green);
  font-weight: 600;
}

.teacher-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--earth-green);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: lowercase;
}

.teacher-specialty {
  color: var(--sage-green);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 14px;
}

.teacher-bio {
  color: var(--text-medium);
  font-size: 14px;
  line-height: 1.5;
}

.menu-categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.category-btn {
  background: var(--nude-beige);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--earth-green);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-btn.active,
.category-btn:hover {
  background: var(--earth-green);
  color: white;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-medium);
}

.empty-state h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  margin-bottom: 1rem;
  color: var(--earth-green);
  font-weight: 400;
  text-transform: lowercase;
}

.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 45, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2001;
}

.booking-modal.active {
  display: flex;
}

.booking-modal-content {
  background: var(--primary-white);
  border-radius: 25px;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--earth-green);
  margin-bottom: 2rem;
  text-transform: lowercase;
}

.booking-summary {
  background: var(--nude-beige);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.booking-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 14px;
}

.booking-summary-item strong {
  color: var(--earth-green);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--earth-green);
  margin-bottom: 0.5rem;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--sage-green);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.cancel-btn {
  flex: 1;
  background: var(--text-light);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 15px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.confirm-btn {
  flex: 2;
  background: var(--earth-green);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.confirm-btn:hover {
  background: var(--sage-green);
}

.success-message {
  background: #4caf50;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .class-item {
    grid-template-columns: 70px 70px 1fr auto;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .week-days {
    grid-template-columns: repeat(4, 1fr);
  }

  .class-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .reserve-btn {
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* 
Loading 
*/
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.pulse-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--sage-green, #5a6b5a);
  opacity: 0.2;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
}

button.loading {
  opacity: 0.8;
  pointer-events: none;
  position: relative;
}

button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.class-spots {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--sage-green);
}
