* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: #fafafa; color: #111; }
#app { min-height: 100vh; }
#login-screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1.5rem; }
#login-screen form { width: 100%; max-width: 320px; }
#main-screen { padding: 1rem; }
.hidden { display: none !important; }
h1 { font-size: 2rem; text-align: center; margin: 0.25rem 0; }
.trip-info, .trip-title { text-align: center; color: #555; margin: 0.2rem 0; font-size: 0.95rem; }
form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
input, select, button { font-size: 1rem; padding: 0.85rem; border: 1px solid #ddd; border-radius: 0.6rem; background: #fff; }
button { background: #0066cc; color: #fff; border: none; font-weight: 600; cursor: pointer; }
button:active { background: #0055aa; }
button[type="button"] { background: #e5e5e5; color: #111; }
button[type="button"]:active { background: #d4d4d4; }
input:focus, select:focus, button:focus { outline: 2px solid #0066cc; }
.error { color: #c00; text-align: center; margin: 0.25rem 0; }
header { display: flex; flex-direction: column; align-items: center; position: relative; padding: 0.25rem 0; }
#logout-btn { position: absolute; right: 0; top: 0.5rem; background: #f0f0f0; color: #111; font-size: 0.8rem; padding: 0.35rem 0.6rem; }
nav { display: flex; gap: 0.5rem; margin: 1rem 0; }
nav button { flex: 1; background: #e5e5e5; color: #333; }
nav button.active { background: #0066cc; color: #fff; }
.tab { display: none; }
.tab.active { display: block; }
.photo-roll { display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 2rem; }
.post { background: #fff; border: 1px solid #eee; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.post img { width: 100%; display: block; }
.post-content { padding: 0.9rem; }
.post-content p { margin: 0.2rem 0; }
.post-meta { font-size: 0.85rem; color: #666; margin-top: 0.4rem; }
#map { height: 70vh; width: 100%; border-radius: 0.6rem; border: 1px solid #ddd; }
.map-note { font-size: 0.8rem; color: #666; text-align: center; margin-top: 0.5rem; }
.publish-form { background: #fff; padding: 1rem; border-radius: 0.75rem; margin-bottom: 1.25rem; border: 1px solid #eee; }
.publish-form h2 { margin-top: 0; font-size: 1.15rem; color: #333; }
#photo-search-results { display: flex; flex-direction: column; gap: 0.4rem; }
.search-result { padding: 0.6rem; background: #f5f5f5; border-radius: 0.4rem; font-size: 0.9rem; cursor: pointer; }
.search-result:active { background: #e5e5e5; }
header { padding-top: 2.2rem; }
#main-screen header .language-select { position: absolute; left: 0; top: 0.5rem; font-size: 0.85rem; padding: 0.35rem 0.6rem; max-width: 120px; background: #f0f0f0; }
#login-screen .language-select { margin-bottom: 0.75rem; }
.disclaimer { font-size: 0.75rem; color: #888; text-align: center; margin: 1rem 0.5rem; }
#stats-tab-btn { background: #6c757d; color: #fff; }
.stats-content { background: #fff; padding: 1rem; border-radius: 0.75rem; }
.stats-summary p { margin: 0.25rem 0; }
.stats-table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
.stats-table th, .stats-table td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #eee; }
.post.hidden-post { opacity: 0.75; }
.toggle-hide { background: #dc3545; margin-top: 0.5rem; }
.toggle-hide:hover { background: #c82333; }
.hidden-badge { display: inline-block; margin-left: 0.5rem; padding: 0.2rem 0.5rem; background: #666; color: #fff; border-radius: 0.3rem; font-size: 0.75rem; }
.stats-block { margin-bottom: 1.5rem; }
.stats-block h3 { margin: 0.5rem 0; color: #333; }
.country-bars { margin: 0.75rem 0; }
.country-bar { display: flex; align-items: center; margin-bottom: 0.5rem; }
.country-label { width: 6rem; font-size: 0.85rem; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-fill { height: 1.2rem; background: #0066cc; border-radius: 0.3rem; margin: 0 0.5rem; min-width: 0.25rem; }
.country-count { font-size: 0.85rem; color: #555; }
