/* Container for trek plaques */
.trek-plaques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 450px)); /* Minimum width of 250px, maximum width of 450px */
    gap: 20px; /* Space between plaques */
    justify-content: center; /* Center-align the grid */
    padding: 20px; /* Add padding around the grid */
    margin: 0 auto; /* Center the grid container */
}

/* Trek plaque styles */
.trek-plaque {
    position: relative;
    width: 100%; /* Adjust width based on container */
    aspect-ratio: 4 / 3; /* Maintain 4:3 aspect ratio */
    background-color: #f9f9f9; /* Light background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
    overflow: hidden; /* Clip content inside the plaque */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Align content to top and bottom */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.trek-plaque:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

/* Title in the top-left corner */
.trek-plaque .title {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* Black backdrop with transparency */
    color: #fff; /* White text */
    font-family: 'HaveIdea', 'HeyAugust', cursive;
    font-size: 1.5rem;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Country flags in the top-right corner */
.trek-plaque .flags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.trek-plaque .flags img {
    height: 20px; /* Small flag size */
    width: auto;
    border-radius: 3px; /* Optional: Rounded corners for flags */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Bottom-left corner for num_days and difficulty */
.trek-plaque .info {
    position: absolute;
    bottom: 10px;
    font-family: 'Georgia', 'Times New Roman', serif; /* Classic serif font */
    color: #333; /* Darker text */
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.8); /* Light backdrop */
    padding: 5px 10px;
    padding-top: 0px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    right: 10px;
    text-align: right;
}


/* Months overview styles */
.trek-plaque .info .months-overview {
    text-align: center;
    margin-top: 5px;
}

.trek-plaque .info .months-overview span {
    font-size: 0.8rem;
    border-radius: 3px;
}

.trek-plaque .info .months-overview .inactive {
    color: #b2b2b2; /* Greyed out */
}

.trek-plaque .info .months-overview .active {
    color: #000; /* Black */
}

.trek-plaque .info .months-overview .maybe {
    color: rgb(230, 149, 0); /* Highlighted */
}


/* Trek plaque image */
.trek-plaque img.trek-plaque-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the plaque */
    border-radius: 10px; /* Match the plaque's rounded corners */
}

.trek-plaque .info .num {
    font-size: 2em;
}

.trek-plaque .info .txt {
    font-size: 0.8em;
    color: #666; /* Subtle text color */
    font-family: "Cymbria", cursive; /* Cursive font for beauty and km */
}

.trek-plaque .info .spacer {
    margin-left: 10px;
}

.plaque-difficulty {
    text-align: center;
    font-size: 0.8rem;
    font-family: var(--caps-font);
}