@charset "UTF-8";
:root {
  --ff-primary-color: #b08d57;
  --ff-primary-hover: #96784a;
  --ff-text-dark: #333;
  --ff-text-medium: #666;
  --ff-text-light: #999;
  --ff-text-muted: #444;
  --ff-border-color: #ddd;
  --ff-border-light: #eee;
  --ff-border-dark: #ccc;
  --ff-bg-light: #f9f9f9;
  --ff-bg-hover: #f0ede6;
  --ff-white: #fff;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .mobile-only.ff-mobile-view-icons {
    display: flex !important;
  }
}
.ff-events-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
  font-family: serif;
}
@media (max-width: 768px) {
  .ff-events-filters {
    flex-direction: column-reverse;
    gap: 10px;
  }
}
.ff-events-filters select.ff-hidden-select {
  display: none;
}

.ff-custom-select-wrapper {
  position: relative;
}
@media (max-width: 768px) {
  .ff-custom-select-wrapper {
    width: 100%;
  }
}

.ff-custom-select-trigger {
  padding: 10px 20px;
  border: 1px solid var(--ff-border-dark);
  background: var(--ff-white);
  font-family: serif;
  font-style: italic;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
  user-select: none;
  position: relative;
  font-weight: bold;
  letter-spacing: 2px;
}
@media (max-width: 768px) {
  .ff-custom-select-trigger {
    width: 100%;
    min-width: 0;
  }
}
.ff-custom-select-trigger .ff-selected-label {
  letter-spacing: 2px;
}
.ff-custom-select-trigger .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  color: var(--ff-primary-color);
}

.ff-custom-select-popover {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--ff-white);
  border: 1px solid var(--ff-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  min-width: 180px;
  max-height: 300px;
  overflow-y: auto;
}
.ff-custom-select-popover.active {
  display: block;
}

.ff-custom-select-options {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ff-custom-select-options li {
  padding: 10px 20px;
  cursor: pointer;
  font-family: serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: 14px;
  transition: background 0.2s;
}
.ff-custom-select-options li:hover {
  background: var(--ff-bg-hover);
}
.ff-custom-select-options li.selected {
  background: var(--ff-primary-color);
  color: var(--ff-white);
}

@media (max-width: 768px) {
  .ff-mobile-view-icons {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 10px;
  }
  .ff-mobile-view-icons .view-switch {
    font-size: 24px;
    padding: 5px;
  }
  .ff-mobile-view-icons .view-switch.active {
    color: #c9a770;
  }
}

.view-switchers {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.view-switch {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ff-text-medium);
  text-transform: uppercase;
}
.view-switch.active {
  color: var(--ff-primary-color);
}

#ff-events-container {
  position: relative;
  min-height: 200px;
  transition: opacity 0.4s ease;
}
#ff-events-container.loading .ff-events-loading-overlay {
  display: flex;
}

.ff-events-loading-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 100;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  color: var(--ff-primary-color);
}

/* Grid View */
.ff-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 768px) {
  .ff-events-grid {
    grid-template-columns: 1fr;
  }
}

.ff-event-card {
  background: var(--ff-white);
  border: 1px solid var(--ff-border-color);
  padding: 10px;
  margin-bottom: 20px;
}
.ff-event-card .ff-event-image {
  padding: 5px;
  border: 1px solid var(--ff-border-light);
  margin-bottom: 15px;
}
.ff-event-card .ff-event-image img {
  margin-bottom: 0;
  width: 100%;
  height: auto;
  display: block;
}

.ff-event-meta {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  font-family: serif;
}

.ff-event-date {
  font-weight: bold;
  font-size: 14px;
}

.ff-event-location-label {
  font-size: 11px;
  color: var(--ff-text-medium);
}
.ff-event-location-label a {
  color: inherit;
  text-decoration: underline;
}
.ff-event-location-label a:hover {
  color: var(--ff-primary-color);
}

.ff-event-title {
  color: var(--ff-primary-color);
  font-family: serif;
  font-size: 18px;
  margin: 10px 0;
  text-transform: uppercase;
}

.ff-event-description {
  font-size: 13px;
  color: var(--ff-text-muted);
  margin-bottom: 15px;
}
.ff-event-description .ff-description-grid, .ff-event-description .ff-description-list {
  display: none;
}

