/* ---------------------------------------------------------
   CLEAN-CSS.CSS — STÍLAR FYRIR SKOKKIÐ Í DAG
--------------------------------------------------------- */

/* Kortið */
#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 95vh; /* containerinn minnkar */
    z-index: 1;
}

#coords-tooltip {
    position: absolute;
    bottom: 12px;          /* neðst */
    left: 12px;            /* vinstra megin */
    z-index: 9999;         /* ofan á kortinu */

    background: rgba(0, 0, 0, 0.75);  /* dökkur bakgrunnur */
    color: #fff;
    padding: 8px 12px;     /* smá padding */
    border-radius: 6px;    /* mjúkir kantar */

    font-size: 14px;
    font-weight: 500;

    box-shadow: 0 3px 8px rgba(0,0,0,0.35);  /* drop-shadow */
    backdrop-filter: blur(3px);              /* smá blur fyrir glans */
    pointer-events: none;                    /* ekki trufla músina */
}





/* ---------------------------------------------------------
   DRAGGABLE FLOATING FILTER WINDOW
--------------------------------------------------------- */
.leaflet-interactive {
    transition: transform 0.15s ease-out;
}

.marker-hover {
    transform: scale(1.35);
}
.photo-marker {
    background: #0078ff;
    border-radius: 50%;
    border: 2px solid white;
}

.photo-marker.big {
    width: 30px;
    height: 30px;
}

.photo-marker.small {
    width: 18px;
    height: 18px;
}

.cluster-marker {
    background: rgba(0, 120, 255, 0.8);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    border: 2px solid white;
}

#filters {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 9999;

    display: flex;
    gap: 10px;

    background: rgba(0, 0, 0, 0.55);
    padding: 10px 14px;
    border-radius: 10px;
    backdrop-filter: blur(6px);

    color: white;
    font-size: 14px;

    cursor: move; /* drag handle */
}

#filters select {
    appearance: none;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;

    background: rgba(255,255,255,0.9);
    font-size: 14px;
    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: 0.2s;
}

#filters select:hover {
    background: white;
}

/* ---------------------------------------------------------
   POPUP — CLEAN MERGED VERSION
--------------------------------------------------------- */

#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    border-radius: 12px;
    display: none;
    z-index: 9999;
    color: white;
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);

    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#popup.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#popup-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

#popup-image {
    width: 100%;
    max-width: 80vw;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease;
}

#popup-counter {
    margin-bottom: 12px;
    font-size: 1rem;
    opacity: 0.8;
}

#popup button {
    background: #ffffff22;
    border: 1px solid #ffffff55;
    color: white;
    padding: 8px 14px;
    margin: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

#popup button:hover {
    background: #ffffff33;
    transform: scale(1.05);
}

#popup button:active {
    transform: scale(0.95);
}
.skokk-marker {
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

.skokk-marker-inner {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}
.skokk-marker {
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

.skokk-marker-inner {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

.marker-hover {
    transform: scale(1.35);
    transition: transform 0.15s ease-out;
}

/* ---------------------------------------------------------
   Marker litir
--------------------------------------------------------- */

.marker-blue,
.marker-green,
.marker-yellow,
.marker-purple,
.marker-orange,
.marker-world,
.marker-iceland {
    border-radius: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid white;
}

.marker-blue { background: #1e90ff; }
.marker-green { background: #2ecc71; }
.marker-yellow { background: #f1c40f; }
.marker-purple { background: #9b59b6; }
.marker-orange { background: #e67e22; }
.marker-world { background: #ffffff; border-color: #333; }
.marker-iceland { background: #3498db; }

/* ---------------------------------------------------------
   Legend
--------------------------------------------------------- */

.legend {
    background: white;
    padding: 10px;
    border-radius: 6px;
    line-height: 18px;
    font-size: 14px;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}
