body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    color: #f5e9d0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}

header {
    margin-top: 1.5em;
}

header img {
    height: auto;
    max-width: 95vw;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.7));
    animation: fadeIn 1.2s ease-out;
    display: block;
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
}

.hero-wrap {
    padding: 0 12px;
}

.subheader {
    font-size: 1.2rem;
    color: #c8c8c8;
    margin-top: 0.8em;
    margin-bottom: 0.8em;
    text-shadow: 1px 1px 3px #000;
    font-weight: 700;
    display: inline-block;
}

.card {
    background: rgba(31, 41, 55, 0.92);
    border-radius: 16px;
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
}

.card a {
    color: #c8c8c8;
    font-weight: bold;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}
.login-card {
    max-width: 600px;
}

.info-box {
    display: block;
    background: rgba(50, 30, 10, 0.85);
    border: 1.5px solid #d4af37;
    border-radius: 12px;
    padding: 1.2em 1em;
    margin: 20px auto 1em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    backdrop-filter: blur(4px);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-box:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
}

.info-box h2 {
    margin: 0 0 0.2em;
    font-size: 1.4rem;
    color: #ffdd99;
}

.info-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.lower {
    margin-bottom: 5px;
    padding: 0 12px 12px;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.button,
a.button,
button.button {
    display: inline-block;
    padding: 0.9em 2em;
    margin: 0.3em;
    background: linear-gradient(180deg, #d4af37, #8d6d1f);
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    cursor: pointer;
}

.button:hover,
a.button:hover,
button.button:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
    background: linear-gradient(180deg, #f0ca59, #b68a2f);
}

#map {
    width: 90%;
    max-width: 700px;
    height: 280px;
    border-radius: 10px;
    margin: 0 auto 0.5em;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.cta-text {
    font-size: 1rem;
    color: #e8d29c;
    font-style: italic;
    margin-top: 0.4em;
}

footer {
    font-size: 0.8rem;
    color: #777;
    padding: 1em 0;
}

.leaflet-popup-content-wrapper {
    background: #2b2b2b;
    color: #f5e9d0;
    border: 1px solid #d4af37;
    border-radius: 10px;
}

.leaflet-popup-tip {
    background: #2b2b2b;
}

.popup-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffdd99;
}

.popup-actions a {
    display: inline-block;
    padding: 0.5em 1em;
    background: linear-gradient(180deg, #d4af37, #8d6d1f);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.user-dot {
    background: #3aa7ff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 2px rgba(58, 167, 255, 0.5), 0 0 10px rgba(0, 0, 0, 0.6);
}

.pulse-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(58, 167, 255, 0.5);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    70% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(1.2); opacity: 0; }
}

.leaflet-user-marker {
    position: relative;
    width: 14px;
    height: 14px;
}

@media (max-width: 600px) {
    header img {
        max-width: 92vw;
    }

    #map {
        width: 95%;
        height: 240px;
    }

    .button-row {
        flex-direction: column;
        align-items: center;
    }
}