/* =============================================================================
   VENUES LANDING PAGE
   Styles the top-level Venues hub page.
============================================================================= */

.tbe-venues-landing {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Hero */

.tbe-venues-landing__hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #008277;
    margin-bottom: 70px;
}

.tbe-venues-landing__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 130, 119, 0.94) 0%,
        rgba(0, 130, 119, 0.72) 45%,
        rgba(0, 0, 0, 0.38) 100%
    );
    z-index: 1;
}

.tbe-venues-landing__hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    padding: 100px 0;
    margin: 0 auto;
    color: #ffffff;
}

.tbe-venues-landing__hero-content h1 {
    max-width: 820px;
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 4.8vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.tbe-venues-landing__intro {
    max-width: 720px;
    font-size: 1.18rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.94);
}

.tbe-venues-landing__intro p {
    margin: 0;
}

/* Venues section */

.tbe-venues-landing__venues {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0;
}

.tbe-venues-landing__section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.tbe-venues-landing__section-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
}

.tbe-venues-landing__section-heading p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #4b5563;
}

/* Venue filters */

.tbe-venue-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin: 0 0 34px;
    padding: 22px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.tbe-venue-filter label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #111827;
}

.tbe-venue-filter select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
}

.tbe-venue-filter--buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =============================================================================
   VENUE GRID
   Displays venue cards in a responsive grid, with a maximum of 4 cards per row.
============================================================================= */

.tbe-venue-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 34px;
}

@media (max-width: 1200px) {
    .tbe-venue-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tbe-venue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tbe-venue-grid {
        grid-template-columns: 1fr;
    }
}

.tbe-venue-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.tbe-venue-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.tbe-venue-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbe-venue-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.tbe-venue-card__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.tbe-venue-card__title a {
    color: inherit;
    text-decoration: none;
}

.tbe-venue-card__location {
    margin-bottom: 14px;
    font-weight: 700;
    color: #008277;
}

.tbe-venue-card__content p {
    margin: 0 0 18px;
    color: #4b5563;
    line-height: 1.6;
}

.tbe-venue-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 20px;
}

.tbe-venue-card__meta span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 0.86rem;
    font-weight: 700;
    color: #374151;
}

/* CTA */

.tbe-venues-landing__cta {
    width: min(1180px, calc(100% - 40px));
    margin: 70px auto 90px;
    padding: 54px;
    border-radius: 24px;
    background: #008277;
    color: #ffffff;
    text-align: center;
}

.tbe-venues-landing__cta h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -0.03em;
}

.tbe-venues-landing__cta p {
    max-width: 680px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    line-height: 1.6;
}

#venue-results {
    scroll-margin-top: 120px;
}

@media (max-width: 1100px) {
    .tbe-venue-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .tbe-venue-filter--buttons {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .tbe-venue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tbe-venues-landing__hero-content,
    .tbe-venues-landing__venues,
    .tbe-venues-landing__cta {
        width: min(100% - 28px, 1180px);
    }

    .tbe-venue-filters {
        grid-template-columns: 1fr;
    }

    .tbe-venue-grid {
        grid-template-columns: 1fr;
    }

    .tbe-venues-landing__cta {
        padding: 34px 22px;
        margin-bottom: 60px;
    }
}


/* =============================================================================
   SINGLE VENUE PAGE
   Styles individual Venue posts.
============================================================================= */

.tbe-single-venue {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Hero */

.tbe-single-venue__hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #008277;
    margin-bottom: 70px;
}

.tbe-single-venue__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 130, 119, 0.94) 0%,
        rgba(0, 130, 119, 0.72) 45%,
        rgba(0, 0, 0, 0.38) 100%
    );
    z-index: 1;
}

.tbe-single-venue__hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    padding: 110px 0;
    margin: 0 auto;
    color: #ffffff;
}

