.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    background-image: image-set(
        url('/static/photoglide/img/hero-desktop.webp') type('image/webp'),
        url('/static/photoglide/img/hero-desktop.jpeg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero-section {
        background-image: image-set(
            url('/static/photoglide/img/hero-mobile.webp') type('image/webp'),
            url('/static/photoglide/img/hero-mobile.jpeg') type('image/jpeg')
        );
        background-attachment: scroll;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.grid-item {
    width: 30rem;
}

@media (max-width: 480px) {
    .grid-item {
        width: 100%;
    }
}


/* Map Explorer Card Styles */
.map-explorer-card {
    position: relative;
    display: block;
    width: min(90%, 600px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.map-explorer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.map-explorer-content {
    position: relative;
    height: 350px;
}

.map-explorer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.75) 0%,
        rgba(37, 99, 235, 0.7) 50%,
        rgba(29, 78, 216, 0.65) 100%
    );
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity 0.4s ease;
}

.map-explorer-card:hover .map-explorer-overlay {
    opacity: 0.6;
}

.map-explorer-icon {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.map-explorer-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.map-explorer-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    text-align: center;
}

.map-explorer-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: white;
    color: #2563eb;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.map-explorer-card:hover .map-explorer-cta {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.map-explorer-cta i {
    transition: transform 0.3s ease;
}

.map-explorer-card:hover .map-explorer-cta i {
    transform: translateX(5px);
}

#map-world {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-explorer-content {
        height: 280px;
    }

    .map-explorer-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .map-explorer-title {
        font-size: 1.5rem;
    }

    .map-explorer-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .map-explorer-cta {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

