.villages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

#villageColumns {
    display: contents;
}

.village-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.6) 100%);
    border-radius: 12px;
    border: 2px solid #2a2a2a;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.village-card:hover {
    border-color: #ffffff;
    background: linear-gradient(135deg, rgba(30, 20, 40, 0.8) 0%, rgba(20, 10, 30, 0.8) 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.village-name {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: center;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 0.5rem;
}

.village-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.village-description {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.village-details {
    flex: 1;
}

.village-details h4 {
    color: #dfc8ff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.village-details ul {
    margin: 0;
    padding-left: 1.5rem;
}

.village-details li {
    color: #ffffff;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.villages-sublist {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

.villages-sublist li {
    background: rgba(30, 30, 30, 0.6);
    padding: 0.75rem;
    margin: 0.5rem 0 !important;
    border-radius: 6px;
    border-left: 3px solid #ffffff;
    transition: all 0.2s ease;
}

.villages-sublist li:hover {
    background: rgba(40, 30, 50, 0.8);
    border-left-color: #ffffff;
    transform: translateX(4px);
}

.villages-sublist li strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}

.village-item-desc {
    color: #b0b0b0;
    font-size: 0.9rem;
    display: block;
}

/* Villages List Styles (deprecated, kept for reference) */
.villages-list-container {
    display: none;
}

.villages-list {
    display: none;
}

.village-list-item {
    display: none;
}

.error-item {
    display: none;
}
.villages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.village-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.6) 100%);
    border-radius: 12px;
    border: 2px solid #2a2a2a;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.village-card:hover {
    border-color: #b794f6;
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(183, 148, 246, 0.2);
}

.village-name {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: center;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 0.5rem;
}

.village-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.village-description {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.village-details {
    flex: 1;
}

.village-details h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.village-details ul {
    margin: 0;
    padding-left: 1.5rem;
}

.village-details li {
    color: #ffffff;
    margin: 0.5rem 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .villages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .village-card {
        padding: 1.5rem;
    }

    .village-name {
        font-size: 1.5rem;
    }

    .village-description {
        font-size: 0.95rem;
    }

    .village-details h4 {
        font-size: 1rem;
    }
}