.tbe-single-venue__location {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.tbe-single-venue__hero-content h1 {
    max-width: 860px;
    margin: 0 0 20px;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.tbe-single-venue__intro {
    max-width: 720px;
    font-size: 1.18rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.94);
}

.tbe-single-venue__intro p {
    margin: 0;
}

.tbe-single-venue__hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* Main body */

/* Individual venue content: one shared width and natural-height overview. */
.tbe-single-venue__body,
.tbe-single-venue__gallery,
.tbe-single-venue__experiences {
    box-sizing: border-box;
    width: min(1500px, calc(100% - 40px));
    margin: 0 auto 56px;
}
.tbe-single-venue__body {
    display: grid;
    grid-template-columns: minmax(340px, 0.85fr) minmax(0, 2fr);
    gap: 32px;
    align-items: stretch;
    margin-top: 40px;
}
.tbe-single-venue__facts,
.tbe-single-venue__content {
    box-sizing: border-box;
    min-width: 0;
    padding: 34px;
    border: 1px solid transparent;
    border-top-width: 5px;
    border-radius: 26px;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #008277, #ba0002) border-box;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}
.tbe-single-venue__facts::before,
.tbe-single-venue__content::before { content: none; }
.tbe-single-venue__facts {
    position: static;
    display: flex;
    flex-direction: column;
}
.tbe-single-venue__facts h2 {
    margin: 0 0 18px;
    font-size: 1.45rem;
    letter-spacing: -.02em;
}
.tbe-single-venue__facts dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    margin: 0 0 24px;
}
.tbe-single-venue__facts dl > div {
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}
.tbe-single-venue__fact--wide { grid-column: 1 / -1; }
.tbe-single-venue__facts dt {
    margin-bottom: 5px;
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.tbe-single-venue__facts dd {
    margin: 0;
    color: #111827;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.tbe-single-venue__facts > .tbe-button {
    align-self: flex-start;
    margin-top: auto;
    max-width: 100%;
    white-space: normal;
}
.tbe-single-venue__main { min-width: 0; display: flex; }
.tbe-single-venue__content { width: 100%; margin: 0; }
.tbe-single-venue__content h2,
.tbe-single-venue__gallery h2,
.tbe-single-venue__experiences h2 {
    margin: 0 0 24px;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    letter-spacing: -.03em;
}
.tbe-single-venue__content p { font-size: 1.06rem; line-height: 1.75; }
.tbe-single-venue__content > :last-child { margin-bottom: 0; }
.tbe-single-venue__gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.tbe-single-venue__gallery-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
}
#venue-details { scroll-margin-top: 120px; }

/* Same scrolling track and breakpoints as the homepage. */
.tbe-single-venue__experiences .tbe-experience-grid {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 12px 0 34px;
    margin: 34px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 130, 119, 0.45) rgba(0, 130, 119, 0.10);
}

.tbe-single-venue__experiences .tbe-experience-grid .tbe-experience-card {
    flex: 0 0 calc((100% - 78px) / 4);
    scroll-snap-align: start;
}

/* Chrome / Edge / Safari scrollbar styling */

.tbe-single-venue__experiences .tbe-experience-grid::-webkit-scrollbar {
    height: 10px;
}

.tbe-single-venue__experiences .tbe-experience-grid::-webkit-scrollbar-track {
    background: rgba(0, 130, 119, 0.10);
    border-radius: 999px;
}

.tbe-single-venue__experiences .tbe-experience-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #008277 0%, #ba0002 100%);
    border-radius: 999px;
}

.tbe-single-venue__experiences .tbe-experience-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #00685f 0%, #ba0002 100%);
}

@media (max-width: 1100px) {
    .tbe-single-venue__experiences .tbe-experience-grid .tbe-experience-card {
        flex-basis: calc((100% - 26px) / 2);
    }
}

@media (max-width: 600px) {
    .tbe-single-venue__experiences .tbe-experience-grid {
        gap: 18px;
        padding-bottom: 28px;
    }

    .tbe-single-venue__experiences .tbe-experience-grid .tbe-experience-card {
        flex-basis: 82%;
    }
}


