/* ==========================================================================
   MODE by YHA theme
   Scoped to body.mode-theme (set via ModePropertyPage.BodyCssClass) and the
   .mode-page / .mode-* components rendered by Views/ModePropertyPage.
   Palette from the MODE colour chart; font is Zalando Sans (self-hosted).
   ========================================================================== */

/* --- Font ---------------------------------------------------------------- */

@font-face {
    font-family: 'Zalando Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/Static/mode/fonts/zalando-sans-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Zalando Sans';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('/Static/mode/fonts/zalando-sans-variable-italic.woff2') format('woff2');
}

/* --- Palette ------------------------------------------------------------- */

:root {
    --mode-orange: #FF5A3C;
    --mode-maroon: #751600;
    --mode-blue: #4387E6;
    --mode-lilac: #DEBBF8;
    --mode-green-dark: #194916;
    --mode-green-light: #96F36C;
    --mode-gold: #D79B18;
    --mode-yellow: #FEDE74;
    --mode-ink: #1A1A1A;
    --mode-font: 'Zalando Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* --- Global overrides on MODE pages -------------------------------------- */

body.mode-theme,
body.mode-theme h1,
body.mode-theme h2,
body.mode-theme h3,
body.mode-theme h4,
body.mode-theme h5,
body.mode-theme h6,
body.mode-theme .btn,
body.mode-theme .mode-page,
body.mode-theme .mode-content,
body.mode-theme .mode-section,
body.mode-theme .mode-child-body,
body.mode-theme .mode-content-block,
body.mode-theme .mode-content-block__title,
body.mode-theme .mode-content-block__body,
body.mode-theme .hostelTab,
body.mode-theme .thingsToDoTab,
body.mode-theme .sustainabilityTab,
body.mode-theme .b-heading,
body.mode-theme .b-heading--green-bg {
    font-family: var(--mode-font) !important;
}

/* Pill-shaped buttons everywhere on MODE pages */
body.mode-theme .btn {
    border-radius: 999px;
}

/* Header: MODE logo sizing */
body.mode-theme .mode-header-logo .imageLinkBlock-img {
    max-height: 44px;
    width: auto;
}

/* Keep the header (and its open menu foldouts) above the page content,
   including the carousel and its MODE logo overlay. */
body.mode-theme .header {
    position: relative;
    z-index: 100;
}

/* Header: recolour top-right icons and CTAs to MODE orange */
body.mode-theme .header .searchIcon .glyphicon,
body.mode-theme .header .navigation-access .glyphicon,
body.mode-theme .header .loginLinks a,
body.mode-theme .header .mobileHeader .user-login a,
body.mode-theme .header .mobileHeader .glyphicon {
    color: var(--mode-orange);
}

/* No black focus ring on header login / discount CTAs */
body.mode-theme .header .loginLinks a:focus,
body.mode-theme .header .loginLinks a:focus-visible,
body.mode-theme .header .mobileHeader .user-login a:focus,
body.mode-theme .header .mobileHeader .user-login a:focus-visible,
body.mode-theme a.btn-arrow-right:focus,
body.mode-theme a.btn-arrow-right:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Mobile hamburger bars (theme default is grey #888) */
body.mode-theme #navHamburger span {
    background-color: var(--mode-orange);
}

/* Mobile slide-out nav chevrons are green SVG backgrounds — tint to MODE orange */
body.mode-theme .mobileNav .yhaCompactor .openIndicator,
body.mode-theme .mobileNav .yhaCompactor .content a::before {
    filter: hue-rotate(-110deg) saturate(1.35) brightness(1.05);
}

/* Theme CSS sets the green with !important, so these must be !important too */
body.mode-theme .header .btn-bookNow {
    background-color: var(--mode-orange) !important;
    border-color: var(--mode-orange) !important;
    border-radius: 999px;
}

body.mode-theme .header .btn-bookNow:hover,
body.mode-theme .header .btn-bookNow:focus {
    background-color: var(--mode-maroon) !important;
    border-color: var(--mode-maroon) !important;
}

/* Logged-in profile icon (base rule is green !important) */
body.mode-theme .header .glyphicon-user {
    color: var(--mode-orange) !important;
}

/* Language dropdown chevron: inline SVG with a hard-coded green fill */
body.mode-theme .header .language-chevron path {
    fill: var(--mode-orange);
}

/* --- Hero carousel -------------------------------------------------------- */

/* Sits inside .container so it respects the normal content width.
   Height is driven by the overlay logo: logo height + equal space above
   and below it (--mode-carousel-gap). */
.mode-carousel {
    --mode-carousel-gap: 48px;
    --mode-logo-height: 400px;
    position: relative;
    /* Own stacking context so the overlay logo / breadcrumbs (z-index inside)
       can never sit above the header menu. */
    z-index: 0;
    width: 100%;
    height: calc(var(--mode-logo-height) + (var(--mode-carousel-gap) * 2));
    overflow: hidden;
    background: var(--mode-ink);
    border-radius: 8px;
    margin-bottom: 32px;
}

.mode-carousel.is-location-hero-hidden {
    display: none;
}

.mode-carousel__slides,
.mode-carousel__slide {
    position: absolute;
    inset: 0;
}

.mode-carousel__slide {
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.mode-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mode-carousel__slide img,
.mode-carousel__slide mux-video,
.mode-carousel__slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mode-carousel__slide mux-video {
    --controls: none; /* hide any built-in chrome */
    /* The inner <video> lives in the shadow DOM and defaults to object-fit:
       contain (black bars); only these custom properties reach it. */
    --media-object-fit: cover;
    --media-object-position: center;
}

/* CMS "Video fit" = Fit whole video (no crop); expects a ~2.3:1 export */
.mode-carousel__slide[data-video-fit="contain"] mux-video {
    --media-object-fit: contain;
}

/* Vertical MODE lockup, tinted per slide via background-color (mask).
   Equal space above and below the logo (--mode-carousel-gap). */
.mode-carousel__overlay-logo {
    position: absolute;
    top: var(--mode-carousel-gap);
    bottom: var(--mode-carousel-gap);
    left: 28px;
    width: 96px;
    background-color: var(--mode-yellow);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: left center;
    mask-position: left center;
    transition: background-color 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

/* Breadcrumb lines, active tinted per slide */
.mode-carousel__breadcrumbs {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.mode-carousel__breadcrumb {
    width: 64px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background-color 0.4s ease;
}

.mode-carousel__breadcrumb.is-active {
    background-color: var(--mode-yellow);
}

/* --- Page content --------------------------------------------------------- */

.mode-content {
    padding-top: 32px;
    padding-bottom: 48px;
}

.mode-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.mode-title {
    margin: 0;
    font-size: 34px;
    font-weight: 600;
    color: var(--mode-ink);
}

.mode-title-row__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* "Get My YHA Discount" / "Discount rate applied" line (green by default) */
body.mode-theme .btn-arrow-right {
    color: var(--mode-orange);
}

.mode-title-row__actions .btn-arrow-right {
    margin-top: 0;
}

body.mode-theme .btn-arrow-right svg {
    fill: var(--mode-orange);
}

body.mode-theme a.btn-arrow-right:hover,
body.mode-theme a.btn-arrow-right:focus {
    color: var(--mode-maroon);
    text-decoration: none;
}

body.mode-theme a.btn-arrow-right:hover svg,
body.mode-theme a.btn-arrow-right:focus svg {
    fill: var(--mode-maroon);
}

.mode-heading {
    font-size: 26px;
    font-weight: 600;
    color: var(--mode-ink);
    margin: 32px 0 16px;
}

.mode-content-block {
    margin: 24px 0 40px;
}

.mode-content-block__title {
    margin-top: 0;
}

.mode-content-block__body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--mode-ink);
}

.mode-content-block__body p:last-child {
    margin-bottom: 0;
}

.mode-content-block__media {
    margin-top: 20px;
}

.mode-content-block__image {
    display: block;
    max-width: 100%;
    height: auto;
}

.mode-chip {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background-color: var(--mode-green-light);
    color: var(--mode-green-dark);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.mode-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mode-btn--primary {
    background-color: var(--mode-orange);
    color: #fff;
    border: 2px solid var(--mode-orange);
}

.mode-btn--primary:hover,
.mode-btn--primary:focus {
    background-color: var(--mode-maroon);
    border-color: var(--mode-maroon);
    color: #fff;
    text-decoration: none;
}

/* --- Body row: main content left, sidebar right ----------------------------- */

.mode-body-row {
    margin-top: 8px;
}

/* Toggles: column of MODE toggle graphics at the top of the sidebar */
.mode-toggles {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 220px;
    margin: 32px auto 32px; /* top aligns with the Details heading */
}

.mode-toggles .imageLinkBlock-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Social links ---------------------------------------------------------- */

.mode-social {
    display: flex;
    gap: 14px;
    margin: 8px 0 24px;
}

.mode-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--mode-orange);
    transition: background-color 0.2s ease;
}

.mode-social__link:hover,
.mode-social__link:focus {
    background-color: var(--mode-maroon);
}

.mode-social__link svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* --- Amenities ------------------------------------------------------------- */

.mode-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 16px 0;
}

