:root {
    --accent: #1d72b8;
    --bg-dark: #0b2436;
    --bg-light: #f0f2f5;
    --border: #ddd;
    --text-muted: #666;
    --danger: #d9534f;
    --warning: #f0ad4e;
    --success: #5cb85c;
    --max-width: 960px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg-light);
    color: #111;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

button:hover {
    filter: brightness(1.1);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-delete { background: var(--danger); }
.btn-report { background: var(--warning); }
.btn-friend { background: var(--success); }
.btn-like   { background: var(--accent); }

.nav {
    background: var(--bg-dark);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-right a,
.nav-right button {
    color: #fff;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    cursor: pointer;
}

.container {
    max-width: var(--max-width);
    margin: 20px auto;
    padding: 0 16px;
}

h1, h2, h3 {
    margin-top: 0;
}

.status-message {
    background: #e6ffed;
    border: 1px solid #cde;
    color: #2d6a4f;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.error-message {
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.post-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.post-form textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.map-wrapper {
    margin: 12px 0;
}

#map {
    width: 100%;
    height: 160px;
    max-height: 160px;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.map-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.post-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.post-controls select,
.post-controls input[type="file"] {
    padding: 6px;
    font-size: 0.85rem;
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.post header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.visibility-tag {
    background: #fffae6;
    color: #8a6d3b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.post .body {
    margin-top: 8px;
    font-size: 0.95rem;
}

.post-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
}

.loc {
    margin-top: 8px;
    font-size: 0.85rem;
}

.pfp-corner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.pfp-small {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.pfp-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

details summary {
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 8px;
}

details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

details li {
    font-size: 0.85rem;
    padding: 4px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

th, td {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: #f8f8f8;
}

.leaflet-container {
    background: #e5e5e5;
    z-index: 1;
}
