/* Kontejner zmenšený o cca 25% oproti standardu */
.tours-container {
    max-width: 850px; 
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333;
}

/* Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Menší mezery pro kompaktnější vzhled */
}

/* Dlaždice */
.tour-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Perfektní čtverec */
    overflow: hidden;
    border-radius: 4px; /* Ostrý moderní vzhled s mírným zaoblením */
    background-color: #000; /* Základ pro overlay */
}

/* Obrázek na pozadí */
.tour-bg-link {
    display: block;
    width: 100%;
    height: 100%;
}

.tour-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Šedý overlay 20% */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.4); /* Šedá s 20% opacity */
    transition: background-color 0.3s ease;
}

/* Centrování obsahu */
.tour-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    pointer-events: none; /* Kliky prochází na linky pod textem */
    z-index: 2;
}

/* Nadpis */
.tour-title-link {
    text-decoration: none;
    pointer-events: auto; /* Znovu povolí klik na nadpis */
}

.tour-title {
    color: #ffffff;
    font-size: 1.6rem; /* Výrazný nadpis */
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Lepší čitelnost */
}

/* Datum */
.tour-date {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Hover efekty */
.tour-card:hover .tour-bg-img {
    transform: scale(1.1);
}

.tour-card:hover .overlay {
    background-color: rgba(0, 0, 0, 0.4); /* Při hoveru trochu ztmavne pro efekt */
}

/* --- RESPONZIVITA --- */

@media (max-width: 800px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
    .tour-title {
        font-size: 1.4rem;
    }
}