:root {
    --clazyu-brick: #60100f;
    --clazyu-purple: #7b6d8d;
    --clazyu-black: #010b13;
    --clazyu-brick: #730217;
    --clazyu-gold: #d9af62;
    --clazyu-brown: #733702;
    --clazyu-tan: #8c8270;
    --clazyu-pale-tan: #f2efeb;
    --clazyu-blue: #e5e9ec;
    --clazyu-palest-blue: #eef0f2;
    --clazyu-bg: #faf9f7;
    --clazyu-text-color: #7D7563;
    --clazyu-link-color: #337ab7;
    --clazyu-brick-hover: #41010d;
    --clazyu-gold-hover: #b39247;
    --clazyu-arrow-bg: rgba(255, 255, 255, 0.3);
    --clazyu-arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23bbb' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    --clazyu-option-bg: white;
    --clazyu-select-bg: rgba(255, 255, 255, 0.2);
}

/* Events Grid Layout */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Event Card Styling */
.event-card {
    border: 1px solid #ddd;
    position: relative;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.event-card.sold-out::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 80px;
    height: 80px;
    background: url('../images/sold-out-round.webp') top left no-repeat;
    background-size: contain;
    z-index: 3;
    display: block;
}

.event-card.category-women-only .event-image::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 5px;
    width: 70px;
    height: 70px;
    background: url('../images/women-only-sticker.svg') no-repeat;
    background-size: contain;
    z-index: 3;
}

.event-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.event-card .event-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.event-card .event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.event-card:hover .event-thumbnail img {
    transform: scale(1.05);
}

.event-card .event-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card .event-content .event-title {
    margin: 0 0 10px;
    font-size: 1em;
    color: var(--clazyu-brick);
}

.event-card .event-content .event-title a {
    color: inherit;
    text-decoration: none;
}

.event-card .event-content .event-title a:hover {
    color: var(--clazyu-brick-hover);
}

.event-card .event-content .event-date {
    font-size: 0.9em;
    color: var(--clazyu-text-color);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    
}

.event-card .event-content .length-of-stay {
    font-size: 0.7em;
    color: var(--clazyu-text-color);
    margin-bottom: 15px;
}

.event-card .event-content .event-categories,
.event-card .event-content .riding-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.event-card .event-content .category-badge,
.event-card .event-content .activity-badge {
    font-size: 0.65em;
    padding: 4px 8px;
    background-color: var(--clazyu-pale-tan);
    color: var(--clazyu-brick);
    border-radius: 4px;
}

.event-card .event-content .event-excerpt {
    font-size: 16px;
    color: var(--clazyu-text-color);
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-grow: 1;
}
.event-card .event-content .event-excerpt p {margin-bottom: 0;}
.event-card .learn-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--clazyu-brick);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    text-align: center;
    margin-top: auto;
}

.event-card .learn-more-button:hover {
    background-color: var(--clazyu-brick-hover);
    color: #fff;
    text-decoration: none;
}

/* No Events Message */
.no-events-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: var(--clazyu-pale-tan);
    border-radius: 8px;
    color: var(--clazyu-text-color);
    font-size: 1.1em;
}



/* Filters Bar */
.events-filter-form {
    margin-bottom: 30px;
}
.events-filter-form .filters-bar {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
}
/* Tab Content */
.events-filter-form .filters-bar .tab-content {
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 4px;
    background: var(--clazyu-palest-blue);
    padding: 20px;
    margin-bottom: 0;
}

.events-filter-form .filters-bar .tab-content[data-active-tab="filters-tab"],
.events-filter-form .filters-bar .tab-content[data-active-tab="search-tab"] {
    background: #fff;
}

.filter-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: -1px;
}

.tab-button {
    padding: 12px 24px;
    background: var(--clazyu-palest-blue);
    border: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 15px;
    color: var(--clazyu-text-color);
    transition: background-color 0.2s;
}
.tab-button:hover {
    background: var(--clazyu-blue);
}
.tab-button.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    color: var(--clazyu-brick);
    font-weight: 500;
}
.filter-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group, .search-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
}

.filter-group label, .search-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0;
}


