/* North Indian Pattern Chart CSS */
.kundli-chart-wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

@media (max-width: 768px) {
    .kundli-chart-wrapper {
        gap: 1.5rem;
        margin: 2rem 0;
    }
}

.north-indian-chart {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    font-size: 1rem;
    font-weight: 600;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

@media print, (max-width: 600px) {
    .north-indian-chart {
        font-size: 0.85rem;
        max-width: 100%; /* Allow full width on mobile */
        filter: none;
    }
}

.chart-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1; /* Restore visibility */
}

.house {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    width: 22%;
    height: 22%;
    transform: translate(-50%, -50%);
    cursor: help;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
}

.house:hover {
    background: rgba(129, 140, 248, 0.08);
    transform: translate(-50%, -50%) scale(1.1);
}

.house-details {
    position: absolute;
    bottom: 8px;
    font-size: 0.65rem;
    color: var(--text-dim);
    opacity: 0.7;
    pointer-events: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.house-num {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .house-num {
        font-size: 0.7rem;
        margin-top: 3px;
    }
}

.planets-in-house {
    color: #fff;
    line-height: 1.4;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(129, 140, 248, 0.3);
}

/* Positioning based on geometric centers of polygonal spaces */
.h1 { top: 25%; left: 50%; }
.h2 { top: 12%; left: 28%; height: 22%; width: 28%; }
.h3 { top: 28%; left: 12%; height: 28%; width: 22%; }
.h4 { top: 50%; left: 25%; }
.h5 { top: 72%; left: 12%; height: 28%; width: 22%; }
.h6 { top: 88%; left: 28%; height: 22%; width: 28%; }
.h7 { top: 75%; left: 50%; }
.h8 { top: 88%; left: 72%; height: 22%; width: 28%; }
.h9 { top: 72%; left: 88%; height: 28%; width: 22%; }
.h10 { top: 50%; left: 75%; }
.h11 { top: 28%; left: 88%; height: 28%; width: 22%; }
.h12 { top: 12%; left: 72%; height: 22%; width: 28%; }