body {
    font-family: 'Roboto', sans-serif;
}

.page-container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

/* Updated hero section for carousel */
.hero-carousel {
    position: relative;
    height: 530px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Default carousel slides for index page */
.carousel-slide:nth-child(1) {
    background-image: url('../images/slider-barkholt-3.jpg');
}

.carousel-slide:nth-child(2) {
    background-image: url('../images/slider-barkholt-2.jpg');
}

.carousel-slide:nth-child(3) {
    background-image: url('../images/slider-barkholt-1.jpg');
}

/* Vihertyöt carousel slides */
.vihertyot-carousel .carousel-slide:nth-child(1) {
    background-image: url('../images/slider-barkholt-vt-1.jpg');
}

.vihertyot-carousel .carousel-slide:nth-child(2) {
    background-image: url('../images/slider-barkholt-vt-2.jpg');
}

.vihertyot-carousel .carousel-slide:nth-child(3) {
    background-image: url('../images/slider-barkholt-vt-3.jpg');
}

.vihertyot-carousel .carousel-slide:nth-child(4) {
    background-image: url('../images/slider-barkholt-vt-4.jpg');
}

/* Legacy hero-bg class for backwards compatibility */
.hero-bg {
    background-image: url('../images/slider-barkholt-1.jpg');
    background-size: cover;
    background-position: center top;
    position: relative;
    height: 530px;
}

.search-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 10;
}

.opening-hours-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px 50px;
    border-radius: 10px;
    text-align: center;
    color: white;
    z-index: 10;
}

/* Updated: closer + heavier shadow for better contrast */
.opening-hours-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    /* 1 px offset, 4 px blur, 80 % opacity */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.opening-hours-text {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.opening-hours-closed {
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}


/* Carousel navigation indicators */
.carousel-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Pause carousel on hover */
.hero-carousel:hover .carousel-slide {
    animation-play-state: paused;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.search-overlay, .hero-search-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 10;
}