body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f4;
    color: #222;
    margin: 0;
    padding: 20px;
}
h1, h2 { color: #2e4d2e; }

.legend .dot { margin-right: 4px; }

.map-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 400px;
    background: #dfe9d8;
    border: 1px solid #b6c9ae;
    border-radius: 6px;
    overflow: visible;
    margin-bottom: 16px;
    cursor: crosshair;
    z-index: 0;
}
.map-wrap.no-bg { background: repeating-linear-gradient(45deg, #e4ece0, #e4ece0 10px, #dbe6d5 10px, #dbe6d5 20px); }
.map-bg {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.spot {
    position: absolute;
    width: 34px;
    height: 34px;
    background: #2ecc40;
    border: 2px solid #000;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spot.free { background: #2ecc40; }
.spot.occupied { background: #e0342a; }
.spot-label {
    color: #000;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.dot { display:inline-block; width:14px; height:14px; border:2px solid #000; box-sizing:border-box; vertical-align:middle; }
.dot.free { background:#2ecc40; }
.dot.occupied { background:#e0342a; }

.spot-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 1000;
}
.spot:hover .spot-tooltip,
.spot:focus .spot-tooltip {
    opacity: 1;
}

.admin-link { margin-top: 10px; }

.login-box {
    max-width: 320px;
    margin: 80px auto;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.login-box input, .login-box button { width: 100%; padding: 8px; margin-top: 8px; box-sizing: border-box; }
.error { color: #c0392b; }
.success { color: #1f8a2c; font-weight: bold; }

.spot-form {
    background: #fff;
    padding: 16px;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 24px;
}
.spot-form label { display: flex; flex-direction: column; font-size: 13px; }
.spot-form input, .spot-form select { padding: 6px; margin-top: 4px; }

.spot-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.spot-table td, .spot-table th {
    border: 1px solid #ddd;
    padding: 6px;
    font-size: 13px;
}
.spot-table input, .spot-table select { width: 100%; box-sizing: border-box; }
button { background: #2e6b2e; color: #fff; border: none; padding: 6px 14px; border-radius: 4px; cursor: pointer; }
button.danger { background: #b23324; }
button:hover { opacity: 0.9; }
