/* ==========================================================================
   13 Valleys Ultra — MyCarPass nav theme
   --------------------------------------------------------------------------
   CSS-only branding layer. No HTML changes — every rule targets the
   existing Bootstrap 5 markup (#mainNav) and overrides the default
   .navbar-light / .bg-white theme. Load AFTER app.css / bootstrap.css.

   Colours sampled from the live 13valleysultra.com header:
   background #2f4350, text #ffffff.
   ========================================================================== */

:root {
    --tvu-header-bg: #2f4350;          /* dark slate blue — exact match */
    --tvu-nav-link: #ffffff;
    --tvu-nav-link-hover: rgba(255, 255, 255, 0.75);

    /* Dropdown panel — slightly darker shade of the header */
    --tvu-dropdown-bg: #263741;
    --tvu-dropdown-link: #ffffff;
    --tvu-dropdown-hover-bg: rgba(255, 255, 255, 0.08);
    --tvu-dropdown-divider: rgba(255, 255, 255, 0.15);

    /* Rounded geometric sans, bold. Swap the first family for the
       licensed brand webfont if the client supplies it. */
    --tvu-font-nav: "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Header bar
   -------------------------------------------------------------------------- */

/* !important required: Bootstrap's .bg-white utility is itself !important */
#mainNav.navbar {
    background: var(--tvu-header-bg) !important;
}

div.back-to-background {
    background: var(--tvu-header-bg) !important;
}
.back-to-link {
    color:#fff !important;
}
#mainNav #sitelogo {
    max-height: 100px;
    width: auto;
}

/* --------------------------------------------------------------------------
   Nav links — white, bold, sentence case, generous spacing
   -------------------------------------------------------------------------- */

#mainNav .navbar-nav .nav-link {
    color: var(--tvu-nav-link);
    font-family: var(--tvu-font-nav);
    font-weight: 700;
    font-size: 1.0625rem;
    transition: color 0.15s ease-in-out;
}

/* Wide gaps between items, as on the live site */
@media (min-width: 1200px) {
    /* matches navbar-expand-xl breakpoint */
    #mainNav .navbar-nav .nav-link {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link:focus,
#mainNav .navbar-nav .show > .nav-link {
    color: var(--tvu-nav-link-hover);
}

#mainNav .navbar-nav .nav-link.active {
    color: var(--tvu-nav-link);
}

/* Keyboard focus visibility on the dark bar */
#mainNav .navbar-nav .nav-link:focus-visible,
#mainNav .navbar-brand:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Mobile toggler — swap the navbar-light (dark) icon for a white one
   -------------------------------------------------------------------------- */

#mainNav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--tvu-nav-link);
}

#mainNav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.2);
}

#mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --------------------------------------------------------------------------
   Account dropdown
   -------------------------------------------------------------------------- */

#mainNav .dropdown-menu {
    background: var(--tvu-dropdown-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 0.5rem 0;
    min-width: 14rem;
}

#mainNav .dropdown-item {
    color: var(--tvu-dropdown-link);
    font-family: var(--tvu-font-nav);
    font-size: 0.9375rem;
    padding: 0.5rem 1.25rem;
    transition: background 0.15s ease-in-out;
}

/* FA SVGs inside items use fill="currentColor", so they follow the text */
#mainNav .dropdown-item .svg-inline--fa {
    margin-right: 0.5rem;
    width: 1.1em;
    opacity: 0.85;
}

#mainNav .dropdown-item:hover,
#mainNav .dropdown-item:focus {
    color: var(--tvu-dropdown-link);
    background: var(--tvu-dropdown-hover-bg);
}

#mainNav .dropdown-item:active {
    color: var(--tvu-dropdown-link);
    background: rgba(255, 255, 255, 0.15);
}

#mainNav .dropdown-divider {
    border-top-color: var(--tvu-dropdown-divider);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Collapsed (mobile) menu
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    #mainNav .navbar-collapse {
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 1rem;
    }

    /* Static dropdown inside the collapse: flatten the panel styling */
    #mainNav .navbar-collapse .dropdown-menu {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    #mainNav .navbar-nav .nav-link,
    #mainNav .dropdown-item {
        transition: none;
    }
}

