/* Container */
.pam-grid-wrapper {
    font-family: 'Georgia', 'Times New Roman', serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- NEW FILTER STYLES --- */
.pam-filters {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.pam-select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
}

.pam-btn {
    padding: 8px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.pam-btn:hover {
    background-color: #005177;
}

.pam-btn-reset {
    background-color: #6c757d;
}

.pam-btn-reset:hover {
    background-color: #5a6268;
}
/* --- END FILTER STYLES --- */

/* The Grid */
.pam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding: 20px 0;
}

/* Individual Plot Box */
.pam-plot {
    padding: 20px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.1);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.pam-plot:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Status Colors (Classic Palette) */
.status-available { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.status-sold { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.status-hold { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.status-blocked { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }

/* Tooltip on Hover */
.pam-plot::after {
    content: attr(data-info);
    white-space: pre-wrap;
    position: absolute;
    bottom: 110%; 
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: sans-serif;
    line-height: 1.5;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-shadow: none;
    text-align: left;
}

.pam-plot:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Tooltip Arrow */
.pam-plot:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Legend (Key) */
.pam-legend {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}
.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}
.legend-box {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
}