:root {
  --primary: #e63946;
  --secondary: #1d3557;
  --light: #f1faee;
  --accent: #a8dadc;
  --dark: #1d3557;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* Buttons */
.primary-btn {
  background-color: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  text-align: center;
}

.primary-btn:hover {
  background-color: #d1303c;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.secondary-btn:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Navigation link underline effect */
.nav-link {
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Utility elements */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(168, 218, 220, 0.3);
}

.form-success {
  display: none;
  background-color: #d1e7dd;
  color: #0f5132;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

#map {
  height: 300px;
  width: 100%;
}

/* Calendar base styling */
.calendar-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 10px;
  box-sizing: border-box;
}

#calendar {
  width: 100%;
}

.fc-event {
  cursor: pointer;
}

.fc-daygrid-event {
  max-height: 100%;
  overflow: hidden;
}

.fc-daygrid-day-frame {
  padding: 2px;
}

.custom-event-bubble {
  background-color: #e5f0ff;
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

.custom-time {
  font-weight: bold;
  margin-bottom: 2px;
}

.custom-title {
  font-size: 11px;
}

/* Accordion styles */
.accordion-content {
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-item.active .fa-plus:before {
  content: "\f068";
}

/* FullCalendar responsive fixes */
@media (max-width: 768px) {
  .calendar-wrapper {
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
  }

  #calendar {
    width: 100% !important;
    max-width: 100%;
  }

  .fc {
    width: 100% !important;
    max-width: 100%;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .fc-header-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem;
  }

  .fc .fc-toolbar-chunk {
    text-align: center !important;
    width: 100% !important;
  }

  .fc-toolbar-title {
    font-size: 1.25rem;
    text-align: center;
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  padding: 80px 20px 20px;
  background-color: white;
  z-index: 40;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateX(-100%);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Additional utility classes */
.light-gray-bg {
  background-color: #d3d3d361;
}

.header-container {
  font-size: 18px;
  justify-content: space-around;
}

/* Add mobile menu hiding for large screens */
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}
