
@media screen and (min-width:1880px) {
    .container {
        /* max-width: calc(100% - 60px); */
        max-width: calc(100% - (270px - 24px));
    }
    .hero-main-wrapper {
        /* width: calc(100% - (160px - 24px)); */
        width: calc(100% - 60px);
    }
}
@media screen and (min-width:1401px) {
    .positioned_header_nav {
        position: absolute;
        content: "";
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}
@media screen and (max-width:1400px) {
    .beforelogin {
        margin-top: 5px;
        margin-left: auto;
    }
}
@media screen and (min-width: 1300px) and (max-width: 1880px) {
    .container {
        max-width: calc(100% - (270px - 24px));
    }
    .hero-main-wrapper {
        width: calc(100% - 60px);
    }
}
@media screen and (max-width: 1509px) {
    .offering_item_wrapper {
        justify-content: center;
    }
    .offering_item_card {
        width: 262px;
    }
}
@media screen and (max-width: 1389px) {
    .offering_item_card {
        width: 232px;
    }
}


@media screen and (max-width: 1440px) {
    .modal-gallery-content {
        max-width: calc(1210px - (270px - 24px));
    }
}
@media screen and (max-width: 1400px) {
    .offering_map_content_item_wrapper {
        width: 500px;
    }
    .map_blk {
        width: calc(100% - (500px + 24px));
    }
}

@media screen and (max-width: 1300px) {
    .container {
        max-width: calc(100% - (170px - 24px));
    }
    .image_block {
        width: calc(100% - (170px - 24px));
    }
    .hero-main-wrapper {
        width: calc(100% - 60px);
    }
    header button.opnBtn {
        display: block !important;
    }
    button.closeBtn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .item_cards .item_title h3 {
        font-size: 30px;
    }
    .footer_nav {
        gap: 20px 50px;
    }
    .one_line_style {
        margin: 0px 20px;
    }
    .leftscroll_btn {
        left: 5px;
    }
    .rightscroll_btn {
        right: 5px;
    }
    .offering_item_wrapper {
        justify-content: center;
    }
    .offering_item_card {
        width: 264px;
    }
}
@media screen and (max-width: 1297px) {
    .offering_item_card {
        width: 232px;
    }
}
@media screen and (min-width:1200px) {

}

@media screen and (max-width: 1200px) {
    .hero-content-wrapper h1 {
        font-size: 60px;
    }
    .cta_banner_content {
        max-width: 450px;
    }
    .cta_banner_content h2 {
        font-size: 28px;
    }
    .cta_banner_content p.cta_list_content {
        font-size: 18px;
    }
}
@media screen and (max-width: 1120px) {
    .modal-gallery-content {
        max-width: calc(1000px - (270px - 24px));
    }
}
@media screen and (max-width: 1100px) {
    .afterlogin {
        position: static;
        transform: none;
        margin-top: 5px;
    }
    .tags_tab .nav-link {
        font-size: 18px !important;
    }
}
@media screen and (max-width: 992px) {
    .credential_banner {
        display: none;
    }
    .credential_container {
        width: 70%;
        padding: 24px 24px;
    }
    .container {
        max-width: calc(100% - 60px);
    }
    .hero_section {
        align-items: flex-start;
        min-height: 720px;
    }
    .hero-content-wrapper {
        margin-top: 250px;
    }
    .hero-content-wrapper h1 {
        font-size: 50px;
    }
    .item_cards .item_title h3 {
        font-size: 26px;
    }
    .item_heading_blk h2 {
        font-size: 40px;
    }
    .item_buttons_list {
        gap: 25px 50px;
    }
    span.item_title {
        font-size: 18px;
    }
    .items_content p {
        font-size: 14px;
    }
    .items_content {
        min-width: 300px;
    }
    .cta_banner_wrapper {
        padding: 45px 60px 0px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
    .cta_banner_content {
        max-width: 100%;
    }
    .cta_banner_img {
        position: static;
    }
    .offering_heading h2 {
        font-size: 38px;
    }
    .offering_map_content_item_wrapper {
        width: 232px;
    }
    .map_blk {
        width: calc(100% - (232px + 24px));
    }
    .modal-gallery-content {
        max-width: calc(100% -  154px);
    }
    .image_block {
        width: calc(100% - 84px);
    }
    .all_items_content p {
        font-size: 14px;
    }
    .acc_wrapper {
        width: 220px;
    }
    .acc_tab_content {
        width: calc(100% - 244px);
    }
    .offering_item_card {
        height: 412px;
    }
    .tags_tab .nav {
        justify-content: flex-start !important;
    }
    .tags_tab .one_line_style {
        margin: 0px 12px;
    }
}

@media screen and (max-width: 830px) {
    .items_content {
        display: none !important;
    }
    .all_items_content {
        display: block;
    }
}


@media screen and (max-width:768px) {
    .offering_btn_title {
        font-size: 16px;
    }
    .main_page_wrapper {
        min-height: calc(100vh - var(--header-height));
        height: 700px;
    }
    .svg-blk svg {
        max-width: 500px;
        max-height: 500px;
        width: 100%;
        height: 100%;
    }
    .hero-images-blk::after {
        width: 450px;
        height: 450px;
    }
    .hero-img {
        height: 450px;
    }
    .hero-content-wrapper h1 {
        font-size: 42px;
    }
    .hero-content-wrapper p {
        font-size: 26px;
    }
    .item_cards .item_title h3 {
        font-size: 24px;
        writing-mode: sideways-lr;
    }
    .sports_list_item input + label {
        padding: 18px 28px;
        font-size: 20px;
    }
    .item_heading_blk h2 {
        font-size: 38px;
    }
    span.item_title {
        font-size: 16px;
    }
    section.detail_hero_section {
        background-position: center !important;
    }
    .tab_line_style_blk .nav {
        gap: 15px 20px;
    }
    .one_line_style {
        margin: 0px 25px;
    }
    .event_img_gallery_btn {
        width: 46px;
        height: 46px;
    }
    .image_block {
        width: calc(100% - 84px);
    }
    .acc_wrapper, .acc_tab_content {
        width: 100%;
    }

}
@media screen and (max-width:730px) {
    .hero_section {
        min-height: 780px;
    }
    .select_search_wrapper {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        /*padding-top: 15px;*/
    }
    .vertical_divider {
        width: 100%;
        height: 1px;
    }
    .hero_select_search_wrapper {
        flex-direction: column;
        flex-wrap: wrap;
        padding: 20px;
        border-radius: 15px;
    }
    [class^="search_for"]:first-child .form-control {
        width: 100%;
    }
    [class^="search_for"]:first-child, [class^="search_for"]:last-child {
        width: 100%;
    }
    .select_search_action {
        width: 100%;
    }
    button.search_btn {
        width: 100%;
    }
    [class^="search_for"]:last-child label {
        width: 60px;
    }
    .custom_select {
        width: calc(100% - 90px);
    }
    .select-items {
        width: 100%;
    }
    ul.what_custom_select {
        width: 83%;
        /*transform: translate3d(-20px, 220px, 0px) !important;*/
    }
    .select-selected {
        padding: 0px;
    }
    .offering_nav.service_all_nav .offering_nav_list {
        gap: 8px 8px;
    }
    .offering_nav.service_all_nav .offering_btn {
        padding: 10px 11px;
        border-radius: 8px;
    }
    .offering_btn_title {
        font-size: 14px;
    }
}

/* ── Mobile filter sheet — base rules (all widths) ──
   On desktop/tablet the sheet wrappers are transparent (display:contents) so the
   facet grid renders inline EXACTLY as approved, and all mobile-only chrome is
   hidden. The max-width:576px block below flips these into a real bottom sheet.
   Kept OUTSIDE the media query and BEFORE it so the mobile overrides win the
   cascade (media queries add no specificity — source order decides). */
.filters-panel,
.filters-body {
    display: contents;
}
.mobile-filters-bar,
.mobile-filters-backdrop,
.filters-sheet-header,
.filters-sheet-footer {
    display: none;
}

@media screen and (max-width:576px) {
    .credential_container {
        width: 100%;
        padding: 24px 15px;
    }
    .container {
        max-width: calc(100% - 24px);
    }
    .hero_section {
        min-height: 720px;
    }
    .inner_pages_hero_section {
        height: 100%;
        min-height: 300px;
    }
    .hero_section.if_login {
        min-height: 640px;
    }
    .hero-main-wrapper {
        width: calc(100% - 24px);
    }
    .hero-images-blk::after {
        width: 370px;
        height: 370px;
    }
    .hero-content-wrapper {
        margin-top: 250px;
    }
    .hero-content-wrapper .offering_by_location {
        margin-top: 60px;
    }
    .select_sports_wrapper .box-select-card {
        width: calc(50% - 12px);
    }
    /*.offering_nav.service_all_nav {*/
    /*    display: none;*/
    /*}*/
    .offering_btn_title {
        font-size: 14px;
        display: none;
    }
    .cta_banner_wrapper {
        padding: 45px 25px 0px;
    }
    .hero-content-wrapper h1 {
        font-size: 32px;
    }
    .hero-content-wrapper p {
        font-size: 20px;
    }
    .sports_list_item input + label {
        padding: 16px 20px;
        font-size: 16px;
    }
    .item_heading_blk h2 {
        font-size: 28px;
    }
    .cta_banner_content h2 {
        font-size: 22px;
    }
    .cta_banner_content p.cta_list_content {
        font-size: 16px;
        line-height: 24px;
    }
    .footer_nav_col h3 {
        font-size: 18px;
    }
    .footer_content p {
        font-size: 14px;
        line-height: 20px;
    }
    .footer-nav-link {
        font-size: 14px;
    }
    .heading h2 {
        font-size: 22px;
    }
    .item_cards .item_title {
        padding: 16px;
    }
    .sports_nav_link {
        padding: 10px 14px;
        font-size: 14px;
    }
    .gray_btn_style {
        padding: 18px 20px;
        font-size: 14px;
        display: none;
    }
    .offering_sports_list_wrapper ul.nav .nav-link {
        font-size: 14px;
        padding: 12px 15px;
    }
    .location_title {
        font-size: 14px;
    }
    .offering_nav_list {
        gap: 15px 15px;
    }
    .offering_btn_icon {
        width: 28px;
        height: 28px;
    }
    .offering_nav {
        padding: 10px 25px;
    }
    .offering_content_title_filter {
        padding: 18px 15px;
    }
    /* Pull the 2-up tiles higher on first load — the results wrapper's 48px top
       margin is generous for a phone. Breathable, not cramped. */
    .offering_content_services {
        margin-top: 20px;
    }
    .double_arrow_icon {
        width: 22px;
        height: 22px;
    }
    .offering_heading h2 {
        font-size: 22px;
    }
    .offering_preview_btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    .viewing-events-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .viewing-events-row .offering_preview_format {
        align-self: center;
    }
    /* The row stacks and stretches on mobile; centre the toggle like the view switcher rather
       than letting a 60px-radius pill span the whole screen. */
    .viewing-events-row .sold_out_toggle {
        align-self: center;
    }
    .sold_out_toggle_label {
        font-size: 14px;
    }
    /* "viewing events / by region" control: restyle to match the pills/Filters card
       above — same 24px corner radius (not a 60px pill), full-width card, compact
       padding — so the block reads as one consistent unit. Desktop keeps the pill. */
    .viewing-events-row .page_title_card {
        display: flex;
        width: 100%;
        border-radius: 24px;
        padding: 12px 18px;
    }
    .select_field .form-select {
        font-size: 14px;
    }
    .search_blk input {
        font-size: 14px;
    }
    .hero_select_search_wrapper {
        padding: 16px;
    }
    .select_search_wrapper {
        gap: 10px 18px;
    }
    [class^="search_for"] :is(.form-control, select) {
        height: 30px;
    }
    .offering_content_title_filter .flex_between_blk {
        justify-content: center;
    }
    .tags_tab .nav-link {
        min-width: 75px;
        padding: 12px 15px !important;
        font-size: 14px !important;
        border-radius: 50px !important;
    }
    .offerings_section {
        padding: 0px 0px 40px;
    }
    .offering_item_wrapper, .offering_map_content_item_wrapper {
        justify-content: center;
        width: 100%;
        gap: 16px 8px;
    }
    .offering_item_card {
        width: calc(50% - 4px);
    }
    .offering_item_card {
        height: 312px;
    }
    /* The wire:key list-item wrapper has no width of its own, so the card's
       percentage width above can't resolve against it and the wrapper falls
       back to filling the whole row (1-up instead of 2-up). Collapsing the
       wrapper out of the box tree lets the card resolve its width against
       .offering_item_wrapper directly; wire:key keeps working since Livewire
       keys the element, not its rendered box. */
    .event-card-slot {
        display: contents;
    }

    /* ── Mobile filters: swipeable pill strip + "Filters" button + bottom sheet ──
       The 8 desktop facets are 25%-wide / 140px-min columns that both truncate
       labels and stack into a tall wall on a phone. Instead: keep the broad
       super-tag / distance pills as one horizontal-scroll strip, and move the
       dropdown facets into a slide-up bottom sheet opened by a "Filters" button.
       Desktop is untouched — .filters-panel/.filters-body are display:contents
       there, and the sheet chrome is display:none (see base rules above). */

    /* Super-tag / distance pills → single swipeable row (no wrap).
       min-width:0 on the nav + its wrapper defeats flexbox's default
       min-width:auto, which would otherwise let the pill row overflow its
       parent instead of scrolling inside it. */
    .tags_tab {
        width: 100%;
        min-width: 0;
    }
    .tags_tab .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tags_tab .nav::-webkit-scrollbar {
        display: none;
    }
    .tags_tab .nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* "Filters (n)" button */
    .mobile-filters-bar {
        display: block;
        margin-top: 16px;
    }
    .mobile-filters-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 18px;
        border: 1px solid var(--theme-clr);
        background: #ECF6F6;
        color: var(--theme-clr);
        border-radius: 50px;
        font-size: 15px;
        font-weight: 600;
    }
    .mobile-filters-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        background: var(--theme-clr);
        color: #fff;
        border-radius: 50px;
        font-size: 12px;
        font-weight: 600;
    }

    /* Dim backdrop behind the sheet. Present but invisible by default (opacity/
       visibility, not display) so it fades in and never flashes pre-Alpine. */
    .mobile-filters-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 3000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease;
    }
    .mobile-filters-backdrop.mobile-filters-backdrop--open {
        opacity: 1;
        visibility: visible;
    }

    /* Panel → fixed slide-up bottom sheet */
    .filters-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 85vh;
        z-index: 3001;
        background: var(--bs-white);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
        transform: translateY(100%);
        transition: transform 0.28s ease;
        overflow: hidden;
    }
    .filters-panel.filters-panel--open {
        transform: translateY(0);
    }

    .filters-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        border-bottom: 1px solid #eee;
        flex: 0 0 auto;
    }
    .filters-sheet-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--bs-black);
    }
    .filters-sheet-close {
        background: transparent;
        border: 0;
        padding: 4px;
        color: #333;
        display: inline-flex;
        line-height: 0;
    }

    /* Sheet body: scrollable, one facet per row */
    .filters-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px 18px;
        overflow-y: auto;
        flex: 1 1 auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Facets laid out 2 PER ROW inside the sheet (was 1-up full-width) so 8 short
       controls fit in ~4 rows with little scrolling.
       Tri: .tri-facet-grid holds the 8 .select_field cells directly → a 2-col grid.
       Non-tri: the cells are split across .flex-start (organiser/categories/refine)
       and .flex-end (date), so collapse those wrappers with display:contents and
       grid the parent .flex_between_blk → all cells flow into the same 2-col grid. */
    .filters-body .tri-facet-grid,
    .filters-body .flex_between_blk {
        display: grid !important; /* beat Bootstrap .d-flex { display:flex !important } */
        grid-template-columns: 1fr 1fr;
        gap: 12px !important;
        margin-top: 0 !important;
    }
    .filters-body .flex-start,
    .filters-body .flex-end {
        display: contents;
    }
    /* Reset the inline flex / percentage sizing so each cell fills its grid column
       — the inline max-width:calc(25%) would otherwise clamp cells to ~88px. */
    .filters-body .select_field {
        flex: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-top: 0 !important;
    }
    /* Escape hatch: a facet whose label can't fit at half width spans the full row. */
    .filters-body .select_field.facet-full {
        grid-column: 1 / -1;
    }
    /* Sheet footer owns "Clear all"; hide the inline tri clear button here */
    .filters-body .tri-inline-clear {
        display: none;
    }

    .filters-sheet-footer {
        display: flex;
        gap: 12px;
        padding: 14px 18px;
        border-top: 1px solid #eee;
        flex: 0 0 auto;
    }
    .filters-sheet-clear {
        flex: 0 0 auto;
        padding: 12px 18px;
        border-radius: 50px;
        background: #f4f4f4;
        color: #333;
        border: 0;
        font-weight: 600;
        font-size: 14px;
    }
    .filters-sheet-apply {
        flex: 1 1 auto;
        padding: 12px 18px;
        border-radius: 50px;
        background: var(--theme-clr);
        color: #fff;
        border: 0;
        font-weight: 600;
        font-size: 15px;
    }

    /* Lock background scroll while the sheet is open */
    body.filters-sheet-open {
        overflow: hidden;
    }
    /* The sheet lives inside .offerings_section (z-index:0), but the hero
       (.hero_section z-index:2) and the sticky header (z-index:5) sit ABOVE it —
       so without this they'd paint over the sheet's top (the "Filters" header,
       organiser + distance facets). While the sheet is open, lift the whole
       offerings_section above them so the sheet — and its dimming backdrop —
       cover the page correctly. Scoped to sheet-open (never true on desktop). */
    body.filters-sheet-open .offerings_section {
        z-index: 10;
    }
    /* The floating category nav (.offering_nav, fixed z-index:6) is now below the
       lifted section, but hide it too so it never intercepts sheet taps. */
    body.filters-sheet-open .offering_nav {
        display: none;
    }
    .offering_card_date {
        min-width: 55px;
    }
    .offering_card_date span {
        font-size: 12px;
        line-height: 15px;
    }
    .future_badge {
        border-radius: 6px;
        padding: 8px 9px;
        font-size: 12px;
    }
    span.flag_img {
        width: 33px;
        height: 23px;
        font-size: 26px;
    }
    .offering_logo {
        width: 30px;
        height: 30px;
    }
    .offering_title_blk h3 {
        font-size: 13px;
        height: auto;
    }
    .offering_title_blk {
        width: calc(100% - 42px);
    }
    .offering_map_content {
        flex-direction: column-reverse;
    }
    .map_blk {
        width: 100% !important;
        height: 320px;
        position: static;
    }
    .slider__prev {
        left: -18px;
    }
    .slider__next {
        right: -18px;
    }
    .management_info h1 {
        font-size: 28px;
    }
    .gallery_wrapper {
        justify-content: center;
    }
    .gallery_item {
        width: 142px;
        height: 140px;
    }
    .image_block {
        width: calc(100% - 48px);
    }
    .management_img {
        width: 90px;
        height: 90px;
    }
    .leftscroll_btn {
        left: 5px;
    }
    .rightscroll_btn {
        right: 5px;
    }
    .view_event_img_gallery_btn {
        font-size: 16px;
    }
    .modal-gallery-content {
        /*max-width: calc(100% -  130px);*/
        max-width: calc(100% -  52px);
    }
    .modal-gallery-content .banner-slide-img {
        height: 385px;
    }
    .gallery_swiper_button_prev, .gallery_swiper_button_next {
        width: 30px;
        height: 30px;
        z-index: 1;
    }
    .gallery_swiper_button_prev {
        left: -20px;
    }
    .gallery_swiper_button_next {
        right: -20px;
    }
    /* .event_img_gallery_blk button:not(:last-child):nth-last-child(-n + 3) {
        display: none;
    } */
    .event_img_gallery_blk button:nth-child(2) ~ button:not(:last-child) {
        display: none;
    }
    .rich_content_blk p {
        font-size: 16px;
        line-height: 1.6;
    }
    .review_location_field span.location-text, .event_date_time_blk *  {
        font-size: 18px;
    }
    .rich_content_blk p strong, .rich_content_blk ul li, .rich_content_blk ul li span, .rich_content_blk p :is(span, em) {
        font-size: 16px !important;
        font-weight: normal;
    }
    .review_item_wrapper .outline_card_info p {
        font-size: 18px;
    }
    .sports_type h3 {
        font-size: 20px;
    }
    .heading_info .sub_heading {
        /*width: calc(100% - 210px);*/
        width: 100%;
    }
    .register_link_btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    .tab_line_style_blk .nav-link {
        font-size: 16px;
    }
    .item_buttons_list {
        gap: 15px 10px;
    }
    span.curved_arrow , span.curved_arrow svg {
        width: 22px;
        height: 22px;
    }
    span.item_title {
        font-size: 13px;
    }

    .acc_wrapper {
        gap: 15px 24px;
    }
    .acc_tab_content {
        padding: 30px 15px 70px;
    }
    .acc_profile_img {
        width: 70px;
        height: 70px;
    }
    .acc_profile_info {
        width: calc(100% - 82px);
    }
    .acc_profile_info p {
        font-size: 14px;
        display: none;
    }
    .acc_sports_list li {
        padding: 13px 20px;
        font-size: 16px;
    }

    header .select_location_style {
        width: 38px;
        padding: 0px;
        height: 38px;
    }
    .profile_preview_nav {
        height: 38px;
        padding: 2px 10px 2px 2px;
        gap: 6px;
    }
    .profile_preview_nav img {
        width: 32px;
        height: 32px;
    }
    .profile_preview_nav__label {
        font-size: 12px;
    }
    header .select_location_style span.location-icon + span {
        display: none;
    }
    .offering_by_location select {
        font-size: 16px;
    }
    section.item_card_section {
        padding-bottom: 50px;
        background: var(--dark-page-bg);
    }
    .item_cards_wrapper {
        flex-wrap: wrap;
        flex-direction: column;
        margin-top: 40px;
    }
    .item_cards {
        flex: auto;
        height: 200px !important;
        width: 100%;
    }
    .item_cards:hover {
        flex: auto;
    }
    .item_cards .item_title h3 {
        font-size: 20px;
        writing-mode: lr;
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    .item_cards .item_caption {
        opacity: 1;
        transform: translateY(0);
        transition: none;
        font-size: 12px;
        white-space: normal;
    }
    section.cta_banner_section {
        padding: 60px 0px;
    }
    .hero_select_info {
        margin-top: 30px;
    }
    .sports_list_item {
        flex: 1;
    }
    .sports_list_item input + label {
        width: 100%;
    }
    .offering_content_title_filter .flex-start  :is(.select_field, select) {
        width: 100%;
        max-width: 100%;
    }
    .offering_content_title_filter .flex-start + .flex-end {
        width: 100%;
        max-width: 100%;
    }
    .offering_content_title_filter .flex-start + .flex-end :is(.select_field, select) {
        width: 100%;
        max-width: 100%;
    }
    .sports_type_elements button:nth-child(3) ~ button:not(:last-child) {
        display: none;
    }
    .event_badge_schedule {
        top: 20px;
        right: 20px;
        font-size: 14px;
    }
    .rich_content_blk *, .rich_content_blk p strong, .rich_content_blk ul li, .rich_content_blk ul li span, .rich_content_blk p :is(span, em) {
        font-size: 16px !important;
    }
    .calendar_schedule_info {
        width: 120px;
    }
    .tab_line_style_blk .nav {
        padding-right: 120px;
    }
    .calendar_item_card .offering_item_detail {
        width: calc(100% - 120px);
    }
    .offering_by_location {
        flex-grow: 1;
    }
    .service_offering_new_wrapper .offering_heading {
        border-radius: 12px;
        padding: 10px 0px 10px 18px;
        align-items: flex-start;
    }
    .service_offering_new_wrapper .offering_heading h2 {
        width: calc(100% - 97px);
    }
    .service_offering_new_wrapper .offering_heading .primary-btn {
        width: 87px;
        padding: 8px 12px;
        font-size: 12px;
    }
    .welcome_modal .custom-modal-footer :is(.primary-btn, .primary-outline-btn) {
        width: calc(38% - 6px);
    }
    section.detail_hero_section {
        height: 375px;
    }
    span.cal_img_overlay_text {
        padding: 12px 16px;
        font-size: 25px;
    }
    .result_count p {
        font-size: 16px;
    }
    .mysports_modal .sports_list_item input + label {
        font-size: 16px;
    }
    .mysports_modal .modal-header h2 {
        font-size: 18px;
    }
    .mysports_modal .custom-modal-footer :is(.primary-btn, .primary-outline-btn) {
        padding: 14px;
        min-width: 125px;
        font-size: 16px;
        font-weight: 500;
    }

    /* ── Browse tiles: fit the dense card content into the ~185px 2-col mobile card.
       The date badge was clipped because the countdown badge (inline styles) kept its
       full desktop size and pushed the date past the card's overflow:hidden edge; the
       profile chips were clipped because a long description overflowed the card. ── */
    .offering_item_card { height: 340px; }
    .offering_item_card .offering_top_blk { padding: 9px 8px; }
    .offering_item_card .event_sport_icon_badge { width: 30px; height: 30px; top: 8px; left: 8px; }
    /* Event tiles: drop the "In X days" badge on mobile (the top was too congested).
       With it gone the top block (justify-content-between) has a single child, so
       right-align it to keep the date at the top-right. Only event tiles carry
       .justify-content-between here, so profile tiles' sport-icon row is untouched. */
    .offering_item_card .event_countdown_badge { display: none !important; }
    .offering_item_card .offering_top_blk.justify-content-between { justify-content: flex-end !important; }
    /* Date badge: sit a little clear of the right edge + centre the day/month/year. */
    .offering_item_card .offering_card_date { min-width: 0; padding: 5px 6px; margin-right: 48px; align-items: center; } /* 48px clears the always-visible heart (style.css) */
    .offering_item_card .offering_card_date span { font-size: 11px; line-height: 14px; text-align: center; }
    .offering_item_card .ptrs_ch_flg_tata { padding: 8px; }
    .offering_item_card .future_badge { padding: 5px 8px; font-size: 10.5px; }
    .offering_item_card .offering_item_detail { padding: 10px 9px; gap: 5px; }
    .offering_item_card .offering_item_detail h3 { font-size: 13px !important; }
    .offering_item_card .offering_item_detail p { font-size: 11.5px !important; margin-bottom: 0; }
    .offering_item_card .offering_location p { font-size: 10.5px; }
    /* Profile tiles: keep the black strip small + consistent — show only logo, name,
       location and reviews. Hide the description, coach line and facet chips, which are
       direct children of .offering_item_detail on profile cards only (event cards nest
       their text inside .offering_title_blk / .flex_between_blk, so they're unaffected). */
    .offering_item_card .offering_item_detail > p { display: none !important; }
    .offering_item_card .offering_item_detail > div.d-flex.flex-wrap { display: none !important; }
}

