@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700&family=Raleway:wght@400;600&display=swap');

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,
h2,
h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

header {
    background: #fff;
    border-bottom: 2px solid #f2f2f2;
}

strong {
    font-weight: 600;
}

.text-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #333;
}

.text-content ul,
.text-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.text-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

label {
    font-weight: 600;
}

nav {
    width: 100%;
}

.container {
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-family: 'Nunito', sans-serif;
    color: #14a76c;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.menu,
.button-menu {
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.menu a,
.button-menu a {
    font-family: 'Raleway', sans-serif;
    color: #333;
    text-decoration: none;
    margin: 0px 5px;
    padding: 5px 10px;
    border-radius: 10px;
    transition: background 0.3s;
}

.secondary-button-a:hover,
.menu a:hover {
    background: #c2f2da;
}

.main-button-a:hover {
    background: #118a5a;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
    /* Ensure above overlay */
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #333;
    margin-bottom: 4px;
    margin-left: 15px;
    transition: all 0.3s;
}

main.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    /* border-radius: 8px; */
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.overlay.show {
    display: block;
}

.body-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px
}

ul {
    padding-left: 15px;
    list-style-type: disc;
}

li {
    margin-left: 15px;
}

.sidebar ul {
    padding-left: 0px;
    list-style-type: none;
}

.sidebar li {
    margin-left: 0px;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    width: 350px;
    max-width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline-color: #14a76c;
}

.link,
.link:visited,
.link:hover,
.link:active {
    color: #333;
}

.info-card {
    color: #14a76c;
    background: #e6f7ef;
    border: 1px solid #14a76c;
    border-radius: 10px;
    max-width: 550px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warning-card {
    color: #333;
    background: #FFB383;
    border: 1px solid #333;
}

/* Main button */
.main-button {
    font-family: 'Raleway', sans-serif;
    display: block;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    background: #14a76c;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s;
}

.main-button:focus {
    outline: none;
}

.main-button:hover {
    background: #118a5a;
}

.main-button-a,
.button-menu .main-button-a {
    font-family: 'Raleway', sans-serif;
    background: #14a76c;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    width: fit-content;
    font-weight: 600;
    line-height: normal;
    border-radius: 10px;
    transition: background 0.3s;
}

.main-button-a:hover {
    background: #118a5a;
}

/* Secondary button */

/* Responsive Styles */
@media (max-width: 868px) {
    .menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        /* Start off-screen */
        height: 100%;
        width: 70%;
        /* Adjust width as needed */
        max-width: 300px;
        /* Limit max width */
        background: #fff;
        border-left: 1px solid #ccc;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s;
        z-index: 1001;
        /* Ensure above overlay */
    }

    .menu.show {
        right: 0;
        /* Slide in from the right */
        display: flex;
        /* Ensure menu is shown */
    }

    .hamburger {
        display: flex;
    }
}

/* Map */
.map-list-container {
    display: flex;
    flex-direction: column;
}

.map {
    height: 45vh;
}

.map-no-sidebar {
    height: 100vh;
}

.sidebar {
    background: #fff;
    /* f8f8f8 */
    padding: 20px;
}

.sauna-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Default (mobile) view: single column */
    display: block;
}

.sauna-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.sauna-item img {
    width: 100%;
    height: auto;
    display: block;
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    background: #78828d;
    color: white;
    border: none;
    cursor: pointer;
}

.pagination button:disabled {
    background: #ccc;
}

@media (min-width: 869px) {
    .map-list-container {
        flex-direction: row;
    }

    .sidebar {
        box-sizing: border-box;
        /* Ensures padding and borders are included in width/height calculation */
        width: 800px;
        height: 100vh;
        /* Full height of the viewport */
        overflow-y: auto;
        /* Enable scrolling only within the sidebar */
        flex-shrink: 0;
        /* Prevent the sidebar from shrinking */
    }

    .sauna-list {
        /* Switch to grid for two columns */
        display: grid;
        grid-template-columns: 360px 360px;
        gap: 20px;
        justify-content: start;
    }

    .sauna-item {
        /* Remove the manual margin since we're using grid gap now */
        margin-bottom: 0;
    }

    .map {
        height: 100vh;
        flex: 1;
        /* Map takes remaining space */
    }
}

.highlight-marker {
    filter: hue-rotate(-210deg); /* red color */
    /* Adjust the hue to change color */
}

/* Style for the fieldset */
fieldset {
    border: 1px solid #ccc;
    /* Define border */
    border-radius: 5px;
    /* Rounded corners */
    padding: 15px;
    /* Inner padding */
    margin-bottom: 20px;
    /* Space below the fieldset */
    min-width: 0;
}

