/* =====================================================
   BASE (SAFE GLOBAL)
   ===================================================== */
*{box-sizing:border-box}
html,body{
    margin:0;
    padding:0;
    font-family:Inter,Arial,sans-serif;
}

/* =====================================================
   FRONT MAP ONLY
   ===================================================== */
body.front-map #map{
    width:100%;
    height:100vh;
}

/* =====================================================
   MESSAGE BOX (FRONT MAP ONLY)
   ===================================================== */
body.front-map #mapMessage{
    position:absolute;
    z-index:900;
    background:#fff;
    padding:10px 14px;
    border-radius:10px;
    box-shadow:0 6px 20px rgba(0,0,0,.15);
    display:flex;
    align-items:center;
    gap:10px;
    font-size:13px;
    max-width:300px;
}

body.front-map #mapMessage.top-left{top:15px;left:15px}
body.front-map #mapMessage.top-right{top:15px;right:15px}
body.front-map #mapMessage.bottom-left{bottom:15px;left:15px}
body.front-map #mapMessage.bottom-right{bottom:15px;right:15px}

body.front-map #mapMessage a{
    color:#1e88e5;
    text-decoration:none;
    font-weight:600;
}

body.front-map #mapMessage button{
    border:none;
    background:none;
    font-size:16px;
    cursor:pointer;
    color:#888;
}

/* =====================================================
   MARKER LABEL (USED EVERYWHERE – SAFE)
   ===================================================== */
.marker-label{
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    font-size:11px;
    white-space:nowrap;
    margin-bottom:4px;
}

/* =====================================================
   IMAGE MARKER (USED EVERYWHERE – SAFE)
   ===================================================== */
.image-marker{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.image-marker .img-wrap{
    background:#fff;
    border-radius:50%;
    border:2px solid #1e88e5;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.image-marker img{
    max-width:80%;
    max-height:80%;
    object-fit:contain;
}

/* =====================================================
   ADMIN (SAFE)
   ===================================================== */
body.admin{background:#f4f8ff}
.admin-wrap{max-width:1100px;margin:30px auto}
.card{
    background:#fff;
    border-radius:14px;
    padding:20px;
    margin-bottom:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.08)
}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
input,select{
    width:100%;
    padding:10px;
    border-radius:8px;
    border:1px solid #dbe7ff
}
label{font-weight:600;font-size:14px;margin-top:12px;display:block}
button{
    padding:10px 16px;
    border-radius:8px;
    border:none;
    background:#1e88e5;
    color:#fff;
    font-weight:600;
    cursor:pointer
}
/* =====================================================
   DASHBOARD – LOCATIONS LIST POLISH (SAFE)
   ===================================================== */

body.admin .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #f9fbff;
    border-radius: 12px;
    border: 1px solid #e3ecff;
    transition: box-shadow .2s ease, transform .2s ease;
}

body.admin .list-item:hover {
    box-shadow: 0 6px 18px rgba(30,136,229,.15);
    transform: translateY(-1px);
}

body.admin .list-item b {
    font-size: 15px;
    color: #0d47a1;
}

body.admin .list-item small {
    display: block;
    margin-top: 2px;
    color: #6b7da8;
    font-size: 12px;
}

body.admin .list-item a {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
}

body.admin .list-item a:hover {
    text-decoration: underline;
}
