/* ============================ EUROPE COUNTRY PAGE SHARED STYLES ============================ */

/* ============================
GLOBAL
============================ */
h2 {
    margin: 35px 0 6px 0;
    text-align: center;
    padding: 40px 0 6px 0;
    letter-spacing: 10px;
    font-size: 30px;
    color: black;
}

/* ============================
PAGE HEADER
============================ */
.states-title {
    text-align: center;
    font-size: 32px;
    font-family: Garamond, serif;
    margin-bottom: 10px;
}

.states-subtitle {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.states-divider {
    width: 80px;
    height: 3px;
    background: #6072FE;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

/* ============================
CINEMATIC FADE BANNER
============================ */
.europe-fade-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1400 / 788;
    max-width: 1400px;
    margin: 0 auto 10px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.europe-fade-banner .fade-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2.8s ease-in-out;
}

.europe-fade-banner .fade-image.next-active {
    transition-delay: 9800ms;
}

.europe-fade-banner .fade-active {
    opacity: 1;
}

.europe-fade-banner .fade-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    will-change: transform;
}

.europe-fade-banner .fade-zoom img {
    animation: kenburns_base 20000ms ease-out forwards;
}

@keyframes kenburns_base {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* Caption overlay */
.country-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
    color: #fff;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-active .country-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
COUNTRY GRID
============================ */
.grid-container {
    max-width: 1000px;
    margin: 0 auto 10px auto;
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.grid-item {
    position: relative;
    border-radius: 6px;
    opacity: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeInUp 0.6s ease forwards;
}

.grid-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.grid-item .caption {
    text-align: center;
    padding: 8px 0;
    font-family: Garamond, serif;
    font-size: 18px;
    color: #333;
}

/* BADGES */
.state-status {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-family: Garamond, serif;
    border-radius: 4px;
}

.visited { background: rgba(46,125,50,0.85); }
.not-visited { background: rgba(120,120,120,0.85); }

/* GRID STAGGER */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.grid-item:nth-child(1) { animation-delay: 0.05s; }
.grid-item:nth-child(2) { animation-delay: 0.10s; }
.grid-item:nth-child(3) { animation-delay: 0.15s; }
.grid-item:nth-child(4) { animation-delay: 0.20s; }
.grid-item:nth-child(5) { animation-delay: 0.25s; }
.grid-item:nth-child(6) { animation-delay: 0.30s; }
.grid-item:nth-child(7) { animation-delay: 0.35s; }
.grid-item:nth-child(8) { animation-delay: 0.40s; }
.grid-item:nth-child(9) { animation-delay: 0.45s; }
.grid-item:nth-child(10) { animation-delay: 0.50s; }

/* ============================
THUMBNAIL GRID (for places within country)
============================ */
.multi-pics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    padding: 10px 0;
    align-items: start;
}

.multi-pic-item {
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 1px black;
    transition: box-shadow 0.25s ease;
    position: relative;
}

.multi-pic-item a {
    display: block;
    border-radius: inherit;
}

.multi-pic-item img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.multi-pic-item:hover img,
.multi-pic-item a:focus-visible img {
    transform: scale(1.04);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
    filter: saturate(1.05);
}

.multi-pic-item:hover,
.multi-pic-item a:focus-visible {
    box-shadow: 0 0 0 1px red;
}

.multi-pic-caption {
    margin-top: 10px;
    font-family: Garamond, serif;
    font-size: 27px;
    color: #333;
    line-height: 1.25;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .multi-pics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .multi-pic-item img {
        height: 100px;
    }
    
    .multi-pic-caption {
        font-size: 20px;
    }
}