/* Style for the legend */
legend {
    font-size: 1.2em;
    /* Slightly larger text */
    font-weight: bold;
    /* Bold text */
    padding: 0 10px;
    /* Padding around the text */
    color: #333;
    /* Text color */
}

/* Style for each checkbox-label pair */
.fieldset-item {
    display: flex;
    /* Use flexbox for alignment */
    align-items: center;
    /* Vertically center items */
    gap: 8px;
    margin-bottom: 8px;
}

.fieldset-item input[type="number"] {
    width: 100px;
}

/* Style for inputs and labels */
input[type="checkbox"] {
    margin-right: 10px;
    /* Space between checkbox and label */
}

label {
    font-size: 1em;
    /* Font size */
    color: #333;
    /* Text color */
    position: relative;
    /* Allows top positioning */
    top: -2px;
    /* Adjust the vertical alignment */
    line-height: 1;
    /* Ensures the label doesn't push below */
}

/* Remove the default Leaflet popup frame */
.leaflet-custom-popup .leaflet-popup-content-wrapper,
.leaflet-custom-popup .leaflet-popup-tip {
    background: transparent;
    /* Make the popup frame transparent */
    box-shadow: none;
    /* Remove the shadow */
    border: none;
    /* Remove the border */
}

/* These 3 below are for preventing small white edge on the right side */
.leaflet-custom-popup .leaflet-popup-content-wrapper {
    padding: 0;
    /* Remove padding */
    border: none;
    /* Remove any borders */
    margin: 0;
    /* Remove any margins */
}

.leaflet-custom-popup .leaflet-popup-content-wrapper {
    box-sizing: border-box;
    width: 360px;
    /* Match the image width */
}

.custom-popup {
    width: 360px;
    /* Match the image width */
    max-width: 360px;
    /* Prevent overflow */
}

/* Style the popup container */
.custom-popup {
    border-radius: 12px;
    /* Rounded corners */
    overflow: hidden;
    /* Ensure content stays within rounded edges */
    font-family: Arial, sans-serif;
    background-color: #fff;
    position: relative;
    /* For positioning the close button */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Add shadow for depth */
}

/* Image section */
.popup-image-wrapper {
    position: relative;
}

/* Ensure the image always displays at the specified size */
.popup-image {
    display: block;
    width: 360px;
    /* Matches the fixed width */
    height: 240px;
    /* Matches the fixed height */
    object-fit: cover;
    /* Optional: Adjust how the image fits into the dimensions */
    background-color: #f0f0f0;
    /* Placeholder while loading */
}

@media (max-width: 768px) {
    .map-list-container .custom-popup .sauna-card-image-wrapper {
        height: 180px !important; /* 25% less than 240px */
    }
}

/* Close button styling */
.popup-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
}

.popup-close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    /* Darker on hover */
}

/* Text content section */
.popup-content {
    padding: 12px;
}

.popup-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.popup-content p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

.site-footer {
    position: fixed;
    /* or sticky, depending on design */
    bottom: 0;
    width: 100%;
    height: 30px;
    /* example height */
    background-color: #fff;
    border-top: 2px solid #f2f2f2;
    text-align: center;
    line-height: 30px;
    /* Possibly add a small z-index if needed */
    z-index: 1000;
}

/* Styles for Sauna Detail Page */
.sauna-detail-container .row {
    /* Targeting the Bootstrap row used for layout */
    align-items: flex-start;
    /* Align items to the top */
}

.sauna-detail-image {
    max-width: 100%;
    /* Already handled by img-fluid but good to have */
    height: auto;
    border-radius: 8px;
    /* Consistent rounded corners */
    margin-bottom: 20px;
    /* Space below image on smaller screens */
}

@media (min-width: 768px) {

    /* md breakpoint */
    .sauna-detail-image {
        margin-bottom: 0;
        /* No margin needed if side-by-side */
    }
}

.amenities-list {
    list-style: none;
    /* Already handled by list-unstyled but good for explicitness */
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    /* Allow badges to wrap */
    gap: 8px;
    /* Space between badges */
}

.amenity-badge {
    padding: 0.5em 0.75em;
    /* Adjust padding for Bootstrap badges if needed */
    font-size: 0.9rem;
    /* Bootstrap already provides badge styling, so only add overrides or specific adjustments */
}

.sauna-rooms-section {
    margin-top: 30px;
}

.sauna-rooms-section h2 {
    margin-bottom: 20px;
    /* Space below the "Sauna Rooms" heading */
}

.sauna-room-card {
    /* Bootstrap 'card' class provides most base styling */
    /* 'h-100' ensures cards in a row are same height */
    /* Add specific overrides if needed */
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease-in-out;
}

.sauna-room-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sauna-room-card .card-title {
    font-family: 'Nunito', sans-serif;
    /* Ensure heading font */
    color: #14a76c;
    /* Theme color for titles */
}

