/* ─── 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;
}

/* ─── Zonas de categoría ──────────────────────────────────────────────── */

.ht-floor-map__area-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Respaldo para navegadores sin color-mix. Va antes de la regla que lo usa: si se
   entiende, gana la de abajo; si no, queda esta. */
.ht-floor-map__area {
    background: rgba(46, 125, 50, .08);
}

.ht-floor-map__area.is-active {
    background: rgba(46, 125, 50, .30);
}

.ht-floor-map__area {
    --ht-map-area-color: #2e7d32;

    position: absolute;
    box-sizing: border-box;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;

    /* Apagada: apenas insinuada. Con cinco zonas encendidas a la vez el plano cantaba
       demasiado y competia con las tarjetas, que son las que llevan el nombre. Asi el
       plano transmite la distribucion y no grita. */
    border: 2px solid transparent;
    background: color-mix(in srgb, var(--ht-map-area-color) 8%, transparent);
}

/* Encendida: la de la tarjeta que esta centrada en el carrusel. Deslizar las tarjetas
   se convierte en un recorrido por la playa. */
.ht-floor-map__area.is-active {
    border-color: var(--ht-map-area-color);
    background: color-mix(in srgb, var(--ht-map-area-color) 30%, transparent);
}

/* Reposo: el plano de categorias arranca sin ninguna seleccionada. Todas a media luz
   para que se vea que hay zonas; en cuanto el huesped elige una, vuelve lo de arriba. */
.is-idle .ht-floor-map__area {
    border-color: rgba(46, 125, 50, .6);
    background: rgba(46, 125, 50, .18);
}

.is-idle .ht-floor-map__area {
    border-color: color-mix(in srgb, var(--ht-map-area-color) 60%, transparent);
    background: color-mix(in srgb, var(--ht-map-area-color) 18%, transparent);
}

.ht-floor-map__area-label {
    position: absolute;
    top: 4px;
    left: 4px;
    max-width: calc(100% - 8px);
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--ht-map-area-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Globo de la zona seleccionada ───────────────────────────────────── */

/* Vive dentro del plano, asi que se desplaza con el, pero NO crece con el zoom:
   --ht-map-inv-scale es la inversa de la escala y la pone el visor en cada
   transformacion. Sin eso, de cerca seria gigante y de lejos ilegible. */
.ht-map-callout {
    position: absolute;
    z-index: 20;
    transform: translate(-50%, -100%) scale(var(--ht-map-inv-scale, 1));
    transform-origin: bottom center;
    margin-top: -9px;
    min-width: 210px;
    max-width: 290px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
    text-align: center;
    /* La capa de zonas no recibe el dedo; el globo si. */
    pointer-events: all;
}


.ht-map-callout__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #141515;
}

.ht-map-callout__seats {
    margin-top: 3px;
    font-size: 13px;
    color: #6b6b6b;
}

.ht-map-callout__btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--ht-map-area-color, #2e7d32);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* La foto, a sangre en la parte de arriba del globo. Baja para no comerse la zona:
   el globo esta encima de lo que describe. */
.ht-map-callout__img {
    height: 110px;
    border-radius: 10px 10px 0 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.ht-map-callout__pad {
    padding: 12px 14px;
}

.ht-map-callout__desc {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #6b6b6b;
}

/* El piquito, apuntando al centro de la zona */
.ht-map-callout::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -9px;
    border: 9px solid transparent;
    border-top-color: #fff;
}

/* Cuando no cabe por encima, la burbuja baja y el piquito se da la vuelta. */
.ht-map-callout--below {
    transform: translate(-50%, 0) scale(var(--ht-map-inv-scale, 1));
    transform-origin: top center;
    margin-top: 9px;
}

.ht-map-callout--below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #fff;
}

