/* === TOP BAR === */

#kulturadar-topbar {
    position: absolute;
    top: 18px;
    left: 10px;
    right: 10px;
    height: 78px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 28px;

    border-radius: 26px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 0, 180, 0.18),
            rgba(0, 255, 255, 0.10)
        );

    backdrop-filter: blur(12px);

    border: 2px solid rgba(255,255,255,0.08);

    box-shadow:
        0 0 12px rgba(255, 0, 180, 0.8),
        0 0 28px rgba(0, 255, 255, 0.35);

    z-index: 9999;
}


/* === LEFT SIDE === */

.kd-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kd-logo {
    height: 58px;
    width: auto;

    filter:
        drop-shadow(0 0 8px #ff00cc)
        drop-shadow(0 0 14px #00e5ff);
}

.kd-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kd-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;

    background: linear-gradient(90deg, #ff4fd8, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 10px rgba(255,0,180,0.7),
        0 0 20px rgba(0,255,255,0.4);
}

.kd-subtitle {
    margin-top: -4px;

    color: #d5f6ff;
    font-size: 15px;
    letter-spacing: 1px;

    opacity: 0.9;
}


/* === RIGHT SIDE === */

.kd-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kd-btn,
.kd-menu-btn {
    height: 48px;

    border: none;
    border-radius: 16px;

    padding: 0 18px;

    background: rgba(0,0,0,0.28);

    color: #eafcff;

    font-size: 16px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.25s ease;

    box-shadow:
        0 0 10px rgba(255,0,180,0.25),
        0 0 16px rgba(0,255,255,0.15);
}

.kd-btn:hover,
.kd-menu-btn:hover {

    transform: translateY(-2px);

    background:
        linear-gradient(
            90deg,
            rgba(255,0,180,0.25),
            rgba(0,255,255,0.18)
        );

    box-shadow:
        0 0 14px rgba(255,0,180,0.55),
        0 0 24px rgba(0,255,255,0.35);
}

.kd-menu-btn {
    width: 52px;
    padding: 0;
    font-size: 24px;
}


/* === MOBILE === */

@media (max-width: 768px) {

    #kulturadar-topbar {

        top: 0;
        left: 0;
        right: 0;

        height: 78px;

        border-radius: 0 0 22px 22px;

        padding: 0 10px;
    }

    .kd-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .kd-subtitle {
        font-size: 13px;
    }

    .kd-btn span {
        display: none;
    }

    .kd-btn {
        width: 40px;
		height:40px;
        padding: 0;
        font-size: 18px;
    }

    .kd-logo {
        height: 48px;
    }
}
/* === MOVE OPENLAYERS CONTROLS BELOW TOPBAR === */

.ol-zoom {
    top: 120px !important;
    left: 12px !important;
}

.ol-control button {
    background: rgba(10,10,20,0.85) !important;
    color: #00e5ff !important;

    border-radius: 12px !important;

    border: 1px solid rgba(255,255,255,0.08) !important;

    box-shadow:
        0 0 10px rgba(255,0,180,0.35),
        0 0 18px rgba(0,255,255,0.25);

    transition: all 0.2s ease;
}

.ol-control button:hover {

    background:
        linear-gradient(
            90deg,
            rgba(255,0,180,0.28),
            rgba(0,255,255,0.20)
        ) !important;

    box-shadow:
        0 0 14px rgba(255,0,180,0.55),
        0 0 24px rgba(0,255,255,0.35);
}

/* === GEOLOCATION BUTTON POSITION === */

.geolocate {
    top: 140px !important;
    left: 12px !important;
}

@media (max-width: 768px) {

    .ol-zoom {
        top: 95px !important;
    }

}

/* =======================================================
   KULTURADAR SYNTHWAVE POPUP
======================================================= */

/* MAIN POPUP CONTAINER */

.ol-popup,
.ol-popup-content {

    background: rgba(10, 10, 25, 0.38) !important;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 22px;

    color: #f4fbff !important;

    box-shadow:
        0 0 18px rgba(0,255,255,0.18),
        0 0 35px rgba(255,0,180,0.14);

    overflow: hidden;
}


/* =======================================================
   nightclub POPUP (MAGENTA)
======================================================= */

.popup-nightclub {

    border: 2px solid rgba(255,0,180,0.70);

    box-shadow:
        0 0 12px rgba(255,0,180,0.75),
        0 0 28px rgba(255,0,180,0.35),
        0 0 40px rgba(255,0,180,0.20);
}


/* =======================================================
   THEATRE POPUP (CYAN)
======================================================= */

.popup-theatre {

    border: 2px solid rgba(0,255,255,0.75);

    box-shadow:
        0 0 12px rgba(0,255,255,0.75),
        0 0 28px rgba(0,255,255,0.35),
        0 0 40px rgba(0,255,255,0.18);
}


/* =======================================================
   TEXT
======================================================= */

.ol-popup-content {

    padding: 18px 20px !important;

    font-family: Arial, sans-serif;

    font-size: 15px;
    line-height: 1.5;

    color: #f7fcff !important;

    text-shadow:
        0 0 6px rgba(0,0,0,0.85),
        0 0 10px rgba(0,0,0,0.55);
}


/* EVENT TITLE */

.ol-popup-content b {

    color: #ffffff;

    font-size: 18px;

    letter-spacing: 0.5px;
}


/* LINKS */

.ol-popup-content a {

    color: #7df9ff !important;

    text-decoration: underline;

    font-weight: bold;

    transition: all 0.2s ease;
}

.ol-popup-content a:hover {

    color: #ffffff !important;

    text-shadow:
        0 0 8px #00ffff,
        0 0 18px #ff00cc;
}


/* CLOSE BUTTON */

.ol-popup-closer {

    color: #ffffff !important;

    font-size: 18px;

    top: 10px !important;
    right: 12px !important;

    text-shadow:
        0 0 8px #00ffff,
        0 0 12px #ff00cc;
}

/* =======================================================
   FORCE POPUP TEXT VISIBILITY
======================================================= */

.ol-popup,
.ol-popup * {

    color: #f4fbff !important;

    text-shadow:
        0 0 4px rgba(0,0,0,0.95),
        0 0 8px rgba(0,0,0,0.75);
}


/* TABLE CONTENT */

.ol-popup table,
.ol-popup tr,
.ol-popup td,
.ol-popup th {

    color: #f4fbff !important;

    background: transparent !important;

    border: none !important;
}


/* STRONG / TITLES */

.ol-popup strong,
.ol-popup b {

    color: #ffffff !important;
}


/* LINKS */

.ol-popup a {

    color: #7df9ff !important;

    text-decoration: underline;
}
/* =======================================================
   POPUP CLOSE BUTTON FIX
======================================================= */

.ol-popup-closer {

    position: absolute !important;

    top: 10px !important;
    right: 12px !important;

    width: 34px !important;
    height: 34px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    cursor: pointer;

    z-index: 99999 !important;

    pointer-events: auto !important;

    background: rgba(0,0,0,0.25);

    transition: all 0.2s ease;
}


/* HOVER */

.ol-popup-closer:hover {

    background:
        linear-gradient(
            90deg,
            rgba(255,0,180,0.25),
            rgba(0,255,255,0.18)
        );

    transform: scale(1.08);
}

/* =======================================================
   SEARCH DROPDOWN
======================================================= */

.kd-search-wrapper {
    position: relative;
}

.kd-search-dropdown {

    position: absolute;

    top: 58px;
    left: 0;

    width: 70px;

    padding: 10px;

    border-radius: 18px;

    background: rgba(10,10,25,0.48);

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 0 12px rgba(255,0,180,0.35),
        0 0 24px rgba(0,255,255,0.25);

    display: none;

    z-index: 99999;
}

.kd-search-dropdown.active {
    display: block;
}

.kd-search-item {

    padding: 4px 4px;

    border-radius: 12px;

    color: #f4fbff;

    cursor: pointer;

    transition: all 0.18s ease;

    font-size: 15px;

    margin-bottom: 6px;
}

.kd-search-item:hover {

    background:
        linear-gradient(
            90deg,
            rgba(255,0,180,0.18),
            rgba(0,255,255,0.12)
        );

    box-shadow:
        0 0 10px rgba(255,0,180,0.25),
        0 0 16px rgba(0,255,255,0.18);
}

/* =======================================================
   HOME CONTROL
======================================================= */

.kd-home-control {

    position: absolute;

    top: 255px;
    left: 20px;

    width: 32px;
    height: 32px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 5px;

    cursor: pointer;

    z-index: 1000;

    color: #ffffff;

    font-size: 16px;
    line-height: 1;

    background: rgba(10,10,25,0.72);

    backdrop-filter: blur(10px);

    box-sizing: border-box;

    box-shadow:
        0 0 10px rgba(255,0,180,0.25),
        0 0 16px rgba(0,255,255,0.18);

    transition: all 0.2s ease;
}


/* HOVER */

.kd-home-control:hover {

    transform: scale(1.06);

    box-shadow:
        0 0 14px rgba(255,0,180,0.45),
        0 0 22px rgba(0,255,255,0.35);
}


/* MOBILE */

@media (max-width: 768px) {

    .kd-home-control {

        top: 175px;

    }

}

/* =======================================================
   INFO BUTTON
======================================================= */

.kd-info-btn {

    position: absolute;

    left: 12px;
    bottom: 12px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 8px;

    cursor: pointer;

    z-index: 10000;

    color: #ffffff;

    font-size: 18px;

    background: rgba(10,10,25,0.72);

    backdrop-filter: blur(10px);

    box-shadow:
        0 0 10px rgba(255,0,180,0.25),
        0 0 16px rgba(0,255,255,0.18);

    transition: all 0.2s ease;
}

.kd-info-btn:hover {

    transform: scale(1.05);

    box-shadow:
        0 0 14px rgba(255,0,180,0.45),
        0 0 22px rgba(0,255,255,0.35);
}

/* =======================================================
   INFO BOX
======================================================= */

.kd-info-box {

    position: absolute;

    left: 12px;
    bottom: 12px;

    width: 38px;
    height: 38px;

    overflow-y: hidden;
	
	display: flex;

    flex-direction: column;

    border-radius: 10px;

    z-index: 10000;

    background: rgba(10,10,25,0.85);

    backdrop-filter: blur(12px);

    box-shadow:
        0 0 10px rgba(255,0,180,0.25),
        0 0 16px rgba(0,255,255,0.18);

    transition:
        width 0.3s ease,
        height 0.3s ease;
}

/* OTVORENO */

.kd-info-box.active {

    width: 420px;

    height: 65vh;
}

/* HEADER */

.kd-info-header {

    width: 38px;
    height: 38px;

    display: flex;
	
	flex: 0 0 38px;

    align-items: center;
    justify-content: center;

    color: white;

    cursor: pointer;

    font-size: 18px;
}

/* CONTENT */

.kd-info-content {

    padding: 15px;

    color: white;

    opacity: 0;

    transition: opacity 0.2s ease;
	
	flex: 1;

    overflow-y: auto;

    scrollbar-width: thin;
	
}

.kd-info-box.active .kd-info-content {

    opacity: 1;
}

/* MOBILE */
@media (max-width: 768px) {

    .kd-info-box.active {

        width: calc(100vw - 24px);

        height: 75vh;

    }

}