* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

/* UI TOP */
#pano-ui {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 50;
    display: flex;
    gap: 10px;
    align-items: center;
}

#pano-title {
    padding: 6px 12px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    font-size: 14px;
	color: #ff8400;
    border: 1px solid #ffa500
}

/* DROPDOWN */
/* KRK‑ART DROPDOWN */
#pano-dropdown {
    position: relative;
}

#pano-dropdown-btn {
    padding: 8px 14px;
    background: #0d0d0d;
    color: #ff8400;
    border: 1px solid #ffa500;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: 0.25s ease;
}

#pano-dropdown-btn:hover {
    background: #1a1a1a;
    border-color: #ff8400;
    color: #ffb300;
}

#pano-dropdown-list {
    position: absolute;
    top: 42px;
    left: 0;
    background: #0d0d0d;
    border: 1px solid #ff8400;
    border-radius: 6px;
    display: none;
    min-width: 200px;
    z-index: 999;
    box-shadow: 0 0 12px rgba(255,165,0,0.25);

    /* 🔥 SCROLL + MAX HEIGHT */
    max-height: 500px;
    overflow-y: auto;
}

#pano-dropdown-list div {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
    color: #ff8400;
    transition: 0.25s ease;
}

#pano-dropdown-list div:hover {
    background: #1a1a1a;
    color: #ff8400;
}
/* === KRK-ART SCROLLBAR === */
#pano-dropdown-list::-webkit-scrollbar {
    width: 10px;
}

#pano-dropdown-list::-webkit-scrollbar-track {
    background: #0d0d0d; /* tamna pozadina */
    border-radius: 6px;
}

#pano-dropdown-list::-webkit-scrollbar-thumb {
    background: #ff8400; /* orange */
    border-radius: 6px;
    border: 2px solid #0d0d0d; /* tamni rub */
}

#pano-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #ffb300; /* svjetliji orange na hover */
}

.krk-select {
    background: #0d0d0d;
    color: #ffa500;
    border: 1px solid #ffa500;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    margin: 10px;
    transition: 0.25s ease;
}

.krk-select:hover {
    border-color: #ffb733;
    color: #ffb733;
}

.krk-select option {
    background: #0d0d0d;
    color: #ffa500;
}

/* VIEWER */
#viewer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #000;
}

/* PANORAMA WRAPPER */
#pano-wrapper {
    width: 200%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

.pano {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}


/* FADE */
.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}
.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* PANORAMA SLIKE */
.pano {
    height: 100%;
    width: auto;
    flex-shrink: 0;
}
.pano {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* STRELICE */
.arrow {
    position: absolute;
    bottom: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: 0.25s ease;
    z-index: 50;
}

#arrow-left {
    left: 50%;
    transform: translateX(-120px);
}

#arrow-right {
    left: 50%;
    transform: translateX(60px);
}

.arrow:hover {
    background: rgba(255,140,0,0.85);
    border-color: rgba(255,140,0,0.6);
    transform: scale(1.12);
}

/* ============================
   KRK-ART HOTSPOT (BASE)
============================ */
.hotspot {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 2px solid #ff8400;        /* ORANGE RUB */
    box-shadow: 0 0 12px rgba(255,132,0,0.55); /* ORANGE GLOW */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;

    /* PULSE ANIMACIJA */
    animation: krkPulse 1.8s infinite;
}

/* Pulse */
@keyframes krkPulse {
    0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(255,132,0,0.55); }
    70%  { transform: scale(1.12); box-shadow: 0 0 0 14px rgba(255,132,0,0); }
    100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(255,132,0,0); }
}

/* ============================
   ICONS (KRK-ART STYLE)
============================ */
/* GOTO HOTSPOT — KRK-ART ORANGE */
.hotspot.goto {
    background: rgba(0,0,0,0.55);
    border: 2px solid #ff8400;
    box-shadow: 0 0 12px rgba(255,132,0,0.55);
}

/* GOTO ICON — DEBLJA, CENTRIRANA, ORANGE */
.hotspot.goto::before {
    content: "↑";
    position: absolute;

    /* CENTRIRANO U KRUGU */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* DEBLJA STRELICA */
    font-size: 28px;
    font-weight: 900;

    /* KRK-ART ORANGE */
    color: #ff8400;
    text-shadow: 0 0 6px rgba(255,132,0,0.7);
}


/* IMAGE HOTSPOT — CRNA POZADINA + ORANGE RUB */
.hotspot-image {
    background: rgba(0,0,0,0.55);               /* crna */
    border: 2px solid #ff8400;                 /* KRK-ART orange rub */
    box-shadow: 0 0 12px rgba(255,132,0,0.55); /* orange glow */
}

/* IMAGE ICON — centrirana, čista */
.hotspot-image::before {
    content: "";
    position: absolute;

    width: 22px;
    height: 16px;

    border: 2px solid #ff8400;                 /* orange frame */
    border-radius: 3px;

    box-shadow: inset 0 0 0 2px rgba(255,132,0,0.4);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

/* YOUTUBE ICON */
.hotspot-youtube {
    background: rgba(255,0,0,0.7) !important;
}
.hotspot-youtube::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 14px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    position: absolute;
}

