/* Filter Section */
.filter-section {
  padding: 30px;
  background: #f8f8f8;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Filter Section Header with Toggle Button */
.filter-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
}

.filter-section-header h3 {
  margin: 0;
  font-family: var(--font-small-heading);
  color: var(--color-black);
  font-size: var(--font-size-small-heading);
  line-height: var(--line-height-small-heading);
}

/* Filter Toggle Button */
.filter-toggle-button {
  background-color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: var(--font-size-small-heading);
  font-weight: bold;
  color: #000;
}

.filter-toggle-button:hover {
  background: #000;
  color: #fff;
}

.filter-toggle-button:focus {
  outline: none;
  border-color: #000;
}

/* Filter Content - Collapsible */
.filter-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: all 0.3s ease;
}

.filter-content.collapsed {
  display: none;
}

.filter-section h3, 
.format-filter label,
.filter-dropdown label {
  font-family: var(--font-small-heading);
  color: var(--color-black);
  font-size: var(--font-size-small-heading);
  line-height: var(--line-height-small-heading);
  margin:0;
}

.format-button, #reset-filters-button {
  background: #fff;
  color: #000;
  padding: 10px 18px;
  font-family: var(--font-primary);
  font-size: var(--font-size-standard);
  line-height: var(--line-height-standard);
  border:none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: normal;
}





/* Filter Header with Reset Button */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 0;
}

.filter-main-content {
  flex: 1;
}

.filter-reset {
  flex-shrink: 0;
  align-self: flex-start;
}

#reset-filters-button {
  font-family: var(--font-small-heading);
  border: none;
  font-weight: normal;
  cursor: pointer;
  white-space: nowrap;
}

.reset-filters-button:hover {
  color: #000;
}

.filter-dropdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
}


.filter-dropdown select {
  padding: 10px 40px;
  border: none;
  border-radius: 50px;
  font-size: var(--font-size-standard);
  line-height: var(--line-height-standard);
  font-family: var(--font-primary);
  background: #fff;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 40px;
  padding-right: 35px;
}

.filter-dropdown select:focus {
  outline: none;
  border-color: #999;
  box-shadow: none;
}

/* Format Filter Buttons */
.format-filter {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}

 
.format-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
}


.format-button:hover, #reset-filters-button:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.format-button.active {
  background: var(--color-black);
  color: var(--color-white);
}

/* Responsive layout for filters */
@media (max-width: 1024px) {
  .filter-section {
    gap: 25px;
    padding: 25px;
  }
  
  .filter-header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .filter-reset {
    align-self: flex-end;
  }
  
  .filter-dropdown {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
  }
  
  .filter-dropdown label {
    min-width: auto;
  }
  
  .filter-dropdown select {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .format-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .format-filter label {
    min-width: auto;
  }
  
  .format-buttons {
    width: 100%;
  }
  
  .format-button {
    font-size: 13px;
    padding: 6px 14px;
  }
  
  .filter-section {
    padding: 20px;
    gap: 20px;
  }
  
  .filter-toggle-button {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-small-heading-tablet)
  }
  
  .reset-filters-button {
    font-size: 13px;
  }
}