/* ==========================================================================
   Homepage / product index
   ========================================================================== */

:root {
    --tvu-band-bg: #eef1f4;            /* pale steel band behind the strapline */
    --tvu-body-text: #46555f;          /* muted slate for body copy */
    --tvu-card-radius: 0.5rem;
    --tvu-card-height: 420px;
}

/* --------------------------------------------------------------------------
   Hero banner
   -------------------------------------------------------------------------- */

.home-banner {
    background: var(--tvu-header-bg);
    padding: 4.5rem 0 5rem;
}

.home-banner .welcome-title {
    color: #fff;
    font-family: var(--tvu-font-nav);
    font-weight: 800;
    font-size: 3rem;
    margin: 0;
    padding: 30px;
}

/* --------------------------------------------------------------------------
   Strapline band
   -------------------------------------------------------------------------- */

#main-container-body {
    background: var(--tvu-band-bg);
    padding: 2.5rem 0;
}

#main-container-body .customer-title {
    color: var(--tvu-header-bg);
    font-family: var(--tvu-font-nav);
    font-weight: 700;
    font-size: 1.375rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Intro copy
   -------------------------------------------------------------------------- */

.silverstone-font {
    max-width: 46rem;
    margin: 0 auto 3rem;
    padding: 2rem 2.5rem 2.25rem;
    background: #ffffff;
    border-top: 4px solid var(--tvu-header-bg);
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 16px rgba(47, 67, 80, 0.08);
    color: var(--tvu-body-text);
    font-size: 1.0625rem;
    line-height: 1.75;
    text-align: center;
}

/* Emphasise the opening welcome line in slate */
.silverstone-font::first-line {
    color: var(--tvu-header-bg);
    font-weight: 700;
    font-size: 1.125rem;
}

@media (max-width: 575.98px) {
    .silverstone-font {
        padding: 1.5rem 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   Product flip cards
   -------------------------------------------------------------------------- */

.flip-card {
    width: 100%;
    max-width: 450px;
    height: var(--tvu-card-height);
    perspective: 1200px;
}

.flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

/* Flip on hover; focus-within covers keyboard users tabbing to the button */
.flip-card:hover .flip-card__inner,
.flip-card:focus-within .flip-card__inner {
    transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--tvu-card-radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(47, 67, 80, 0.25);
}

/* Front — image with gradient overlay and event name */

.flip-card__front .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-card__front .card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(20, 30, 37, 0.85) 0%, rgba(20, 30, 37, 0) 60%);
}

.card-hint {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.25rem;
}

.card-event-name {
    color: #ffffff;
    font-family: var(--tvu-font-nav);
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
}

/* Back — slate panel with details and CTA */

.flip-card__back {
    transform: rotateY(180deg);
    background: var(--tvu-header-bg);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
    text-align: left;
}

.card-back-name {
    color: #ffffff;
    font-family: var(--tvu-font-nav);
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    font-weight: 600;
}

.card-date svg {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}

.card-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

.card-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

.btn-card-register {
    display: block;
    width: 100%;
    text-align: center;
    background: #ffffff;
    color: var(--tvu-header-bg);
    font-family: var(--tvu-font-nav);
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background 0.15s ease-in-out;
}

.btn-card-register:hover,
.btn-card-register:focus {
    background: rgba(255, 255, 255, 0.85);
    color: var(--tvu-header-bg);
}

.btn-card-register:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Reduced motion: swap faces instantly instead of animating the 3D flip */
@media (prefers-reduced-motion: reduce) {
    .flip-card__inner {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Touch devices — show the card back (details + button) by default,
   since there's no hover to trigger the flip
   -------------------------------------------------------------------------- */

@media (max-width:768px) {
    .flip-card__inner {
        transform: rotateY(180deg);
        transition: none;
    }
}
ul#inner-header-menu li {
    border-right:none;
    margin-right:20px;
}
ul#inner-header-menu li.nav-item a.nav-link {
    text-transform: capitalize;
    font-size: 1.25rem;
    line-height: 1.75rem;
    color:#fff;
    font-weight: 600;
}
ul#inner-header-menu li.nav-item:last-child {
    background-color: rgb(217 224 33);
    border-radius: 9999px;
    padding: 10px 20px;
}
ul#inner-header-menu li.nav-item:last-child a.nav-link {
    color:#2f4350;
}
ul.auth-links {
    display: none;
}
#mainNav #inner-header-menu.me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}
/* Vertically centre the menu against the logo */
#mainNav .navbar-collapse {
    align-items: center;
}
ul#inner-header-menu {
    margin-top:0px !important;
}
#mainNav .navbar-nav {
    align-items: center;
}

