@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=MuseoModerno:wght@500&display=swap");

@font-face {
    font-family: "Forum";
    src: url("Forum-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Forum", serif;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: "Lato", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body a {
    color: #3f3f3f;
}

header {
    font-family: Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    margin-bottom: 20px;
}

/* Style for the logo */
.logo {
    font-size: 36px;
    font-weight: bold;
    font-family: "Forum", serif;
    color: rgb(15, 62, 134);
    padding: 10px 0;
    margin-left: 70px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo_image {
    height: 42px;
    width: auto;
}

/* Animated tagline between logo and nav */
.header_tagline {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: #8a8a8a;
    white-space: nowrap;
}

.header_tagline span {
    display: inline-block;
    opacity: 0;
    animation: tagline_in 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(0.2s + var(--i) * 0.25s) forwards;
}

@keyframes tagline_in {
    from { opacity: 0; filter: blur(5px); }
    to { opacity: 1; filter: blur(0); }
}

@media (max-width: 900px) {
    .header_tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .header_tagline span { animation: none; opacity: 1; }
}

/* Style for the navigation links */
.nav-links {
    list-style: none;
    font-weight: 500;
    font-size: 17px;
    display: flex;
    margin-right: 80px;
    padding: 0;
    margin: 0 80px 0 0;
}

.nav-links li {
    display: inline;
    margin-right: 40px;
}

.nav-links a {
    text-decoration: none;
    color: rgb(31, 31, 31);
    position: relative;
}

.nav-links a::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: rgb(124, 124, 124);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

#menu_hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    margin-right: 20px;
}

#hamburger_dropdown {
    display: none;
    list-style: none;
    background-color: #f0f0f0;
    padding: 10px 0;
    margin: 0;
    position: absolute;
    width: 100%;
    top: 60px;
    left: 0;
    z-index: 999;
}

#hamburger_dropdown.show {
    display: block;
}

#hamburger_dropdown li {
    padding: 10px 20px;
}

#hamburger_dropdown a {
    text-decoration: none;
    color: rgb(31, 31, 31);
}

.centered_div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.centered_div h1 {
    font-size: 48px;
    margin: 0 0 20px 0;
    color: rgb(15, 62, 134);
}

.centered_div p {
    font-size: 20px;
    color: #666;
}

