/* CSS Document */

h3.gb-headline-heading {
    font-weight: 600;
    text-align: left;
    color: var(--brand-yellow);
}

/* Image Repeater */
.acf-extra-image-grid {
  display: grid;
  gap: 0px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0px;
}

@media (min-width: 768px) {
  .acf-extra-image-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.acf-grid-img-wrap {
  height: 380px;
  overflow: hidden;
  border-radius: 0px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.acf-grid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Key Features */
.acf-feature-grid {
  display: flex;
    gap: 20px;
    margin: 0px;
    flex-wrap: wrap;
}

@media (max-width: 769px) {
  .acf-feature-grid {
    flex-direction: column;
}
	.acf-feature-column {
	width:100%;
}
}

.acf-feature-column {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
	width:45%;
}

.acf-feature-image img {
  max-width: 60px;
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
}

.acf-feature-heading {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.acf-feature-content {
  font-size: 1em;
  line-height: 1.5;
}

.acf-feature-content p {
    margin-bottom: 0px;
}

/* facilities */
.acf-facilities-grid {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

@media (max-width: 769px) {
  .acf-facilities-grid {
    flex-direction: column;
}
}

.acf-facilities-column {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.acf-facilities-image img {
  max-width: 60px;
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
}

.acf-facilities-heading {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.acf-facilities-content {
  font-size: 1em;
  line-height: 1.5;
}

/* Bike Hire Prices */

.bike_hire {
width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

span.from {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0px;
}

/* Disciplines */
ul.acf-disciplines-list {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
	margin: 0px;
}

ul.acf-disciplines-list li {
    font-weight: 600;
}

/* Events Page */

a.gb-button-eventbook {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5em;
    padding: 10px 20px;
    margin-left: 0px;
    border-radius: 8px;
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
	max-width: 250px;
}

a.gb-button-eventbook:hover, a.gb-button-eventbook:active, a.gb-button-eventbook:focus {
    background-color: #222222;
    color: #ffffff;
}

/* Event Date */
.event-date-value {
    font-weight: 600;
}

/* Features drop down */

.acf-accordion {
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

.acf-accordion-item {
  border-bottom: 1px solid #ccc;
}

.acf-accordion-toggle {
  display: none;
}

.acf-accordion-label {
  display: block;
  font-weight: bold;
  padding: 15px;
  background: #f7f7f7;
  cursor: pointer;
  transition: background 0.3s;
}

.acf-accordion-label:hover {
  background: #eee;
}

.acf-accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  background: #fff;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.acf-accordion-toggle:checked ~ .acf-accordion-content {
  max-height: 1000px;
  padding: 15px;
}

.acf-accordion-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  padding: 15px;
  background: #f7f7f7;
  cursor: pointer;
  transition: background 0.3s;
}

.acf-accordion-icon {
  transition: transform 0.3s ease;
  display: inline-block;
  width: 16px;
  height: 16px;
}

.acf-accordion-icon svg {
  width: 100%;
  height: 100%;
  fill: #555;
}

.acf-accordion-toggle:checked ~ .acf-accordion-label .acf-accordion-icon {
  transform: rotate(180deg);
}

/* race Options */

.acf-race-options-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 40px 0;
}

.acf-race-option-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.acf-race-option-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.acf-option-heading {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #222;
}

.acf-option-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #007c4b;
  margin-bottom: 15px;
}

.acf-option-disciplines {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

.acf-option-disciplines li {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #444;
}

.acf-option-hours {
  font-size: 0.95rem;
  color: #666;
}

/* Timetable */

.acf-timetable-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 40px 0;
}

.acf-timetable-column {
  background: #f8f9fb;
  border-left: 4px solid #007c4b;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.acf-timetable-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.acf-timetable-day {
  font-size: 0.95rem;
  font-weight: 500;
  color: #007c4b;
  margin-bottom: 14px;
}

.acf-timetable-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acf-timetable-schedule li {
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 1px dashed #ccc;
  color: #444;
}

.acf-timetable-schedule li:last-child {
  border-bottom: none;
}

/* Home Images Slider Styles */
.home-images-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
    overflow: hidden;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image.active {
    opacity: 1;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    display: none;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background-color: #ffffff;
    border-color: #ffffff;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-container {
        height: 250px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 200px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
}

/* Touch-friendly improvements */
.home-images-slider {
    touch-action: pan-y pinch-zoom;
}

.slider-image img {
    pointer-events: none; /* Prevents image dragging */
}

/* Loading state */
.slider-image:not(.active) {
    pointer-events: none;
}

/* Accessibility improvements */
.slider-arrow:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.dot:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Admin Preview Styles */
.home-images-slider.admin-preview {
    border: 2px dashed #007cba;
    background: #f0f6fc;
    position: relative;
}

.home-images-slider.admin-preview .slider-container {
    height: 200px;
}

.home-images-slider.admin-preview .slider-image img {
    max-height: 100%;
    object-fit: contain;
    background: white;
}

.admin-slider-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-slider-info .image-count {
    font-weight: bold;
    color: #4CAF50;
}

.admin-slider-info .preview-note {
    font-style: italic;
    color: #FFC107;
}

/* Admin preview hover effect */
.home-images-slider.admin-preview:hover {
    border-color: #005a87;
    background: #e1f2ff;
}

/* Responsive admin preview */
@media (max-width: 768px) {
    .home-images-slider.admin-preview .slider-container {
        height: 150px;
    }
    
    .admin-slider-info {
        font-size: 11px;
        padding: 6px 10px;
    }
}