/* ==========================================================================
   Shop page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Bootstrap primary re-theme (buttons across the tenant match the brand)
   -------------------------------------------------------------------------- */

.btn-primary {
    --bs-btn-bg: var(--tvu-header-bg);
    --bs-btn-border-color: var(--tvu-header-bg);
    --bs-btn-hover-bg: #26363f;
    --bs-btn-hover-border-color: #26363f;
    --bs-btn-active-bg: #1f2d35;
    --bs-btn-active-border-color: #1f2d35;
    --bs-btn-disabled-bg: #6f7f89;
    --bs-btn-disabled-border-color: #6f7f89;
    --bs-btn-focus-shadow-rgb: 47, 67, 80;
}

.btn-outline-primary {
    --bs-btn-color: var(--tvu-header-bg);
    --bs-btn-border-color: var(--tvu-header-bg);
    --bs-btn-hover-bg: var(--tvu-header-bg);
    --bs-btn-hover-border-color: var(--tvu-header-bg);
    --bs-btn-active-bg: #1f2d35;
    --bs-btn-active-border-color: #1f2d35;
    --bs-btn-focus-shadow-rgb: 47, 67, 80;
}

/* Utilities are !important in Bootstrap, so match them */
.btn.bg-primary {
    background: var(--tvu-header-bg) !important;
}

.filter-panel .text-primary {
    color: var(--tvu-header-bg) !important;
}

/* Form controls pick up the brand on focus / checked states */
.form-check-input:checked {
    background: var(--tvu-header-bg);
    border-color: var(--tvu-header-bg);
}

.form-check-input:focus,
.form-control:focus {
    border-color: #8fa0aa;
    box-shadow: 0 0 0 0.25rem rgba(47, 67, 80, 0.15);
}

.form-range::-webkit-slider-thumb {
    background: var(--tvu-header-bg);
}

.form-range::-moz-range-thumb {
    background: var(--tvu-header-bg);
}

/* --------------------------------------------------------------------------
   Shop header
   -------------------------------------------------------------------------- */

.shop-header {
    background: var(--tvu-header-bg) !important;
    padding: 2.75rem 0;
    margin-bottom: 1.5rem;
}

.shop-header h1 {
    color: #ffffff;
    font-family: var(--tvu-font-nav);
    font-weight: 800;
}

.shop-header .lead {
    color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Breadcrumb & section headings
   -------------------------------------------------------------------------- */

.breadcrumb-item a {
    color: var(--tvu-header-bg);
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #7b8a93;
}

.search-h2 {
    color: var(--tvu-header-bg);
    font-family: var(--tvu-font-nav);
    font-weight: 800;
    font-size: 1.75rem;
}

/* --------------------------------------------------------------------------
   Slide panels (cart, filter, sort) — brand the headers
   -------------------------------------------------------------------------- */

.cart-dropdown-header,
.filter-panel-header,
.sort-panel-header {
    background: var(--tvu-header-bg);
    color: #ffffff;
}

/* White close icon on the dark header (Bootstrap btn-close-white technique) */
.cart-dropdown-header .btn-close,
.filter-panel-header .btn-close,
.sort-panel-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.filter-section-title {
    color: var(--tvu-header-bg);
    font-weight: 700;
}

.sort-option-icon {
    color: var(--tvu-header-bg);
}

.sort-option.active {
    background: rgba(47, 67, 80, 0.08);
}

.sort-option.active .sort-option-check {
    color: var(--tvu-header-bg);
}

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */

.product-card {
    border: 1px solid #e3e8eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(47, 67, 80, 0.15);
}

.product-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-title {
    color: var(--tvu-header-bg);
    font-family: var(--tvu-font-nav);
    font-weight: 700;
    font-size: 1.0625rem;
}

.product-silverstone_product_description {
    color: var(--tvu-body-text);
    font-size: 0.9rem;
}

.event-details-grid .detail-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    color: var(--tvu-body-text);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.event-details-grid .detail-item svg {
    color: var(--tvu-header-bg);
    flex-shrink: 0;
}

.product-price {
    color: var(--tvu-header-bg);
    font-weight: 800;
}

.sold-out-banner {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: #c0392b;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   Categories section
   -------------------------------------------------------------------------- */

.category-background {
    background: var(--tvu-band-bg);
    padding: 3rem 0;
    margin-top: 3rem;
}

.category-background h3 {
    color: var(--tvu-header-bg);
    font-family: var(--tvu-font-nav);
    font-weight: 800;
}

.category-item-link {
    display: block;
    text-decoration: none;
}

.category-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--tvu-header-bg) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-item-link:hover .category-item {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(47, 67, 80, 0.25);
}

.category-item-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
}