.sauna-room-card ul li {
    font-size: 0.95rem;
    margin-bottom: 5px;
    /* Space between list items in card */
    margin-left: 0;
    /* Override default li margin if .list-unstyled is not enough */
}

/* Responsive adjustments for sauna detail if necessary */
/* For example, ensure text doesn't get too cramped */
@media (max-width: 576px) {

    /* sm breakpoint */
    .sauna-detail-container h1 {
        font-size: 2rem;
        /* Slightly smaller h1 on very small screens */
    }

    /* Further stack elements if the two-column layout is problematic */
}

/* ========================================= */
/*       Sauna Details Redesign              */
/* ========================================= */

.sauna-hero-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin-bottom: 0;
}

.sauna-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sauna-hero-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #757575;
    font-size: 1.2rem;
}

.sauna-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 3rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sauna-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.sauna-hero-title {
    font-family: 'Nunito', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.sauna-hero-location {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sauna-main-content-wrapper {
    background-color: #f8f9fa;
    min-height: 50vh;
    padding-bottom: 4rem;
}

.sauna-content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 20px;
}

/* Info Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}

.detail-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    word-break: break-word;
}

.detail-value a {
    color: #14a76c;
    text-decoration: none;
    transition: color 0.2s;
}

.detail-value a:hover {
    color: #118a5a;
    text-decoration: underline;
}

/* Sections */
.details-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Amenities */
.amenity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amenity-tag {
    background: #ffffff;
    color: #14a76c;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #c2f2da;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.amenity-tag:hover {
    background: #14a76c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(20, 167, 108, 0.2);
}

/* Room Details */
.room-details-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.room-header {
    background: #14a76c;
    color: white;
    padding: 1.5rem 2rem;
}

.room-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.room-stat {
    display: flex;
    flex-direction: column;
}

.room-stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.room-stat-value {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 700;
}

/* Mobile Responsiveness for Details */
@media (max-width: 768px) {
    .sauna-hero-container {
        height: 50vh;
        min-height: 350px;
    }

    .sauna-hero-title {
        font-size: 2.2rem;
    }

    .sauna-hero-location {
        font-size: 1.1rem;
    }

    .sauna-content-container {
        padding: 2rem 15px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .room-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sauna-hero-title {
        font-size: 1.8rem;
    }

    .room-grid {
        grid-template-columns: 1fr;
    }
}

/* Sauna Card Styles */
.sauna-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    /* Fill the list item height */
    display: flex;
    flex-direction: column;
}

.sauna-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sauna-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sauna-card-image-wrapper {
    width: 100%;
    height: 240px;
    /* Fixed height for consistency */
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
}

.sauna-card-image,
.sauna-card .sauna-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.sauna-card:hover .sauna-card-image {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.sauna-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.sauna-card-content {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sauna-card-title {
    margin: 0 0 2px 0;
    font-size: 1rem;
    color: #333;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    line-height: 1.2;
}

.sauna-card-details {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    margin-bottom: 4px;
}

.sauna-card-price {
    margin-top: auto;
    /* Push to bottom if content varies */
    font-size: 16px;
    color: #333;
    font-weight: 700;
    text-align: right;
}

/* Adjust list item to not have margin bottom in grid view as grid gap handles it */
@media (min-width: 869px) {
    .sauna-item {
        margin-bottom: 0;
    }
}

/* Price Styles */
.sauna-card-prices {
    margin-top: auto;
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    min-height: 24px;
}

.sauna-card-price-item {
    font-size: 0.85rem;
    color: #2D3748;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    margin-left: auto;
    padding: 0;
}

/* Region Info in Sidebar */
.region-info {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.region-info h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.region-info p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Promoted Sauna Card */
.sauna-card.promoted {
    border: 2px solid #D4AF37; /* Metallic Gold */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.custom-popup {
    font-family: 'Raleway', sans-serif;
}

.custom-popup h3 {
    font-family: 'Nunito', sans-serif;
}

.custom-popup.promoted {
    border: 2px solid #D4AF37;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.4);
}

.gold-marker {
    filter: hue-rotate(190deg) brightness(1.2) saturate(1.4);
}

/* Main Page Footer */
.main-footer {
    background-color: #fff;
    padding: 60px 0;
    border-top: 1px solid #eee;
    color: #555;
    font-family: 'Raleway', sans-serif;
    margin-top: 60px;
}

.main-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 0 20px;
}

.main-footer-logo {
    margin-bottom: 25px;
}

.main-footer-logo img {
    height: 45px;
    display: block;
}

.main-footer-copyright {
    margin-top: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
}

.main-footer a {
    color: #333;
    font-weight: 700;
    text-decoration: none;
}

/* Map Copyright Overlay */
.map-copyright {
    position: absolute;
    bottom: 5px; /* Adjust as needed */
    left: 10px;
    z-index: 400; /* Below Leaflet controls (usually ~1000) and filter widget (2000) */
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem; /* Small text */
    color: #333;
    pointer-events: none; /* Make sure clicks pass through */
    white-space: nowrap;
}

/* Ensure map containers are relative for absolute positioning of copyright */
.map-copyright-container {
    position: relative;
    width: 100%;
    /* Flex grow if needed, but handled by parent layout */
}

@media (min-width: 869px) {
    .map-copyright {
        /* Keep it left aligned on desktop too to avoid OSM attribution on the right */
        left: 80px; /* Offset to avoid filter button if it's there, or just left: 10px? 
                       Filter widget is left: 20px, width ~50px+. 
                       Copyright should perhaps be centered or further right? 
                       User said "positioned on top of the openstreetmap text" which is right.
                       So left is safer. 
                       Filter widget is bottom: 30px. Copyright bottom: 5px.
                       If they overlap, Filter (z-index 2000) > Copyright (z-index 400).
                       So copyright will be "hidden" behind filter widget if they overlap.
                    */
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        font-size: 0.85rem;
    }
}



/* Latest Saunas Grid - Reusable */
.latest-saunas-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 869px) {
    .latest-saunas-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    background-color: #f7fafc;
}

.blog-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
}

.blog-card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: #718096;
    margin-top: auto;
}

