* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #2c2c2c;
    overflow: auto;
}

.map-container {
    position: relative;
    min-width: 1000px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
}

.map-background {
    background-image: url('map.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-width: 1000px;
    min-height: 600px;
    position: relative;
    width: 100%;
    height: 100vh;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.grid-line {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
}

.grid-line.horizontal {
    height: 1px;
    width: 100%;
}

.grid-label {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    border-radius: 2px;
    pointer-events: none;
}

.grid-label.x-label {
    top: -15px;
    left: -10px;
}

.grid-label.y-label {
    top: -8px;
    left: -25px;
}

.house-plot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #333;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.house-plot:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    z-index: 20;
}

.house-plot.occupied {
    background-color: rgba(76, 175, 80, 0.8);
    color: white;
}

.house-plot.occupied:hover {
    background-color: rgba(76, 175, 80, 1);
}

.plot-info {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translateY(-100%);
    margin-top: -5px;
}

.house-plot:hover .plot-info {
    opacity: 1;
}

.legend {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 100;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 2px;
}

.legend-color.available {
    background-color: rgba(255, 255, 255, 0.8);
}

.legend-color.occupied {
    background-color: rgba(76, 175, 80, 0.8);
}

@media (max-width: 1000px) {
    .map-container {
        min-width: 1000px;
        overflow: auto;
    }
}
