/* ========================================
   GEOGRAPHY MODULE - VILLAGE PROFILE
   ======================================== */

/* Geography card */
.geography-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.geography-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #218838);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.geography-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #28a745;
}

.geography-card h5 {
    color: #28a745;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 0.5rem;
}

.geography-card h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #28a745;
    border-radius: 1px;
}

/* Map container */
.map-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    min-height: 400px;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 400px;
    color: var(--text-secondary);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #28a745;
}

/* Coordinates display */
.coordinates-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .coordinates-display {
        grid-template-columns: repeat(3, 1fr);
    }
}

.coordinate-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    position: relative;
}

.coordinate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #28a745;
}

.coordinate-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coordinate-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #28a745;
    font-family: monospace;
}

/* Boundaries */
.boundaries-compass {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    margin: 2rem auto;
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    z-index: 2;
}

.boundary-label {
    position: absolute;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.boundary-north {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.boundary-south {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.boundary-east {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.boundary-west {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Climate info */
.climate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .climate-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.climate-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.climate-icon {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.climate-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.climate-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Topography info */
.topography-section {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(33, 136, 56, 0.02));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.topography-section h6 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .geography-card {
        padding: 1rem;
    }
    
    .coordinates-display {
        grid-template-columns: 1fr;
    }
    
    .climate-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        min-height: 250px;
    }
    
    .map-placeholder {
        min-height: 250px;
    }
    
    .map-placeholder i {
        font-size: 2rem;
    }
    
    .boundaries-compass {
        max-width: 250px;
    }
    
    .boundary-label {
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
    }
}