/* Cookie Consent Styles */
.cookie-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black backdrop */
    z-index: 2000; /* Higher than menu overlay (1000) and hamburger (1002) */
    backdrop-filter: blur(2px); /* Optional: adds a nice blur effect to background */
}

.cookie-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 2001; /* Above the overlay */
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

.cookie-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    color: #333;
}

.cookie-modal p {
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cookie-btn-accept {
    background-color: #1877F2; /* Standard blue, or could use #14a76c to match site theme */
    color: #fff;
    border-color: #1877F2;
}

.cookie-btn-accept:hover {
    background-color: #166fe5;
}

.cookie-btn-decline {
    background-color: #f8f9fa;
    color: #333;
    border-color: #ddd;
}

.cookie-btn-decline:hover {
    background-color: #e2e6ea;
}

@media (max-width: 480px) {
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Favorite Badge on Sauna Card */
.sauna-card-favorite-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 5;
    pointer-events: none;
    font-family: 'Raleway', sans-serif;
}

/* Account Page Design Improvements */
.profile-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center on mobile */
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    max-width: 800px;
}

.profile-card-image {
    flex: 0 0 auto;
}

.profile-picture-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-picture-pending,
.profile-picture-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.profile-picture-pending {
    background: #f0f0f0;
    color: #888;
    border: 1px solid #ddd;
}

.profile-picture-placeholder {
    background: #14a76c;
    color: #fff;
    font-size: 3em;
}

.profile-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center on mobile */
    text-align: center; /* Center text on mobile */
    width: 100%;
}

.profile-username {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.member-since {
    color: #888;
    font-size: 0.9em;
    margin-top: 5px;
    margin-bottom: 15px;
}

.profile-bio, 
.profile-link {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #555;
    max-width: 500px;
}

.edit-profile-btn {
    margin-top: 15px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center; /* Center on mobile */
    width: 100%;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-stat-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: #14a76c;
    line-height: 1.2;
}

.profile-stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.section-title-account {
    margin-top: 20px;
    margin-bottom: 25px;
    font-size: 1.6em;
    color: #333;
}

.account-section {
    margin-bottom: 50px;
}

@media (min-width: 869px) {
    .profile-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 40px;
        gap: 40px;
        text-align: left;
    }

    .profile-card-info {
        align-items: flex-start;
        text-align: left;
    }

    .profile-picture-img,
    .profile-picture-pending,
    .profile-picture-placeholder {
        width: 180px;
        height: 180px;
    }

    .profile-stats {
        justify-content: flex-start;
    }
}

/* ========================================= */
/*       Login Popup Styles                  */
/* ========================================= */

.login-popup-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-popup-overlay.show {
    /* display: flex; Handled by JS adding class, but needed for override */
    display: flex;
    opacity: 1;
}

.login-popup-content {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-popup-overlay.show .login-popup-content {
    transform: translateY(0);
}

.close-popup-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-popup-btn:hover {
    color: #333;
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.login-popup-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.5rem;
    color: #2c3e50;
}

.login-popup-content p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-actions .action-btn {
    margin-bottom: 0; /* Override generic action-btn margin */
}

/* Generic Action Button (if not already defined or needs to match exactly) */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: #14a76c;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #118a5a;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background: #e2e6ea;
}