/* Saunas page */
.saunas_page {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

.saunas_header {
    text-align: center;
    padding: 8px 0 10px 0;
    margin: 25px 0 45px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.saunas_header h1 {
    position: relative;
    z-index: 1;
    font-size: 40px;
    color: rgb(15, 62, 134);
    margin: 0;
}

#saunas_map {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-top:12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.saunas_buttons_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.sauna_btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 16px 20px;
    border: 1px solid rgb(15, 62, 134);
    border-radius: 10px;
    background: #fff;
    color: rgb(15, 62, 134);
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sauna_btn:hover {
    background: #f2f2f2;
    color: rgb(15, 62, 134);
}

.sauna_btn_name {
    font-weight: 700;
}

.sauna_btn--out-of-bounds {
    display: none;
}

.sauna_btn_hidden {
    display: none;
}

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

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

.sauna_pin {
    position: relative;
    width: 70px;
    background-color: #001f3f;
    color: white;
    padding: 8px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transform-origin: bottom center;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.sauna_pin:hover {
    background-color: #2a5ca8;
    transform: translateY(-2px) scale(1.1);
}

.sauna_pin::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #001f3f;
    transition: border-top-color 0.15s ease;
}

.sauna_pin:hover::after {
    border-top-color: #2a5ca8;
}

.sauna_pin.sauna_pin--compact,
.sauna_pin.sauna_pin--clipped {
    width: 14px;
    height: 14px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    overflow: hidden;
}

.sauna_pin.sauna_pin--compact::after,
.sauna_pin.sauna_pin--clipped::after {
    display: none;
}

.sauna_pin.sauna_pin--compact:hover,
.sauna_pin.sauna_pin--clipped:hover {
    width: 70px;
    height: auto;
    padding: 8px 6px;
    border-radius: 4px;
    font-size: 12px;
    overflow: visible;
}

.sauna_pin.sauna_pin--compact:hover::after,
.sauna_pin.sauna_pin--clipped:hover::after {
    display: block;
}

/* Events page */
.events_page {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

.events_header {
    text-align: center;
    padding: 8px 0 10px 0;
    margin: 25px 0 45px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.events_header h1 {
    position: relative;
    z-index: 1;
    font-size: 40px;
    color: rgb(15, 62, 134);
    margin: 0;
}

.events_header--sessions h1 { color: rgb(70, 150, 205); }
.events_header--sessions .title_swoosh path { stroke: rgb(70, 150, 205); }
.events_header--private h1 { color: rgb(88, 190, 160); }
.events_header--private .title_swoosh path { stroke: rgb(88, 190, 160); }
.events_header--events h1 { color: rgb(240, 135, 105); }
.events_header--events .title_swoosh path { stroke: rgb(240, 135, 105); }

.title_row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title_swoosh {
    width: 110px;
    height: 34px;
    flex-shrink: 0;
}

.events_subtitle {
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: #555;
    max-width: 700px;
    line-height: 1.6;
    margin: 35px 0 10px 0;
}

.sessions_filters {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin: 0;
}

.sessions_filters_bar {
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    margin: 16px 0 20px 0;
}

.add_sauna_link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4a74b5;
    font-size: 14px;
    margin-top:20px;
    margin-right:10px;
    text-decoration: none;
}

.area_links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin: 20px 0 14px 0;
}

.area_btn {
    background: #fff;
    color: #4a74b5;
    border: 1px solid #4a74b5;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.area_btn:hover,
.area_btn.area_link_current {
    background: #4a74b5;
    color: #fff;
}

.add_sauna_link:hover {
    text-decoration: underline;
}

.sessions_filters select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666666' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 40px 10px 16px;
    font-size: 15px;
    font-family: inherit;
    color: rgb(31, 31, 31);
    cursor: pointer;
    min-width: 140px;
}

.sessions_filters select:focus {
    outline: none;
    border-color: rgb(15, 62, 134);
}

.events_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.event_tile {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.event_tile:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.debug_id {
    order: 999;
    padding: 4px 12px;
    font-family: monospace;
    font-size: 11px;
    color: #b00;
    background: #fff3f3;
    border-top: 1px dashed #e0b0b0;
}

.event_tile--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    position: relative;
}

.event_tile--featured .event_image_wrap {
    width: 40%;
    flex-shrink: 0;
}

.event_tile--featured .event_image {
    width: 100%;
    height: 100%;
}

.event_tile--featured .event_body {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event_tile--featured .event_title {
    font-size: 26px;
}

.featured_badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgb(15, 62, 134);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 1;
}

.event_tile_date {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    text-align: right;
    white-space: nowrap;
    z-index: 1;
}

@media (max-width: 700px) {
    .event_tile--featured {
        flex-direction: column;
    }

    .event_tile--featured .event_image_wrap {
        width: 100%;
        height: 180px;
    }
}

/* Sessions page only: the featured card is a full-bleed image with an info panel overlaid on the
   right third, rather than the image-left/text-right split every other featured card uses. */
#sessions_grid .event_tile--featured {
    display: block;
    min-height: 430px;
}

#sessions_grid .event_tile--featured .event_image_wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#sessions_grid .event_tile--featured .event_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event_image_carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.event_image_carousel .carousel_slide {
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    transition: transform 0.9s ease;
    z-index: 1;
}

.event_image_carousel .carousel_slide--active {
    transform: translateX(0);
}

.event_image_carousel .carousel_slide--exit {
    transform: translateX(-100%);
}

#sessions_grid .event_tile--featured .event_body .event_title {
    position: static;
    max-width: none;
    box-sizing: border-box;
    margin: 0 0 6px 0;
    padding: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
}

#sessions_grid .event_tile--featured .event_image_wrap .event_description_brief {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: 44%;
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