.ff-view-grid .ff-description-grid {
  display: block;
}

.ff-view-list .ff-description-list {
  display: block;
}

.ff-view-details {
  display: inline-block;
  background: var(--ff-primary-color);
  color: var(--ff-white);
  padding: 10px 25px;
  text-decoration: none;
  font-family: serif;
  font-style: italic;
  font-size: 16px;
}

/* List View */
.ff-events-list {
  display: flex;
  flex-direction: column;
}
.ff-events-list .ff-event-card {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: center;
}
@media (max-width: 768px) {
  .ff-events-list .ff-event-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
.ff-events-list .ff-event-image {
  flex: 0 0 300px;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .ff-events-list .ff-event-image {
    flex: 0 0 auto;
    width: 100%;
  }
}
.ff-events-list .ff-event-content {
  flex: 1;
}

/* Calendar View */
.ff-calendar-table {
  width: 100%;
  border-collapse: collapse;
}
.ff-calendar-table th {
  padding: 15px;
  border: 1px solid var(--ff-border-color);
  text-align: center;
  background: var(--ff-bg-light);
}
.ff-calendar-table td {
  padding: 10px;
  border: 1px solid var(--ff-border-color);
  vertical-align: top;
  height: 120px;
  width: 14.28%;
}

.day-number {
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

.calendar-event {
  font-size: 10px;
  margin-bottom: 8px;
  padding: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.calendar-event:hover {
  background-color: var(--ff-bg-hover);
}

.event-time {
  display: block;
  font-weight: bold;
}

.event-loc {
  display: block;
  color: var(--ff-primary-color);
  text-decoration: underline;
}

.event-title {
  display: block;
  font-weight: bold;
  text-decoration: none;
  color: var(--ff-primary-color);
  text-transform: uppercase;
  cursor: pointer;
}
.event-title:hover {
  color: var(--ff-primary-color);
}

/* Floating UI Popover */
.ff-event-popover {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 400px;
  max-width: 500px;
  background: var(--ff-white);
  border: 1px solid var(--ff-border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 25px 15px 15px; /* Increased top padding for the close button */
  flex-flow: row wrap;
  gap: 1rem;
  align-items: center;
}
.ff-event-popover.active {
  display: flex;
}

.ff-popover-close {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--ff-text-light);
  padding: 0 5px;
  z-index: 1001;
}
.ff-popover-close:hover {
  color: var(--ff-text-dark);
}

.ff-popover-image {
  margin-bottom: 15px;
  border: 1px solid var(--ff-border-light);
  padding: 5px;
}
.ff-popover-image img {
  display: block;
  max-width: 150px;
  height: auto;
  margin: 0 auto;
}

.ff-popover-content {
  flex: 1;
  word-break: break-word;
}
.ff-popover-content .ff-event-meta {
  margin-bottom: 8px;
}
.ff-popover-content .ff-event-title {
  font-size: 16px;
  margin: 5px 0 10px;
}
.ff-popover-content .ff-event-description {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 15px;
}
.ff-popover-content .ff-view-details {
  padding: 8px 15px;
  font-size: 14px;
}

.ff-popover-arrow {
  position: absolute;
  background: var(--ff-white);
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border: 1px solid var(--ff-border-color);
  z-index: -1;
}
.ff-popover-arrow[style*=bottom] {
  border-top: none;
  border-left: none;
}
.ff-popover-arrow[style*=top] {
  border-bottom: none;
  border-right: none;
}
.ff-popover-arrow[style*=left] {
  border-bottom: none;
  border-left: none;
}
.ff-popover-arrow[style*=right] {
  border-top: none;
  border-right: none;
}

.ff-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.ff-calendar-header h2 {
  font-family: serif;
  color: var(--ff-primary-color);
  margin: 0;
}
@media (max-width: 768px) {
  .ff-calendar-header {
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
  }
  .ff-calendar-header h2 {
    font-size: 24px;
    text-transform: uppercase;
    color: #333; /* More like the image */
    font-weight: 300; /* Lighter as in image */
    letter-spacing: 1px;
  }
  .ff-calendar-header .ff-prev-month,
  .ff-calendar-header .ff-next-month {
    display: none; /* We show current month as requested */
  }
  .ff-calendar-header {
    /* If we want to allow switching months on mobile, we can keep them, 
       but the image shows a simple header. */
  }
  .ff-calendar-header .ff-mobile-view-icons {
    margin-left: auto;
    width: auto;
    margin-bottom: 0;
  }
}
.ff-calendar-header button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: serif;
  color: var(--ff-text-medium);
}

/* Mobile Calendar List Styles */
.ff-calendar-mobile-list {
  font-family: serif;
}

.ff-mobile-day-group {
  border: 1px solid var(--ff-primary-color);
  margin-bottom: 20px;
}

.ff-mobile-day-header {
  padding: 15px;
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  background: #f8f7f5;
  border-bottom: 1px solid var(--ff-primary-color);
  letter-spacing: 1px;
}

.ff-mobile-event-item {
  padding: 15px;
  border-bottom: 1px solid var(--ff-border-light);
}
.ff-mobile-event-item:last-child {
  border-bottom: none;
}

.ff-mobile-event-time {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.ff-mobile-event-loc {
  font-size: 11px;
  color: var(--ff-text-medium);
  text-decoration: underline;
  margin-bottom: 5px;
}

.ff-mobile-event-title {
  margin: 0;
  font-size: 20px;
  text-transform: uppercase;
  color: #c9a770; /* More golden color as in image */
  font-weight: 300;
  line-height: 1.2;
}
.ff-mobile-event-title a {
  color: inherit;
  text-decoration: none;
}

.ff-calendar-spacer {
  width: 100px; /* Approximate width of the button to maintain centering */
}

/* Pagination / Load More */
.ff-events-pagination,
.ff-events-load-more-container {
  margin-top: 30px;
  text-align: center;
}

#ff-load-more {
  display: inline-block;
  background: var(--ff-primary-color);
  color: var(--ff-white);
  padding: 12px 30px;
  text-decoration: none;
  font-family: serif;
  font-style: italic;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
#ff-load-more:hover {
  background: var(--ff-primary-hover);
}
#ff-load-more:disabled {
  background: var(--ff-border-dark);
  cursor: not-allowed;
}

.ff-events-pagination .page-numbers {
  padding: 5px 10px;
  border: 1px solid var(--ff-border-dark);
  margin: 0 3px;
  text-decoration: none;
  color: var(--ff-text-dark);
}
.ff-events-pagination .current {
  background: var(--ff-primary-color);
  color: var(--ff-white);
  border-color: var(--ff-primary-color);
}

/* Single Event View */
.ff-event-header-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .ff-event-header-flex {
    flex-direction: column;
    gap: 20px;
  }
}