.filter-group select {
/* Reset */
  appearance: none;
  border: 1px solid #ddd;
  outline: 0;
  font: inherit;
  /* Personalize */
  font-size: 15px;
  height: 40px;
  padding: 8px 12px;
  background: var(--clazyu-arrow-icon) no-repeat right 0.8em center / 1.4em,
    linear-gradient(to left, var(--clazyu-arrow-bg) 3em, var(--clazyu-select-bg) 3em);
  border-radius: 4px;
  cursor: pointer;
}
/* Remove IE arrow */
.filter-group select::-ms-expand {
    display: none;
}
/* Remove focus outline */
.filter-group select:focus {
outline: none;
}
/* <option> colors */
.filter-group select option {
    color: inherit;
    /* background-color: var(--clazyu-option-bg); */
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.reset-filters {
    color: var(--clazyu-link-color);
    font-size: 14px;
    text-decoration: underline;
}
/* Search Section */
.search-group {
    display: flex;
    gap: 8px;
    position: relative;
}

.search-group input[type="search"] {
    padding: 8px 12px;
    border: 1px solid var(--clazyu-gold);
    border-radius: 4px;
    background-color: #fff;
    font-size: 15px;
    height: 40px;
}


.search-submit {
    background: var(--clazyu-gold);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 15px;
}

.search-submit:hover {
    background: var(--clazyu-gold-hover);
}

.search-submit svg {
    width: 18px;
    height: 18px;
}

input#event-search:focus-visible {
    box-shadow: 0 0 6px var(--clazyu-link-color);
    border: 1px solid var(--clazyu-link-color);
    outline: none;
}
@supports not selector(:focus-visible) {
  input#event-search:focus {
    /* Fallback for browsers without :focus-visible support */
    box-shadow: 0 0 6px var(--clazyu-link-color);
    border: 1px solid var(--clazyu-link-color);
    outline: none;
  }
}

/* When JavaScript is enabled, make the search more subtle */
.js .search-submit {
    opacity: 0.7;
}

.js .search-submit:hover {
    opacity: 1;
}

@media (min-width: 600px) {
    .filter-row {
        flex-direction: row;
        justify-content: space-between;
    }
    .filter-group {
        width: 48%;
    }
    .filter-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
@media (min-width: 768px) {
    .filter-group {
        width: 23%;
    }
}

@media (min-width: 992px) {
    .filter-row {
        flex-wrap: nowrap;
        margin-bottom: 20px;
        justify-content: flex-start
    }
    .filter-group {
        width: auto;
        flex: 1;
    }
    .filter-group.event-type {max-width: 190px;}
    .filter-group.riding-activity {max-width: 225px;}
    .filter-group.stay-length {max-width: 135px;}
    .filter-group.visit-when {max-width: 155px;}
    .filter-actions {
        width: auto;
        padding-left: 20px;
        flex-direction: row-reverse;
        justify-content: flex-start;
        align-items: flex-end;
    }
    .search-submit {padding: 8px 10px;}
}

@media (min-width: 1200px) {
    .filter-actions {
        width: 15%;
    }
    .filter-group {
        min-width: 225px;
    }
    .search-submit {padding: 8px 16px;}
}


/* Single event template */

header.event-header p.header-events-back {
    border-top: 0 none;
    border-bottom: 1px dashed var(--clazyu-gold);
    margin-bottom: 1em;
    padding-top: 0;
    padding-bottom: 1em;
}
article.clazyu-event-single {padding-top: 20px;}

.event-dates {
   margin-bottom: 1em; 
}

.event-dates p {
    font-size: 20px;
    margin: 0;
}
.event-dates p.additional-dates {
    font-family: pobla_italic;
}
section.related-events {
    padding-top: 2em;
    padding-bottom: 2em;
    clear: right;
}
section.related-events h2 {text-align: center; margin-bottom: 20px;}

.related-event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
}

/* related events */
.event-card:hover .event-image img {
    transform: scale(1.05);
}
.related-event-cards .event-content:hover > *,
.related-event-cards .event-content:focus > * {
    text-decoration: none;
}
.related-event-cards .event-content:hover .learn-more-button,
.related-event-cards .event-content:focus .learn-more-button {
    background-color: var(--clazyu-brick-hover);
    color: #fff;
    text-decoration: none;
}
/* waitlist form */
.clazyu-waitlist-form {
    padding-top: 2em;
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto;
    scroll-margin-top: 200px;
}

.clazyu-waitlist-form h2 {text-align: center; margin-bottom: 30px;}
.event-footer {
    clear: both;
    margin-bottom: 1em;
    border-top: 1px solid #e5e5e5;
    padding-top: 2em;
}
.event-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.event-footer-content .prev-event,
.event-footer-content .next-event {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--clazyu-gold);
    color: var(--clazyu-gold);
}
.event-footer-content .prev-event:hover,
.event-footer-content .next-event:hover,
.event-footer-content .prev-event:focus,
.event-footer-content .next-event:focus {
    background-color: var(--clazyu-gold);
    color: #fff;
    text-decoration: none;
}
.event-footer-content .prev-event {
    justify-self: start;
}

.event-footer-content .next-event {
    justify-self: end;
}

.event-footer-content .nav-spacer {
    display: block;
}
p.go-back-two {
    border-bottom: 0 none;
    border-top: 1px dashed var(--clazyu-gold);
    margin-top: 2em;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 2em;
}

/* Booking Box */