.category-item-link:hover .category-item-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.category-item-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(20, 30, 37, 0.9), rgba(20, 30, 37, 0));
}

.category-item-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
}

.category-item-count {
    color: #000;
    font-size: 0.8125rem;
}

/* ==========================================================================
   Shop — product view page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Global utility re-theme
   Bootstrap's .text-primary / .bg-primary utilities are !important,
so the
   overrides must match. This turns every "primary" blue across the tenant
   into the brand slate (modal headers,
verify button,
tab icons,
etc.)
   -------------------------------------------------------------------------- */

.text-primary.text-primary{
    color: var(--tvu-header-bg) !important;
}

.bg-primary.bg-primary{
    background: var(--tvu-header-bg) !important;
    color:#fff;
}

/* --------------------------------------------------------------------------
   Product image & details tabs
   -------------------------------------------------------------------------- */

.event-detail-image.event-detail-image{
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 6px 18px rgba(47, 67, 80, 0.15);
}

.event-details-tabs.event-details-tabs .nav-link{
    color: var(--tvu-body-text);
    font-weight: 600;
}

.event-details-tabs.event-details-tabs .nav-link:hover{
    color: var(--tvu-header-bg);
}

.event-details-tabs.event-details-tabs .nav-link.active{
    color: var(--tvu-header-bg);
    font-weight: 700;
}

.shopping-view-product.shopping-view-product .alert-info{
    background: rgba(47, 67, 80, 0.07);
    border-color: rgba(47, 67, 80, 0.2);
    color: var(--tvu-header-bg);
}

/* Car park address + map */