.tbe-single-venue__experiences .tbe-experience-grid {
    width: 100%;
    max-width: none;
    margin: 0;
}
.tbe-single-venue__experiences .tbe-experience-card {
    box-sizing: border-box;
    min-width: 0;
    max-width: none;
}
.tbe-single-venue__experiences .tbe-experience-card__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.tbe-single-venue__experiences .tbe-experience-card__buttons .tbe-button {
    box-sizing: border-box;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
}
.tbe-single-venue__experiences .tbe-experience-card__buttons .tbe-button--primary {
    width: 100%;
    white-space: normal;
    text-align: center;
}
/* Preserve the existing shortlist handler and its added state. */
.tbe-single-venue__experiences .tbe-shortlist-button { font-size: 0; }
.tbe-single-venue__experiences .tbe-shortlist-button::before {
    content: '+ Add';
    font-size: .9rem;
    font-weight: 800;
}
.tbe-single-venue__experiences .tbe-shortlist-button.is-added::before { content: 'Added'; }
.tbe-single-venue__experiences .tbe-experience-grid:focus-visible {
    outline: 2px solid #008277;
    outline-offset: 5px;
}
@media (max-width: 1000px) {
    .tbe-single-venue__body { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
    .tbe-single-venue__gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .tbe-single-venue__body,
    .tbe-single-venue__gallery,
    .tbe-single-venue__experiences {
        width: calc(100% - 28px);
        margin-bottom: 36px;
    }
    .tbe-single-venue__body { margin-top: 24px; }
    .tbe-single-venue__facts,
    .tbe-single-venue__content { padding: 26px 22px; }
    .tbe-single-venue__gallery-grid { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .tbe-single-venue__experiences .tbe-experience-grid { scroll-behavior: auto; }
}

/* =============================================================================
   VENUE LOCATION SEARCH
============================================================================= */

.tbe-venue-location-search {
    margin: 34px 0 28px;
}

.tbe-venue-location-search__inner {
    position: relative;
    display: block;
    padding: 34px;
    border-radius: 26px;
    background: linear-gradient(180deg, #f8fcfc 0%, #ffffff 100%);
    border: 1px solid rgba(0, 130, 119, 0.22);
    border-left: 6px solid #008277;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

.tbe-venue-location-search h2::before {
    content: "📍";
    display: inline-flex;
    margin-right: 10px;
    font-size: 0.9em;
}

.tbe-venue-location-search__content {
    max-width: 760px;
    margin-bottom: 24px;
}

.tbe-venue-location-search h2 {
    margin: 0 0 12px;
    color: #111827;
}

.tbe-venue-location-search p {
    margin: 0;
    color: #4b5563;
}

.tbe-venue-location-search__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    max-width: 900px;
}

.tbe-venue-location-search__form input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 130, 119, 0.22);
    background: #ffffff;
    color: #111827;
    font-size: 1rem;
}

.tbe-venue-location-search__form input:focus {
    outline: none;
    border-color: #008277;
    box-shadow: 0 0 0 4px rgba(0, 130, 119, 0.12);
}

.tbe-venue-location-search__form input::placeholder {
    color: #9ca3af;
}

.tbe-venue-location-search__form .tbe-button {
    min-height: 56px;
    padding-left: 26px;
    padding-right: 26px;
    white-space: nowrap;
}

.tbe-venue-location-search__message {
    margin-top: 18px !important;
    font-weight: 800;
    color: #008277 !important;
}

@media (max-width: 700px) {
    .tbe-venue-location-search__inner {
        padding: 26px;
    }

    .tbe-venue-location-search__form {
        grid-template-columns: 1fr;
    }

    .tbe-venue-location-search__form .tbe-button {
        width: 100%;
    }
}
/* =============================================================================
   VENUE DISTANCE BADGE
   Shows mileage after a postcode search has been used.
============================================================================= */

.tbe-venue-card__distance {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 12px !important;
    margin-bottom: 14px !important;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 130, 119, 0.10);
    color: #008277 !important;
    font-weight: 900;
    font-size: 0.9rem;
    line-height: 1.2;
}

.tbe-venue-card__distance::before {
    content: "📍";
    margin-right: 6px;
    font-size: 0.9rem;
}

.tbe-venue-card__distance[hidden] {
    display: none !important;
}

/* =============================================================================
   VENUE FILTER WRAPPER
   Hides venue filters until a location search has been used.
============================================================================= */

.tbe-venue-filter-wrapper[hidden] {
    display: none !important;
}

.tbe-venue-filter-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Keep venue labels and buttons aligned across cards. */

.tbe-venue-grid {
    align-items: stretch;
}

.tbe-venue-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.tbe-venue-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(56px, auto));
    gap: 8px;
    margin: auto 0 20px;
}

.tbe-venue-card__meta span {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Reserve this space even when no button is displayed. */
.tbe-venue-card__actions {
    display: flex;
    align-items: stretch;
    min-height: 46px;
    flex-shrink: 0;
}

.tbe-venue-card__actions > .tbe-button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin: 0;
}