/* ---
   Stylesheet voor de Homepagina (index.php)
   --- */

/* --- AANGEPAST: Correctie voor Zichtbaarheid Content --- */
.page-container {
    position: relative;
    z-index: 5; /* Plaatst de content boven de hero-achtergrond-elementen */
}
/* --- Einde Correctie --- */


/* --- Stijlen voor Homepagina Secties --- */
.home-section {
    background-color: #008080; /* Teal achtergrond */
    padding: 4rem 2rem; /* Ruimte binnen de sectie */
    margin-bottom: 0;
}

.home-section + .home-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
    color: #FFFFFF; /* Witte titel */
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

.section-link-wrapper {
    text-align: center;
    margin-top: 7rem;
	margin-bottom: 5rem;
}

/* --- Stijl voor 'geen items' bericht --- */
.route-container p, .home-section > p {
    color: #FFFFFF;
}

/* ---
   VOLLEDIGE OPMAAK VOOR ROUTE CARDS
   --- */
.route-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.route-card {
    background-color: #9B6B35;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #FFFFFF;
    position: relative;
    border: 4px solid #fff;
    box-shadow: 
        inset 0 0 8px rgba(0,0,0,0.5),
        0 8px 16px rgba(0,0,0,0.2);
    flex-basis: 350px; 
    flex-grow: 1;
    max-width: 450px;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

.route-card:hover {
    transform: translateY(4px);
    border-color: #FFD800;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.8),
        0 2px 4px rgba(0,0,0,0.4);
}

.route-card__image-container {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.route-card__image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.route-card__content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
    color: #FFFFFF;
}

.route-card__content .startplaats {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.route-card__params {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.route-card__params span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-card__params img {
    width: 24px;
    height: 24px;
}

/* --- Promo Foto Sectie --- */
.promo-image-container {
    width: 100%;
    height: 610px;
    margin: 0;
    overflow: hidden;
}

.promo-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Uitgelicht Artikel Sectie --- */
.featured-article-wrapper {
    width: 100%;
    margin-bottom: 3rem; 
}

.featured-article {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    background-color: #fff; /* Witte achtergrond voor het artikel zelf */
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    text-decoration: none;
    color: #333; /* Donkere tekst voor in het witte blok */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article-wrapper:nth-child(even) .featured-article {
    direction: rtl;
}
.featured-article-wrapper:nth-child(even) .featured-article > * {
    direction: ltr;
}

.featured-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.featured-article img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-article-content {
    padding: 2.5rem;
}

.featured-article-content h3 {
    font-size: 2rem;
    color: var(--color-primary);
}

.featured-article-content p {
    font-size: 1.1rem;
    margin: 0.5rem 0 1.5rem 0;
}

.featured-article-content .read-more {
    font-weight: bold;
    color: #9B6B35;
}

/* --- Responsive aanpassingen --- */
@media (min-width: 992px) {
    .featured-article-wrapper {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .featured-article img {
        height: 250px;
    }
    .featured-article-content {
        padding: 1.5rem;
    }
    .promo-image-container {
        height: 300px;
    }
    .route-container {
        gap: 1.5rem;
    }
    .route-card {
        flex-basis: 100%;
    }
}

/* --- NIEUW: Stijlen voor Recente Beoordelingen Sectie --- */
/* 1. De container die de rijen aanmaakt en centreert */
.reviews-container-home {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. De kaart die een basisbreedte krijgt om naast elkaar te passen */
.review-card-home {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    flex-basis: 350px; /* Geeft een startbreedte, net als de route-card */
    flex-grow: 1;       /* Laat de kaart meegroeien indien nodig */
    max-width: 450px;   /* Voorkomt dat de kaart te breed wordt op een lege rij */
}

.review-card-home__stars {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.review-card-home__comment {
    font-style: italic;
    font-size: 1.1rem;
    color: #FFFFFF;
    flex-grow: 1; /* Zorgt dat de tekst de ruimte vult */
    margin-bottom: 1.5rem;
}

.review-card-home__author {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto; /* Duwt de auteur naar de onderkant */
}

.review-card-home__author a {
    color: #FFFFFF;
    text-decoration: underline;
}

.review-card-home__author a:hover {
    color: var(--color-accent);
}

/* --- NIEUW: Stijlen voor Gemiddelde Rating op Route Card --- */
.route-card__avg-rating {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-accent); /* Gebruikt de gele accentkleur */
    text-align: center;
}

/* --- NIEUW: Stijl voor bruine sectie-achtergrond --- */
.home-section--brown {
    background-color: var(--color-secondary); /* Het gekende bruin */
}