#sessions_grid .event_tile--featured .event_image_wrap .event_description_brief::before,
#sessions_grid .event_tile--featured .event_image_wrap .event_description_brief::after {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

#sessions_grid .event_tile--featured .event_body {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 33.333%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.65);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    z-index: 1;
    overflow-y: auto;
}

#sessions_grid .event_tile--featured .event_site {
    color: #a8d4f0;
    margin-bottom: 4px;
}

#sessions_grid .event_tile--featured .event_duration_text {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 28px;
}

#sessions_grid .event_tile--featured .event_details {
    color: #f0f0f0;
}

#sessions_grid .event_tile--featured .event_time_range {
    color: #bbb;
}

#sessions_grid .event_tile--featured .event_booking_btn {
    position: static;
    align-self: center;
    margin-top: auto;
    padding: 14px 30px;
    font-size: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#sessions_grid .event_tile--featured .event_booking_btn svg {
    stroke: currentColor;
}

#sessions_grid .event_tile--featured .event_booking_btn:hover {
    background: #fff;
    border-color: #fff;
    color: rgb(15, 62, 134);
}

#sessions_grid .featured_badge {
    font-size: 13px;
}

#sessions_grid .featured_badge::before {
    content: "★ ";
}

@media (max-width: 700px) {
    #sessions_grid .event_tile--featured .event_body {
        left: 0;
        width: auto;
    }

    #sessions_grid .event_tile--featured .event_title {
        max-width: calc(100% - 28px);
    }
}

.women_only_tile {
    position: relative;
    margin: 48px 0 24px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 420px;
    background: url("women_sauna_bckgrd.jpg") center calc(50% + 40px) / cover no-repeat;
}

.women_only_buttons {
    position: absolute;
    top: 70px;
    right: 50px;
    bottom: 24px;
    display: grid;
    grid-template-columns: repeat(3, 232px);
    grid-template-rows: repeat(2, 118px);
    align-content: center;
    row-gap: 24px;
    column-gap: 18px;
}

