.toolloc {
  text-align: center;
  padding-top: 12px;
}

/* Tippy tooltip styling */
.tippy-content {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tooltip header section with event title and time */
.hycal-event-title {
  margin: 0;
  padding: 16px 48px 8px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  word-break: break-word;
}

.hycal-event-time {
  margin: 0;
  padding: 0 20px 4px 20px;
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 4px;
}

.hycal-event-location {
  margin: 0;
  padding: 8px 20px 0 20px;
  font-size: 13px;
  color: #888;
}

.hycal-event-location-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hycal-event-location-link:hover {
  color: #005a87;
  text-decoration: underline;
}

.hycal-location-icon {
  flex-shrink: 0;
  color: #0073aa;
  transition: color 0.2s ease;
}

.hycal-event-location-link:hover .hycal-location-icon {
  color: #005a87;
}

/* Event description */
.hycal-event-description {
  margin: 0;
  padding: 12px 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  border-top: 1px solid #e8e8e8;
}

.hycal-event-description a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.hycal-event-description a:hover {
  text-decoration: underline;
}

/* Action buttons */
.hycal-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #e8e8e8;
  background-color: #fafafa;
  justify-content: center;
}

.hycal-event-actions .button {
  margin: 0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hycal-event-actions .button:hover {
  background-color: #f5f5f5;
  border-color: #999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hycal-event-actions .button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Specific button styling */
.hycal-map-button {
  color: #d32f2f;
}

.hycal-add-to-google-button {
  color: #1f2937;
}

.hycal-open-event-button {
  color: #0073aa;
}

.hycal-download-ics-button {
  color: #16a34a;
}

/* Close button */
.hycal-tooltip-close {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.hycal-tooltip-close:hover {
  opacity: 1;
}

/* Light theme adjustments */
.tippy-box[data-theme~="light"] {
  background-color: #fff;
  color: #1a1a1a;
  border: 1px solid #e8e8e8;
}

.tippy-box[data-theme~="light"] > .tippy-arrow {
  color: #fff;
}
.tippy-box[data-theme~="light"] {
  color: #26323d;
  box-shadow: 0 0 20px 4px rgba(154, 161, 177, 0.15), 0 4px 80px -8px rgba(36, 40, 47, 0.25),
    0 4px 4px -2px rgba(91, 94, 105, 0.15);
  background-color: #fff;
}
.tippy-box[data-theme~="light"][data-placement^="top"] > .tippy-arrow:before {
  border-top-color: #fff;
}
.tippy-box[data-theme~="light"][data-placement^="bottom"] > .tippy-arrow:before {
  border-bottom-color: #fff;
}
.tippy-box[data-theme~="light"][data-placement^="left"] > .tippy-arrow:before {
  border-left-color: #fff;
}
.tippy-box[data-theme~="light"][data-placement^="right"] > .tippy-arrow:before {
  border-right-color: #fff;
}
.tippy-box[data-theme~="light"] > .tippy-backdrop {
  background-color: #fff;
}
.tippy-box[data-theme~="light"] > .tippy-svg-arrow {
  fill: #fff;
}
.hycal-container {
  --fc-event-text-color: inherit;
}

/* Remove empty bars above and below calendar */
.hycal-container table {
  margin: 0px;
  padding: 0px;
}

/* .fc-day-past.fc-day-grid-event, */
.fc-event-past {
  opacity: 50%;
}

.fc-h-event .fc-event-main-frame {
  display: block;
}

/* Remove <a underlining for day and day of week */
.fc-col-header-cell-cushion,
.fc-daygrid-day-number {
  text-decoration: none !important;
}

/* Allows wrapping of titles */
.fc-event-title {
  white-space: normal;
}

.hycal-branding {
  color: grey;
  font-size: 70%;
  float: right;
}

@media (max-width: 767px) {
  .fc-toolbar.fc-header-toolbar {
    display: flex;
    flex-direction: column;
  }
}