.mode-amenity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-amenity__icon {
    width: 32px;
    height: 32px;
}

.mode-amenity__label {
    font-size: 15px;
    color: var(--mode-ink);
}

/* --- Rooms, facilities and location sidebar -------------------------------- */

/* Room type booking widgets: MODE orange pill Book Now buttons.
   Base .btn-nav green uses !important, so these must too. */
body.mode-theme .privateDormitoryRoomTypeBlock .btn-booknow {
    background-color: var(--mode-orange) !important;
    border-color: var(--mode-orange) !important;
    color: #fff;
    border-radius: 999px;
}

body.mode-theme .privateDormitoryRoomTypeBlock .btn-booknow:hover,
body.mode-theme .privateDormitoryRoomTypeBlock .btn-booknow:focus {
    background-color: var(--mode-maroon) !important;
    border-color: var(--mode-maroon) !important;
    color: #fff;
}

/* Room gallery < > arrows: CMS colour (default white). Theme default is YHA green. */
body.mode-theme .privateDormitoryRoomTypeBlock a.btn-carousel .icon-chevron::after {
    border-color: var(--mode-room-gallery-arrow, #FFFFFF);
}

/* Awards: match hostel sidebar — centred, natural image size */
.mode-awards {
    text-align: center;
    margin-top: 24px;
}

.mode-awards .imageLinkBlock {
    display: inline-block;
    padding: 8px 12px;
    vertical-align: middle;
}

.mode-awards .imageLinkBlock-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Facilities icon row (below rooms) ------------------------------------- */

.mode-facilities__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 28px;
    align-items: flex-start;
    margin: 8px 0 24px;
}