@media screen and (max-width:460px) {
    a.header-logo {
        width: 100px;
    }
    .view_event_img_gallery_btn {
        font-size: 14px;
    }
    .event_img_gallery_btn {
        width: 36px;
        height: 36px;
    }
}

@media screen and (max-width:420px) {
    .hero-images-blk::after {
        width: 305px;
        height: 305px;
    }
    .hero-img {
        height: 390px;
    }
    .header-logo + ul {
        gap: 8px !important;
    }
    header .select_location_style {
        width: 32px;
        padding: 0px;
        height: 32px;
    }
    .profile_preview_nav {
        height: 32px;
        padding: 1px 8px 1px 1px;
        gap: 5px;
    }
    .profile_preview_nav img {
        width: 28px;
        height: 28px;
    }
    .profile_preview_nav__label {
        font-size: 11px;
    }
    .profile_preview_nav__chevron {
        width: 12px;
        height: 12px;
    }
    .login-btn {
        padding: 9px 13px;
        font-size: 12px;
    }
    /*.hero-content-wrapper {*/
    /*    margin-top: 195px;*/
    /*}*/
    .welcome_modal .custom-modal-footer :is(.primary-btn, .primary-outline-btn) {
        width: calc(50% - 6px);
    }
}

@media screen and (max-width:400px) {
    /*.hero-content-wrapper {*/
    /*    margin-top: 192px;*/
    /*}*/
}