.event_booking_btn.women_only_btn {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 24px 22px;
    font-size: 14px;
    text-align: left;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.event_booking_btn.women_only_btn:hover {
    background: #fff;
    border-color: #fff;
    color: rgb(15, 62, 134);
}

.women_only_btn span:first-child {
    font-weight: 700;
}

.women_only_bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.women_only_title {
    margin: 0;
    font-family: "Forum", serif;
    font-size: 26px;
    letter-spacing: 0.5px;
    color: #fff;
    text-align: center;
}

.women_only_swoosh {
    width: 100px;
    height: 30px;
    flex-shrink: 0;
}

.event_image_wrap {
    position: relative;
    height: 180px;
    flex-shrink: 0;
}

.event_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event_body {
    position: relative;
    padding: 16px 18px 50px;
}

.session_card_body {
    min-height: 175px;
    flex: 1;
}

.event_site {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #618ac7;
    margin-bottom: 15px;
}

.event_site a {
    color: inherit;
    text-decoration: none;
}

.event_site a:hover {
    text-decoration: underline;
}

.event_title {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    box-sizing: border-box;
    margin: 0;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 19px;
}

.event_duration {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 3px;
    font-size: 13px;
}

.event_description_brief {
    font-family: "Forum", serif;
    font-size: 17px;
    color: #777;
    line-height: 1.4;
    margin: 12px 0 16px 0;
}

.event_description_brief::before {
    content: "\201C";
    color: #777;
    font-weight: 700;
}

.event_description_brief::after {
    content: "\201D";
    color: #777;
    font-weight: 700;
}

.event_booking_btn {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: rgb(31, 31, 31);
    font-size: 13px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.event_booking_btn:hover {
    border-color: #999;
}

.event_details {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #444;
}

.event_details li {
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event_icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.event_time_range {
    color: #8a8a8a;
}

.session_details_toggle {
    position: absolute;
    left: 14px;
    bottom: 17px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    color: #8a8a8a;
    cursor: pointer;
}

.session_details_arrow {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.event_tile--expanded .session_details_arrow {
    transform: rotate(180deg);
}

.session_description_panel {
    display: none;
    padding: 8px 18px 16px;
}

.event_tile--expanded .session_description_panel {
    display: block;
}

.session_description_expanded {
    margin: 0;
    font-family: "Forum", serif;
    font-size: 16px;
    color: #777;
    line-height: 1.5;
}

.event_tile_hidden {
    display: none;
}

.show_more_wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.show_more_btn {
    width: 480px;
    padding: 10px 24px;
    background: #f2f2f2;
    border: none;
    border-radius: 8px;
    color: rgb(31, 31, 31);
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.show_more_btn:hover {
    background: #e6e6e6;
}

.show_more_arrow {
    display: inline-block;
    font-size: 10px;
    margin-left: 4px;
}

.all_shown_text {
    color: #777;
    font-size: 15px;
}

.all_shown_text_hidden {
    display: none;
}

.instagram_section {
    max-width: 1200px;
    margin: 48px auto 24px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.instagram_text {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #618ac7;
    text-align: center;
    transform: rotate(-6deg);
}

.instagram_arrow {
    width: 130px;
    height: 77px;
    object-fit: contain;
    flex-shrink: 0;
}

.instagram_logo_link {
    display: inline-flex;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.instagram_logo {
    width: 42px;
    height: 42px;
}

.instagram_logo_link:hover {
    transform: scale(1.08);
}

@media (max-width: 700px) {
    .instagram_section {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .instagram_text {
        text-align: center;
    }

    .instagram_arrow {
        width: 90px;
        height: 53px;
        transform: rotate(90deg);
    }
}

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

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

/* Events page: every event is a single row (image left, details middle, booking button right) */
#events_grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#events_grid .event_tile {
    height: auto;
    margin: 0 32px;
}

#events_grid .event_main_row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 150px;
}

#events_grid .event_image_wrap {
    position: relative;
    width: 260px;
    height: 100%;
    flex-shrink: 0;
}

#events_grid .event_body {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 12px;
    min-width: 0;
}

#events_grid .event_info {
    min-width: 0;
    max-height: 100%;
    overflow-y: auto;
    align-self: center;
}

#events_grid .event_site {
    font-size: 15px;
    margin-bottom: 6px;
}

#events_grid .event_title {
    position: static;
    max-width: none;
    box-sizing: border-box;
    margin: 0 0 6px 0;
    padding: 0;
    background: none;
    border: none;
    color: rgb(31, 31, 31);
    font-size: 21px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#events_grid .event_details {
    font-size: 15px;
}

#events_grid .event_details li {
    margin: 4px 0;
}

#events_grid .event_icon {
    width: 16px;
    height: 16px;
}

#events_grid .event_actions {
    display: flex;
    align-items: center;
    gap: 16px;
    align-self: flex-end;
}

#events_grid .event_details_toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 15px;
    color: #8a8a8a;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#events_grid .event_tile:hover .event_details_toggle,
#events_grid .event_tile--expanded .event_details_toggle {
    opacity: 1;
    pointer-events: auto;
}

#events_grid .event_details_arrow {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.2s ease;
}

#events_grid .event_tile--expanded .event_details_arrow {
    transform: rotate(180deg);
}

#events_grid .event_booking_btn {
    position: static;
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 16px;
    gap: 8px;
}

#events_grid .event_booking_btn svg {
    width: 16px;
    height: 16px;
}

#events_grid .event_description_panel {
    display: none;
    padding: 0 24px 20px;
}

#events_grid .event_tile--expanded .event_description_panel {
    display: block;
}

#events_grid .event_description_expanded {
    margin: 0;
    padding: 25px 40px 5px;
    font-family: "Forum", serif;
    font-size: 20px;
    color: #777;
    line-height: 1.5;
}