.mode-facilities__grid .mode-amenity {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 88px;
    text-align: center;
}

.mode-facilities__grid .mode-amenity__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    /* Sit the icon in an orange circle badge */
    box-sizing: content-box;
    padding: 16px;
    border-radius: 50%;
    background-color: var(--mode-orange);
}

.mode-facilities__grid .mode-amenity__label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--mode-ink);
}

/* --- Discount login drawer (MODE pages only) ------------------------------- */

body.mode-theme .discountLoginDrawer .myYhaLoginCard-btn {
    border-radius: 999px !important; /* beats my-yha-login.css border-radius: 0 !important */
}

body.mode-theme .discountLoginDrawer .myYhaLoginCard-btn--primary {
    background-color: var(--mode-orange) !important;
    border-color: var(--mode-orange) !important;
    color: #fff !important;
}

body.mode-theme .discountLoginDrawer .myYhaLoginCard-btn--primary:hover,
body.mode-theme .discountLoginDrawer .myYhaLoginCard-btn--primary:focus {
    background-color: var(--mode-maroon) !important;
    border-color: var(--mode-maroon) !important;
}

body.mode-theme .discountLoginDrawer .myYhaLoginCard-btn--outline {
    color: var(--mode-orange) !important;
    border-color: var(--mode-orange) !important;
    background-color: transparent !important;
}

body.mode-theme .discountLoginDrawer .myYhaLoginCard-btn--outline:hover,
body.mode-theme .discountLoginDrawer .myYhaLoginCard-btn--outline:focus {
    color: var(--mode-maroon) !important;
    border-color: var(--mode-maroon) !important;
}

/* --- FindUs / Location (MODE pages only) ----------------------------------- */
/* Theme global.css sets a { color: #2AB472 }. Traditional Place Name often
   carries TinyMCE inline colour or .b-text--green from CMS. */

body.mode-theme .findUs a,
body.mode-theme .mode-findUs a {
    color: var(--mode-orange);
}

body.mode-theme .findUs a:hover,
body.mode-theme .findUs a:focus,
body.mode-theme .findUs a:active,
body.mode-theme .mode-findUs a:hover,
body.mode-theme .mode-findUs a:focus,
body.mode-theme .mode-findUs a:active {
    color: var(--mode-maroon);
}

body.mode-theme .findUs .b-text--green,
body.mode-theme .mode-findUs .b-text--green {
    color: var(--mode-orange) !important;
}

body.mode-theme .findUs [style*="color"],
body.mode-theme .mode-findUs [style*="color"] {
    color: var(--mode-orange) !important;
}