@media screen and (max-width: 767.98px) {
    header .flex_between_blk {
        flex-wrap: nowrap;
    }
    header ul.flex-end {
        flex-wrap: nowrap;
    }
    /* Icon-only login button — strip teal pill, become dark circle matching location icon */
    header .login-btn {
        background: var(--dark-page-bg);
        border: 1px solid var(--gray-54);
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        flex-shrink: 0;
    }
    /* Ensure sport nav fills its flex space and centers the pill */
    header .header_sports_nav {
        min-width: 0;
        flex: 1;
    }
}

/* At very small screens, shrink login button to match shrunken location button */
@media screen and (max-width: 420px) {
    header .login-btn {
        width: 32px;
        height: 32px;
    }
}

/* ---- Organiser CTA phone (29 Sep 2026): below the wrap point the phone sits under the copy,
   centred, still clipped at the card's bottom edge; smaller on phones. ----------------------- */
@media screen and (max-width: 830px) {
    .cta_banner_img {
        position: relative;
        width: 380px;
        max-width: 100%;
        height: 500px;
        margin: 24px auto 0;
    }
    .cta_banner_img::before { left: 0; }
    .cta_phone { top: 24px; right: 40px; }
}
@media screen and (max-width: 576px) {
    .cta_banner_img { width: 330px; height: 430px; }
    .cta_phone {
        top: 12px;
        right: 15px;
        transform: perspective(1400px) rotateY(-10deg) rotateX(3deg) scale(0.86);
        transform-origin: 100% 0;
    }
}
