/* ─── HtFloorMap — Visor de plano interactivo ─────────────────────────────
   Contenedor: #div_zoomHolder con clase .ht-floor-map-container
   ──────────────────────────────────────────────────────────────────────── */

/* Contenedor principal */
.ht-floor-map-container {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: var(--color-bg-body);
}

/* ─── Grid de puntos (sin imagen de fondo) ────────────────────────────── */
.ht-floor-map__world--grid {
    background-color: #f8fafb;
    background-image: radial-gradient(circle, #c8ced6 1px, transparent 1px);
    background-size: 24px 24px;
}
.ht-map-theme-dark .ht-floor-map__world--grid {
    background-color: #1a1c1e;
    background-image: radial-gradient(circle, #33373b 1px, transparent 1px);
}

/* Capa de marcadores: mismo tamaño que la imagen nativa,
   los marcadores se posicionan en % para coincidir con el plano */
.ht-floor-map__marker-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Cada marcador: centrado sobre la coordenada exacta */
.ht-floor-map__marker {
    position: absolute;
    display: flex;
    pointer-events: all;
    transform: translate(-50%, -50%);
}

/* ─── Pill de zoom (horizontal, centrado abajo) ───────────────────────── */
.ht-floor-map__controls {
    position: absolute;
    right: 16px;
    bottom: 88px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-bg-overlay-light);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
    -webkit-tap-highlight-color: transparent;
}

.ht-floor-map__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--color-light-text);
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.ht-floor-map__btn + .ht-floor-map__btn {
    border-left: 1px solid var(--color-bg-overlay-light);
}

.ht-floor-map__btn:hover {
    background: var(--color-bg-subtle);
}

.ht-floor-map__btn:active {
    background: var(--color-border);
}

.ht-floor-map__btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.ht-floor-map__btn .material-icons {
    font-size: 20px;
    pointer-events: none;
}

/* ─── Pill de cambio de zona (abajo izquierda) ───────────────────────── */
#change_category {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: 88px !important;
    left: 16px !important;
    z-index: 10;
    display: flex !important;
    gap: 6px;
    align-items: center;
    height: 44px;
    padding: 0 18px;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--color-bg-overlay-light) !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14) !important;
    -webkit-tap-highlight-color: transparent;
}

/* ─── Botón flotante de salida de pantalla completa ──────────────────── */
.ht-floor-map__fs-exit-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-text-inverse);
    cursor: pointer;
    background: var(--color-bg-overlay);
    border: none;
    border-radius: var(--radius-pill);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.ht-floor-map__fs-exit-btn:hover  { background: rgba(0, 0, 0, 0.72); }
.ht-floor-map__fs-exit-btn:active { background: rgba(0, 0, 0, 0.88); }

.ht-floor-map__fs-exit-btn .material-icons {
    font-size: 22px;
    pointer-events: none;
}

/* ─── Animación de tap en marcadores ─────────────────────────────────── */
@keyframes ht-marker-tap-inner {
    0%   { transform: scale(1);    }
    20%  { transform: scale(1.18); }
    40%  { transform: scale(0.94); }
    60%  { transform: scale(1.10); }
    80%  { transform: scale(0.97); }
    100% { transform: scale(1);    }
}

.ht-marker-tapped > svg,
.ht-marker-tapped > .ht-map-marker-shape > svg {
    animation: ht-marker-tap-inner 0.55s ease-out both;
}

/* ─── Marcadores sobre el plano ──────────────────────────────────────── */

/* Base: círculo centrado, sin herencia de Bootstrap */
.ht-map-marker {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    color: var(--color-text-inverse);
    text-decoration: none;
    cursor: pointer;
    border: 2.5px solid var(--color-light);
    border-radius: 50%;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.ht-map-marker:active {
    transform: scale(0.92);
}

/* ── Tamaños ────────────────────────────────────────────────────────── */
.ht-map-marker--xs {
    width: 20px;
    height: 20px;
    font-size: 11px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ht-map-marker--sm {
    width: 30px;
    height: 30px;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ht-map-marker--md {
    width: 44px;
    height: 44px;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ht-map-marker--lg {
    width: 58px;
    height: 58px;
    font-size: 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ── Estados (colores) ──────────────────────────────────────────────── */
.ht-map-marker--free      { background-color: var(--color-success); }
.ht-map-marker--occupied   { background-color: var(--color-secondary); }
.ht-map-marker--shared     { color: var(--color-text-heading); background-color: var(--color-warning); }
.ht-map-marker--selected   { background-color: var(--color-danger); }

/* ── Iconos dentro del marcador ─────────────────────────────────────── */
.ht-map-marker .material-icons {
    font-size: inherit;
    line-height: 1;
}