/* Sauna detail page */
.sauna_detail_page {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

.sauna_detail_page > h1 {
    text-align: center;
    color: rgb(15, 62, 134);
    margin: 25px 0 20px 0;
}

.sauna_detail_page > .sauna_hero_location {
    text-align: center;
    color: #777;
    margin: 0 0 20px 0;
}

.sauna_hero {
    position: relative;
    margin: 25px 0 45px 0;
}

.sauna_hero_image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.sauna_hero_overlay {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    box-sizing: border-box;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: #fff;
}

.sauna_hero_title {
    margin: 0;
    font-size: 32px;
}

.sauna_hero_location {
    margin: 4px 0 0 0;
    font-size: 15px;
    color: #ddd;
}

.sauna_detail_section {
    margin: 0 0 40px 0;
}

#sauna_sessions_section {
    margin-top: 15px;
}

#sauna_events_section {
    margin-top: 100px;
}

#sauna_private_hire_section {
    margin-top: 100px;
}

#sauna_private_hire_grid {
    margin: 0 32px;
}

.private_hire_card {
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 480px;
}

.private_hire_card_title {
    margin: 0 0 6px 0;
    font-size: 20px;
}

.private_hire_card_price {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #559bf5;
}

.private_hire_card_text {
    margin: 0 0 16px 0;
    color: #666;
    line-height: 1.5;
}

.sauna_section_title_row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px 0;
}

.sauna_section_title {
    color: #999;
    font-weight: 400;
    font-size: 28px;
    margin: 0;
    white-space: nowrap;
}

.sauna_section_title_line {
    flex: 1;
    height: 2px;
    background: #d9d9d9;
}

#sauna_sessions_grid {
    margin: 0 32px;
}

.sauna_facilities_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 30px;
    margin: 0 32px 75px 32px;
    padding: 0;
    list-style: none;
}

.sauna_facility_item {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    line-height: 1.5;
}

.sauna_facility_icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.sauna_facility_text {
    margin-left: 1px;
    position: relative;
    color: rgb(40, 90, 165);
}

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

@media (max-width: 480px) {
    .sauna_facilities_list {
        grid-template-columns: 1fr;
    }
}

.sauna_info_section {
    display: flex;
    gap: 55px;
    margin: 0 32px 40px 32px;
}

.sauna_info_text {
    flex: 1 1 55%;
    min-width: 0;
    padding-right: 20px;
}

.sauna_disclaimer {
    font-size: 12px;
    color: #999;
    margin: 0 32px;
}

.sauna_disclaimer a {
    color: #999;
}

.sauna_info_map_wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 40%;
    min-width: 260px;
}

#sauna_info_map {
    width: 100%;
    height: 190px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sauna_info_map_wrap .sauna_info_block {
    margin-top: 20px;
    margin-left: 25px;
}

.sauna_description {
    margin: 0 0 28px 0;
    font-family: "Forum", serif;
    font-size: 19px;
    color: #444;
    line-height: 1.5;
}

.sauna_description:has(+ .sauna_description) {
    margin-bottom: 14px;
}

.sauna_info_block {
    margin: 0 0 24px 0;
}

.sauna_info_heading {
    color: rgb(15, 62, 134);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.sauna_info_line {
    margin: 0;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.sauna_website_link {
    display: inline-block;
    color: rgb(15, 62, 134);
    text-decoration: none;
    word-break: break-all;
}

.sauna_website_link:hover {
    text-decoration: underline;
}

.sauna_review_count {
    color: #777;
    font-size: 14px;
}

.sauna_opening_hours {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 320px;
}

.sauna_opening_hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    font-size: 15px;
    color: #444;
}

.sauna_opening_day {
    font-weight: 700;
}

.sauna_opening_time {
    color: #666;
    text-align: right;
    line-height: 1.6;
}

.sauna_social_icons {
    display: flex;
    gap: 12px;
}

.sauna_social_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgb(15, 62, 134);
    color: #fff;
    transition: background-color 0.2s ease;
}

.sauna_social_icon svg {
    width: 18px;
    height: 18px;
}

.sauna_social_icon:hover {
    background: #2a5ca8;
}

