/* ============================================================
   Panel map — climbing gym wall selector
   Requires Bootstrap 4.3+ for outer form layout only.
   The .panel-map component itself is self-contained.
   ============================================================ */

/* ── Grid container ───────────────────────────────────────── */
.panel-map-wrap {
    width: 100%;
	margin-top: 10px;
}

.panel-map {
    display: grid;
    grid-template-columns: repeat(9, 1fr); /* keep in sync with DB total_cols */
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    min-height: 200px;
}

/* ── Shared cell base ─────────────────────────────────────── */
.panel-cell,
.panel-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
	font-weight: 600;
    line-height: 1.25;
}

/* ── Selectable panel ─────────────────────────────────────── */
.panel-cell {
    border: 1px solid ;
    background: #faf9f5;
    cursor: pointer;
    color: #212529;
    transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
    margin: 0; /* override Bootstrap label margin */
    user-select: none;
}

.panel-cell input[type="radio"], .panel-cell input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.panel-cell:hover {
    border-color: #86b7fe;
    background: #f0f6ff;
}

.panel-cell:focus-within {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.panel-cell.is-selected {
    border: 2px solid #0d6efd;
    background: #cfe2ff;
    color: #052c65;
}

/* ── Unselectable decorative cell ─────────────────────────── */
.panel-default {
    border: 1px solid #bec4ca;
    background: #f4f5f6;
    color: #6c757d;
    cursor: default;
    user-select: none;
    font-size: 14px;
    gap: 4px;
}

.panel-default i {
    font-size: 20px;
    color: #adb5bd;
}

/* ── Row labels (L / R) ───────────────────────────────────── */
.panel-row-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 4px 0;
    margin: 0 6px;
    flex-shrink: 0;
    gap: 6px;
}

.panel-row-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #5c656d;
    text-transform: uppercase;
	writing-mode: vertical-rl;
	text-orientation: upright;
}

.panel-map-outer {
    display: flex;
    align-items: stretch;
}

/* ── Chosen panel feedback ────────────────────────────────── */
.panel-chosen {
    margin-top: 16px;
    font-size: 16px;
}

.panel-chosen strong {
    color: #212529;
}

/* ── Validation state ─────────────────────────────────────── */
.panel-map-wrap.was-validated .panel-map:not(:has(.is-selected)) {
    outline: 2px solid #dc3545;
    border-radius: 6px;
}

/* ── Responsive: collapse to a simple select on very small screens ── */
@media (max-width: 480px) {
    .panel-map-wrap .panel-map-outer,
    .panel-map-wrap .panel-chosen {
        display: none;
    }
    .panel-map-wrap .panel-map-fallback {
        display: block;
    }
}

@media (min-width: 481px) {
    .panel-map-wrap .panel-map-fallback {
        display: none;
    }
}

@media only screen and (max-device-width: 1200px){
.panel-chosen
{
	padding: 6px 0;
	font-size: 220%;	
}

.panel-cell,
.panel-default
{
	font-size: 200%;
}

.panel-row-label
{
	font-size: 175%;
}

.panel-map
{
	gap: 6px;
}