/* Patagonia Tour 360 v2.3 — Frontend CSS */

.pt360-wrap {
    width: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

/* ── Hotspots base ─────────────────────────────────────────────────────────── */
.pnlm-hotspot-base.pt360-hotspot {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.45) !important;
    border: 2.5px solid rgba(255,255,255,0.9) !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.pnlm-hotspot-base.pt360-hotspot:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.55) !important;
}

/* Hotspot Navegación */
.pnlm-hotspot-base.pt360-hotspot-nav {
    background: rgba(255,255,255,0.25) !important;
}
.pnlm-hotspot-base.pt360-hotspot-nav::after {
    content: '' !important;
    display: block !important;
    width: 9px !important;
    height: 9px !important;
    background: #fff !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
.pnlm-hotspot-base.pt360-hotspot-nav:hover {
    background: rgba(255,255,255,0.5) !important;
}

/* Hotspot Info — muestra imagen o ícono como circulito */
.pnlm-hotspot-base.pt360-hotspot-info {
    background: rgba(15,15,15,0.7) !important;
    padding: 0 !important;
}
.pt360-hs-icon-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.pt360-hs-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.pt360-hs-icon-wrap svg {
    width: 16px;
    height: 16px;
    color: #fff;
    stroke: #fff;
}

/* Hotspot Zoom */
.pnlm-hotspot-base.pt360-hotspot-zoom {
    background: rgba(52,120,220,0.75) !important;
}
.pnlm-hotspot-base.pt360-hotspot-zoom::after {
    content: '' !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
.pnlm-hotspot-base.pt360-hotspot-zoom:hover {
    background: rgba(52,120,220,1) !important;
}

/* Tooltip */
.pnlm-hotspot-base.pt360-hotspot > span {
    background: rgba(0,0,0,0.78) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.vr-mode-title { display: none !important; }

/* ── Etiqueta de escena activa ─────────────────────────────────────────────── */
.pt360-scene-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: rgba(0,0,0,0.60);
    color: #fff;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s, transform 0.3s;
}
.pt360-scene-label.pt360-label-show { opacity: 1; transform: translateY(0); }
.pt360-scene-label.pt360-label-hide { opacity: 0; transform: translateY(-6px); }

/* ── Botón menú ────────────────────────────────────────────────────────────── */
.pt360-menu-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.60);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.55);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s;
}
.pt360-menu-toggle:hover { background: rgba(0,0,0,0.85); }

