/* Racecourse static restore - styles for theme/plugin components whose original CSS was lost */
:root { --rc-maroon: #7c2b23; --rc-beige: #BEAD91; --rc-ink: #1a1a1a; }
html.rc-panel-open { overflow: hidden; }

/* ---------- Booking panel (slide-in drawer) ---------- */
.redcat-booking-panel { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; transform: none; width: auto; background: transparent; box-shadow: none; overflow: visible; }
.redcat-booking-panel.is-open { visibility: visible; pointer-events: auto; }
.redcat-booking-panel .booking-panel-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .3s; }
.redcat-booking-panel.is-open .booking-panel-overlay { opacity: 1; }
.redcat-booking-panel .booking-panel-content { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s ease; box-shadow: -6px 0 30px rgba(0,0,0,.25); }
.redcat-booking-panel.is-open .booking-panel-content { transform: translateX(0); }
.booking-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: var(--rc-maroon); color: #fff; }
.booking-panel-title { margin: 0; font-size: 24px; color: #fff; }
.booking-panel-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; line-height: 0; }
.booking-panel-close svg { width: 26px; height: 26px; }
.booking-panel-tabs { display: flex; border-bottom: 1px solid #e6e0d6; }
.booking-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; background: #f7f4ef; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font: inherit; font-weight: 600; color: #555; }
.booking-tab svg { width: 20px; height: 20px; }
.booking-tab.active { background: #fff; color: var(--rc-maroon); border-bottom-color: var(--rc-maroon); }
.booking-panel-content-area { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.booking-content { display: none; }
.booking-content.active { display: block; }
.booking-section-header h3 { margin: 0 0 6px; }
.booking-section-header p { margin: 0 0 16px; color: #555; }

/* ---------- Booking buttons ---------- */
.booking-button { font-family: inherit; }
.booking-button__text { pointer-events: none; }

/* ---------- Floating menu popups ---------- */
.floating-menu-item.is-open .floating-menu-popup-content { display: block !important; position: absolute; right: calc(100% + 10px); bottom: 0; top: auto; margin: 0; background: #fff; color: #000; border: 1px solid #e6e0d6; padding: 16px 20px; min-width: 260px; max-width: 320px; box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: 14px; line-height: 1.55; }
.floating-menu-popup-content p { margin: 0 0 8px; white-space: normal; }
.floating-menu-popup-content .rc-popup-title { font-weight: 700; color: var(--rc-maroon); text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 767px) { .floating-menu-item.is-open .floating-menu-popup-content { right: calc(100% + 8px); min-width: 220px; } }

/* ---------- Video hero (video removed: still image) ---------- */
.video-placeholder-image { opacity: 1 !important; }
.video-booking-container { min-height: 70vh; }
@media (max-width: 768px) { .video-booking-container { min-height: 55vh; } }

/* ---------- Splide shared ---------- */
.splide__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.splide__arrow { background: #fff; border: 1px solid var(--rc-beige); opacity: 1; width: 2.6em; height: 2.6em; }
.splide__arrow svg { fill: var(--rc-maroon); }
.splide__pagination__page.is-active { background: var(--rc-maroon); }

/* mr-blocks slider */
.wp-block-mr-blocks-slider .splide__slide { height: var(--mr-slider-height, 70vh); }
.wp-block-mr-blocks-slider-item-wrapper, .wp-block-mr-blocks-slider-item-wrapper picture { display: block; width: 100%; height: 100%; }
@media (max-width: 1024px) { .wp-block-mr-blocks-slider .splide__slide { height: var(--mr-slider-height-tablet, 50vh); } }
@media (max-width: 600px) { .wp-block-mr-blocks-slider .splide__slide { height: var(--mr-slider-height-mobile, 60vh); } }
.wp-block-mr-blocks-slider .splide__pagination { bottom: -1.8em; }

/* mr-blocks carousel */
.wp-block-mr-blocks-carousel .splide__slide { height: var(--carousel-height, 500px); }
.wp-block-mr-blocks-carousel-item, .wp-block-mr-blocks-carousel-item > * { height: 100%; }
.wp-block-mr-blocks-carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.mr-carousel--arrows-left-bottom { padding-bottom: 4em; }
.mr-carousel--arrows-left-bottom .splide__arrows { position: absolute; left: 0; bottom: 0; display: flex; gap: 10px; }
.mr-carousel--arrows-left-bottom .splide__arrow { position: static; transform: none; }

/* ---------- Corporate events / promotions carousels ---------- */
.corporate-events-carousel, .corporate-promotions-carousel { position: relative; }
.carousel-arrows-right-top { padding-top: 3.6em; }
.carousel-arrows-right-top .splide__arrows { position: absolute; top: 0; right: 0; display: flex; gap: 10px; }
.carousel-arrows-right-top .splide__arrow { position: static; transform: none; }
.carousel-arrows-right-top .splide__pagination { position: static; margin-top: 18px; }
.carousel-arrows-right-top .splide__pagination__page { background: #d8cfc0; }
[class$="-carousel__item"] { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #ece6dc; }
[class$="-carousel__image"] { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #f3efe8; }
[class$="-carousel__image"] img { width: 100%; height: 100%; object-fit: cover; }
[class*="-carousel__status"] { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--rc-maroon); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; }
[class$="-carousel__date"] { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; background: rgba(0,0,0,.62); color: #fff; font-size: 13px; }
[class$="-carousel__date"] span { display: inline-flex; align-items: center; gap: 5px; }
[class$="-carousel__date"] svg { width: 16px; height: 16px; }
[class$="-carousel__body"], [class$="-carousel__content"] { display: flex; flex-direction: column; flex: 1; }
[class$="-carousel__body"] { padding: 16px 18px 18px; }
[class$="-carousel__title"] { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
[class$="-carousel__description"] { margin: 0 0 14px; color: #444; font-size: 15px; line-height: 1.55; }
[class$="-carousel__actions"], [class$="-carousel__enquiry"] { margin-top: auto; }
[class*="-carousel__enquiry-button"] { display: inline-block; background: var(--rc-beige); color: #fff !important; border: 0; padding: 10px 22px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none !important; cursor: pointer; }
[class*="-carousel__enquiry-button"]:hover { background: #a89778; }
[class*="-carousel__enquiry-panel"] { display: none; margin-top: 12px; }
[class*="-carousel__enquiry-panel"].is-open { display: block; }
[class$="-carousel__info"] { font-size: 14px; color: #555; }

/* ---------- mr-blocks tabs ---------- */
.rc-tabs-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 18px; }
.rc-tab-btn { background: none; border: 0; border-bottom: 3px solid transparent; padding: 6px 0; cursor: pointer; font-family: inherit; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; color: #9a9a9a; }
.rc-tab-btn.is-active { color: var(--rc-ink); border-bottom-color: var(--rc-beige); }

/* ---------- mr-blocks accordion ---------- */
.mr-accordion-item { border-bottom: 1px solid #e3dccf; }
.mr-accordion-item__header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; padding: 18px 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.mr-accordion-item__title { margin: 0; font-size: 22px; }
.mr--accordion--arrow .mr-accordion-item__header::after, .mr-accordion--arrow .mr-accordion-item__header::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: 4px; }
.mr-accordion--arrow .mr-accordion-item__header.is-active::after { transform: rotate(-135deg); }
.mr-accordion-item__panel { display: none; }
.mr-accordion-item__panel.is-active { display: block; padding-bottom: 18px; }

/* ---------- mr-blocks modal ---------- */
.wp-block-mr-blocks-modal.rc-open { position: fixed; inset: 0; z-index: 100001; }
.wp-block-mr-blocks-modal .otter-popup__modal_wrap_overlay { position: absolute; inset: 0; background: var(--overlay-color, rgba(0,0,0,.5)); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.wp-block-mr-blocks-modal .otter-popup__modal_content { position: relative; width: min(var(--popup-width, 720px), 100%); max-height: 90vh; overflow-y: auto; background: var(--popup-background, #fff); color: var(--popup-text-color, #000); padding: var(--popup-padding, 20px); border-radius: var(--popup-border-radius, 5px); }
.otter-popup__modal_header { display: flex; justify-content: flex-end; }
.otter-popup__modal_close { background: none; border: 0; cursor: pointer; font-size: 26px; line-height: 1; padding: 4px; }
.otter-popup__modal_close svg { width: 24px; height: 24px; }

/* ---------- icon list ---------- */
.wp-block-mr-blocks-icon-list { list-style: none; padding: 0; margin: 0; }
.wp-block-mr-blocks-icon-list-item { display: flex; align-items: center; gap: 10px; }
.wp-block-mr-blocks-icon-list-item img, .wp-block-mr-blocks-icon-list-item svg { width: 22px; height: 22px; flex: none; }

/* ---------- scroll-in animation (animate.css v3 names) ---------- */
@keyframes rcFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes rcFadeUp { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@keyframes rcFadeLeft { from { opacity: 0; transform: translateX(-24px) } to { opacity: 1; transform: none } }
@keyframes rcFadeRight { from { opacity: 0; transform: translateX(24px) } to { opacity: 1; transform: none } }
.animated.rc-in { animation: rcFadeIn .7s ease both; }
.animated.fadeInUp.rc-in { animation-name: rcFadeUp; }
.animated.fadeInLeft.rc-in { animation-name: rcFadeLeft; }
.animated.fadeInRight.rc-in { animation-name: rcFadeRight; }
@media (prefers-reduced-motion: reduce) { .animated.rc-in { animation: none; } }

/* ---------- GDPR cookie bar add-on look ---------- */
#moove_gdpr_cookie_info_bar { box-shadow: 0 -4px 16px rgba(0,0,0,.2); }

.mr-accordion-item__header { padding: 16px 18px; }
.mr-accordion-item__panel.is-active { padding: 0 18px 18px; }

html, body { overflow-x: clip; }

