body { margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; background: #f4f6f8; }
#map { height: 100vh; width: 100vw; z-index: 1; }

.full-gate {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    z-index: 5000; display: flex; justify-content: center; align-items: flex-start;
    padding: 20px; box-sizing: border-box; overflow-y: auto;
}
.gate-box {
    background: white; width: 100%; max-width: 760px; padding: 22px;
    border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); margin-top: 15px;
}
.search-input {
    width: 100%; padding: 12px 15px; border-radius: 25px; border: 2px solid #ff9800;
    font-size: 14px; box-sizing: border-box; outline: none; margin-bottom: 15px;
}
.yatra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px; }
.yatra-card {
    background: #fffdf9; padding: 16px; border-radius: 12px; border: 1px solid #eee;
    border-left: 6px solid #ff5722; transition: transform 0.15s, box-shadow 0.15s;
}
.yatra-card:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.badge { background: #fff3e0; color: #e65100; padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: bold; }

.top-bar { position: fixed; top: 12px; left: 12px; right: 90px; z-index: 2000; display: flex; gap: 6px; flex-wrap: wrap; }
.pill-btn, .pill-select {
    padding: 8px 12px; border-radius: 20px; border: 2px solid white;
    font-size: 12px; font-weight: bold; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: transform 0.12s, opacity 0.15s;
}
.pill-btn:active { transform: scale(0.97); }
.pill-select { background: white; color: #333; border-color: #333; }

.sos-float-btn {
    position: fixed; bottom: 25px; left: 15px; z-index: 2000;
    background: #dc3545; color: white; border: 2px solid white; border-radius: 30px;
    padding: 10px 18px; font-size: 15px; font-weight: bold; cursor: pointer;
    box-shadow: 0 4px 10px rgba(220,53,69,0.5);
}
.menu-btn {
    position: fixed; top: 12px; right: 12px; z-index: 2000;
    background: white; color: #333; border: 2px solid #333; border-radius: 20px;
    padding: 8px 14px; font-size: 14px; font-weight: bold; cursor: pointer;
}
.dropdown-content {
    display: none; flex-direction: column; position: fixed; top: 55px; right: 12px;
    background: white; min-width: 220px; border-radius: 10px; border: 2px solid #333;
    z-index: 2500; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.dropdown-content button {
    padding: 11px 14px; border: none; background: none; text-align: left;
    font-size: 13px; font-weight: bold; cursor: pointer; border-bottom: 1px solid #eee;
}
.dropdown-content button:hover { background: #f5f5f5; }

.modal-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); z-index: 3000; }
.center-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: white; width: 90%; max-width: 420px; max-height: 85vh; overflow-y: auto;
    padding: 20px; border-radius: 14px; z-index: 3500; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.form-input { width: 100%; padding: 9px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 13px; }
.primary-btn { width: 100%; padding: 11px; background: #ff5722; color: white; border: none; border-radius: 6px; font-size: 14px; font-weight: bold; cursor: pointer; }
.primary-btn:hover { opacity: 0.93; }
.sos-opt-btn { width: 100%; padding: 12px; margin-bottom: 10px; color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: bold; cursor: pointer; }

/* Donation QR & Donor Wall Styling */
#donationUpiQrBox img, #donationUpiQrBox canvas {
    display: block;
    margin: 0 auto;
}
#publicDonorWallGrid > div {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#publicDonorWallGrid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.2);
}

@media (max-width: 520px) {
    .gate-box { padding: 15px; }
    .top-bar { right: 82px; gap: 4px; }
    .pill-btn, .pill-select { padding: 6px 9px; font-size: 11px; }
}