@media (max-width: 700px) {
    .sauna_info_section {
        flex-direction: column;
    }

    .sauna_info_map_wrap {
        min-height: 260px;
    }
}

#events_grid .featured_badge {
    font-size: 13px;
}

#events_grid .featured_badge::before {
    content: "★ ";
}

#events_grid .event_date_divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 40px 10px 0;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding: 8px 0;
}

#events_grid .event_date_divider.event_tile_hidden {
    display: none;
}

#events_grid .event_date_divider:first-child {
    margin-top: 20px;
}

#events_grid .event_date_label {
    font-family: "Forum", serif;
    font-size: 26px;
    font-weight: 400;
    color: #999;
    white-space: nowrap;
}

#events_grid .event_date_line {
    flex: 1;
    height: 2px;
    background: #d9d9d9;
}

@media (max-width: 700px) {
    #events_grid .event_main_row {
        flex-direction: column;
        height: auto;
    }

    #events_grid .event_image_wrap {
        width: 100%;
        height: 150px;
    }

    #events_grid .event_body {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #events_grid .event_actions {
        align-self: flex-end;
    }
}

/* Placeholder pages (not yet built) */
.placeholder_page {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 60px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.placeholder_page .events_header {
    margin: 0px 0 30px 0;
}

.placeholder_text {
    font-size: 20px;
    color: #666;
}

/* Legal pages */
.legal_page {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px 60px;
    width: 100%;
    box-sizing: border-box;
}

.legal_page .events_header {
    margin: 0 0 40px 0;
}

.legal_content p,
.legal_content li {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.legal_content ul {
    margin: 0 0 14px 0;
    padding-left: 22px;
}

.legal_content h2 {
    color: rgb(15, 62, 134);
    font-size: 22px;
    margin: 36px 0 12px 0;
}

.legal_content h2:first-of-type {
    margin-top: 0;
}

.legal_content .legal_updated {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
}

.legal_content a {
    color: #618ac7;
}

.work_intro {
    font-size: 19px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.work_highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 40px 0;
}

.work_highlight_item {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 22px 24px;
}

.work_highlight_item h3 {
    color: rgb(15, 62, 134);
    font-size: 18px;
    margin: 0 0 8px 0;
}

.work_highlight_item p {
    margin: 0;
}

@media (max-width: 700px) {
    .work_highlights {
        grid-template-columns: 1fr;
    }
}

.work_cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #d9d9d9;
}

.work_cta_heading {
    font-family: "Forum", serif;
    font-size: 26px;
    color: rgb(15, 62, 134);
    margin: 0 0 20px 0;
}

.work_cta_btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, rgb(35, 88, 168) 0%, rgb(8, 38, 84) 100%);
    border-radius: 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.work_cta_btn:hover {
    opacity: 0.88;
}

/* Contact page */
.contact_page {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 60px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.contact_page .events_header {
    margin: 0px 0 60px 0;
}

.contact_intro {
    font-size: 23px;
    color: #555;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.5;
}

.contact_email {
    display: inline-block;
    margin: 50px 0 0;
    font-family: "Forum", serif;
    font-size: 40px;
    font-weight: 700;
    color: #618ac7;
    text-decoration: none;
}

.contact_email:hover {
    text-decoration: underline;
}

.contact_divider {
    height: 2px;
    background: #d9d9d9;
    width: calc(100% - 200px);
    margin: 70px auto 40px;
}

.contact_form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: left;
}

.contact_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact_field label {
    font-size: 16px;
    font-weight: 700;
    color: rgb(31, 31, 31);
}

.contact_optional {
    font-weight: 400;
    color: #999;
}

.contact_field input,
.contact_field textarea {
    font-family: inherit;
    font-size: 18px;
    padding: 14px 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    color: rgb(31, 31, 31);
    transition: border-color 0.15s ease;
}

.contact_field input:focus,
.contact_field textarea:focus {
    outline: none;
    border-color: #618ac7;
}

.contact_field textarea {
    resize: vertical;
}

.contact_checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgb(31, 31, 31);
    cursor: pointer;
}