/* ── Panel lateral ─────────────────────────────────────────────────────────── */
.pt360-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 220px;
    background: rgba(15,15,15,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 15;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-radius: 0 10px 10px 0;
}
.pt360-panel.open { transform: translateX(0); }
.pt360-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pt360-panel-close {
    background: none; border: none; color: rgba(255,255,255,0.4);
    cursor: pointer; font-size: 14px; padding: 2px 4px; border-radius: 4px;
    transition: color 0.15s;
}
.pt360-panel-close:hover { color: #fff; }
.pt360-panel-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.pt360-panel-floor {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.35);
    text-transform: uppercase; letter-spacing: 0.1em; padding: 10px 14px 4px;
}
.pt360-panel-item {
    display: block; width: 100%; text-align: left;
    background: none; border: none; color: rgba(255,255,255,0.75);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px; padding: 9px 14px; cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pt360-panel-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.pt360-panel-item.active { color: #fff; border-left-color: #1d9e75; background: rgba(29,158,117,0.12); }

/* ── Panel flotante Info (previa) ──────────────────────────────────────────── */
.pt360-info-preview {
    position: absolute;
    z-index: 25;
    width: min(260px, 85%);
    background: rgba(15,15,15,0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    pointer-events: all;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
    display: none;
}
.pt360-info-preview.open {
    opacity: 1;
    transform: translateY(0);
    display: block;
}
.pt360-info-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.pt360-info-preview-icon {
    width: 36px; height: 36px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
}
.pt360-info-preview-icon img { width: 100%; height: 100%; object-fit: cover; }
.pt360-info-preview-icon svg { width: 18px; height: 18px; stroke: #fff; }
.pt360-info-preview-title {
    font-size: 14px; font-weight: 600; color: #fff; flex: 1;
}
.pt360-info-preview-desc {
    font-size: 12px; color: rgba(255,255,255,0.72); line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pt360-info-preview-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; background: #1d9e75; color: #fff;
    border: none; border-radius: 6px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: background 0.2s; width: 100%;
    justify-content: center;
}
.pt360-info-preview-cta:hover { background: #17835f; }
.pt360-info-preview-close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: none; color: rgba(255,255,255,0.35);
    cursor: pointer; font-size: 13px; padding: 2px;
}
.pt360-info-preview-close:hover { color: #fff; }

/* ── Modal Info completo ───────────────────────────────────────────────────── */
.pt360-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}
.pt360-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.pt360-modal-box {
    background: #1a1a1a;
    border-radius: 16px;
    width: min(480px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(12px);
    transition: transform 0.25s;
    border: 1px solid rgba(255,255,255,0.08);
}
.pt360-modal-overlay.open .pt360-modal-box { transform: translateY(0); }
.pt360-modal-hero {
    width: 100%; height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    display: block;
}
.pt360-modal-hero-icon {
    width: 100%; height: 120px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 16px 16px 0 0;
}
.pt360-modal-hero-icon svg { width: 48px; height: 48px; stroke: rgba(255,255,255,0.4); }
.pt360-modal-body {
    padding: 20px 22px 22px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.65;
}
.pt360-modal-title {
    font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 14px;
}
.pt360-modal-content h2, .pt360-modal-content h3 { color: #fff; margin: 14px 0 6px; }
.pt360-modal-content p { margin: 0 0 10px; }
.pt360-modal-content ul, .pt360-modal-content ol { padding-left: 18px; margin: 0 0 10px; }
.pt360-modal-content a { color: #4db8ef; }
.pt360-modal-cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 18px; padding: 10px 20px;
    background: #1d9e75; color: #fff; text-decoration: none;
    border-radius: 8px; font-size: 13px; font-weight: 600;
    transition: background 0.2s;
}
.pt360-modal-cta:hover { background: #17835f; color: #fff; }
.pt360-modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0,0,0,0.5); border: none; color: #fff;
    font-size: 14px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px); z-index: 2;
    transition: background 0.15s;
}
.pt360-modal-close:hover { background: rgba(0,0,0,0.8); }

/* ── Recorrido: barra + dots ───────────────────────────────────────────────── */
.pt360-tour-ui {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 14px;
    gap: 8px;
    pointer-events: none;
}
.pt360-tour-ui.hidden { display: none; }

/* Barra de progreso */
.pt360-progress-bar-wrap {
    width: calc(100% - 32px);
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    overflow: hidden;
    pointer-events: none;
}
.pt360-progress-bar {
    height: 100%;
    background: #1d9e75;
    border-radius: 999px;
    width: 0%;
    transition: width 0.1s linear;
}

/* Fila de dots + botón recorrer */
.pt360-tour-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: all;
}

/* Dots */
.pt360-dots {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}
.pt360-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none; cursor: pointer; padding: 0;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.pt360-dot.visited { background: rgba(255,255,255,0.55); }
.pt360-dot.active {
    background: #1d9e75;
    transform: scale(1.35);
    box-shadow: 0 0 6px rgba(29,158,117,0.7);
}

/* Botón recorrer */
.pt360-tour-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: rgba(0,0,0,0.60);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: 999px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.pt360-tour-btn:hover { background: rgba(0,0,0,0.85); border-color: rgba(255,255,255,0.85); }
.pt360-tour-btn--running { background: rgba(29,158,117,0.25); border-color: #1d9e75; }
.pt360-tour-icon { font-size: 10px; line-height: 1; }

/* Toggle visibilidad del tour UI */
.pt360-tour-toggle {
    position: absolute;
    bottom: 14px; right: 14px;
    z-index: 11;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1.5px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.7);
    font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s, color 0.2s;
}
.pt360-tour-toggle:hover { background: rgba(0,0,0,0.82); color: #fff; }

/* Mobile: dots verticales */
@media (max-width: 600px) {
    .pt360-dots { flex-direction: column; }
    .pt360-tour-controls { flex-direction: column-reverse; gap: 8px; }
    .pt360-tour-ui { bottom: 0; right: 0; left: auto; width: auto; padding: 14px 12px 14px 0; flex-direction: row; align-items: flex-end; }
    .pt360-progress-bar-wrap { display: none; }
}
