:root { --bg: #fafaf7; --surface: #ffffff; --text: #1a1a1a; --muted: #6b6b6b; --border: #e6e6e2; --accent: #2f6f4f; --accent-hover: #245a3f; --shadow: 0 2px 12px rgba(0, 0, 0, 0.06); --sidebar-width: 360px; } * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; } body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); } .app { display: flex; height: 100%; } /* Sidebar */ .sidebar { width: var(--sidebar-width); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; } .sidebar-header { padding: 20px 24px; border-bottom: 1px solid var(--border); } .sidebar-header h1 { margin: 0; font-size: 1.25rem; } .tagline { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); } .sidebar-body { flex: 1; overflow-y: auto; padding: 24px; } .sidebar-footer { padding: 16px 24px; border-top: 1px solid var(--border); } .empty { color: var(--muted); font-size: 0.95rem; line-height: 1.5; } /* Detalles */ .details { position: relative; } .close { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border: none; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--muted); line-height: 1; } .close:hover { color: var(--text); } .badge { display: inline-block; background: var(--bg); border: 1px solid var(--border); padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; } .details h2 { margin: 12px 0 4px; font-size: 1.3rem; } .address { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; } .description { line-height: 1.55; margin: 0 0 16px; } .contact { font-size: 0.9rem; margin: 0; } /* Mapa */ .map { flex: 1; position: relative; } .map-hint { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: var(--surface); padding: 8px 16px; border-radius: 4px; box-shadow: var(--shadow); font-size: 0.9rem; z-index: 1000; } /* Botones */ button { font: inherit; padding: 10px 18px; border: 1px solid var(--border); background: var(--surface); border-radius: 4px; cursor: pointer; transition: background 0.15s; } button:hover { background: var(--bg); } button.primary { background: var(--accent); border-color: var(--accent); color: white; width: 100%; } button.primary:hover { background: var(--accent-hover); } /* Modal */ .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; } .modal { background: var(--surface); border-radius: 6px; padding: 28px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); } .modal h2 { margin: 0 0 4px; } .modal .hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; } .modal label { display: block; margin-bottom: 14px; font-size: 0.9rem; color: var(--muted); } .modal input, .modal textarea { width: 100%; padding: 8px 10px; margin-top: 4px; border: 1px solid var(--border); border-radius: 4px; font: inherit; color: var(--text); background: var(--surface); } .modal input:focus, .modal textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); } .location-status { background: var(--bg); padding: 10px 12px; border-radius: 4px; font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; } .repick-link { padding: 2px 8px; font-size: 0.8rem; border-color: var(--border); background: transparent; color: var(--accent); border-radius: 3px; flex-shrink: 0; } .repick-link:hover { background: var(--bg); text-decoration: underline; } .actions { display: flex; gap: 8px; justify-content: flex-end; } /* Admin */ .admin-btn { margin-top: 8px; width: 100%; font-size: 0.85rem; color: var(--muted); } .admin-panel { max-width: 560px; } .admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .admin-header h2 { margin: 0; } .admin-header .close { position: static; width: auto; height: auto; } .admin-empty { color: var(--muted); text-align: center; padding: 24px 0; } .admin-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); } .admin-item-info { flex: 1; font-size: 0.9rem; } .admin-item-info strong { display: block; margin-bottom: 4px; } .admin-item-info p { margin: 2px 0; color: var(--muted); } .admin-desc { color: var(--text) !important; } .admin-contact, .admin-coords { font-size: 0.8rem; } .admin-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; } .admin-actions .approve { background: var(--accent); border-color: var(--accent); color: white; padding: 6px 14px; font-size: 0.85rem; } .admin-actions .approve:hover { background: var(--accent-hover); } .admin-actions .reject { padding: 6px 14px; font-size: 0.85rem; color: #c0392b; border-color: #e0b0b0; } .admin-actions .reject:hover { background: #fff5f5; } /* Responsive */ @media (max-width: 720px) { .app { flex-direction: column-reverse; } .sidebar { width: 100%; max-height: 45%; border-right: none; border-top: 1px solid var(--border); } }