/* --- Mode content links (Details / About / child tabs) --------------------- */
/* Theme global.css sets a { color: #2AB472 }. CMS copy often uses .b-text--green
   or TinyMCE inline colour — override those in Mode content scopes only. */

body.mode-theme .mode-details a,
body.mode-theme .mode-about a,
body.mode-theme .mode-child-body a,
body.mode-theme .mode-content-block__body a,
body.mode-theme .thingsToDoTab a {
    color: var(--mode-orange);
}

body.mode-theme .mode-details a:hover,
body.mode-theme .mode-details a:focus,
body.mode-theme .mode-details a:active,
body.mode-theme .mode-about a:hover,
body.mode-theme .mode-about a:focus,
body.mode-theme .mode-about a:active,
body.mode-theme .mode-child-body a:hover,
body.mode-theme .mode-child-body a:focus,
body.mode-theme .mode-child-body a:active,
body.mode-theme .mode-content-block__body a:hover,
body.mode-theme .mode-content-block__body a:focus,
body.mode-theme .mode-content-block__body a:active,
body.mode-theme .thingsToDoTab a:hover,
body.mode-theme .thingsToDoTab a:focus,
body.mode-theme .thingsToDoTab a:active {
    color: var(--mode-maroon);
}

body.mode-theme .mode-details .b-text--green,
body.mode-theme .mode-about .b-text--green,
body.mode-theme .mode-child-body .b-text--green,
body.mode-theme .mode-content-block__body .b-text--green,
body.mode-theme .thingsToDoTab .b-text--green {
    color: var(--mode-orange) !important;
}

body.mode-theme .mode-details [style*="color"],
body.mode-theme .mode-about [style*="color"],
body.mode-theme .mode-child-body [style*="color"],
body.mode-theme .mode-content-block__body [style*="color"],
body.mode-theme .thingsToDoTab [style*="color"] {
    color: var(--mode-orange) !important;
}

/* --- Sustainability tab (MODE pages only) ---------------------------------- */

body.mode-theme .sustainabilityTab a {
    color: var(--mode-orange);
}

body.mode-theme .sustainabilityTab a:hover,
body.mode-theme .sustainabilityTab a:focus,
body.mode-theme .sustainabilityTab a:active {
    color: var(--mode-maroon);
}

body.mode-theme .sustainabilityTab .b-text--green {
    color: var(--mode-orange) !important;
}

/* CMS badge / eco leaf PNGs are baked green — shift hue toward MODE orange. */
body.mode-theme .sustainabilityTab .badgeItem img,
body.mode-theme .sustainabilityTab .badgeItemBlock img {
    filter: hue-rotate(-110deg) saturate(1.35) brightness(1.05);
}

/* --- Stay / Play / Work / Dine tabs ---------------------------------------- */

/* Tab bar sits below the property name, above the carousel.
   Do not put display:flex on .mode-tabs__bar — flex belongs on .mode-tabs__list
   so the mobile .mode-tabs__selected trigger is not laid out beside the tabs. */
.mode-tabs__bar {
    display: block;
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

/* Mobile-only trigger (hostel Details-style). Hidden on desktop.
   !important beats a stale cached stylesheet that flexes .mode-tabs__bar children. */
.mode-tabs__selected {
    display: none !important;
}

.mode-tabs__list {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(26, 26, 26, 0.1);
}

.mode-tabs__panels {
    margin-top: 0;
}

.mode-tabs__tab {
    appearance: none;
    display: inline-block;
    flex: 1 1 0;
    text-align: center;
    background: transparent;
    border: 0;
    outline: none;
    padding: 12px 8px;
    font-family: var(--mode-font);
    font-size: 18px;
    font-weight: 600;
    color: var(--mode-ink);
    text-decoration: none;
    border-radius: 999px 999px 0 0;
    cursor: pointer;
    transition: color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

/* Stay is an <a>; kill the browser focus dome outline (orange underline is the cue) */
.mode-tabs__tab:focus,
.mode-tabs__tab:focus-visible,
a.mode-tabs__tab {
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

.mode-tabs__tab:hover,
.mode-tabs__tab:focus {
    color: var(--mode-orange);
    text-decoration: none;
}

.mode-tabs__tab.is-active,
.mode-tabs__tab.is-active:focus,
.mode-tabs__tab.is-active:focus-visible {
    color: var(--mode-orange);
    box-shadow: inset 0 -3px 0 var(--mode-orange);
    text-decoration: none;
}

.mode-tabs__panel {
    display: none;
}

.mode-tabs__panel.is-active {
    display: block;
}

/* Location map canvas needs a real height once visible */
#location .googleMap,
#location .googleMap-canvas {
    min-height: 360px;
    width: 100%;
}

/* Match hostel Location tab spacing + icon layout */
#location .googleMap {
    margin-bottom: 50px;
}

#location .hostelDirectionsItem {
    margin-bottom: 30px;
}