.ff-event-image-column,
.ff-event-meta-column {
  flex: 0 0 50%;
  max-width: calc(50% - 20px);
}
@media (max-width: 768px) {
  .ff-event-image-column,
  .ff-event-meta-column {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.single-ff_events .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
}

.ff-event-meta-column .entry-header {
  margin-bottom: 20px;
}
.ff-event-meta-column .entry-title {
  margin: 0 0 15px;
  font-family: serif;
  color: var(--ff-primary-color);
  text-transform: uppercase;
}

.ff-event-details-single p {
  margin-bottom: 10px;
  font-family: serif;
}
.ff-event-details-single strong {
  color: var(--ff-text-dark);
}

.ff-breadcrumb {
  margin-bottom: 20px;
  font-family: serif;
  font-style: italic;
}
.ff-breadcrumb a {
  text-decoration: none;
  color: var(--ff-primary-color);
  text-transform: uppercase;
  font-size: 14px;
}
.ff-breadcrumb a:before {
  content: "« ";
}

.ff-event-navigation {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--ff-border-light);
}
.ff-event-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 768px) {
  .ff-event-navigation .nav-links {
    flex-direction: column;
    gap: 30px;
  }
}
.ff-event-navigation .nav-links a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.ff-event-navigation .nav-next {
  text-align: right;
  margin-left: auto;
}
@media (max-width: 768px) {
  .ff-event-navigation .nav-next {
    text-align: left;
  }
}
.ff-event-navigation .nav-subtitle {
  font-size: 12px;
  color: var(--ff-text-light);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.ff-event-navigation .nav-title {
  font-family: serif;
  font-size: 18px;
  color: var(--ff-primary-color);
  text-transform: uppercase;
}