.clazyu-booking-container {
    display: flex;
    width: 280px;
    height: 400px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: auto;
}
.clazyu-booking-container .clazyu-online-section, 
.clazyu-booking-container .clazyu-phone-section {
    display: flex;
    width: 80%;
    border: 2px solid #d9af62;
    border-radius: 15px;
    padding: 1em;
    flex-wrap: wrap;
    text-decoration: none;
}
.clazyu-booking-container .clazyu-online-section:hover, 
.clazyu-booking-container .clazyu-phone-section:hover {
    border-color: var(--clazyu-gold-hover);
}
.clazyu-booking-container .clazyu-phone-section .resortPhone {
    font-size: 22px;
    color: #d9af62;
    font-family: pobla_bold;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    flex-wrap: wrap;
}
.clazyu-booking-container .clazyu-online-section .clazyu-email-link, 
.clazyu-booking-container .clazyu-online-section .clazyu-tel-link, 
.clazyu-booking-container .clazyu-phone-section .clazyu-email-link, 
.clazyu-booking-container .clazyu-phone-section .clazyu-tel-link {
    display: block;
    text-align: center;
    width: 100%;
    color: var(--clazyu-gold);
}
.clazyu-booking-container .clazyu-online-section:hover .clazyu-email-link, 
.clazyu-booking-container .clazyu-online-section:hover .clazyu-tel-link, 
.clazyu-booking-container .clazyu-phone-section:hover .clazyu-email-link:hover, 
.clazyu-booking-container .clazyu-phone-section:hover .clazyu-tel-link {
    color: var(--clazyu-gold-hover);
}

.clazyu-booking-container .clazyu-online-section .clazyu-time, 
.clazyu-booking-container .clazyu-phone-section .clazyu-time {
    display: block;
    width: 100%;
    text-align: center;
    font-family: pobla_italic;
    font-size: 16px;
    color: var(--clazyu-text-color);
}
.clazyu-booking-container .clazyu-online-section .clazyu-email-link svg, 
.clazyu-booking-container .clazyu-online-section .clazyu-tel-link svg, 
.clazyu-booking-container .clazyu-phone-section .clazyu-email-link svg, 
.clazyu-booking-container .clazyu-phone-section .clazyu-tel-link svg {
    width: 30px;
    height: 30px;
    display: block;
    margin: 0 auto 5px;
}
@media (min-width: 576px) {
    .clazyu-booking-container {
        flex-wrap: nowrap;
        height: 260px;
        width: 550px;
        justify-content: space-between;
    }
    .clazyu-booking-container .clazyu-online-section, 
    .clazyu-booking-container .clazyu-phone-section {
        width: 48%;
        height: 150px;
        margin: 0 .5em;
        align-items: flex-start;
    }
    .clazyu-booking-container .clazyu-phone-section .resortPhone {
        height: auto;
    }
}
@media (min-width: 768px) {
    .clazyu-booking-container {
        flex-wrap: nowrap;
        height: 260px;
        width: 630px;
    }
}

/* Event info block */

.clazyu-event-info {
    padding-left: 40px;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.clazyu-event-info > li.dates-list,
.clazyu-event-info > li.rates-list,
.clazyu-event-info > li.minimum-stay,
.clazyu-event-info > li.custom-bullet {
    margin-bottom: 5px;
}

.clazyu-event-info ul.dates-list,
.clazyu-event-info ul.rates-list {
    margin: 0 0 0.5em 0;
    //list-style-type: disc;
    padding-left: 26px;
}
.clazyu-event-info ul.rates-list > li:first-child {
    margin-top: 3px;
}
.clazyu-event-info .dates-list li.sold-out {
    color: #999;
    text-decoration: line-through;
}

.clazyu-event-info .dates-list li.sold-out::after {
    content: " Sold Out";
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5em;
    text-transform: uppercase;
    color: var(--clazyu-brick);
    font-size: .95em;
}
.clazyu-event-info .dates-list .promo-text:before {content: "(";}
.clazyu-event-info .dates-list .promo-text:after {content: ")";}
.clazyu-event-info .dates-list .promo-text {
    margin-left: 5px;
    display: inline-block;
    font-family: "pobla_italic";
    font-size: .95em;
}
/* Booking button block */

.clazyu-event-booking-button {
    text-align: left;
    margin: 1em 0;
}


.clazyu-event-booking-button .btn-book {
    display: inline-block;
    padding: 0.75em 2em;
    background-color: var(--clazyu-brick);
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.clazyu-event-booking-button .btn-book:hover {
    background-color: var(--clazyu-brick-hover);
}

.clazyu-event-inactive .event-status-notice {
    font-family: "pobla_italic";
    font-size: 20px;
    margin: 3rem auto 2rem;
    letter-spacing: 0.03em;
    color: rgba(115,55,2,.75);
    padding: 20px;
    border: 2px dashed rgba(115,55,2,.75);
    background-color: rgb(217,175,98);
    display: flex;
    align-items: center;
    word-break: normal; 
    box-shadow: 0 0 0 6px rgb(217,175,98);
    border-radius: 50px;
    max-width: 320px;
    
}
.clazyu-event-inactive .event-status-notice p {margin-bottom: 0; text-align: center; width: 100%;}