#location .hostelDirections .hostelDirectionsItem .image {
    display: inline-block;
    width: 100px;
    vertical-align: top;
    margin-right: 20px;
}

#location .hostelDirections .hostelDirectionsItem .image img {
    width: 100%;
}

#location .hostelDirections .hostelDirectionsItem .content {
    display: inline-block;
    width: 500px;
    vertical-align: top;
}

@media (max-width: 480px) {
    #location .hostelDirections .hostelDirectionsItem .content {
        display: block;
        width: 90%;
        margin-top: 10px;
    }
}

/* MODE Location map — branded HTML pin + expand card */
.mode-map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    width: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    font-family: var(--mode-font);
    -webkit-tap-highlight-color: transparent;
}

.mode-map-pin:focus,
.mode-map-pin:focus-visible {
    outline: none;
}

.mode-map-pin__icon {
    display: block;
    width: 44px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
    transition: transform 0.2s ease;
    pointer-events: none;
}

.mode-map-pin__card {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(6px) scale(0.92);
    width: 160px;
    padding: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 3;
}

.mode-map-pin__photo {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.mode-map-pin__label {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--mode-ink);
    text-align: center;
}

.mode-map-pin.is-expanded {
    z-index: 5;
}

.mode-map-pin.is-expanded .mode-map-pin__icon {
    transform: scale(1.06);
}

.mode-map-pin.is-expanded .mode-map-pin__card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 767px) {
    .mode-carousel {
        --mode-carousel-gap: 28px;
        --mode-logo-height: 240px;
    }

    .mode-carousel__overlay-logo {
        width: 56px;
        left: 16px;
    }

    .mode-carousel__breadcrumb {
        width: 40px;
    }

    .mode-title {
        font-size: 26px;
    }

    /* Book now + Get My YHA Discount centred under the title (match hostel CTA alignment) */
    .mode-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mode-title-row__actions {
        width: 100%;
        align-items: center;
    }

    .mode-title-row__actions .mode-btn {
        min-width: 200px;
        text-align: center;
    }

    /* Column-major 2x2: Stay/Work left, Play/Social right (DOM order Stay, Work, Play, Social) */
    .mode-toggles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-auto-flow: column;
        gap: 16px;
        max-width: none;
        margin: 16px 0;
    }

    .mode-toggles .imageLinkBlock {
        width: 100%;
        min-width: 0;
    }

    /* Hostel Details-style accordion for MODE section tabs */
    .mode-tabs__bar {
        border-bottom: none;
        margin-bottom: 16px;
    }

    .mode-tabs__selected {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 50px;
        padding: 0 60px 0 20px;
        border: 1px solid #ddd;
        background-color: #f0f0ee;
        font-family: var(--mode-font);
        font-size: 16px;
        font-weight: 700;
        color: #474747;
        text-align: left;
        cursor: pointer;
        position: relative;
    }

    .mode-tabs__selected::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 50px;
        height: 50px;
        background-color: var(--mode-orange);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath fill='%23fff' d='M8 10L0.2 0.5h15.6L8 10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 16px 10px;
    }

    .mode-tabs__bar.is-open .mode-tabs__selected::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath fill='%23fff' d='M8 0l7.8 9.5H0.2L8 0z'/%3E%3C/svg%3E");
    }

    .mode-tabs__list {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        border: 1px solid #ddd;
        border-top: 0;
        background: #fff;
        position: absolute;
        left: 0;
        right: 0;
        z-index: 20;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .mode-tabs__bar.is-open .mode-tabs__list {
        display: flex;
    }

    .mode-tabs__tab {
        flex: none;
        width: 100%;
        text-align: left;
        font-size: 16px;
        font-weight: 500;
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: none;
        color: #474747;
    }

    .mode-tabs__tab:last-child {
        border-bottom: 0;
    }

    .mode-tabs__tab.is-active,
    .mode-tabs__tab.is-active:focus,
    .mode-tabs__tab.is-active:focus-visible {
        color: var(--mode-orange);
        background-color: #fafafa;
        box-shadow: none;
    }

    .mode-facilities__grid {
        gap: 16px 12px;
        justify-content: center;
    }
}