.contact_checkbox input {
    width: 20px;
    height: 20px;
    accent-color: rgb(35, 88, 168);
}

.contact_submit_btn {
    align-self: flex-end;
    padding: 14px 36px;
    background: linear-gradient(135deg, rgb(35, 88, 168) 0%, rgb(8, 38, 84) 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.contact_submit_btn:hover {
    opacity: 0.88;
}

@media (max-width: 700px) {
    .contact_intro {
        font-size: 21px;
    }

    .contact_email {
        font-size: 30px;
    }
}

/* Footer styling */
.custom_footer {
    background-color: #001f3f;
    color: white;
    padding: 15px 20px 15px 20px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer_content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
}

.footer_logo {
    margin: 20px 30px;
    display: flex;
    align-items: center;
}

.footer_logo img {
    max-height: 104px;
}

.footer_section {
    margin: 20px 30px;
}

.footer_section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_section li {
    margin: 8px 0;
}

.footer_section a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer_section a:hover {
    opacity: 0.7;
}

.footer_bottom {
    text-align: center;
    padding-top: 10px;
    font-size: 12px;
    color: #b0b0b0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        margin: 0;
    }

    #menu_hamburger {
        display: block;
    }

    .logo {
        margin-left: 20px;
        font-size: 28px;
    }

    .footer_content {
        flex-direction: column;
        align-items: center;
    }

    .footer_section {
        text-align: center;
    }
}

/* Error pages (404, 500, ...) */
.error_page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.error_name {
    font-size: 52px;
    color: #8b0000;
    margin: 0 0 60px 0;
}

.error_logo {
    width: 130px;
    height: auto;
    margin-bottom: 60px;
}

.error_message {
    font-size: 19px;
    color: #444;
    margin: 0;
}

/* About page */
.about_page { max-width: 1100px; }
.about_layout { display: flex; gap: 40px; align-items: flex-start; }
.about_text { flex: 2; }
.about_text p { font-size: 18px; }
.about_photo { flex: 1; text-align: center; }
.about_photo img { width: 50%; border-radius: 8px; display: block; margin: 0 auto; }
.about_name { color: rgb(15, 62, 134); font-size: 22px; margin-top: 14px; }
.about_role { color: #666; font-size: 16px; margin-top: 4px; }
@media (max-width: 700px) { .about_layout { flex-direction: column; } .about_photo { width: 100%; } }

/* Private hire range filters: each filter is label (left) + slider (right); filters sit side by side, right-aligned */
.hire_filters { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px 40px; margin: 0 0 10px; }
.hire_filter { display: flex; align-items: center; gap: 14px; }
.hire_filter_label { min-width: 190px; white-space: nowrap; font-size: 15px; color: #3f3f3f; font-variant-numeric: tabular-nums; }
.hire_slider { --lo: 0; --hi: 1; position: relative; flex: none; width: 160px; height: 16px; }
.hire_slider::before, .hire_slider::after { content: ""; position: absolute; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; pointer-events: none; }
.hire_slider::before { left: 0; right: 0; background: #d9d9d9; }
.hire_slider::after { background: #a9c7ee; left: calc(6px + (100% - 12px) * var(--lo)); right: calc(6px + (100% - 12px) * (1 - var(--hi))); }
.hire_slider input[type=range] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.hire_slider input[type=range]:focus { outline: none; }
.hire_slider input[type=range]::-webkit-slider-runnable-track { height: 16px; background: transparent; border: none; }
.hire_slider input[type=range]::-moz-range-track { height: 16px; background: transparent; border: none; }
.hire_slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 12px; height: 12px; margin-top: 2px; border: none; border-radius: 50%; background: #618ac7; cursor: pointer; }
.hire_slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border: none; border-radius: 50%; background: #618ac7; cursor: pointer; }
.hire_slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(97, 138, 199, 0.35); }
.hire_slider input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(97, 138, 199, 0.35); }
@media (max-width: 700px) { .hire_filters { flex-direction: column; align-items: flex-end; } }
