body { margin:0; font-family:system-ui,sans-serif; }

.hamburger{
    display: none;
}

.add-place-btn{
    padding:7px 14px;
    border-radius:8px;
    background:#2563eb;
    color:#fff;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
    transition:0.15s;
}

.topbar > .add-place-btn:last-of-type {
    margin-left: auto;
}

.add-place-btn:hover{
    background:#1d4ed8;
}

.faq-btn {
    padding: 8px 14px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.faq-btn:hover {
    background: #d1d5db;
}

.faq-inline {
    margin-left: 0 !important;
}

.place .badge {
    margin-top: 7px;
}

.topbar{
    display:flex;
    gap:10px;
    padding:10px;
    border-bottom:1px solid #e5e5e5;
    background: rgba(245, 247, 250, 0.9);
    backdrop-filter: blur(6px);
    position:sticky;
    top:0;
    z-index:1000;
}

.topbar select,
.topbar input{
    padding:7px 12px;
    border-radius:8px;
    border:1px solid #d0d4da;
    background:#fff;
    font-size:14px;
    transition:0.15s;
}

.topbar select:focus,
.topbar input:focus{
    outline:none;
    border-color:#4f8cff;
    box-shadow:0 0 0 2px rgba(79,140,255,0.15);
}

#app { display:flex; height:calc(100vh - 56px); }

#sidebar{
    width:350px;
    overflow-y:auto;
    border-right:1px solid #e5e5e5;
    padding:10px;
    background:#f8f9fb;
    position: relative;
    z-index: 1;
}

/* Sidebar immer über Leaflet Controls */
#sidebar {
    z-index: 4000 !important;
}

/* Leaflet Controls unter Sidebar */
.leaflet-control-container {
    z-index: 1000 !important;
}

/* Wenn Sidebar offen → Map nicht klickbar (Mobile & Desktop) */
#sidebar.open ~ #map {
    pointer-events: none;
}

#map{ flex:1; }

.place{
    border-bottom:1px solid #e6e8eb;
    padding:12px;
    cursor:pointer;
    transition:0.15s;
}

.place:hover{
    background:#eef2f7;
}

.place img{
    width:100%;
    height:150px;
    object-fit:cover;
    border-radius:6px;
    display:block;          /* wichtig */
    flex-shrink:0;           /* verhindert Resize */
}

.badge{
    display:inline-block;
    background:#eee;
    padding:2px 6px;
    border-radius:4px;
    font-size:12px;
    margin-right:4px;
}

.place-creator {
    font-size: 14px;          /* größer */
    font-weight: 600;         /* etwas kräftiger */
    color: #374151;           /* besser lesbar */
    margin: 6px 0 4px 0;      /* sauberer Abstand */
}



.footer {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #333;
    opacity: 0.75;
    z-index: 9999;
    pointer-events: none; /* Map bleibt klickbar */
    background: rgba(255,255,255,0.8);
    padding: 4px 12px;
    border-radius: 14px;
	font-weight: bold;
    backdrop-filter: blur(4px);
}

.footer .heart {
    color: #e25555;
    font-weight: bold;
}

.popup-card {
    font-size: 13px;
    line-height: 1.4;
}

.popup-link {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f4f8;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: 0.15s;
}

.popup-link:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.popup-img {
    margin-top: 8px;
    width: 200px;
    border-radius: 6px;
}

.popup-location {
    margin-top: 4px;
    color: #555;
    font-size: 12px;
}

/* Sidebar Website-Link Style */
.place a {
    color: #1f2937;          /* nicht blau */
    text-decoration: none;    /* keine Unterstreichung */
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 6px;
    background: #eee;
    transition: 0.15s;
}

.place a:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.place-link {
    display: inline-block;
    margin-top: 6px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 8px;
    background: #eee;
    transition: 0.15s;
}

.place-link:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.place-location {
    margin: 2px 0 6px;
    font-size: 13px;
    color: #6b7280;
}

.place-meta {
    margin: 2px 0;
}

.popup-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.place h3 {
    margin: 4px 0 0 0;   /* vorher default ~16px */
    font-size: 16px;
    font-weight: 700;
}

.place-location {
    margin: 0 0 4px 0;   /* fast kein Abstand */
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
}

.place-meta {
    margin: 2px 0;
}

.place button.place-link {
    border: none;
    outline: none;
    background: #eee;   /* gleich wie Link */
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.place-details {
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    max-height: 0;
    opacity: 0;
}

.place-details.open {
    max-height: none;
    opacity: 1;
}

.place-thumbs{ display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.place-thumb{
  width:52px; height:52px; border-radius:10px; object-fit:cover; cursor:pointer;
  border:1px solid rgba(0,0,0,0.06);
}

.sidebar-hint {
    padding:12px;
    color:#374151;
    font-weight:600;
    font-size:14px;
}

.gallery-modal{ position:fixed; inset:0; display:none; z-index:5000; }
.gallery-modal.open{ display:block; }
.gallery-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,0.35); }

.gallery-panel{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(520px, 92vw); max-height:70vh; background:#fff; border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,0.25); overflow:hidden;
}
.gallery-head{ display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-bottom:1px solid #eee; }
.gallery-title{ font-weight:700; font-size:14px; }
.gallery-close{ border:1px solid #e5e7eb; background:#fff; border-radius:10px; padding:6px 10px; cursor:pointer; }

.gallery-body{ position:relative; display:flex; justify-content:center; align-items:center; padding:10px; background:#f8fafc; }
.gallery-image{ max-width:100%; max-height:52vh; border-radius:10px; object-fit:contain; background:#fff; }

.gallery-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border-radius:999px;
  border:1px solid rgba(0,0,0,0.10); background:#fff; cursor:pointer; font-size:22px;
}
.gallery-nav.prev{ left:10px; }
.gallery-nav.next{ right:10px; }
.gallery-counter{ padding:8px 12px; font-size:12px; color:#6b7280; border-top:1px solid #eee; }

.place-link.twitch {
    background: #f3e8ff;
    color: #6d28d9;
}

.place-link.twitch:hover {
    background: #e9d5ff;
    color: #5b21b6;
}

.place-link.icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.place-link.icon img {
    width: 18px;
    height: 18px;
    display: block;
}

/* =====================
   MOBILE LAYOUT
===================== */
@media (max-width: 900px){

    #app{
        height: calc(100vh - 56px);
    }

    #map{
        width: 100%;
        height: 100%;
    }

    /* Sidebar wird Drawer */
    #sidebar{
        position: fixed;
        top: 56px;
        left: 0;
        height: calc(100vh - 56px);
        width: 85%;
        max-width: 360px;
        background: #f8f9fb;
        box-shadow: 8px 0 25px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 3000;
        border-right: none;
    }

    #sidebar.open{
        transform: translateX(0);
    }

    /* Hamburger Button */
    .hamburger{
        display: block;
        font-size: 22px;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 8px;
        background: #fff;
        border: 1px solid #ddd;
    }
}
