/* 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;
    aspect-ratio: 4 / 3; /* Maintain 4:3 aspect ratio */
    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; 
    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: var(--adventure-font);
    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: 23px; /* 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;
    display: flex;
    flex-direction: column; 
    bottom: 10px;
    font-family: var(--text-font);
    color: #333; /* Darker text */
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.8); /* Light backdrop */
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    right: 10px;
    text-align: right;
}

.trek-plaque .plaque-row {
    display: flex;
    flex-direction: row; /* Organize info in a row */
    align-items: top; /* Center-align items vertically */
    justify-content: center;
    line-height: 0.5;
    gap: 15px; /* Space between items */
}

.trek-plaque .months-overview {
    display: flex;
    flex-direction: row; /* Organize months in a row */
    gap: 4px; /* Space between rows */
    line-height: 0.4;
    font-family: var(--caps-font);
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.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);
    line-height: 1.2;
    color: #555; /* Subtle text color */
}

.stars {
    color: #1e1e1e
}