/**
 * Midnight Expansion - Founder's Point (Alliance) Module Styles
 */

.neighborhoods-module {
    animation: fadeIn 0.6s ease-out;
    color: #e2e8f0;
}

.neighborhoods-module .glass-panel {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(139, 92, 246, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neighborhoods-module .glass-panel:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(139, 92, 246, 0.2);
}

.neighborhoods-module .module-header {
    text-align: center;
    border: 2px solid rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(15, 23, 42, 0.9));
    padding: 3.5rem 2rem;
}

.neighborhoods-module h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    margin: 0;
}

.neighborhoods-module .module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.neighborhoods-module .full-width {
    grid-column: span 2;
}

.neighborhoods-module h2 {
    color: #a78bfa;
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 5px solid #8b5cf6;
    padding-left: 1.5rem;
}

/* Map Section */
.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.4);
    margin: 2rem 0;
}

.map-container img {
    width: 100%;
    display: block;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.amenity-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.amenity-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-3px);
}

.amenity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 10px;
}

.amenity-icon img {
    max-width: 24px;
    max-height: 24px;
}

.amenity-info strong {
    display: block;
    color: #fff;
    margin-bottom: 0.2rem;
}

.amenity-info span {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Biome Sections */
.biome-section {
    margin-top: 4rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding-top: 3rem;
}

.biome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.biome-header h3 {
    font-size: 2.2rem;
    color: #a78bfa;
    margin: 0;
}

/* Plot Gallery */
.plot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.plot-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.plot-card:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.plot-img-container {
    height: 110px;
    overflow: hidden;
    position: relative;
}

.plot-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.plot-card:hover .plot-img-container img {
    transform: scale(1.1);
}

.plot-info {
    padding: 0.8rem;
    text-align: center;
}

.plot-number {
    font-weight: bold;
    color: #fff;
    font-size: 0.95rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes lightboxAppear {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lightbox Modal - Nuclear Visibility */
.lightbox-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    display: none;
    /* Controlled by .active */
    justify-content: center !important;
    align-items: center !important;
    z-index: 2147483647 !important;
    /* Absolute maximum z-index */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.lightbox-modal.active {
    display: flex !important;
}

.lightbox-spinner {
    position: absolute !important;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    border-top-color: #8b5cf6;
    animation: spin 0.8s linear infinite;
}

.lightbox-content {
    position: relative !important;
    max-width: 90% !important;
    max-height: 90% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    animation: lightboxAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2147483648 !important;
}

.lightbox-content img {
    max-width: 100% !important;
    max-height: 80vh !important;
    border-radius: 12px !important;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9), 0 0 40px rgba(139, 92, 246, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block;
}

.lightbox-close {
    position: absolute !important;
    top: -60px !important;
    right: 0 !important;
    color: #fff !important;
    font-size: 4rem !important;
    cursor: pointer !important;
    line-height: 1 !important;
    user-select: none !important;
    transition: all 0.2s;
    z-index: 100;
}

.lightbox-close:hover {
    color: #a78bfa !important;
    transform: scale(1.1);
}

.lightbox-caption {
    margin-top: 25px !important;
    color: #fff !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    background: rgba(15, 23, 42, 0.8) !important;
    padding: 0.6rem 2rem !important;
    border-radius: 40px !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
}

/* Biome Previews */
.biome-previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.biome-preview-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.biome-preview-img:hover {
    transform: scale(1.05);
    border-color: #8b5cf6;
}

/* Symbols Section */
.symbols-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.symbol-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.symbol-item img {
    width: 32px;
    height: 32px;
}

/* Town Center Amenities */
.town-center-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.town-center-item {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.town-center-item img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.town-center-item h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.town-center-info {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.enlargeable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.enlargeable:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 1024px) {

    .neighborhoods-module .module-grid,
    .town-center-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .biome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .biome-header h3 {
        font-size: 1.8rem;
    }

    .plot-gallery {
        grid-template-columns: 1fr 1fr;
    }
}