/* INFO HOTSPOT — PLAVA POZADINA (KRK-ART STYLE) */
.hotspot.info {
    background: rgba(0, 90, 255, 0.55);        /* plava pozadina */
    border: 2px solid #1e90ff;                /* plavi rub */
    box-shadow: 0 0 12px rgba(30,144,255,0.55); /* plavi glow */
}

/* INFO ICON */
.hotspot.info::before {
    content: "i";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 0 6px rgba(255,255,255,0.6);
}
/* VIDEO HOTSPOT — CRNA POZADINA + ORANGE RUB */
.hotspot-video {
    background: rgba(0,0,0,0.55);
    border: 2px solid #ff8400;
    box-shadow: 0 0 12px rgba(255,132,0,0.55);
}

/* VIDEO ICON — ORANGE PLAY TROKUT */
.hotspot-video::before {
    content: "";
    position: absolute;

    /* TROKUT */
    width: 0;
    height: 0;
    border-left: 18px solid #ff8400;      /* KRK-ART ORANGE */
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;

    /* CENTRIRANO */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* TOOLTIP */
.hs-tooltip {
    position: fixed;
    padding: 4px 8px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -6px);
    transition: opacity 0.15s, transform 0.15s;
    z-index: 100;
}

/* MAPA TOGGLE BUTTON */
#map-toggle {
    position: fixed;
    right: 15px;
    bottom: 15px;
    padding: 8px 14px;
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    z-index: 999;
    font-size: 14px;
    transition: 0.25s;
}
#map-toggle:hover {
    background: #ff8c00;
    color: #000;
}

/* ============================
   MINI MAP PANEL
============================ */

#mini-map-panel{
    position:fixed;
    right:-320px;              /* skriven panel */
    bottom:70px;
    width:300px;
    height:300px;
    background:rgba(0,0,0,.92);
    border:1px solid #444;
    border-radius:8px;
    backdrop-filter:blur(6px);
    transition:right .35s ease;
    overflow:hidden;
    z-index:998;
}

/* HEADER */

#mini-map-header{
    padding:6px 10px;
    background:#111;
    border-bottom:1px solid #333;
    color:#ff8c00;
    font-size:13px;
    font-weight:600;
}

/* ============================
   MINI MAP
============================ */

#mini-map{
    position:relative;
    width:100%;
    height:calc(100% - 33px);
    overflow:hidden;
}

#mini-map img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    user-select:none;
    -webkit-user-drag:none;
}

/* ============================
   MARKER
============================ */

#mini-map-marker{
    position:absolute;
    width:14px;
    height:14px;
    background:#ff8c00;
    border:2px solid #fff;
    border-radius:50%;
    transform:translate(-50%,-50%);
    box-shadow:0 0 8px rgba(0,0,0,.7);
    pointer-events:none;
    z-index:30;
}

/* ============================
   HOTSPOTS
============================ */

#minimap-hotspots{
    position:absolute;
    inset:0;
    z-index:20;
	
}
.minimap-hotspot {
    position: absolute;
}

.minimap-hotspot:hover::after {
    content: attr(title);
    position: absolute;
    top: -28px;
    left: 0;
    background: rgba(0,0,0,0.85);
    color: #ffa500;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
}

.minimap-hotspot{
    position:absolute;
    width:12px;
    height:12px;
    background:#ff8800;
    border-radius:50%;
    transform:translate(-50%,-50%);
    cursor:pointer;
    box-shadow:0 0 6px rgba(0,0,0,.7);
    transition:transform .15s ease;
}
.minimap-current {
    background: #00ffcc !important;
    box-shadow: 0 0 12px #00ffcc;
    transform: scale(1.35);
}

.minimap-hotspot:hover{
    transform:translate(-50%,-50%) scale(1.25);
}
#minimap-hotspots{
    pointer-events:none;
}

.minimap-hotspot{
    pointer-events:auto;
}
.minimap-hotspot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ffa500;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.minimap-hotspot:hover {
    transform: scale(1.25);
}

/* HIGHLIGHT TRENUTNE SCENE */


/* ============================
   ANIMACIJE
============================ */

@keyframes infoFade{
    from{
        opacity:0;
        transform:scale(.92);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}
.info-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.25s ease-out;
}

.info-modal.open {
    display: flex;
}

.info-box {
    width: 70vw;
    max-width: 900px;
    max-height: 80vh;
    background: #111;
    border: 1px solid #ff8c00;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.7);
    animation: slideUp 0.25s ease-out;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    padding: 10px 15px;
    border-bottom: 1px solid #ff8c00;
}

.info-header span {
    color: #ff8c00;
    font-size: 20px;
    font-weight: bold;
}

.info-btn {
    background: rgba(255,140,0,0.15);
    border: 1px solid #ff8c00;
    color: #ff8c00;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}

.info-btn:hover {
    background: rgba(255,140,0,0.3);
}

.info-content {
    padding: 20px;
    color: #eee;
    font-size: 18px;
    line-height: 1.5;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

/* Animacije */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
#krkart-footer {
    position: fixed;
    bottom: 8px;
    left: 15px;

    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 123, 0, 0.85); /* KRK-ART orange */
    font-weight: 600;

    z-index: 20000; /* iznad panorame i UI */
    pointer-events: none; /* da ne smeta klikovima */
    user-select: none;    /* ne može se slučajno označiti */
}

