body, html { margin: 0; padding: 0; height: 100vh; height: 100dvh; font-family: 'Racing Sans One', sans-serif; overflow: hidden; -webkit-user-select: none; user-select: none; background-color: #f4ecd8; color: #000; }
#map { width: 100vw; height: 100vh; height: 100dvh; position: absolute; top: 0; left: 0; z-index: 1; background-color: #EEDCB3; }

.header-info { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); z-index: 10; background-color: #fff; padding: 8px 25px 15px 25px; border-radius: 8px; border: 2px solid #000; box-shadow: 4px 4px 0px #000; text-align: center; width: max-content; max-width: 600px; display: flex; flex-direction: column; align-items: center; gap: 12px; box-sizing: border-box; }

.header-text { display: flex; flex-direction: column; align-items: center; width: 100%; }
.main-logo { width: 100%; max-width: 360px; height: auto; display: block; margin: 0; }
.header-text p { margin: 8px 0 0 0; font-size: 13px; color: #000; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }

.action-buttons { display: flex; gap: 10px; width: 100%; justify-content: center; flex-wrap: wrap; }
.action-buttons .custom-btn { flex: 1 1 auto; padding: 8px 10px; font-size: 13px; }

.custom-btn { background-color: #fff; border: 2px solid #000; padding: 8px 15px; font-size: 14px; font-family: 'Racing Sans One', sans-serif; border-radius: 8px; cursor: pointer; box-shadow: 4px 4px 0px #000; transition: all 0.2s; color: #000; text-transform: uppercase; box-sizing: border-box; white-space: nowrap; }
.custom-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px #000; }
.custom-btn:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #000; }
.custom-btn.active { background-color: #d32f2f; color: #fff; }

.bottom-controls-wrapper { position: absolute; bottom: 30px; left: 0; width: 100%; z-index: 10; pointer-events: none; }
.map-selector-container { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); background: #fff; border: 2px solid #000; padding: 15px; border-radius: 12px; box-shadow: 4px 4px 0px #000; text-align: center; pointer-events: auto; }
.map-selector-container span { display: block; margin-bottom: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #000; }
.map-buttons { display: flex; gap: 10px; justify-content: center; }

.custom-zoom-controls { position: absolute; bottom: 0; right: 20px; display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.zoom-btn { width: 40px; height: 40px; padding: 0; font-size: 20px; display: flex; align-items: center; justify-content: center; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 100; justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 25px; border-radius: 8px; border: 2px solid #000; box-shadow: 4px 4px 0px #000; text-align: center; position: relative; max-height: 85vh; width: 90%; max-width: 400px; overflow-y: auto; box-sizing: border-box; }
.close-btn { background: none; border: none; color: #000; position: absolute; top: 10px; right: 10px; font-size: 24px; cursor: pointer; z-index: 101; }
.modal-content input[type="text"], .modal-content textarea { width: 100%; padding: 12px; margin: 8px 0; border: 2px solid #000; border-radius: 6px; font-family: 'Racing Sans One', sans-serif; box-sizing: border-box; font-size: 15px; color: #000; transition: border-radius 0.2s, background-color 0.2s; }
.modal-content textarea { resize: vertical; }

.input-duplicate { background-color: #EEDCB3 !important; }
#duplicate-warning { display: none; background-color: #EEDCB3; color: #000; font-weight: bold; padding: 12px; font-size: 11px; text-transform: uppercase; border: 2px solid #000; border-radius: 6px; box-shadow: 4px 4px 0px #000; margin-top: 5px; margin-bottom: 15px; text-align: left; line-height: 1.3; }

#search-modal .modal-content, #club-modal .modal-content { height: 80vh; height: 80dvh; display: flex; flex-direction: column; overflow-y: auto; }

.custom-search-results { width: 100%; background: #fff; border: 2px solid #000; border-top: none; border-radius: 0 0 6px 6px; text-align: left; display: none; box-sizing: border-box; margin-top: -8px; flex: 1; overflow-y: auto; }
.search-item { padding: 12px; border-bottom: 1px solid #eee; cursor: pointer; font-family: 'Racing Sans One', sans-serif; color: #000; font-size: 14px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.search-item:hover { background-color: #f0f0f0; }
.search-item:last-child { border-bottom: none; }
.db-item { background-color: #FFFBF0; }
.db-item:hover { background-color: #FFECB3; }

#shop-modal .modal-content { max-width: 900px; } 
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 10px; padding-bottom: 10px; }
.product-card { border: 2px solid #000; border-radius: 8px; padding: 15px; background-color: #fff; box-shadow: 4px 4px 0px #000; display: flex; flex-direction: column; justify-content: space-between; }
.product-img { background-color: #f9f9f9; border: 1px dashed #000; height: 150px; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 15px; font-size: 60px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info h3 { margin: 0 0 5px 0; font-size: 18px; color: #000; text-transform: uppercase; }
.product-info p { margin: 0 0 15px 0; font-size: 14px; color: #000; line-height: 1.3; }
.product-price { font-size: 20px; font-weight: bold; color: #d32f2f; margin-bottom: 15px; }
.buy-btn { width: 100%; background-color: #000; color: #fff; border-color: #000; padding: 8px; font-size: 14px; }
.buy-btn:hover { background-color: #d32f2f; border-color: #d32f2f; }

.pizza-popup-wrapper { padding: 5px 5px 10px 5px; } 
.pizza-popup { font-family: 'Racing Sans One', sans-serif; text-align: center; padding: 15px; width: 220px; color: #000; background: #fff; border: 2px solid #000; border-radius: 8px; box-shadow: 4px 4px 0px #000; box-sizing: border-box; }
.pizza-popup h3 { margin: 0 0 10px 0; text-transform: uppercase; font-size: 18px; color: #000; }
.popup-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.popup-btn { background: #fff; border: 2px solid #000; border-radius: 6px; padding: 8px; font-family: 'Racing Sans One', sans-serif; font-size: 12px; cursor: pointer; text-transform: uppercase; box-shadow: 4px 4px 0px #000; text-decoration: none; color: #000; display: block; box-sizing: border-box; width: 100%; }
.popup-btn.btn-go { background: #d32f2f; color: #fff; border-color: #000; margin-top: 5px; }
.popup-btn.btn-go:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #000; }

.popup-contact-link { color: #000; text-decoration: none; display: block; margin: 5px 0; }
.popup-contact-link:hover { text-decoration: underline; }

.club-intro { margin-bottom: 15px; flex: none; }
.club-intro p { font-family: 'Racing Sans One', sans-serif; font-size: 13px; line-height: 1.5; color: #000; margin: 10px 0; text-transform: uppercase; }
#christmas-countdown { font-family: 'Racing Sans One', sans-serif; font-size: 13px; color: #000; text-transform: uppercase; display: block; margin-top: 5px; }

.contributors-list { display: flex; flex-direction: column; gap: 10px; padding: 5px; margin-top: 10px; flex: none; }
.contributor-item { padding: 12px 15px; border: 2px solid #000; border-radius: 8px; font-family: 'Racing Sans One', sans-serif; text-transform: uppercase; color: #000; display: flex; justify-content: space-between; align-items: center; text-align: left; }

.club-footer { font-family: 'Racing Sans One', sans-serif; font-size: 13px; color: #808080; margin-top: auto; padding-top: 25px; margin-bottom: 5px; text-transform: uppercase; flex: none; }

.contributor-gold { background-color: #FFD700; box-shadow: 4px 4px 0px #000; font-size: 18px; }
.contributor-silver { background-color: #E0E0E0; box-shadow: 4px 4px 0px #000; font-size: 16px; }
.contributor-bronze { background-color: #CD7F32; box-shadow: 4px 4px 0px #000; font-size: 15px; color: #fff; } 
.contributor-standard { background-color: #f9f9f9; font-size: 14px; border-color: #ccc; color: #555; }

#snipcart { z-index: 99999 !important; }

@media (max-width: 768px) {
    .header-info { top: calc(env(safe-area-inset-top, 0px) + 10px); width: 95vw; max-width: 95vw; padding: 8px 10px 15px 10px; }
    .main-logo { max-width: 290px; } 
    
    .bottom-controls-wrapper { bottom: calc(env(safe-area-inset-bottom, 20px) + 35px); display: flex; align-items: stretch; justify-content: center; padding: 0 15px; box-sizing: border-box; gap: 10px; }
    
    .map-selector-container { position: relative; bottom: auto; left: auto; transform: none; flex: 1; width: auto; padding: 10px; display: flex; flex-direction: column; justify-content: center; }
    .map-buttons .custom-btn { padding: 6px 10px; font-size: 12px; }
    
    .custom-zoom-controls { position: relative; bottom: auto; right: auto; flex-direction: column; display: flex; }
    .zoom-plus-minus { display: none; }
    
    #recenter-btn { flex: 1; height: auto; width: 45px; font-size: 24px; }
}