.current-calendar {
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


@media (max-width: 768px) {
  .page-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

.calendar-day {
  margin-bottom: var(--box-big-gap);
}

.day-header h2 {
  font-size: var(--font-size-small-heading);
  font-family: var(--font-small-heading);
  line-height: var(--line-height-small-heading);
  font-weight: normal;
  margin: 0 0 20px 0;
}

.calendar-event {
  margin-bottom: var(--box-gap);
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.calendar-event:last-child {
  border-bottom: none;
}

/* First row layout: Time left, Title right */
.event-row-1 {
  display: flex;
  margin-bottom: 0;
  align-items: flex-start;;
}

.event-time-block {
  width: 315px;
  flex-shrink: 0;
  background-color: var(--color--white);
  padding: var(--box-gap);
  border-radius: var(--box-gap);
}

.event-time {
  font-size: var(--font-size-standard);
  line-height: var(--line-height-standard);
  font-family: var(--font-primary);
  color: var(--color-black);
  margin: 0;
}

/* Multi-day event styling */
/* .multi-day-event {
  border-left: 3px solid #007acc;
} */

/* Past event styling */
.past-event {
  opacity: 0.7;
  background-color: #f8f8f8;
}

.past-event .event-time-block,
.past-event .event-title-block,
.past-event .event-artists-section,
.past-event .location-details,
.past-event .location-info-container {
  background-color: #f0f0f0;
}

.past-event .event-title,
.past-event .event-title a,
.past-event .event-time {
  color: #666;
}

.past-event .location-badge {
  background: #666;
  color: #fff;
}

.event-title-block {
  flex: 1;
  background-color: var(--color--white);
  padding: var(--box-gap);
  border-radius: var(--box-gap);
}

.event-title, .event-title a, .event-title a:hover {
  font-size: var(--font-size-heading);
  line-height: var(--line-height-heading);
  font-family: var(--font-heading);
  color: var(--color-black);
  margin: 0;
  cursor:pointer;
}


/* Second row layout: Formats left, Artists and Location right (two equal columns) */
.event-row-2 {
  display: flex;
}

.event-formats-block {
  width: 315px;
  flex-shrink: 0;
  padding-right: 20px;
  display: flex;
  justify-content: center;
}

.event-format {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.format-tag {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--box-gap);
  font-size: var(--font-size-standard);
  line-height: var(--line-height-standard);
  font-family: var(--font-primary);
  text-align: center;
  width: fit-content;
}

.event-details-block {
  flex: 1;
  display: flex;
}

.event-artists-section {
  flex: 1;
  background-color: var(--color--white);
  padding: var(--box-gap);
  border-radius: var(--box-gap);
  align-self: flex-start;
}

.event-location-section {
  flex: 1;
}

.event-artists {
  font-size: 14px;
}

.event-artists a {
  color: var(--color-black );
  text-decoration: underline;
  font-family: var(--font-primary);
  line-height: var(--line-height-standard);
  font-size: var(--font-size-standard);
  transition: color 0.3s ease;
}

.event-artists a:hover {
  text-decoration: none;
}

.event-location {
  display: flex;
  align-items: center;
}

.location-badge-inline {
  flex-shrink: 0;
}

.location-badge {
  background: #000;
  color: #fff;
  border-radius: 50%;
  padding:20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-heading);
  line-height: var(--line-height-heading);
  font-family: var(--font-heading);
  width: 150px;
  height: 150px;
}

.location-details {
  flex: 1;
  background-color: var(--color--white);
  padding: var(--box-gap);
  border-radius: var(--box-gap);
}

.location-name, .location-name a {
  margin-bottom: 4px;
  font-size: var(--font-size-standard);
  line-height: var(--line-height-standard);
  font-family: var(--font-primary);
  color: var(--color-black);
}

.location-address {
  font-family: var(--font-primary);
  font-size: var(--font-size-standard);
  line-height: var(--line-height-standard);
  color: var(--color-black);
}

.location-info p {
  margin: 0;
  padding: 0;
}

.location-info-container {
  background-color: var(--color--white);
  padding: var(--box-gap);
  border-radius: var(--box-gap);
}

/* Location Link Styles */
.location-badge-link {
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.location-badge-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.location-badge-link:focus {
  outline: 2px solid #000;
  outline-offset: 4px;
}

.no-events {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* No Events Message */
.no-events-message {
  text-align: center;
  padding: 60px 20px;
}

.no-events-message h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
  font-weight: normal;
}

.no-events-message .english-message {
  font-size: 20px;
  color: #666;
  font-style: italic;
  margin: 0;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
}

.load-more-button {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.load-more-button:hover {
  background: #333;
}

.load-more-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.loading-indicator {
  font-size: 14px;
  color: #666;
  font-style: italic;
}



/* Download Program Link */


.download-program-section p:before {
  content: "📄";
  text-decoration:none;
}
.download-program-section {
    margin: 1rem 0rem 3rem 0rem;
}


@media (min-width: 1000px) and (max-width: 1500px) {
  .filter-section h3, 
  .format-filter label,
  .filter-dropdown label {
    font-size: var(--font-size-small-heading-tablet);
    line-height: var(--line-height-small-heading-tablet);
  }
  .format-button, #reset-filters-button {
    font-size: var(--font-size-standard-tablet);
    line-height: var(--line-height-standard-tablet);
  }
  .day-header h2 {
    font-size: var(--font-size-small-heading-tablet);
    line-height: var(--line-height-small-heading-tablet);
  }
  .event-time {
    font-size: var(--font-size-standard-tablet);
    line-height: var(--line-height-standard-tablet);
  }
  .event-title, .event-title a, .event-title a:hover {
    font-size: var(--font-size-heading-tablet);
    line-height: var(--line-height-heading-tablet);
  }
  .format-tag {
    font-size: var(--font-size-standard-tablet);
    line-height: var(--line-height-standard-tablet);
  }
  .event-artists a {
    font-size: var(--font-size-standard-tablet);
    line-height: var(--line-height-standard-tablet);
  }
  .location-name, .location-name a {
    font-size: var(--font-size-standard-tablet);
    line-height: var(--line-height-standard-tablet);
  }
  .location-address {
    font-size: var(--font-size-standard-tablet);
    line-height: var(--line-height-standard-tablet);
  }
  .location-badge {
    font-size: var(--font-size-heading-tablet);
    line-height: var(--line-height-heading-tablet);
    width:100px;
    height:100px;
  }
  .event-title-block {
    padding: var(--box-tablet-gap);
    border-radius: var(--box-tablet-gap);
  }
  .event-formats-block {
    margin-top:10px;
  }
  .event-time-block {
    padding: var(--box-gap) var(--box-tablet-gap);
    border-radius: var(--box-tablet-gap);
    display: flex;
    justify-content: center;
  }
  .filter-dropdown select {
    padding: var(--box-mini-gap) 18px;
    font-size: var(--font-size-standard-tablet);
    line-height: var(--line-height-standard-tablet);
    background-size: 28px;
  }
  .calendar-event {
    margin-bottom: var(--box-tablet-gap);
  }
  .download-program-link {
    font-size: var(--font-size-standard-tablet);
    line-height: var(--line-height-standard-tablet);
  }
}


@media (max-width: 1000px) {
  .filter-section h3, 
  .format-filter label,
  .filter-dropdown label {
        font-size: var(--font-size-small-heading-mobile);
        line-height: var(--line-height-small-heading-mobile);
  }
  .format-button, #reset-filters-button {
        font-size: var(--font-size-standard-mobile);
        line-height: var(--line-height-standard-mobile); 
  }
  .day-header h2 {
        font-size: var(--font-size-small-heading-mobile);
        line-height: var(--line-height-small-heading-mobile);
  }
  .event-time {
        font-size: var(--font-size-standard-mobile);
        line-height: var(--line-height-standard-mobile);
  }
  .event-title, .event-title a, .event-title a:hover {
        font-size: var(--font-size-heading-mobile);
        line-height: var(--line-height-heading-mobile);
  }
  .format-tag {
        font-size: var(--font-size-standard-mobile);
        line-height: var(--line-height-standard-mobile);
  }
  .event-artists a {
        font-size: var(--font-size-standard-mobile);
        line-height: var(--line-height-standard-mobile);
  }
  .location-name, .location-name a {
        font-size: var(--font-size-standard-mobile);
        line-height: var(--line-height-standard-mobile);
  }
  .location-address {
        font-size: var(--font-size-standard-mobile);
        line-height: var(--line-height-standard-mobile);
  }
  .location-badge {
        font-size: var(--font-size-heading-mobile);
        line-height: var(--line-height-heading-mobile);
        width:80px;
        height:80px;
  }
  .event-title-block {
    padding: var(--box-mini-gap);
    border-radius: var(--box-mini-gap);
  }
  .event-formats-block {
    margin-top:10px;
  }
  .event-time-block {
    padding: 20px var(--box-mini-gap);
    border-radius: var(--box-mini-gap);
    display: flex;
    justify-content: center;
  }
  .event-artists-section, .location-details, 
  .location-info-container {
    padding: var(--box-mini-gap);
    border-radius: var(--box-mini-gap);
  }
  .filter-dropdown select {
    padding: 5px 18px;
    font-size: var(--font-size-standard-mobile);
    line-height: var(--line-height-standard-mobile);
    background-size: 28px;
    height:50px;
  }
  .calendar-event {
    margin-bottom: var(--box-mini-gap);
  }
  .download-program-link {
    font-size: var(--font-size-standard-mobile);
    line-height: var(--line-height-standard-mobile);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .filter-dropdown {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .filter-dropdown select {
    width: 100%;
    max-width: none;
  }
  
  .event-row-1 {
    flex-direction: column-reverse;
  }
  .event-row-2 {
    flex-direction: column-reverse;
  }
  
  .event-time-block,
  .event-formats-block {
    width: 100%;
    margin-bottom: 0;
    padding-right: 0;
  }

  .event-time-block {
    justify-content: left;
  }
  
  .event-details-block {
    flex-direction: column;
  }
  
  .event-format {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .event-location {
    flex-direction: row;
  }
  .event-title-block, .event-artists-section {
    width: 100%;
  }
  /* .filter-section {
    margin-bottom: var(--box-gap);
  } */
  
  /* Mobile location link adjustments */
  .location-badge-link:hover {
    transform: scale(1.02);
  }
  
  .location-address-link {
    display: block;
    padding: 4px 0;
  }
  .download-program-section {
    margin: 1rem 0 2rem 0;
    padding: 0;
  }
  
  .download-program-link {
    font-size: var(--font-size-standard-mobile);
  }
  
  .download-program-link:before {
    left: 14px;
    font-size: 14px;
  }
}