.parking-address.parking-address{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.parking-address.parking-address .address-window{
    flex: 1 1 220px;
}

.carpark-name.carpark-name{
    color: var(--tvu-header-bg);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.carpark-address-details.carpark-address-details{
    color: var(--tvu-body-text);
    line-height: 1.7;
    margin-bottom: 0;
}

.event-detail-panel__map.event-detail-panel__map{
    flex: 2 1 300px;
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 0.5rem;
}

/* --------------------------------------------------------------------------
   Booking card (right column)
   -------------------------------------------------------------------------- */

.booking-card.booking-card{
    border: 1px solid #e3e8eb;
    border-radius: 0.5rem;
    box-shadow: 0 6px 18px rgba(47, 67, 80, 0.12);
}

.booking-card.booking-card.sticky-top{
    top: 1rem;
}

.event-category-badge.event-category-badge{
    background: rgba(47, 67, 80, 0.1);
    color: var(--tvu-header-bg);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
    margin-right: 0.5rem;
}

.event-title.event-title{
    color: var(--tvu-header-bg);
    font-family: var(--tvu-font-nav);
    font-weight: 800;
    font-size: 1.5rem;
}

.event-price-container.event-price-container{
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.event-price.event-price{
    color: var(--tvu-header-bg);
    font-weight: 800;
    font-size: 2rem;
}

/* Add to Cart / Verify buttons */

.btn-book-now.btn-book-now, .btn-primary{
    background: var(--tvu-header-bg);
    border-color: var(--tvu-header-bg);
    color: #ffffff !important;
    font-weight: 700;
}

.btn-book-now.btn-book-now:hover,
.btn-book-now.btn-book-now:focus{
    background: #26363f;
    border-color: #26363f;
    color: #ffffff;
}

.btn-book-now.btn-book-now:disabled{
    background: var(--tvu-header-bg);
    border-color: var(--tvu-header-bg);
    color: #ffffff;
    opacity: 0.45;
}

/* Trust features row under the button */

.booking-features.booking-features{
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.booking-features.booking-features .feature-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    text-align: center;
    color: var(--tvu-body-text);
    font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Related products
   -------------------------------------------------------------------------- */

.related-products-section.related-products-section{
    background: var(--tvu-band-bg);
    padding: 4rem 0;
    margin-top: 3rem;
}

.related-products-section.related-products-section .section-title{
    color: var(--tvu-header-bg);
    font-family: var(--tvu-font-nav);
    font-weight: 800;
}

.related-product-card.related-product-card{
    height: 100%;
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(47, 67, 80, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-product-card.related-product-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(47, 67, 80, 0.18);
}

.related-product-image-wrapper.related-product-image-wrapper{
    position: relative;
}

.related-product-image.related-product-image{
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-product-overlay.related-product-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 67, 80, 0.75);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.related-product-card.related-product-card:hover .related-product-overlay{
    opacity: 1;
}

.related-product-content.related-product-content{
    padding: 1.25rem;
}

.related-product-title.related-product-title{
    color: var(--tvu-header-bg);
    font-weight: 700;
    font-size: 1rem;
}

.related-product-price.related-product-price{
    color: var(--tvu-header-bg);
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0.5rem 0 1rem;
}

/* --------------------------------------------------------------------------
   Coach timetable modal (tm-*)
   -------------------------------------------------------------------------- */

.tm-header.tm-header{
    position: relative;
    background: var(--tvu-header-bg);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.tm-header.tm-header .btn-close{
    position: absolute;
    top: 1rem;
    right: 1rem;
    filter: invert(1) grayscale(100%) brightness(200%);
}

.tm-subtitle.tm-subtitle{
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.tm-info-banner.tm-info-banner{
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    background: rgba(47, 67, 80, 0.07);
    border: 1px solid rgba(47, 67, 80, 0.15);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: var(--tvu-header-bg);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tm-day-heading.tm-day-heading{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tm-day-heading.tm-day-heading h6{
    margin: 0;
    color: var(--tvu-header-bg);
    font-weight: 700;
}

.tm-day-badge.tm-day-badge{
    background: var(--tvu-header-bg);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tm-time-grid.tm-time-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
}

.tm-summary.tm-summary h6{
    color: var(--tvu-header-bg);
    font-weight: 700;
}

.tm-footer.tm-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e3e8eb;
}

/* ==========================================================================
   Shop — cart page (selectors pre-doubled to match load-order strategy)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Cart slide-panel items & footer
   -------------------------------------------------------------------------- */

.cart-dropdown-item.cart-dropdown-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #edf0f2;
}

.cart-dropdown-item.cart-dropdown-item h6 {
    color: var(--tvu-header-bg);
    font-weight: 700;
}

.cart-dropdown-footer.cart-dropdown-footer {
    padding: 1.25rem;
    border-top: 1px solid #e3e8eb;
    background: #f6f8f9;
}

/* --------------------------------------------------------------------------
   Cart page header & items card
   -------------------------------------------------------------------------- */

.shopping-cart-overview.shopping-cart-overview .cart-header h1 {
    color: var(--tvu-header-bg);
    font-family: var(--tvu-font-nav);
    font-weight: 800;
    font-size: 2rem;
    margin: 0 0 1.5rem;
}

.card-hover {
    border: 1px solid #e3e8eb;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(47, 67, 80, 0.06);
    transition: box-shadow 0.2s ease;
}

.card-hover:hover {
    box-shadow: 0 6px 18px rgba(47, 67, 80, 0.12);
}

.cart-item {
    padding: 0.75rem 0;
}

.cart-item:not(:last-child) {
    border-bottom: 1px solid #edf0f2;
}

.cart-item-image {
    border-radius: 0.375rem;
    width: 100%;
    object-fit: cover;
}

.cart-item-title {
    color: var(--tvu-header-bg);
    font-weight: 700;
    font-size: 1.0625rem;
}

.cart-item-price {
    color: var(--tvu-body-text);
    font-size: 0.9375rem;
}

.cart-quantity-input {
    max-width: 140px;
}

.cart-subtotal {
    color: var(--tvu-header-bg);
    font-weight: 800;
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Order summary
   -------------------------------------------------------------------------- */

.order-summary-card {
    border: 1px solid #e3e8eb;
    border-radius: 0.5rem;
    box-shadow: 0 6px 18px rgba(47, 67, 80, 0.12);
}

.order-summary-title {
    color: var(--tvu-header-bg);
    font-family: var(--tvu-font-nav);
    font-weight: 800;
}

.summary-row.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.375rem 0;
    color: var(--tvu-body-text);
}

.summary-row.summary-row.summary-total {
    color: var(--tvu-header-bg);
    font-size: 1.25rem;
    padding-top: 0.5rem;
}

/* Customer details block — .bg-light/.border are !important utilities */
.customer-details-section {
    background: #f6f8f9 !important;
    border-color: #e3e8eb !important;
}

.btn-checkout.btn-checkout {
    font-weight: 700;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

/* ==========================================================================
   Shop — checkout page (selectors pre-doubled)
   ========================================================================== */

.shopping-cart-checkout.shopping-cart-checkout .checkout-header h1 {
    color: var(--tvu-header-bg);
    font-family: var(--tvu-font-nav);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.shopping-cart-checkout.shopping-cart-checkout .checkout-header {
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Section headers — slate bands for "Invoice Information",
   "Payment Information" and "Order Summary"
   -------------------------------------------------------------------------- */

.checkout-section-header.checkout-section-header {
    background-color: var(--tvu-header-bg);
    color: #ffffff;
    font-family: var(--tvu-font-nav);
    font-weight: 700;
    padding: 0.875rem 1.25rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

/* When the header is the first element of a card, square it into the top */
.card > .checkout-section-header.checkout-section-header {
    border-radius: 0.5rem 0.5rem 0 0;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Form polish
   -------------------------------------------------------------------------- */

.shopping-cart-checkout.shopping-cart-checkout .form-label {
    color: var(--tvu-header-bg);
    font-weight: 600;
}

/* Place Order button (colours come from the .btn-primary re-theme) */
.btn-place-order.btn-place-order {
    font-weight: 700;
    font-size: 1.0625rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

/* --------------------------------------------------------------------------
   Order summary
   -------------------------------------------------------------------------- */

/* Match the booking card's sticky offset */
.order-summary-card.order-summary-card.sticky-top {
    top: 1rem;
}

.checkout-summary-item.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--tvu-body-text);
    border-bottom: 1px solid #edf0f2;
}

.checkout-summary-item.checkout-summary-item strong {
    color: var(--tvu-header-bg);
}

.checkout-summary-total.checkout-summary-total {
    padding-top: 0.75rem;
    font-size: 1.25rem;
    color: var(--tvu-header-bg);
}

/* Gradient-text total */
.text-gradient.text-gradient {
    color: var(--tvu-header-bg); /* fallback */
    background: linear-gradient(135deg, #2f4350 0%, #5a7386 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Booking form sections (product page right-hand card, selectors pre-doubled)
   ========================================================================== */

/* Each form step becomes a soft grouped panel so the flow reads clearly:
   vehicle reg → passengers → car park → coach time → coupon */
.vehicle-registration-section.vehicle-registration-section,
.passengers-section.passengers-section,
.carpark-selection-section.carpark-selection-section,
.coach-timetable-section.coach-timetable-section,
.coupon-code-section.coupon-code-section {
    background-color: #f8fafb;
    border: 1px solid #e9eef1;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Labels (and their inline FA icons via currentColor) in brand slate */
.booking-form.booking-form .form-label {
    color: var(--tvu-header-bg);
}

/* Helper text sits a touch smaller and calmer inside the panels */
.booking-form.booking-form small.text-muted {
    font-size: 0.8125rem;
}

/* Coach timetable trigger — dashed outline reads as "picker", fills on hover */
.coach-timetable-section.coach-timetable-section #btnOpenTimetable {
    border-style: dashed;
    font-weight: 600;
}

.coach-timetable-section.coach-timetable-section #btnOpenTimetable:hover,
.coach-timetable-section.coach-timetable-section #btnOpenTimetable:focus {
    border-style: solid;
}

/* "Important Information" box under the form (.bg-light is !important) */
.booking-card.booking-card .bg-light {
    background-color: #f6f8f9 !important;
    border: 1px solid #e9eef1;
}

.booking-card.booking-card .bg-light h6 {
    color: var(--tvu-header-bg);
    font-weight: 700;
}

.booking-card.booking-card .bg-light ul {
    color: var(--tvu-body-text);
}

/* ==========================================================
   13 Valleys — Step 1: order lookup form
   ========================================================== */

:root {
    --tv-primary: #223c33;      /* header band, headings — swap to brand */
    --tv-accent: #4c8577;       /* accents, focus states — swap to brand */
    --tv-tint: #eef4f2;         /* pale tint for callout + alt rows */
    --tv-text: #3d4a45;         /* body copy */
}

/* Intro callout above the form */
.to-register {
    background-color: var(--tv-tint);
    border-left: 6px solid var(--tv-accent);
    border-radius: 0 0.75rem 0.75rem 0;
    color: var(--tv-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1.1rem 1.4rem;
    margin-bottom: 2rem;
    max-width: 62ch;
}

/* Spacing utility on the row */
.margin-bottom-40 {
    margin-bottom: 40px;
}

/* ---- Form table as a soft card ---- */
.silverstone-form-one {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    margin-bottom: 1.5rem;
    background-color: #ffffff;
}

.silverstone-form-one thead.bg-blue {
    background-color: var(--tv-primary);
}

.silverstone-form-one thead th {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1rem;
    padding: 0.9rem 1.25rem;
}

.silverstone-form-one tbody td {
    padding: 0.9rem 1.25rem;
    vertical-align: middle;
    background-color: #ffffff;
}

/* Alternate row tint */
.silverstone-form-one tr.bg-light-grey td {
    background-color: var(--tv-tint);
}

/* Field labels */
.silverstone-form-one .silverstone-font {
    color: var(--tv-primary);
    font-weight: 600;
    font-size: 0.95rem;
}
tbody tr td .silverstone-font {
    /* existing global silverstone-font styles */
    border: none;
    max-width: unset;
    padding: 0px;
    box-shadow: none;
    background:none;
}
/* ---- Inputs ---- */
.silverstone-form .form-control {
    border: 2px solid #cbd5d1;
    border-radius: 0.5rem;
    padding: 0.55rem 0.85rem;
    color: var(--tv-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.silverstone-form .form-control:focus {
    border-color: var(--tv-accent);
    box-shadow: 0 0 0 0.2rem rgba(76, 133, 119, 0.25);
    outline: none;
}

.silverstone-form .form-control:user-invalid {
    border-color: #c0392b;
}

/* ---- Next button ---- */
.silverstone-button {
    background-color: var(--tv-primary);
    border: 2px solid var(--tv-primary);
    border-radius: 0.5rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1.5rem;
    min-width: 160px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.silverstone-button:hover,
.silverstone-button:focus {
    background-color: var(--tv-accent);
    border-color: var(--tv-accent);
    color: #ffffff;
}

.silverstone-form .silverstone-button.float-end {
    margin-bottom: 2rem;
}

/* ---- Sidebar images ---- */
.step_1_image {
    display: block;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    object-fit: cover;
    aspect-ratio: 3 / 2;
}

.step_1_image + .step_1_image {
    margin-top: 1.5rem;
}

@media (max-width: 767.98px) {
    .step_1_image:first-of-type {
        margin-top: 2rem;
    }

    .step_1_image + .step_1_image {
        margin-top: 1rem;
    }
}
/* ==========================================================
   13 Valleys — Step 2: update order / VRM entry
   ========================================================== */

/* ---- Shared table card (order details + products) ---- */
.step-two-table {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    background-color: #ffffff;
    margin-bottom: 1.5rem;
}

.step-two-table thead.bg-blue {
    background-color: var(--tv-primary);
}

.step-two-table thead th {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem;
}

.step-two-table tbody td {
    padding: 0.7rem 1.1rem;
    vertical-align: middle;
    color: var(--tv-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---- Readonly fields render as display chips, not inputs ---- */
.step-two-table .form-control[readonly] {
    background-color: var(--tv-tint);
    border: none;
    border-radius: 0.5rem;
    color: var(--tv-primary);
    font-weight: 600;
    cursor: default;
    box-shadow: none;
}

.step-two-table .form-control[readonly]:focus {
    box-shadow: none;
}

/* ---- VRM input: number-plate look on the editable field ---- */
.step-two-table .no-spaces.form-control {
    font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.12em;
    border-radius: 0.4rem;
    border-width: 2px;
    padding: 0.45rem 0.6rem;
    max-width: 190px;
}

.step-two-table .no-spaces.form-control::placeholder {
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.45);
    text-transform: none;
}

.step-two-table .no-spaces.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.4);
}

/* ---- Note rows (single full-width cell) ---- */
.choose-products tbody td[colspan] {
    background-color: var(--tv-tint);
    color: var(--tv-text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.85rem 1.1rem;
    white-space: pre-line; /* markup carries meaningful line breaks */
}

/* ---- Complete Parking button ---- */
.choose-products + .silverstone-button,
form .silverstone-button {
    min-width: 240px;
}

/* ---- Mobile ----
   This template has no responsive d-none columns, so the five-column
   products table needs to scroll rather than crush */
@media (max-width: 767.98px) {
    .choose-products {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    form .silverstone-button {
        width: 100%;
        min-width: 0;
    }

    .order-details-wrapper {
        margin-bottom: 1.5rem;
    }

    .step-two-table th:not(:first-child):not(:last-child),
    .step-two-table td:not(:first-child):not(:last-child) {
        display: none;
    }
}
@media (min-width: 768px) and (max-width:992px) {
    .step-two-table th:nth-child(2),.step-two-table th:nth-child(4),
    .step-two-table td:nth-child(2), .step-two-table td:nth-child(4) {
        display: none;
    }
}
/* ==========================================================
   13 Valleys — Step 3: thank you / confirmation
   ========================================================== */

/* Alert row sits in <main> with no .container — kill the
   negative gutters so there's no horizontal scrollbar */
main > .row {
    margin-left: 0;
    margin-right: 0;
}

/* ---- Success banner ---- */
.alert-success {
    background-color: #eaf4ee;
    border: none;
    border-left: 6px solid #2e9e5b;
    border-radius: 0;
    color: #1c5c38;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 1.1rem 1.5rem 1.1rem 1.25rem;
    margin-bottom: 0;
}

/* CSS-drawn tick, no HTML change */
.alert-success::before {
    content: "";
    display: inline-block;
    width: 0.5em;
    height: 0.95em;
    border-right: 0.22em solid #2e9e5b;
    border-bottom: 0.22em solid #2e9e5b;
    transform: rotate(45deg);
    margin-right: 0.9rem;
    margin-left: 0.2rem;
    vertical-align: 0.05em;
}

/* Collapse the empty spacer container between alert and hero */
#main-container.bg-white {
    padding-top: 0;
    padding-bottom: 0;
}

/* ---- Hero banner ---- */
.home-banner {
    background-color: var(--tv-primary);
    background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--tv-primary) 85%, #ffffff) 0%,
    var(--tv-primary) 100%);
    padding: 6rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.step-3-welcome-title {
    color: #ffffff;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0;
}

/* Green accent bar — success variant */
.step-3-welcome-title::after {
    content: "";
    display: block;
    width: 130px;
    height: 10px;
    border-radius: 5px;
    background-color: #2e9e5b;
    margin-top: 1.75rem;
}

/* ---- Confirmation copy ---- */
.home-banner + .container {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

.home-banner + .container .silverstone-font {
    color: var(--tv-text);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 62ch;
    margin-bottom: 1.25rem;
}

/* "clicking here" link — brand accent instead of Bootstrap blue.
   text-primary is an !important utility, so match it */
.home-banner + .container .silverstone-font a {
    color: var(--tv-accent) !important;
    font-weight: 700;
    text-decoration: none;
}

.home-banner + .container .silverstone-font a:hover,
.home-banner + .container .silverstone-font a:focus {
    color: var(--tv-primary) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Mobile ---- */
@media (max-width: 767.98px) {
    .home-banner {
        padding: 4rem 0 4.5rem;
    }
}
