/* Maps Page Specific Styles */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000 0%, #2a2a2a 100%);
    color: #FFD700;
    padding: 70px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    color: #FFF;
}

/* Content Container */
.content-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Map Section */
.map-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 36px;
    color: #FFD700;
    margin-bottom: 10px;
    text-align: center;
}

.section-description {
    font-size: 18px;
    color: #CCC;
    text-align: center;
    margin-bottom: 20px;
}

/* Maps Grid */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Map Card */
.map-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.map-card:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.map-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.map-card:hover .map-image img {
    transform: scale(1.05);
}

.map-content {
    padding: 20px;
    flex: 1;
}

.map-title {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: bold;
}

.map-year {
    color: #c0c0c0;
    font-size: 18px;
    font-style: italic;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lightbox-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #FFD700;
}

.lightbox-title {
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
}

.lightbox-year {
    color: #c0c0c0;
    font-size: 20px;
    font-style: italic;
    margin-left: 15px;
}

.close-btn {
    background: none;
    border: 2px solid #FFD700;
    color: #FFD700;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    background-color: #FFD700;
    color: #000;
    transform: scale(1.1);
}

.map-viewer-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    overflow: hidden;
    background-color: #000;
    cursor: default;
    flex: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.map-viewer-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.viewer-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-radius: 30px;
    border: 2px solid #FFD700;
}

.control-btn {
    background-color: #FFD700;
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background-color: #FFF;
    transform: scale(1.1);
}

.zoom-level {
    color: #FFD700;
    font-size: 18px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .maps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }

    .viewer-controls {
        bottom: 10px;
    }

    .map-viewer-image {
        /* Add padding at bottom so controls don't block the image */
        max-height: calc(100% - 80px);
        top: calc(50% - 40px);
    }
}

/* Loading Message */
.loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFD700;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px 40px;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.loading-message p {
    font-size: 20px;
    margin: 0;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: #FFF;
    opacity: 0.8;
}
